Enable ARP support in nftable for outbound restriction in exam_mode
This commit is contained in:
parent
194fbbc735
commit
f89b113049
1 changed files with 6 additions and 4 deletions
|
|
@ -13,15 +13,17 @@ ${filterchain}
|
||||||
chain filterin_${interface} {
|
chain filterin_${interface} {
|
||||||
type filter hook ingress device ${interface} priority filter; policy drop;
|
type filter hook ingress device ${interface} priority filter; policy drop;
|
||||||
ip saddr \$allowed_ipv4 accept
|
ip saddr \$allowed_ipv4 accept
|
||||||
ip saddr ${gateway} accept;
|
ip saddr ${gateway} accept
|
||||||
ip saddr 255.255.255.255 accept;
|
ip saddr 255.255.255.255 accept
|
||||||
|
ether type arp accept
|
||||||
}
|
}
|
||||||
|
|
||||||
chain filterout_${interface} {
|
chain filterout_${interface} {
|
||||||
type filter hook egress device ${interface} priority filter; policy drop;
|
type filter hook egress device ${interface} priority filter; policy drop;
|
||||||
ip daddr \$allowed_ipv4 accept
|
ip daddr \$allowed_ipv4 accept
|
||||||
ip daddr ${gateway} accept;
|
ip daddr ${gateway} accept
|
||||||
ip daddr 255.255.255.255 accept;
|
ip daddr 255.255.255.255 accept
|
||||||
|
ether type arp accept
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue