firewall: Add TOR chains.
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 31 Jul 2013 12:31:18 +0000 (14:31 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 9 Aug 2013 12:49:35 +0000 (14:49 +0200)
src/initscripts/init.d/firewall

index 12d8817019cddbdda0eed4d1cef1a7afad55a91a..fc49da4e9192711e295f68408f887ac837cf3294 100644 (file)
@@ -158,6 +158,10 @@ iptables_init() {
        /sbin/iptables -A INPUT -m conntrack --ctstate NEW -j WIRELESSINPUT
        /sbin/iptables -N WIRELESSFORWARD
        /sbin/iptables -A FORWARD -m conntrack --ctstate NEW -j WIRELESSFORWARD
+
+       # TOR
+       /sbin/iptables -N TOR_INPUT
+       /sbin/iptables -A INPUT -j TOR_INPUT
        
        # Jump into the actual firewall ruleset.
        /sbin/iptables -N INPUTFW