]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
Add "GEOIPBLOCK" chains to firewall initscript.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sat, 3 Jan 2015 23:57:23 +0000 (00:57 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sat, 3 Jan 2015 23:57:23 +0000 (00:57 +0100)
src/initscripts/init.d/firewall

index c383652e0b5e89b086caac5a1d745181fb113b6b..8ca02bc9d1932b4530556d5baf29ef0053eb090d 100644 (file)
@@ -179,6 +179,11 @@ iptables_init() {
                iptables -A OUTPUT -o "${BLUE_DEV}" -j DHCPBLUEOUTPUT
        fi
 
+       # GeoIP block
+       iptables -N GEOIPBLOCK
+       iptables -A INPUT -j GEOIPBLOCK
+       iptables -A FORWARD -j GEOIPBLOCK
+
        # trafic from ipsecX/TUN/TAP interfaces, before "-i GREEN_DEV" accept everything
        iptables -N IPSECINPUT
        iptables -N IPSECFORWARD