RT,请问大家知道如何让路由器通过 op 实现 我连我自己
吗?先谢谢大家赐教。
路由器刷了华硕固件,可以同时搭建 op 的服务端和客户端。
因此突发奇想试了下让路由器自己连自己,结果连接成功后就断网了,内外网均无法 ping 通。没有谷歌到相关的资料。配置信息如下:
proto tcp-server
port 1194
dev tun1
topology subnet
server 10.8.0.0 255.255.255.0
client-config-dir ccd
push "route 192.168.123.0 255.255.255.0"
auth SHA1
cipher none
comp-lzo adaptive
push "comp-lzo adaptive"
ca /etc/storage/openvpn/server/ca.crt
dh /etc/storage/openvpn/server/dh1024.pem
cert /etc/storage/openvpn/server/server.crt
key /etc/storage/openvpn/server/server.key
tls-auth /etc/storage/openvpn/server/ta.key 0
persist-key
persist-tun
user nobody
group nogroup
script-security 2
tmp-dir /tmp/openvpn
writepid /var/run/openvpn_svr.pid
client-connect ovpns.script
client-disconnect ovpns.script
client
proto tcp-client
remote 192.168.123.1 1194
resolv-retry infinite
nobind
dev tun0
ca /etc/storage/openvpn/client/ca.crt
cert /etc/storage/openvpn/client/client.crt
key /etc/storage/openvpn/client/client.key
tls-auth /etc/storage/openvpn/client/ta.key 1
auth SHA1
cipher none
comp-lzo adaptive
persist-key
script-security 2
writepid /var/run/openvpn_cli.pid
up ovpnc.script
down ovpnc.script
1
ysc3839 2018-12-15 01:16:16 +08:00 via Android
自己连自己的话会死循环吧?
|