You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
790 B
790 B
公司给的VPN没有共享密钥,如果你也没有,要在 /etc/ppp/ 下创建 options 文件:
sudo vim /etc/ppp/options
plugin L2TP.ppp
l2tpnoipsec
加入路由配置
如何获取网关地址 default 192.168.0.1
!
sudo route -n add -net 10.2.0.0 -netmask 255.255.255.0 192.168.0.1
删除route
sudo route -v delete -net 10.2.0.0/24 -gateway 192.168.0.1
必须的设置(添加后支持同时访问VPN和互联网)
sudo sysctl net.link.generic.system.hwcksum_tx=0
sudo sysctl net.link.generic.system.hwcksum_rx=0
# 默认
sudo sysctl net.link.generic.system.hwcksum_tx=1
sudo sysctl net.link.generic.system.hwcksum_rx=1