mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 03:33:25 +02:00
Add "GEOIPBLOCK" chains to firewall initscript.
This commit is contained in:
@@ -179,6 +179,11 @@ iptables_init() {
|
|||||||
iptables -A OUTPUT -o "${BLUE_DEV}" -j DHCPBLUEOUTPUT
|
iptables -A OUTPUT -o "${BLUE_DEV}" -j DHCPBLUEOUTPUT
|
||||||
fi
|
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
|
# trafic from ipsecX/TUN/TAP interfaces, before "-i GREEN_DEV" accept everything
|
||||||
iptables -N IPSECINPUT
|
iptables -N IPSECINPUT
|
||||||
iptables -N IPSECFORWARD
|
iptables -N IPSECFORWARD
|
||||||
|
|||||||
Reference in New Issue
Block a user