added optimization suggested by nft -c -o -f nftables.conf
This commit is contained in:
parent
a4bad496d3
commit
186bab8f76
|
@ -24,8 +24,7 @@ table ip filter {
|
||||||
|
|
||||||
chain in {
|
chain in {
|
||||||
type filter hook input priority filter; policy drop;
|
type filter hook input priority filter; policy drop;
|
||||||
ct state invalid drop;
|
ct state vmap { invalid : drop, related : accept, established : accept };
|
||||||
ct state related,established accept;
|
|
||||||
iifname "lo" accept;
|
iifname "lo" accept;
|
||||||
tcp dport @allowed_tcp_ports accept;
|
tcp dport @allowed_tcp_ports accept;
|
||||||
udp dport @allowed_udp_ports_in accept;
|
udp dport @allowed_udp_ports_in accept;
|
||||||
|
|
Loading…
Reference in New Issue