refactoring, permissions

This commit is contained in:
bedefaced 2017-04-19 21:27:29 +03:00
parent a424e43d6f
commit e67382055b
11 changed files with 5 additions and 8 deletions

0
ipsec/autostart.sh Normal file → Executable file
View File

0
ipsec/checkserver.sh Normal file → Executable file
View File

View File

@ -6,7 +6,6 @@ XL2TPDCONFIG=/etc/xl2tpd/xl2tpd.conf
PPPCONFIG=/etc/ppp/options.xl2tpd
CHAPSECRETS=/etc/ppp/chap-secrets
IPTABLES=/etc/iptables.rules
RCLOCAL=/etc/rc.local
SECRETSFILE=/etc/ipsec.secrets
CHECKSERVER=/etc/xl2tpd/checkserver.sh

View File

@ -10,7 +10,7 @@ fi
echo
echo "Installing strongSwan and xl2tp server..."
apt-get install strongswan xl2tpd
apt-get install strongswan xl2tpd cron iptables procps
ADDUSER="no"
ANSUSER="yes"

View File

@ -17,7 +17,7 @@ if [ $? -ne 0 ]; then
echo "@reboot $RESTOREPATH <$IPTABLES >/dev/null 2>&1" >> $TMPFILE
fi
OPENVPNPRESENTS=$(grep "$CHECKSERVER" $TMPFILE)
SERVERSPRESENTS=$(grep "$CHECKSERVER" $TMPFILE)
if [ $? -ne 0 ]; then
echo "*/5 * * * * $CHECKSERVER >/dev/null 2>&1" >> $TMPFILE
fi

View File

@ -5,7 +5,6 @@ OPENVPNDIR=/etc/openvpn
OPENVPNCONFIG=$OPENVPNDIR/openvpn-server.conf
CADIR=$OPENVPNDIR/easy-rsa
IPTABLES=/etc/iptables.rules
RCLOCAL=/etc/rc.local
NOBODYGROUP=nogroup
CHECKSERVER=$OPENVPNDIR/checkserver.sh

View File

@ -12,7 +12,7 @@ fi
echo
echo "Installing OpenVPN..."
apt-get install openvpn easy-rsa cron
apt-get install openvpn easy-rsa cron iptables procps
echo
echo "Configuring routing..."

2
pptp/autostart.sh Normal file → Executable file
View File

@ -17,7 +17,7 @@ if [ $? -ne 0 ]; then
echo "@reboot $RESTOREPATH <$IPTABLES >/dev/null 2>&1" >> $TMPFILE
fi
PPTPDPRESENTS=$(grep "$CHECKSERVER" $TMPFILE)
SERVERSPRESENTS=$(grep "$CHECKSERVER" $TMPFILE)
if [ $? -ne 0 ]; then
echo "*/5 * * * * $CHECKSERVER >/dev/null 2>&1" >> $TMPFILE
fi

0
pptp/checkserver.sh Normal file → Executable file
View File

View File

@ -5,7 +5,6 @@ PPTPDCONFIG=/etc/pptpd.conf
PPTPOPTIONS=/etc/ppp/options.pptp
CHAPSECRETS=/etc/ppp/chap-secrets
IPTABLES=/etc/iptables.rules
RCLOCAL=/etc/rc.local
CHECKSERVER=/etc/ppp/checkserver.sh
LOCALPREFIX="172.16"

View File

@ -10,7 +10,7 @@ fi
echo
echo "Installing PPTP server..."
apt-get install pptpd cron
apt-get install pptpd cron iptables procps
ADDUSER="no"
ANSUSER="yes"