I am trying to set up my tomato device (wrt54gl) as an OpenVPN client & server.
Individually, I have the client and server parts working fine. I use the following script ( —can't post links because newbie status ), to selectively route 2 devices on my LAN through my VPN connection, using the iptables mangle fuction. All other devices on the LAN use the regular ISP's gateway.
The OpenVPN server is accepting connections on port 1194 and has been tested + working. However, this stops functioning if I run both the Client & Server services at the same time.
Outgoing connections from the LAN will work like expected, using either the VPN or the ISP's gateway. All good, I can even connect to my router's VPN server from the internal network. However, I cannot reach the router from external networks anymore. Until I switch the VPN client off, and then it starts working again.
Some more information on my setup so far:
-The client is running TCP and creating a TUN connection
-The server is running TCP and creating a TAP connection
These network adapters get created, and when used standalone traffic seems to run through them just fine.
Things I have tried:
-Forward port 1194 to router's internal address (also to wan address, neither worked)
I've had a look at the iptables rules and routing tables. I'm no expert, but I don't see anything obviously wrong there. I'm pretty sure this should just be something like the matter of setting up a rule to forward incoming traffic to port 1194 on an internal address? I just don't fully understand why running the client would stop the server from working.
Apologies if I overlooked something really simple here, any help would be greatly appreciated. I do have some networking background, but am new to linux routing & also OpenVPN.. it has been a struggle getting this far and would love to get things working 100%.