What's new

Portforwarding and OpenVPN Client

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

dlindh

New Around Here
Hi!

My ISP just changed from public ip to private ip on the broadband connection Im using. I really need to have public ip since I need to connect to my alarm system etc from remote.

I setup a OpenVPN tunnel to a provider and connecting to stuff on the internet works fine, but if I try to connect for to my VPN-IP and port 80 that used to be redirected to lan ip 192.168.1.54, I get the login prompt to my asus router.

Could anyone help how to get around this?

Regards
Daniel
 
1) You need to be testing this setup by knocking on the door of the IP address you're visible to the internet with - that of the VPN. It sounds like you're testing this by going to the internal IP the VPN provider assigns you since you say you're getting your router web page.

2)If your VPN provider allows for forwarded ports, you must take the port(s) they assign you and use those. You can't use the typical service ports such as 80. You will have to configure the apps and hardware (alarm system) to listen on the port(s) your VPN provider has assigned you.

3)Then you'll need to configure iptables on your router to forward the port to the proper device on your LAN. The following is how to do that, but you must change the tun device, internal IP, and port to suit your setup.

iptables -I FORWARD -i tun11 -p udp -d 192.168.2.202 --dport 53929 -j ACCEPT

iptables -I FORWARD -i tun11 -p tcp -d 192.168.2.202 --dport 53929 -j ACCEPT

iptables -t nat -I PREROUTING -i tun11 -p tcp --dport 53929 -j DNAT --to-destination 192.168.2.202

iptables -t nat -I PREROUTING -i tun11 -p udp --dport 53929 -j DNAT --to-destination 192.168.2.202
 

Similar threads

Latest threads

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!

Staff online

Top