mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-12-11 00:28:32 -05:00
nftables: move nat to another table for visibility
This commit is contained in:
parent
be68cfee94
commit
f3f1096c3f
@ -34,11 +34,7 @@ table inet filter {
|
||||
iifname "virbr0" counter reject with icmpx type port-unreachable
|
||||
}
|
||||
|
||||
chain libvirt_postrouting {
|
||||
ip saddr 192.168.122.0/24 ip daddr != 192.168.122.0/24 counter masquerade
|
||||
}
|
||||
|
||||
# Default to drop all inbound traffic, unless they meet our criteria
|
||||
# Default to drop all inbound traffic, unless they meet the criteria
|
||||
chain input {
|
||||
type filter hook input priority 0; policy drop;
|
||||
|
||||
@ -131,6 +127,12 @@ table inet filter {
|
||||
counter comment "Count accepted packets"
|
||||
#log prefix "[nftables] Outbound Accepted: " flags all counter accept
|
||||
}
|
||||
}
|
||||
|
||||
table inet nat {
|
||||
chain libvirt_postrouting {
|
||||
ip saddr 192.168.122.0/24 ip daddr != 192.168.122.0/24 counter masquerade
|
||||
}
|
||||
|
||||
chain postrouting {
|
||||
type nat hook postrouting priority 100; policy accept;
|
||||
|
Loading…
Reference in New Issue
Block a user