You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
541 B
12 lines
541 B
4 months ago
|
iptables-translate -A INPUT -p icmp -m length --length 86:0xffff -j DROP
|
||
|
nft add rule ip filter INPUT ip protocol icmp meta length 86-65535 counter drop
|
||
|
|
||
|
iptables-translate -A INPUT -p udp -m length --length :400
|
||
|
nft add rule ip filter INPUT ip protocol udp meta length 0-400 counter
|
||
|
|
||
|
iptables-translate -A INPUT -p udp -m length --length 40
|
||
|
nft add rule ip filter INPUT ip protocol udp meta length 40 counter
|
||
|
|
||
|
iptables-translate -A INPUT -p udp -m length ! --length 40
|
||
|
nft add rule ip filter INPUT ip protocol udp meta length != 40 counter
|