其他分享
首页 > 其他分享> > OPV 客户端分流配置

OPV 客户端分流配置

作者:互联网


client
dev tun # 路由模式
# 改为tcp
proto tcp
# OpenVPN服务器的外网IP和端口
remote 202.101.58.162 1194
;route 0.0.0.0 0.0.0.0 vpn_gateway
;route 192.168.0.0 255.255.0.0  net_gateway
;route  85.14.249.110 255.255.255.255  net_gateway
allow-pull-fqdn
route ip138.com 255.255.255.255 vpn_gateway
resolv-retry infinite
# 需要输入用户名密码
auth-user-pass
nobind
persist-key
persist-tun
ca ca.crt
# client1的证书
cert  client.crt
# client1的密钥
key  client.key
#remote-cert-tls server
ns-cert-type server
#cipher BF-CBC
# 去掉前面的注释
tls-auth ta.key 1
key-direction 1
cipher AES-128-CBC
auth SHA256
tls-client
comp-lzo
verb 5

 

标签:OPV,255.255,0.0,route,分流,client,key,gateway,客户端
来源: https://blog.csdn.net/weixin_41619400/article/details/114692339