What's new

Double Router OpenVpn Port Forwarding

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Micheal Tim

New Around Here
Here Is my Scenario :
REFS:
ROUTER1------------ -IS A ROUTER/MODEM combo. and connects to internet through Isp phone line.
Does not support dd-wrt firmware, so the need for second router

ROUTER2..............just router only, connects to the wan port of Router1 to get to internet, Flashed with dd-wrt for vpn client support

ROUTER_1 _INTERNAL IP: 192.168.1.1, DHCP is enabled.

ROUTER_2 _INTERNAL IP: 192.168.2.1, GATEWAY:0.0.0.0, DNS:dns: 0.0.0.0.


ROUTER_2 _EXTERNAL IP: 192.168.1.20, GATEWAY:192.168.1.1, DNS:dns: from vpn provider.

PC1 _INTERNAL IP: 192.168.2.102, GATEWAY:192.168.2.1, DNS:dns: from vpn provider.
PC2 _INTERNAL IP: 192.168.2.103, GATEWAY:192.168.2.1, DNS:dns: from vpn provider.


DHCP IS DISABLED ON ROUTER2 SO EVERYTHING IS STATIC



VPN (openvpn client) is INSTALLED ON Router2 through commandline.

Now all PC1 & PC2 can now connect to wireless ssid of Router2 and vpn works on them all


PORT FORWARDING ON PC1 & PC2 FOR EXTERNAL SERVICE TO ACCESS THEM
Everything works well without vpn , but once i turn on vpn I loose access to the port.

PROBLEM HERE:
The vpn provider said the problem has nothing to do with their service.
I did as adviced on here http://www.dd-wrt.com/phpBB2/viewtopic.php?p=707694&sid=781f956c7bdd025e69e0a4a1659b9499
and it still failed.
here is what i executed on the dd-wrt console for PC1:
iptables -t nat -I PREROUTING -i ath0 -p tcp --dport 2300 -j DNAT --to-destination 192.168.2.102
iptables -I FORWARD -p tcp -d 192.168.2.102 --dport 2300 -j ACCEPT

and I can't still see the service.
Please any help to make it work would be appreciated.
 
Here Is my Scenario :
REFS:
ROUTER1------------ -IS A ROUTER/MODEM combo. and connects to internet through Isp phone line.
Does not support dd-wrt firmware, so the need for second router

ROUTER2..............just router only, connects to the wan port of Router1 to get to internet, Flashed with dd-wrt for vpn client support

ROUTER_1 _INTERNAL IP: 192.168.1.1, DHCP is enabled.

ROUTER_2 _INTERNAL IP: 192.168.2.1, GATEWAY:0.0.0.0, DNS:dns: 0.0.0.0.


ROUTER_2 _EXTERNAL IP: 192.168.1.20, GATEWAY:192.168.1.1, DNS:dns: from vpn provider.

PC1 _INTERNAL IP: 192.168.2.102, GATEWAY:192.168.2.1, DNS:dns: from vpn provider.
PC2 _INTERNAL IP: 192.168.2.103, GATEWAY:192.168.2.1, DNS:dns: from vpn provider.


DHCP IS DISABLED ON ROUTER2 SO EVERYTHING IS STATIC



VPN (openvpn client) is INSTALLED ON Router2 through commandline.

Now all PC1 & PC2 can now connect to wireless ssid of Router2 and vpn works on them all


PORT FORWARDING ON PC1 & PC2 FOR EXTERNAL SERVICE TO ACCESS THEM
Everything works well without vpn , but once i turn on vpn I loose access to the port.

PROBLEM HERE:
The vpn provider said the problem has nothing to do with their service.
I did as adviced on here http://www.dd-wrt.com/phpBB2/viewtopic.php?p=707694&sid=781f956c7bdd025e69e0a4a1659b9499
and it still failed.
here is what i executed on the dd-wrt console for PC1:
iptables -t nat -I PREROUTING -i ath0 -p tcp --dport 2300 -j DNAT --to-destination 192.168.2.102
iptables -I FORWARD -p tcp -d 192.168.2.102 --dport 2300 -j ACCEPT

and I can't still see the service.
Please any help to make it work would be appreciated.

Did you ever find a solution to this? I have theexact same setup with the exact same problem!
 

Similar threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top