Download Latest Version ipblock_0.1.1.zip (18.8 kB)
Email in envelope

Get an email when there's a new version of ipblock

Home / 0.1
Name Modified Size InfoDownloads / Week
Parent folder
README 2017-01-09 1.0 kB
ipblock_0.1.1.tar 2017-01-09 51.2 kB
ipblock_0.1.1.zip 2017-01-09 18.8 kB
Totals: 3 Items   71.0 kB 1
To use simply place somewhere, edit the variables in the scripts, and execute. 
The route scripts do not work well with network manager or DHCP yet so you may encounter some problems there if disconnecting and reconnecting from the network. If you can run the script last in boot order by placing in rc.local and not need to reconnect to the network often it should be fine.
The iptables script functions but you need to make certain your other firewall scripts do not conflict.

Changelog:
allow_country_iptables 
	line 84: if [ -f $ZONEROOT/$c-aggregated.zone ] 
		changed to: if [ ! -f $ZONEROOT/$c-aggregated.zone ]

allow_country_route
	line 77: if [ -f $ZONEROOT/$c-aggregated.zone ] 
		changed to: if [ ! -f $ZONEROOT/$c-aggregated.zone ]

block_country_iptables
	line 84: if [ -f $ZONEROOT/$c-aggregated.zone ] 
		changed to: if [ ! -f $ZONEROOT/$c-aggregated.zone ]

block_country_route
	line 77: if [ -f $ZONEROOT/$c-aggregated.zone ] 
		changed to: if [ ! -f $ZONEROOT/$c-aggregated.zone ]

Source: README, updated 2017-01-09