Line 1... |
Line 1... |
1 |
#!/bin/bash
|
1 |
#!/bin/bash
|
2 |
# $Id: alcasar-bypass.sh 1554 2015-01-11 22:42:51Z richard $
|
2 |
# $Id: alcasar-bypass.sh 1574 2015-03-01 23:17:07Z richard $
|
3 |
|
3 |
|
4 |
# alcasar-bypass.sh
|
4 |
# alcasar-bypass.sh
|
5 |
# by 3abtux and Rexy
|
5 |
# by 3abtux and Rexy
|
6 |
# This script is distributed under the Gnu General Public License (GPL)
|
6 |
# This script is distributed under the Gnu General Public License (GPL)
|
7 |
|
7 |
|
Line 41... |
Line 41... |
41 |
cp -f /etc/sysconfig/network-scripts/default-ifcfg-$INTIF /etc/sysconfig/network-scripts/ifcfg-$INTIF
|
41 |
cp -f /etc/sysconfig/network-scripts/default-ifcfg-$INTIF /etc/sysconfig/network-scripts/ifcfg-$INTIF
|
42 |
ifup $INTIF
|
42 |
ifup $INTIF
|
43 |
$SED "s?^#no-dhcp-interface=$INTIF?no-dhcp-interface=$INTIF?g" /etc/dnsmasq.conf
|
43 |
$SED "s?^#no-dhcp-interface=$INTIF?no-dhcp-interface=$INTIF?g" /etc/dnsmasq.conf
|
44 |
$SED "s?^#no-dhcp-interface=tun0?no-dhcp-interface=tun0?g" /etc/dnsmasq.conf
|
44 |
$SED "s?^#no-dhcp-interface=tun0?no-dhcp-interface=tun0?g" /etc/dnsmasq.conf
|
45 |
$SED "s?^#no-dhcp-interface=lo?no-dhcp-interface=lo?g" /etc/dnsmasq.conf
|
45 |
$SED "s?^#no-dhcp-interface=lo?no-dhcp-interface=lo?g" /etc/dnsmasq.conf
|
46 |
systemctl restart dnsmasq
|
46 |
/usr/bin/systemctl restart dnsmasq
|
47 |
/usr/bin/systemctl start chilli
|
47 |
/usr/bin/systemctl start chilli
|
48 |
sh /usr/local/bin/alcasar-iptables.sh
|
48 |
sh /usr/local/bin/alcasar-iptables.sh
|
49 |
# activation of the "daemon-watchdog" every 18'
|
49 |
# activation of the "daemon-watchdog" every 18'
|
50 |
cat << EOF > /etc/cron.d/alcasar-daemon-watchdog
|
50 |
cat << EOF > /etc/cron.d/alcasar-daemon-watchdog
|
51 |
# activation du "chien de garde" (daemon-watchdog) toutes les 18'
|
51 |
# activation du "chien de garde" (daemon-watchdog) toutes les 18'
|