From 3a266d46b9baa0d7cdea3ae216ac9d20d31d7c70 Mon Sep 17 00:00:00 2001 From: Tom Schaefer Date: Sun, 21 Nov 2010 12:35:28 -0500 Subject: IP-Blocklist conflicts --- config/ipblocklist/ipblocklist.tmp | 4 +- config/ipblocklist/ipblocklist7.inc | 128 +++++++++++++++++++++++++ config/ipblocklist/ipblocklist7.xml | 180 ++++++++++++++++++++++++++++++++++++ 3 files changed, 309 insertions(+), 3 deletions(-) create mode 100644 config/ipblocklist/ipblocklist7.inc create mode 100644 config/ipblocklist/ipblocklist7.xml (limited to 'config') diff --git a/config/ipblocklist/ipblocklist.tmp b/config/ipblocklist/ipblocklist.tmp index e27215ea..3b517c70 100644 --- a/config/ipblocklist/ipblocklist.tmp +++ b/config/ipblocklist/ipblocklist.tmp @@ -53,9 +53,7 @@ if (count($_POST)>0) { //Prep pfctl mwexec("/usr/bin/touch lists/ipfw.ipfw"); mwexec("/usr/bin/touch Wlists/whitelist"); - mwexec("/bin/mkdir /usr/local/www/packages/countryblock/lists"); - mwexec("/usr/bin/touch /usr/local/www/packages/countryblock/lists/countries.txt"); - mwexec("/usr/bin/touch /usr/local/www/packages/countryblock/countries-white.txt"); + //Now clear ipfw, and process each list to ipfw commands exec("/bin/sh convert-execute.sh"); diff --git a/config/ipblocklist/ipblocklist7.inc b/config/ipblocklist/ipblocklist7.inc new file mode 100644 index 00000000..b3036c20 --- /dev/null +++ b/config/ipblocklist/ipblocklist7.inc @@ -0,0 +1,128 @@ + diff --git a/config/ipblocklist/ipblocklist7.xml b/config/ipblocklist/ipblocklist7.xml new file mode 100644 index 00000000..c10027a2 --- /dev/null +++ b/config/ipblocklist/ipblocklist7.xml @@ -0,0 +1,180 @@ + + + + + + + + IP Blocklist + perl + http://forum.pfsense.org/index.php/topic,24769.0.html + IP Blocklist Settings + 0.3.0 + Settings + /usr/local/pkg/ipblocklist7.inc + + IP Blocklist + IP Blocklist settings. +
Firewall
+ ipblocklist7.xml + /packages/ipblocklist/ipblocklist.php +
+ + + Settings + /packages/ipblocklist/ipblocklist.php + + + + installedpackages->package->$packagename->configuration->ipblocklist + + /usr/local/pkg/ + 0755 + http://www.pfsense.org/packages/config/ipblocklist/ipblocklist7.xml + + + /usr/local/pkg/ + 0755 + http://www.pfsense.org/packages/config/ipblocklist/ipblocklist7.inc + + + /tmp/ + 0755 + http://www.pfsense.org/packages/config/ipblocklist/ipblocklist.tmp + + + /tmp/ + 0755 + http://www.pfsense.org/packages/config/ipblocklist/interfaces.txt + + + /tmp/ + 0755 + http://www.pfsense.org/packages/config/ipblocklist/ipblocklist_list.tmp + + + /tmp/ + 0755 + http://www.pfsense.org/packages/config/ipblocklist/ipblocklist_if.tmp + + + /tmp/ + 0755 + http://www.pfsense.org/packages/config/ipblocklist/firewall_shaper.tmp + + + /tmp/ + 0755 + http://www.pfsense.org/packages/config/ipblocklist/convert.pl + + + /tmp/ + 0755 + http://www.pfsense.org/packages/config/ipblocklist/convert-execute.sh + + + /tmp/ + 0755 + http://www.pfsense.org/packages/config/ipblocklist/purge.tmp + + + /tmp/ + 0755 + http://www.pfsense.org/packages/config/ipblocklist/index.tmp + + + /tmp/ + 0755 + http://www.pfsense.org/packages/config/ipblocklist/whitelist.tmp + + + /tmp/ + 0755 + http://www.pfsense.org/packages/config/ipblocklist/purgeip.tmp + + + /tmp/ + 0755 + http://www.pfsense.org/packages/config/ipblocklist/IP-Blocklist.sh + + + /tmp/ + 0755 + http://www.pfsense.org/packages/config/ipblocklist/settings.tmp + + + /tmp/ + 0755 + http://www.pfsense.org/packages/config/ipblocklist/class.phpmailer.tmp + + + /tmp/ + 0755 + http://www.pfsense.org/packages/config/ipblocklist/class.smtp.tmp + + + /tmp/ + 0755 + http://www.pfsense.org/packages/config/ipblocklist/email.tmp + + + + Variable One + var1 + Enter the variable one here. + input + + + Variable Two + var1 + Enter the variable one here. + input + + + + + + php_sync_package_ip(); + + + php_sync_package_ip(); + + + php_install_command_ip(); + + + deinstall_command_ip(); + +
-- cgit v1.2.3