aboutsummaryrefslogtreecommitdiffstats
path: root/config/countryblock-dev
diff options
context:
space:
mode:
authormarcelloc <marcellocoutinho@gmail.com>2011-10-25 20:20:02 -0200
committermarcelloc <marcellocoutinho@gmail.com>2011-10-25 20:20:02 -0200
commit6df2693437ab5460d044f09bb4a7887565fc3376 (patch)
treec805bc0db8fba3ce648cb5567d86f77bb40c4cb1 /config/countryblock-dev
parent9b9c0b2f9fd4820f3fe4456610e0f7ee81150813 (diff)
downloadpfsense-packages-6df2693437ab5460d044f09bb4a7887565fc3376.tar.gz
pfsense-packages-6df2693437ab5460d044f09bb4a7887565fc3376.tar.bz2
pfsense-packages-6df2693437ab5460d044f09bb4a7887565fc3376.zip
countryblock-dev - force alias update on apply
Diffstat (limited to 'config/countryblock-dev')
-rwxr-xr-xconfig/countryblock-dev/countryblock.inc6
1 files changed, 4 insertions, 2 deletions
diff --git a/config/countryblock-dev/countryblock.inc b/config/countryblock-dev/countryblock.inc
index b94ed5b9..9dfd2783 100755
--- a/config/countryblock-dev/countryblock.inc
+++ b/config/countryblock-dev/countryblock.inc
@@ -74,11 +74,13 @@ function sync_package_countryblock() {
$ips.=file_get_contents('/usr/local/pkg/countryblock/'.$iso.'.txt');
}
}
- #create all ip block lists based on gui
+ #create all ip block lists based on gui and force alias update
file_put_contents('/usr/local/pkg/cb.txt',$ips, LOCK_EX);
+ file_put_contents('/var/db/aliastables/Countryblock.txt',$ips, LOCK_EX);
- #write white_list to filesystem
+ #write white_list to filesystem and force alias update
file_put_contents('/usr/local/pkg/cbw.txt',cb_text_area_decode($countryblock_config['whitelist']), LOCK_EX);
+ file_put_contents('/var/db/aliastables/CountryblockWL.txt',cb_text_area_decode($countryblock_config['whitelist']), LOCK_EX);
#edit or assign alias "Countryblock" and "CountryblockWL"
$aliases=$config['aliases']['alias'];