From 86ec6e8950821fb8c4f3c5b8345694eca4a1dbf4 Mon Sep 17 00:00:00 2001 From: Teddysun Date: Mon, 9 May 2016 22:19:05 +0900 Subject: [PATCH] Fixed xl2tpd service --- l2tp.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/l2tp.sh b/l2tp.sh index 78350b0..cffa4d6 100644 --- a/l2tp.sh +++ b/l2tp.sh @@ -511,16 +511,18 @@ EOF rm -f /var/tmp/libreswan-nss-pwd fi - update-rc.d xl2tpd defaults + update-rc.d -f xl2tpd defaults + cp -f /etc/rc.local /etc/rc.local.old.`date +%Y%m%d` sed --follow-symlinks -i -e '/^exit 0/d' /etc/rc.local cat >> /etc/rc.local < /proc/sys/net/ipv4/ip_forward +/usr/sbin/service ipsec start exit 0 EOF + chmod +x /etc/rc.local echo 1 > /proc/sys/net/ipv4/ip_forward /sbin/iptables-restore < /etc/iptables.rules