text 环绕特定IP地址的VPN

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text 环绕特定IP地址的VPN相关的知识,希望对你有一定的参考价值。

# https://support.hidemyass.com/hc/en-us/articles/202720646-How-to-let-websites-and-IPs-bypass-the-VPN-using-static-routing

# get gateway IP
```
$ route -n get default | grep gateway | awk '$1 == "gateway:" {print $2}'
```

# for every IP add an exception to route config
```
$ sudo route -nv add <destination IP> <gateway IP>
```

# delete all route config for a specific gateway
```
$ sudo route -n delete default -link <gateway IP>
```

# helpful commands;

# the following command will show the existing routing table (IPv4 only):
```
$ netstat -nr -f inet
```

# the following command will show you how a specific host will get routed:
```
$ route get HOSTNAME_OR_IP
```

以上是关于text 环绕特定IP地址的VPN的主要内容,如果未能解决你的问题,请参考以下文章

手机用vpn怎么更改电脑ip

安卓vpn设置不拦截的地址

固定IP vpn设置

路由器怎么设置允许VPN功能及VPN的穿透设置

tplink路由器 如何设置vpn连接

怎么把自己的ip地址转换成其他地方的