From 7a331fae4f2692d3a8f5255ed22ea571c092815a Mon Sep 17 00:00:00 2001 From: Tom Schaefer Date: Thu, 30 Sep 2010 04:04:17 -0400 Subject: ver 1.6 added usage details, all interfaces enabled by default --- config/countryblock/countryblock.inc | 2 ++ config/countryblock/countryblock.tmp | 16 ++++++++++------ config/countryblock/countryblock.xml | 7 ++++++- config/countryblock/countryblock_if.tmp | 8 +++++--- config/countryblock/interfaces.txt | 1 + pkg_config.7.xml | 2 +- pkg_config.8.xml | 2 +- pkg_config.8.xml.amd64 | 2 +- 8 files changed, 27 insertions(+), 13 deletions(-) mode change 100644 => 100755 config/countryblock/countryblock_if.tmp create mode 100644 config/countryblock/interfaces.txt diff --git a/config/countryblock/countryblock.inc b/config/countryblock/countryblock.inc index e716f25b..46429563 100644 --- a/config/countryblock/countryblock.inc +++ b/config/countryblock/countryblock.inc @@ -84,6 +84,8 @@ function php_install_command_cb() unlink_if_exists("/tmp/purge.tmp"); exec("cp /tmp/whitelist.tmp /usr/local/www/packages/countryblock/whitelist.php"); unlink_if_exists("/tmp/whitelist.tmp"); + exec("cp /tmp/interfaces.txt /usr/local/www/packages/countryblock/interfaces.txt"); + unlink_if_exists("/tmp/interfaces.txt"); diff --git a/config/countryblock/countryblock.tmp b/config/countryblock/countryblock.tmp index f95c2e7c..785329a2 100755 --- a/config/countryblock/countryblock.tmp +++ b/config/countryblock/countryblock.tmp @@ -2586,12 +2586,16 @@ ob_end_clean(); - Usage +

Usage
- Check the country that you would like to block completely. Affects in & out traffic. -
Warning! - Apply after every firewall change or state reset. Use at your own risk. -

- + Check the country that you would like to block completely. Choose if you want to block outbound access and if you want to log attempts. Click "Commit Countries" to store your settings.
+ When your settings are stored select "Enable Country Block" and press save to enable to package.
+ To run countryblock as a cron job use /usr/local/etc/rc.d/countryblock.sh
+ To whitelist a CIDR range press Manual and to specify interfaces press Manual. By default all interfaces are selected.
+ Warning! - Apply after every firewall change or state reset. Use at your own risk. +

+ +


@@ -2630,7 +2634,7 @@ ob_end_clean(); - +
diff --git a/config/countryblock/countryblock.xml b/config/countryblock/countryblock.xml index 4edc4a6e..b89a38f5 100644 --- a/config/countryblock/countryblock.xml +++ b/config/countryblock/countryblock.xml @@ -41,7 +41,7 @@ Active Internet http://forum.pfsense.org/index.php/topic,25732.0.html Country Block Settings - 0.1.5 + 0.1.6 Settings /usr/local/pkg/countryblock.inc @@ -64,6 +64,11 @@ 0755 http://www.pfsense.org/packages/config/countryblock/countryblock.xml + + /usr/local/pkg/ + 0755 + http://www.pfsense.org/packages/config/countryblock/interfaces.txt + /usr/local/pkg/ 0755 diff --git a/config/countryblock/countryblock_if.tmp b/config/countryblock/countryblock_if.tmp old mode 100644 new mode 100755 index 405e1aec..11a81414 --- a/config/countryblock/countryblock_if.tmp +++ b/config/countryblock/countryblock_if.tmp @@ -148,9 +148,11 @@ include("head.inc"); $portname"; else echo "$portname"; @@ -174,8 +176,8 @@ include("head.inc");


-

Select the interfaces you want secured.

-

I highly recommend selecting all interfaces.
+

Select the interfaces you want secured. It's recommended to select all interfaces.

+

Default: All interfaces are seleted.

diff --git a/config/countryblock/interfaces.txt b/config/countryblock/interfaces.txt new file mode 100644 index 00000000..124009d7 --- /dev/null +++ b/config/countryblock/interfaces.txt @@ -0,0 +1 @@ +any \ No newline at end of file diff --git a/pkg_config.7.xml b/pkg_config.7.xml index 54440bfa..006d18f8 100755 --- a/pkg_config.7.xml +++ b/pkg_config.7.xml @@ -23,7 +23,7 @@ http://forum.pfsense.org/index.php/topic,25732.0.html http://pfsense.org/packages/config/countryblock/countryblock.xml http://files.pfsense.org/packages/7/All/ - 0.1.5 + 0.1.6 Beta 1.2.2 tom@tomschaefer.org diff --git a/pkg_config.8.xml b/pkg_config.8.xml index 3ba5236b..c1e03811 100755 --- a/pkg_config.8.xml +++ b/pkg_config.8.xml @@ -26,7 +26,7 @@ http://forum.pfsense.org/index.php/topic,25732.0.html http://pfsense.org/packages/config/countryblock/countryblock.xml http://files.pfsense.org/packages/7/All/ - 0.1.5 + 0.1.6 Beta 1.2.2 tom@tomschaefer.org diff --git a/pkg_config.8.xml.amd64 b/pkg_config.8.xml.amd64 index 152adf6f..c5c911c1 100755 --- a/pkg_config.8.xml.amd64 +++ b/pkg_config.8.xml.amd64 @@ -43,7 +43,7 @@ http://forum.pfsense.org/index.php/topic,25732.0.html http://pfsense.org/packages/config/countryblock/countryblock.xml http://files.pfsense.org/packages/amd64/8/All/ - 0.1.5 + 0.1.6 Beta 1.2.2 tom@tomschaefer.org -- cgit v1.2.3