@Adamm, I did a bit of experimenting and see the following:
Code:
admin@RT-AC88U:/jffs/scripts# grep -i 'xxx.xxx.' ipset.txt
add Whitelist xxx.xxx.0.0/16
add Whitelist xxx.xxx.106.0/24
add Whitelist xxx.xxx.106.123
admin@RT-AC88U:/jffs/scripts#
Obviously IP has been obfuscated.
Then, enabling the the debug in the firewall, the following appears in the syslog as it blocks my whitelisted (by range with /16 /24 and /32) IP:
Code:
May 11 10:19:51 kernel: [BLOCKED - RAW] IN=eth0 OUT= MAC=2c:4d:54:22:92:78:00:01:5c:85:38:46:08:00 SRC=xxx.xxx.106.123 DST=xxx.xxx.125.247 LEN=40 TOS=0x00 PREC=0x00 TTL=110 ID=7764 DF PROTO=TCP SPT=62796 DPT=22223 SEQ=1096019285 ACK=2405146603 WINDOW=258 RES=0x00 ACK URGP=0
May 11 10:19:51 kernel: [BLOCKED - RAW] IN=eth0 OUT= MAC=2c:4d:54:22:92:78:00:01:5c:85:38:46:08:00 SRC=xxx.xxx.106.123 DST=xxx.xxx.125.247 LEN=40 TOS=0x00 PREC=0x00 TTL=110 ID=7779 DF PROTO=TCP SPT=63164 DPT=8443 SEQ=3994756124 ACK=2158012732 WINDOW=257 RES=0x00 ACK FIN URGP=0
May 11 10:19:51 kernel: [BLOCKED - RAW] IN=eth0 OUT= MAC=2c:4d:54:22:92:78:00:01:5c:85:38:46:08:00 SRC=xxx.xxx.106.123 DST=xxx.xxx.125.247 LEN=40 TOS=0x00 PREC=0x00 TTL=110 ID=7780 DF PROTO=TCP SPT=63164 DPT=8443 SEQ=3994756125 ACK=2158013083 WINDOW=0 RES=0x00 ACK RST URGP=0
May 11 10:19:51 kernel: [BLOCKED - RAW] IN=eth0 OUT= MAC=2c:4d:54:22:92:78:00:01:5c:85:38:46:08:00 SRC=xxx.xxx.106.123 DST=xxx.xxx.125.247 LEN=40 TOS=0x00 PREC=0x00 TTL=244 ID=61285 PROTO=TCP SPT=63164 DPT=8443 SEQ=3994756125 ACK=2158013115 WINDOW=216 RES=0x00 ACK RST URGP=0
May 11 10:19:52 kernel: [BLOCKED - RAW] IN=eth0 OUT= MAC=2c:4d:54:22:92:78:00:01:5c:85:38:46:08:00 SRC=xxx.xxx.106.123 DST=xxx.xxx.125.247 LEN=40 TOS=0x00 PREC=0x00 TTL=110 ID=7782 DF PROTO=TCP SPT=62796 DPT=22223 SEQ=1096019285 ACK=2405146683 WINDOW=258 RES=0x00 ACK URGP=0
May 11 10:19:53 kernel: [BLOCKED - RAW] IN=eth0 OUT= MAC=2c:4d:54:22:92:78:00:01:5c:85:38:46:08:00 SRC=xxx.xxx.106.123 DST=xxx.xxx.125.247 LEN=40 TOS=0x00 PREC=0x00 TTL=110 ID=7800 DF PROTO=TCP SPT=62796 DPT=22223 SEQ=1096019285 ACK=2405146843 WINDOW=257 RES=0x00 ACK URGP=0
May 11 10:19:54 kernel: [BLOCKED - RAW] IN=eth0 OUT= MAC=2c:4d:54:22:92:78:00:01:5c:85:38:46:08:00 SRC=xxx.xxx.106.123 DST=xxx.xxx.125.247 LEN=40 TOS=0x00 PREC=0x00 TTL=110 ID=7820 DF PROTO=TCP SPT=62796 DPT=22223 SEQ=1096019285 ACK=2405146907 WINDOW=257 RES=0x00 ACK URGP=0
May 11 10:19:55 kernel: [BLOCKED - RAW] IN=eth0 OUT= MAC=2c:4d:54:22:92:78:00:01:5c:85:38:46:08:00 SRC=xxx.xxx.106.123 DST=xxx.xxx.125.247 LEN=40 TOS=0x00 PREC=0x00 TTL=110 ID=7843 DF PROTO=TCP SPT=62796 DPT=22223 SEQ=1096019285 ACK=2405146971 WINDOW=257 RES=0x00 ACK URGP=0
May 11 10:19:55 kernel: [BLOCKED - RAW] IN=eth0 OUT= MAC=2c:4d:54:22:92:78:00:01:5c:85:38:46:08:00 SRC=xxx.xxx.106.123 DST=xxx.xxx.125.247 LEN=52 TOS=0x00 PREC=0x00 TTL=110 ID=7856 DF PROTO=TCP SPT=63226 DPT=8443 SEQ=2674518245 ACK=0 WINDOW=8192 RES=0x00 SYN URGP=0 OPT (020405640103030801010101)
May 11 10:19:55 kernel: [BLOCKED - RAW] IN=eth0 OUT= MAC=2c:4d:54:22:92:78:00:01:5c:85:38:46:08:00 SRC=xxx.xxx.106.123 DST=xxx.xxx.125.247 LEN=40 TOS=0x00 PREC=0x00 TTL=110 ID=7857 DF PROTO=TCP SPT=63226 DPT=8443 SEQ=2674518246 ACK=1005172174 WINDOW=258 RES=0x00 ACK URGP=0
May 11 10:19:55 kernel: [BLOCKED - RAW] IN=eth0 OUT= MAC=2c:4d:54:22:92:78:00:01:5c:85:38:46:08:00 SRC=xxx.xxx.106.123 DST=xxx.xxx.125.247 LEN=266 TOS=0x00 PREC=0x00 TTL=110 ID=7858 DF PROTO=TCP SPT=63226 DPT=8443 SEQ=2674518246 ACK=1005172174 WINDOW=258 RES=0x00 ACK PSH URGP=0
May 11 10:19:55 kernel: [BLOCKED - RAW] IN=eth0 OUT= MAC=2c:4d:54:22:92:78:00:01:5c:85:38:46:08:00 SRC=xxx.xxx.106.123 DST=xxx.xxx.125.247 LEN=40 TOS=0x00 PREC=0x00 TTL=110 ID=7861 DF PROTO=TCP SPT=63226 DPT=8443 SEQ=2674518472 ACK=1005173606 WINDOW=258 RES=0x00 ACK URGP=0
May 11 10:19:55 kernel: [BLOCKED - RAW] IN=eth0 OUT= MAC=2c:4d:54:22:92:78:00:01:5c:85:38:46:08:00 SRC=xxx.xxx.106.123 DST=xxx.xxx.125.247 LEN=166 TOS=0x00 PREC=0x00 TTL=110 ID=7862 DF PROTO=TCP SPT=63226 DPT=8443 SEQ=2674518472 ACK=1005173606 WINDOW=258 RES=0x00 ACK PSH URGP=0
Does this make sense to you? Is something broken, or is it my setup that is not working properly?