If there's a reference to any of these, please provide a link - I will read/perform myself. I've been watching the forums for some time - these are a few examples of firewall rules that seem will not work in version 22?
(Also, if that's not accurate, just let me know which ones will work as-is.)
I probably have about 5-20 more various examples. I have devices that I cannot upgrade because a lot of these rules exist.
How would I translate?
config rule
option proto 'tcp'
option name 'Block_In_Not_SYN'
option src '*'
option target 'DROP'
option extra '! --syn -m conntrack --ctstate NEW'
config rule
option name 'Block_FWD_Not_SYN'
option proto 'tcp'
option src '*'
option dest '*'
option target 'DROP'
option extra '! --syn -m conntrack --ctstate NEW'
No. 1 firewalls nearly 70% of my unsolicited and rogue traffic in networks I use this - it is major.
config rule
option target 'ACCEPT'
option proto 'tcp'
option name 'xyz_www'
option family 'ipv4'
option dest_port '80'
option src '*'
option extra '-m limit --limit 25/minute --limit-burst 100 -j ACCEPT'
option dest 'xyz'
list dest_ip 'xx.xx.xx.xx
config rule
option src 'wan'
option name 'SSH_CheckDrop'
option family 'ipv4'
option proto 'tcp'
option dest '*'
option dest_port '22'
option target 'DROP'
option extra '--syn -m recent --name ssh --update --seconds 300 --hitcount 5'
config rule
option target 'ACCEPT'
option family 'ipv4'
option proto 'tcp'
option src 'wan'
option dest_port '22'
option extra '--syn -m recent --name ssh --set'
option name 'SSH_CheckAccept'
option dest '*'
How do I translate similar burst rules, e.g.:
option extra '-m limit --limit 25/minute --limit-burst 100'
Connection limimt rules, e.g.:
option extra '--syn -m connlimit --connlimit-above 3'
Do ipsets work in /etc/config/firewall
as before?
Raw rules:
iptables -t raw -I PREROUTING -p <x_proto> -i tunl0 -j DROP
TTL/multicast rules:
iptables -t raw -A PREROUTING -i eth0.1 -m ttl --ttl-lt 7 -j ACCEPT
iptables -t raw -A PREROUTING -i eth1 -d 224.0.0.0/4 -p 2 -m ttl --ttl-lt 7 -j ACCEPT
iptables -t raw -A PREROUTING -i eth1 -d 224.0.0.0/4 -p udp -m ttl --ttl-lt 7 -j ACCEPT
iptables -t raw -A PREROUTING -i eth0.3 -s 192.168.1.2 -d 224.0.0.0/4 -m ttl --ttl-lt 7 -j ACCEPT
iptables -t raw -A PREROUTING -m ttl --ttl-lt 7 -j DROP