diff options
author | Marcello Coutinho <marcellocoutinho@gmail.com> | 2011-12-19 03:28:38 -0200 |
---|---|---|
committer | marcelloc <marcellocoutinho@gmail.com> | 2011-12-19 03:28:38 -0200 |
commit | 682b36edb471b970e6f5b7251daf1a4bef1b4a5e (patch) | |
tree | 316cb7e1d14f5e55573dc4fdcb74467a8b3a9e52 /config/pf-blocker/pfblocker.php | |
parent | 9fa3b7fed179955897979c64e11af07208997f8a (diff) | |
download | pfsense-packages-682b36edb471b970e6f5b7251daf1a4bef1b4a5e.tar.gz pfsense-packages-682b36edb471b970e6f5b7251daf1a4bef1b4a5e.tar.bz2 pfsense-packages-682b36edb471b970e6f5b7251daf1a4bef1b4a5e.zip |
pfblocker - version 1.0.1 with minor fixes
Diffstat (limited to 'config/pf-blocker/pfblocker.php')
-rw-r--r-- | config/pf-blocker/pfblocker.php | 17 |
1 files changed, 11 insertions, 6 deletions
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= <<<EOF <fieldname>action</fieldname> <description><![CDATA[Default:<strong>Disabled</strong><br> Select action for countries you have selected in {$cont}<br><br> - <strong>Note: </strong><br>'Deny Inbound' - Will deny access from selected countries to your network.<br> - 'Deny Outbound' - Will deny access from your users to countries you selected to block<br> + <strong>Note: </strong><br>'Deny Both' - Will deny access on Both directions.<br> + 'Deny Inbound' - Will deny access from selected countries to your network.<br> + 'Deny Outbound' - Will deny access from your users to countries you selected to block.<br> 'Permit Inbound' - Will allow access from selected countries to your network.<br> - 'Permit Outbound' - Will allow access from your users to countries you selected to block<br> - 'Alias Only' - Will create alias <strong>{$cont}</strong> with selected countries to help custom rule assignments.<br> - 'Disabled' - Will just keep selection and do nothing to selected countries.<br>]]></description> + 'Permit Outbound' - Will allow access from your users to countries you selected to block.<br> + 'Disabled' - Will just keep selection and do nothing to selected countries.<br> + 'Alias Only' - Will create alias <strong>pfBlocker{$cont}</strong> with selected countries to help custom rule assignments.<br><br> + <strong>While creating rules with this alias, keep aliasname in the beggining of rule description and do not end description with 'rule'.<br></strong> + Custom rules with 'Aliasname something rule' description will be removed by package.]]></description> <type>select</type> <options> <option><name>Disabled</name><value>Disabled</value></option> <option><name>Deny Inbound</name><value>Deny_Inbound</value></option> <option><name>Deny Outbound</name><value>Deny_Outbound</value></option> + <option><name>Deny Both</name><value>Deny_Both</value></option> <option><name>Permit Inbound</name><value>Permit_Inbound</value></option> <option><name>Permit Outbound</name><value>Permit_Outbound</value></option> <option><name>Alias only</name><value>Alias_only</value></option> |