firewall: Apply destination NAT rules for the firewall itself, too.
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 9 Apr 2014 12:16:32 +0000 (14:16 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 9 Apr 2014 12:16:32 +0000 (14:16 +0200)
src/initscripts/init.d/firewall

index 246be37..31aa2c9 100644 (file)
@@ -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