Subversion Repositories ALCASAR

Rev

Rev 1488 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 1488 Rev 1574
Line 1... Line 1...
1
#/bin/bash
1
#/bin/bash
2
 
2
 
3
# $Id: alcasar-bl.sh 1488 2014-11-16 23:10:57Z richard $
3
# $Id: alcasar-bl.sh 1574 2015-03-01 23:17:07Z richard $
4
 
4
 
5
# alcasar-bl.sh
5
# alcasar-bl.sh
6
# by Franck BOUIJOUX and Richard REY
6
# by Franck BOUIJOUX and Richard REY
7
# This script is distributed under the Gnu General Public License (GPL)
7
# This script is distributed under the Gnu General Public License (GPL)
8
 
8
 
Line 223... Line 223...
223
			done
223
			done
224
		fi
224
		fi
225
		cp -f $DIR_DG_BL/ossi/domains $DIR_DNS_BL/ossi.conf
225
		cp -f $DIR_DG_BL/ossi/domains $DIR_DNS_BL/ossi.conf
226
		$SED "s?.*?address=/&/$PRIVATE_IP?g" $DIR_DNS_BL/ossi.conf
226
		$SED "s?.*?address=/&/$PRIVATE_IP?g" $DIR_DNS_BL/ossi.conf
227
		cp -f $DIR_DG_BL/ossi/domains_wl $DIR_DNS_WL/ossi.conf
227
		cp -f $DIR_DG_BL/ossi/domains_wl $DIR_DNS_WL/ossi.conf
228
		systemctl restart dnsmasq-blacklist
228
		/usr/bin/systemctl restart dnsmasq-blacklist
229
		systemctl restart dnsmasq-whitelist
229
		/usr/bin/systemctl restart dnsmasq-whitelist
230
		/usr/local/bin/alcasar-iptables.sh
230
		/usr/local/bin/alcasar-iptables.sh
231
		;;
231
		;;
232
	*)
232
	*)
233
		echo "Argument inconnu :$1";
233
		echo "Argument inconnu :$1";
234
		echo "$usage"
234
		echo "$usage"