Use L2TP kernel support

- Use L2TP kernel support on CentOS 6
- This could improve L2TP performance
This commit is contained in:
hwdsl2 2016-12-29 00:35:37 -06:00
parent 9b3eeed571
commit b59389a03f

View File

@ -392,6 +392,7 @@ if ! grep -qs "hwdsl2 VPN script" /etc/rc.local; then
cat >> /etc/rc.local <<'EOF'
# Added by hwdsl2 VPN script
modprobe -q pppol2tp
service ipsec start
service xl2tpd start
echo 1 > /proc/sys/net/ipv4/ip_forward
@ -414,6 +415,7 @@ chmod 600 /etc/ipsec.secrets* /etc/ppp/chap-secrets* /etc/ipsec.d/passwd*
iptables-restore < "$IPT_FILE"
# Restart services
modprobe -q pppol2tp
service fail2ban restart 2>/dev/null
service ipsec restart 2>/dev/null
service xl2tpd restart 2>/dev/null