请问一下有架过openvpn的版友
我照着tour在ip分享器上架设openvpn
https://pafaf.wordpress.com/2007/04/17/wl500g-howto-install-openvpn-server/
目前可以成功建立连线 但只能够从电脑ping 10.8.0.1 跟10.8.0.2
从路由器上ping不到10.8.0.2
请问这是哪边设定有问题呢?
"client.ovpn"
remote 我的ip
dev tun0
ifconfig 10.8.0.2 10.8.0.1
secret static.key
"server.conf"
dev tun0
ifconfig 10.8.0.1 10.8.0.2
secret static.key
"iptables"
iptables -D INPUT -j DROP
iptables -I INPUT -p udp –dport 1194 -j ACCEPT
iptables -t nat -I PREROUTING -i eth1 -p udp –dport 1194 -j DNAT –to-destination $4:1194
iptables -A INPUT -j DROP
iptables -I INPUT -i tun0 -j ACCEPT
iptables -I FORWARD -i tun0 -j ACCEPT
iptables -I FORWARD -o tun0 -j ACCEPT
iptables -I OUTPUT -o tun0 -j ACCEPT