I still get a message UFW BLOCKED:
Dec 22 05:12:41 ge-domoticz kernel: [5324365.003868] [UFW BLOCK] IN=eth0 OUT= MAC=b8:27:eb:a1:7b:8b:38:1f:8d:e9:e4:9f:08:00:45:00:00:28:92:8c:00:00:ff:06:2f:d4 SRC=192.168.188.5 DST=192.168.188.24 LEN=40 TOS=0x00 PREC=0x00 TTL=255 ID=37516 PROTO=TCP SPT=6668 DPT=43084 WINDOW=4380 RES=0x00 ACK RST URGP=0
I tried the following rules but the UFW BLOCKED keeps coming:
[10] Anywhere on eth0 ALLOW IN 192.168.188.0/24 6668/tcp # iOt
[11] Anywhere ALLOW IN 192.168.188.0/24 6668/tcp # iOt
[12] 192.168.188.0/24 ALLOW IN 6668/tcp # iOt
raw iptables:
-A ufw-user-input -s 192.168.188.0/24 -i eth0 -p tcp -m tcp --sport 6668 -j ACCEPT
-A ufw-user-input -s 192.168.188.0/24 -p tcp -m tcp --sport 6668 -j ACCEPT
-A ufw-user-input -d 192.168.188.0/24 -p tcp -m tcp --sport 6668 -j ACCEPT
any suggestions what is wrong here? How do I allow all traffic any port with source/dest for 192.168.188.0/24?
--state related
rule, because it is an ACK message, meaning it is an answer to a SYN packet which obviously got through.