請問一下有架過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