The rules used to work flawlessly, but not so after upgraded to snapshot r20956-6893dd4803, which has included latest fw4 changes/upgrades.
Reload firewall rules give me the following warnings:
root@OpenWrt:~# /etc/init.d/firewall reload
Section @rule[9] (Support-UDP-Traceroute) is disabled, ignoring section
Section @include[0] is not marked as compatible with fw4, ignoring section
Section @include[0] requires 'option fw4_compatible 1' to be considered compatible
It might be causing my rules not working. May I ask how do I suppose to address this 'breaking' issue?
And just checked with 'nft list ruleset' and found the rules are actually in the right place, it just not working anymore.
BTW, my rules is like:
config rule
option name 'Allow Samba Access'
list dest_ip '192.168.1.3'
list dest_ip '192.168.1.7'
option dest_port '445'
option target 'ACCEPT'
list src_mac '00:xx:xx:xx:xx:xF'
option src 'guest'
option dest 'lan1'
option device 'wlan0'
Edit2: About the warning, I just found it's nothing related to the issue at all.
Edit3: The corresponding nft rule listed as:
chain forward_guest {
iifname "wlan0" ip daddr { 192.168.1.3, 192.168.1.7 } tcp dport 445 ether saddr 00:xx:xx:xx:xx:xf counter packets 0 bytes 0 jump accept_to_lan1 comment "!fw4: Allow Samba Access"
iifname "wlan0" ip daddr { 192.168.1.3, 192.168.1.7 } udp dport 445 ether saddr 00:xx:xx:xx:xx:xf counter packets 0 bytes 0 jump accept_to_lan1 comment "!fw4: Allow Samba Access"
ip daddr { 0.0.0.0/8, 10.0.0.0/8, 127.0.0.0/8, 169.254.0.0/16, 172.16.0.0/12, 192.0.0.0/24, 192.0.2.0/24, 198.18.0.0/15, 198.51.100.0/24, 203.0.113.0/24, 224.0.0.0-255.255.255.255 } counter packets 0 bytes 0 jump reject_to_lan1 comment "!fw4: Block guest -> private network"
jump accept_to_lan1 comment "!fw4: Accept guest to lan1 forwarding"
jump reject_to_guest
}