OpenVPN 条件代理
date
Feb 9, 2022
slug
openvpn-conditions-of-the-agent
status
Published
tags
OpenVPN
summary
type
Post
- 连接使用:
openvpn --config <your config>.ovpn --auth-user-pass <username and password in file>
- 使用条件代理:
- 不从服务端拉取代理配置,配置文件加入
route-nopull
- 将
192.168.10.*
设置为使用OpenVPN代理,配置加入route 192.168.10.0 255.255.255.0 vpn_gateway
- 将
vpn_gateway
改为net_gateway
可排除 IP 或者网段不走 VPN
- 设置 路由跳数
route-metric 10