Hi All,
I've installed OpenVPN on Ubuntu 20.04 VM (port 1194), i can connect to this VPN from other machine in my local network, but i want to connect to this VPN outside of my network, but i don't what i missing on configuraton to reach my WM outside of my netwok,
My VM has his own IP inside my network
My router has been configured to forward TCP 1194 to my VM IP Address.
I can't see something strange on my Virual Swich configuration
Can you help me for some information related to configuration that i missing to get it work? Thanks!
Open ports for VM (SOLVED)
-
- Starting out
- Posts: 43
- Joined: Wed Feb 09, 2011 5:31 am
Open ports for VM (SOLVED)
You do not have the required permissions to view the files attached to this post.
Last edited by giovannivl on Sun May 23, 2021 1:44 pm, edited 1 time in total.
-
- Starting out
- Posts: 43
- Joined: Wed Feb 09, 2011 5:31 am
Re: Open ports for VM
Hi All,
I found the solution n this post viewtopic.php?t=148734
Virtualization Station does not care of networking, so i create the iptables rules to get it work on my qnap using shell:
iptables -t nat -A PREROUTING -p tcp --dport 1194 -j DNAT --to-destination my_nas_ip:1194
iptables -t nat -A POSTROUTING -p tcp -d my_vm_ip --dport 1194 -j SNAT --to-source my_nas_ip
I found the solution n this post viewtopic.php?t=148734
Virtualization Station does not care of networking, so i create the iptables rules to get it work on my qnap using shell:
iptables -t nat -A PREROUTING -p tcp --dport 1194 -j DNAT --to-destination my_nas_ip:1194
iptables -t nat -A POSTROUTING -p tcp -d my_vm_ip --dport 1194 -j SNAT --to-source my_nas_ip