I've been trying to figure out how to connect to my vpn that is not directly connected to my public ip but a few subnets down the stream.
A little background on my configuration: I have a load balancing router that takes 3 WAN connections (3 static ips, one from each modem) which has a LAN of 192.168.20.0/24.
From there it goes into another router's WAN port, and it's LAN is 192.168.40.0/24, and my entire network go through this router/subnet. I have a netgear R7000 flashed with tomato with ip 192.168.40.3 plugged in with openvpn up an running. I know openvpn is working because I've tested it by directly plugging in one of my modems into the netgear and was able to connect.
from 192.168.20.0 i have a static route to 192.168.40.0 (192.168.20.2), also a port forwarding udp 1194 to 192.168.40.3 and on my second router (flashed with dd-wrt) i have this firewall rule:
iptables -I FORWARD -s 192.168.20.1/24 -j ACCEPT
But when I try to connect it times out and doesn't work.
Am I completely off? or I am somewhat on the right track? What can I do to get this openvpn server accept connections in this kind of configuration?