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.

31 lines
790 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

公司给的VPN没有共享密钥如果你也没有要在 /etc/ppp/ 下创建 options 文件:
```shell
sudo vim /etc/ppp/options
```
```text
plugin L2TP.ppp
l2tpnoipsec
```
加入路由配置
如何获取网关地址 default 192.168.0.1
![[Pasted image 20240126232942.png]]
```shell
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最前面)
![[Pasted image 20240126233041.png]]
必须的设置添加后支持同时访问VPN和互联网
```shell
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
```