I see. So theoretically, I should be able to ping the internal network right? If so, atm I am unable to do so.0 0 SNAT all -- * br0 10.8.0.0/24 0.0.0.0/0 to:192.168.1.1
The above line is the applied NAT rule.
Not at all. Its 10.0.10.xWhat's the local network on which the OpenVPN client is running? Could it be 192.168.1.x, just like the server side? As I said, that's going to be a big problem in most cases, esp. when dealing w/ home users.
The problem here is that only have a keyhole perspective at the moment. I can see your OpenVPN server config, but that's it. No idea how you configured the client, what the logs of both the client and server are reporting, no way to know the state of their respective routing tables, etc. I don't even know if the clients are other routers or Windows.
The VPN client is on an Asus running merlin 384.19. Same for the OpenVPN Server. Its running on an Asus router also running the latest Merlin firmware.
As for the way I setup the client, I simply exported the config file from the server and imported into the client. Do I have to redo this procedure after applying the mod you suggested?
The NAT rule is merely an enhancement, a way of disguising the fact the tunnel is using a different IP network from the private network. It helps in situations where the target is for reasons of its own not willing/able to respond to the tunnel's IP network (common w/ Windows). You should be able to reach at least *some* other device, even the remote router itself (presumably 192.168.1.1). Try a ping of 192.168.1.1
Btw, are you testing this from a device *behind* the router supporting the OpenVPN client, or from the router itself? Make sure you NAT the tunnel on the OpenVPN client or the former won't work.
You mean run the exact same script you provided on my router at home as well?
No. I'm talking about your attempts to access a remote device on 192.168.1.x from the OpenVPN client. That could be from the router itself (e.g., during an ssh session), OR, a client, like the laptop, that's *behind* the OpenVPN client. For the latter to work, you must have NAT enabled on the OpenVPN client config.
Yes, I am trying to ping from my laptop, which is behind the OpenVPN Client router.
How do I enable NAT in the OpenVPN Client Config? That could be the missing link.
That's an option in the OpenVPN client GUI.
I SSH into my router at 10.0.10.1, then I ran ping 192.168.1.1... no response. Yes, the remote Asus router is supporting the OpenVPN server.Ok, that's good. While on the router supporting the OpenVPN client, using an ssh session, can you ping 192.168.1.1 (I presume that's the remote router supporting the OpenVPN server)?
ip route
iptables -vnL INPUT
iptables -vnL FORWARD
iptables -t nat -vnL POSTROUTING
cat /tmp/etc/openvpn/server1/config.ovpn
ip route
iptables -vnL FORWARD
iptables -t nat -vnL POSTROUTING
cat /tmp/etc/openvpn/client1/config.ovpn
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!