Use L2TP kernel support
- Use L2TP kernel support on CentOS 6 - This could improve L2TP performance
This commit is contained in:
parent
9b3eeed571
commit
b59389a03f
@ -392,6 +392,7 @@ if ! grep -qs "hwdsl2 VPN script" /etc/rc.local; then
|
|||||||
cat >> /etc/rc.local <<'EOF'
|
cat >> /etc/rc.local <<'EOF'
|
||||||
|
|
||||||
# Added by hwdsl2 VPN script
|
# Added by hwdsl2 VPN script
|
||||||
|
modprobe -q pppol2tp
|
||||||
service ipsec start
|
service ipsec start
|
||||||
service xl2tpd start
|
service xl2tpd start
|
||||||
echo 1 > /proc/sys/net/ipv4/ip_forward
|
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"
|
iptables-restore < "$IPT_FILE"
|
||||||
|
|
||||||
# Restart services
|
# Restart services
|
||||||
|
modprobe -q pppol2tp
|
||||||
service fail2ban restart 2>/dev/null
|
service fail2ban restart 2>/dev/null
|
||||||
service ipsec restart 2>/dev/null
|
service ipsec restart 2>/dev/null
|
||||||
service xl2tpd restart 2>/dev/null
|
service xl2tpd restart 2>/dev/null
|
||||||
|
Loading…
x
Reference in New Issue
Block a user