mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-10 19:15:54 +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
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user