From 3e334285ad161c5abdffc409854c4d690c2cab8d Mon Sep 17 00:00:00 2001 From: Tom Schaefer Date: Sat, 2 Oct 2010 04:25:46 -0400 Subject: countryblock 1.7 - added two pages, redo on gui --- config/countryblock/countryblock.tmp | 169 +++++++++++++++++------------------ 1 file changed, 81 insertions(+), 88 deletions(-) (limited to 'config/countryblock/countryblock.tmp') diff --git a/config/countryblock/countryblock.tmp b/config/countryblock/countryblock.tmp index 785329a2..2d05d061 100755 --- a/config/countryblock/countryblock.tmp +++ b/config/countryblock/countryblock.tmp @@ -1,5 +1,5 @@ 0) { $savemsg_cb = "Country Block settings have been saved/updated. "; conf_mount_ro(); } -?> - - - +?> -

Firewall: Country Block

+ + +

+ +
- \n"; } +elseif ($resultstop > '0') { +echo "\n"; +} else { echo "\n"; } -?> +?>Enable Country Block

+ + + + + + + + + + +
+ +
+
+ + + + + + + + + +
Main
+ "; - exec("touch OUTBOUND"); - } - else - { - $output2 = " and Outbound access is ALLOWED."; - exec("rm OUTBOUND"); - } - - if(isset($_POST['formlogging'])) - { - exec("touch logging"); - } - else - { - exec("rm logging"); - } - if(empty($aCountry)) { @@ -244,6 +253,7 @@ font-size: 90%; .arrowlistmenu ul li a:visited{ color: #A70303; + } .arrowlistmenu ul li a:hover{ /*hover state CSS*/ @@ -258,15 +268,11 @@ background-color: #F3F3F3; -Enable Country Block

+
- + @@ -283,7 +289,7 @@ background-color: #F3F3F3; ?>

-

Check the country that you would like to block completely. Currently +

Check the country that you would like to block completely. Currently - of 246 selected. Manual

-

Manual

-

- Block outbound? -"; - } else { - echo ""; - } -?> - - select/unselect -

- Enable Logging? -"; - } else { - echo ""; - } -?> + of 246 selected.

+
@@ -2362,6 +2346,7 @@ ob_end_clean(); ob_start(); $results = exec("cat countries.txt | grep TM"); ob_end_clean(); + if ($results == 'TM') echo "
  • Turkmenistan
  • "; else @@ -2585,21 +2570,35 @@ ob_end_clean();
    - -

    Usage -
    - 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. +


    - +"; +?> + +
    +
    + +
    + - - - -"; -?> - +

    +

    +

    +

    - -
    - + + - - + -- cgit v1.2.3