]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
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 246be37b9cde98b554210201902e65ec84abc624..31aa2c9b574e828e7d42c33a238808859f9cf6fb 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