aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rwxr-xr-xconfig/ipblocklist/convert-execute.sh5
-rwxr-xr-xconfig/ipblocklist/ipblocklist.inc6
-rwxr-xr-xconfig/ipblocklist/ipblocklist.tmp4
-rwxr-xr-xconfig/ipblocklist/ipblocklist.xml4
4 files changed, 11 insertions, 8 deletions
diff --git a/config/ipblocklist/convert-execute.sh b/config/ipblocklist/convert-execute.sh
index dd668baa..d4e4a687 100755
--- a/config/ipblocklist/convert-execute.sh
+++ b/config/ipblocklist/convert-execute.sh
@@ -1,4 +1,5 @@
-#Version 2
+#!/bin/sh
+#Version 2.1
#kill tables to elminate dups
pfctl -t ipblocklist -T kill
@@ -45,7 +46,7 @@ mv Wlists/whitelistTEMP Wlists/whitelist
#find my line for table
export i=`grep -n 'block quick from any to <snort2c>' /tmp/rules.debug | grep -o '[0-9]\{2,4\}'`
-export t=`grep -n 'User Aliases' /tmp/rules.debug |grep -o '[0-9]'`
+export t=`grep -n 'User Aliases' /tmp/rules.debug |grep -o '[0-9]\{1,2\}'`
i=$(($i+'1'))
t=$(($t+'1'))
diff --git a/config/ipblocklist/ipblocklist.inc b/config/ipblocklist/ipblocklist.inc
index c5ce30f4..9f1c5ad0 100755
--- a/config/ipblocklist/ipblocklist.inc
+++ b/config/ipblocklist/ipblocklist.inc
@@ -3,7 +3,7 @@
/*
/* ========================================================================== */
/*
- ipblocklist.inc v2
+ ipblocklist.inc v2.1
Copyright (C) 2010 Tom Schaefer
All rights reserved.
*/
@@ -105,6 +105,8 @@ function php_install_command()
unlink_if_exists("/tmp/convert-execute.sh");
exec("cp /tmp/IP-Blocklist.sh /usr/local/etc/rc.d/IP-Blocklist.sh");
unlink_if_exists("/tmp/IP-Blocklist.sh");
+ //Touch files
+ touch /usr/local/www/packages/ipblocklist/wlists.txt
@@ -127,4 +129,4 @@ function deinstall_command()
conf_mount_ro();
}
-?> \ No newline at end of file
+?>
diff --git a/config/ipblocklist/ipblocklist.tmp b/config/ipblocklist/ipblocklist.tmp
index 6387cb34..baa0ff09 100755
--- a/config/ipblocklist/ipblocklist.tmp
+++ b/config/ipblocklist/ipblocklist.tmp
@@ -1,5 +1,5 @@
<?php
- //Version 2
+ //Version 2.1
require_once('config.inc');
require("guiconfig.inc");
@@ -155,4 +155,4 @@ else {
<?php include("fend.inc"); ?>
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/config/ipblocklist/ipblocklist.xml b/config/ipblocklist/ipblocklist.xml
index 16c26c3e..117afcea 100755
--- a/config/ipblocklist/ipblocklist.xml
+++ b/config/ipblocklist/ipblocklist.xml
@@ -41,7 +41,7 @@
<requirements>perl</requirements>
<faq>http://forum.pfsense.org/index.php/topic,24769.0.html</faq>
<name>IP Blocklist Settings</name>
- <version>0.1.9</version>
+ <version>0.2.1</version>
<title>Settings</title>
<include_file>/usr/local/pkg/ipblocklist.inc</include_file>
<menu>
@@ -142,4 +142,4 @@
<custom_php_deinstall_command>
deinstall_command();
</custom_php_deinstall_command>
-</packagegui> \ No newline at end of file
+</packagegui>