I have following configuration.

OpenVPN server on a cloud(Ubuntu 14.04) with static IP( example on eth0). Linux and Windows clients are successfully connected to VPN (VPN static IP's - on tun0).

In VPN network i have few Windows and Ubuntu 12.04 clients every with own web interface running on ""

I need some forwarding when user go to to open "" or to open "ttps://10.8.0.xxx" for example.

I spend days to read and try few methods without success. Please help. Thank you very much in advance.


I think iptables would do something for you.

First, activate packet forwarding:

$ echo 1 > /proc/sys/net/ipv4/ip_forward

Redirect your traffic from to

$ iptables -t nat -A PREROUTING -d -p tcp --dport 105 -j DNAT --to-destination

Make the Iptables marquerade the requisition:

$ iptables -t nat -A POSTROUTING -j MASQUERADE

Hope this help!

  • Thanks for idea but it don't work. Maybe problem is other. I am not sure witch ports are opened! I open manual many ports, but it looks they are not opened. I cannot ping server, vpnserver works now on tcp 443 not on 1194, even i manually open it in cloud settings... Give me please idea:( – KostovV Jun 29 '16 at 18:34
  • you can check the open ports using ping.eu/port-chk All you need to know is the ip address and the port the you open to check if is open or closed. – FabricioFCarv Jun 30 '16 at 12:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.