]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
Forward Firewall: deleted postrouting block in firewall (not used anywhere)
authorAlexander Marx <amarx@ipfire.org>
Tue, 9 Jul 2013 12:58:30 +0000 (14:58 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 9 Aug 2013 12:15:33 +0000 (14:15 +0200)
src/initscripts/init.d/firewall

index 3f181b1380aa05ee5a76b267932a2716e97a6e66..12d8817019cddbdda0eed4d1cef1a7afad55a91a 100644 (file)
@@ -197,15 +197,6 @@ iptables_init() {
        /sbin/iptables -N UPNPFW
        /sbin/iptables -A FORWARD -m conntrack --ctstate NEW -j UPNPFW
 
-       # Postrouting rules (for port forwarding)
-       /sbin/iptables -t nat -A POSTROUTING -m mark --mark 1 -j SNAT --to-source $GREEN_ADDRESS
-       if [ "$BLUE_DEV" != "" ]; then
-               /sbin/iptables -t nat -A POSTROUTING -m mark --mark 2 -j SNAT --to-source $BLUE_ADDRESS
-       fi
-       if [ "$ORANGE_DEV" != "" ]; then
-               /sbin/iptables -t nat -A POSTROUTING -m mark --mark 3 -j SNAT --to-source $ORANGE_ADDRESS
-       fi
-
        # run local firewall configuration, if present
        if [ -x /etc/sysconfig/firewall.local ]; then
                /etc/sysconfig/firewall.local start