mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-26 19:00:34 +02:00
firewall: Apply destination NAT rules for the firewall itself, too.
This commit is contained in:
@@ -196,6 +196,7 @@ iptables_init() {
|
||||
# DNAT rules
|
||||
iptables -t nat -N NAT_DESTINATION
|
||||
iptables -t nat -A PREROUTING -j NAT_DESTINATION
|
||||
iptables -t nat -A OUTPUT -j NAT_DESTINATION
|
||||
|
||||
iptables -t mangle -N NAT_DESTINATION
|
||||
iptables -t mangle -A PREROUTING -j NAT_DESTINATION
|
||||
|
||||
Reference in New Issue
Block a user