format nftables.nix
This commit is contained in:
parent
e12cc7dbf5
commit
f29830ec93
1 changed files with 56 additions and 58 deletions
|
@ -20,7 +20,18 @@ table inet filter {
|
||||||
type filter hook input priority filter
|
type filter hook input priority filter
|
||||||
policy drop
|
policy drop
|
||||||
|
|
||||||
icmpv6 type { echo-request, echo-reply, mld-listener-query, mld-listener-report, mld-listener-done, nd-router-advert, nd-neighbor-solicit, nd-neighbor-advert, packet-too-big } accept
|
icmpv6 type {
|
||||||
|
echo-request,
|
||||||
|
echo-reply,
|
||||||
|
mld-listener-query,
|
||||||
|
mld-listener-report,
|
||||||
|
mld-listener-done,
|
||||||
|
nd-router-advert,
|
||||||
|
nd-neighbor-solicit,
|
||||||
|
nd-neighbor-advert,
|
||||||
|
packet-too-big
|
||||||
|
} accept
|
||||||
|
|
||||||
icmp type echo-request accept
|
icmp type echo-request accept
|
||||||
|
|
||||||
ct state invalid drop
|
ct state invalid drop
|
||||||
|
@ -32,32 +43,21 @@ table inet filter {
|
||||||
|
|
||||||
udp dport { 60000-61000, 64738 } accept
|
udp dport { 60000-61000, 64738 } accept
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# DHCPv6
|
# DHCPv6
|
||||||
ip6 daddr fe80::/64 udp dport 546 accept
|
ip6 daddr fe80::/64 udp dport 546 accept
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
counter
|
counter
|
||||||
}
|
}
|
||||||
chain output {
|
chain output {
|
||||||
type filter hook output priority filter
|
type filter hook output priority filter
|
||||||
policy accept
|
policy accept
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
counter
|
counter
|
||||||
}
|
}
|
||||||
chain forward {
|
chain forward {
|
||||||
type filter hook forward priority filter
|
type filter hook forward priority filter
|
||||||
policy accept
|
policy accept
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
counter
|
counter
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -71,10 +71,8 @@ table ip nat {
|
||||||
type nat hook postrouting priority 100
|
type nat hook postrouting priority 100
|
||||||
iifname lxcbr0 oifname enp35s0 masquerade
|
iifname lxcbr0 oifname enp35s0 masquerade
|
||||||
iifname ve-* oifname enp35s0 masquerade
|
iifname ve-* oifname enp35s0 masquerade
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue