Subversion Repositories ALCASAR

Rev

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

Rev 1574 Rev 1810
Line 1... Line 1...
1
#/bin/bash
1
#/bin/bash
2
 
2
 
3
# $Id: alcasar-bl.sh 1574 2015-03-01 23:17:07Z richard $
3
# $Id: alcasar-bl.sh 1810 2016-04-04 12:46:11Z raphael.pion $
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 222... Line 222...
222
				$SED "/$i/d" $DIR_DNS_BL/*
222
				$SED "/$i/d" $DIR_DNS_BL/*
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 $OSSI_DOMAINS_WL $DIR_DNS_WL/ossi.conf
-
 
228
		$SED "s?.*?server=/&/$DNS1?g" $DIR_DNS_WL/ossi.conf
-
 
229
		ln -s $DIR_DNS_WL/ossi.conf $DIR_DNS_WL_ENABLED/ossi
-
 
230
		
228
		/usr/bin/systemctl restart dnsmasq-blacklist
231
		/usr/bin/systemctl restart dnsmasq-blacklist
229
		/usr/bin/systemctl restart dnsmasq-whitelist
232
		/usr/bin/systemctl restart dnsmasq-whitelist
230
		/usr/local/bin/alcasar-iptables.sh
233
		/usr/local/bin/alcasar-iptables.sh
231
		;;
234
		;;
232
	*)
235
	*)