Quantcast
Channel: SmallNetBuilder Forums
Viewing all articles
Browse latest Browse all 6885

OpenVPN public internet port forwarding to client (help needed)

$
0
0
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


Viewing all articles
Browse latest Browse all 6885

Trending Articles