From 682b36edb471b970e6f5b7251daf1a4bef1b4a5e Mon Sep 17 00:00:00 2001 From: Marcello Coutinho Date: Mon, 19 Dec 2011 03:28:38 -0200 Subject: pfblocker - version 1.0.1 with minor fixes --- config/pf-blocker/pfblocker.php | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'config/pf-blocker/pfblocker.php') diff --git a/config/pf-blocker/pfblocker.php b/config/pf-blocker/pfblocker.php index e6fcd75e..dc9b58dd 100644 --- a/config/pf-blocker/pfblocker.php +++ b/config/pf-blocker/pfblocker.php @@ -11,7 +11,8 @@ function get_networks($pfb){ if (preg_match("/(\w+)/",$_REQUEST['pfb'],$matches)) get_networks($matches[1]); #} - +if ($argv[1]=='uc') + pfblocker_get_countries(); if ($argv[1]=='cron'){ require_once("/etc/inc/util.inc"); require_once("/etc/inc/functions.inc"); @@ -215,17 +216,21 @@ $xml= <<action Disabled
Select action for countries you have selected in {$cont}

- Note:
'Deny Inbound' - Will deny access from selected countries to your network.
- 'Deny Outbound' - Will deny access from your users to countries you selected to block
+ Note:
'Deny Both' - Will deny access on Both directions.
+ 'Deny Inbound' - Will deny access from selected countries to your network.
+ 'Deny Outbound' - Will deny access from your users to countries you selected to block.
'Permit Inbound' - Will allow access from selected countries to your network.
- 'Permit Outbound' - Will allow access from your users to countries you selected to block
- 'Alias Only' - Will create alias {$cont} with selected countries to help custom rule assignments.
- 'Disabled' - Will just keep selection and do nothing to selected countries.
]]>
+ 'Permit Outbound' - Will allow access from your users to countries you selected to block.
+ 'Disabled' - Will just keep selection and do nothing to selected countries.
+ 'Alias Only' - Will create alias pfBlocker{$cont} with selected countries to help custom rule assignments.

+ While creating rules with this alias, keep aliasname in the beggining of rule description and do not end description with 'rule'.
+ Custom rules with 'Aliasname something rule' description will be removed by package.]]> select + -- cgit v1.2.3