What's new

OpenVPN public internet port forwarding to client (help needed)

  • 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!

MKANET

Regular Contributor
I tried posting in Padavan's custom firmware thread; however, it looks like nobody really checks that thread anymore. Could someone please be kind enough to show me how I can forward incoming public ports to OpenVPN'ed private IPs? I tried doing this in the router's GUI. However, it doesnt recognize OpenVPN server issued DHCP'ed IPs.

I'm guessing maybe I need to manually enter something in firewall.sh on the server. I'm going to take a completely wild guess... something like the below line to forward multiple TCP ports to 10.249.84.2? I'd b surprised if I was anywhere close to being right.

iptables -A FORWARD -i eth0 -p tcp -m multiport --ports 9001,9050,9051,9090,9091 -d 10.249.84.2 -j ACCEPT


PS: I found the below URL; which seems to be talking about the same thing; but, seemed a bit more involved that I expected. Also, it doesnt seem to have a real working example; where an internal VPN client IP is specified. I also don't know where I'd add more ports to forward.

https://forums.openvpn.net/topic7823.html


Thanks in advance!
MKANET

FowardtoOpenVPNIP-[Tue-05-21-2013-9.32.58AM].jpg
 
Last edited:

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

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