Avoid CGNAT Using AzureVM and OpenVPN

Simon R 1 Reputation point
2021-04-19T15:12:54.003+00:00

Hi Everyone,

i am working on a Problem and got really stuck. My ISP is using CGNAT, therefore all my Devices are not accessible from WAN via Port Forwarding.
My Idea is to use a OpenVPN Server on Azure and Tunnel all my Devices to this VPN Server through a Router. I use the following Setup:
I used portforwarding in the Azure GUI Destination IP (LAN Device) Destination Port (2223 ssh)

Lan Device <=> Gateway (OpenVPN Client) <=> Azure (VPN Server)
IPs: 192.168.1.129/24 IP: 192.168.1.1
IP-VPN: 10.8.0.2 10.8.0.1
WAN-IP 20.52.XXX.XXX

i sucesfully can establish a connection to the openvpn server from the Gateway
The Lan Device also has the public WAN-IP of the Azure Server then.
I can ping the Lan Device from the Azure Server (ping 192.168.1.129)
But i can not establish a connection when i use the public ip ssh ******@20.52.XXX.XXX -p 2223

How can i forward the traffic from the WAN IP into the VPN Tunnel ?

Any help is highly appreciated

Thank you

Azure VPN Gateway
Azure VPN Gateway
An Azure service that enables the connection of on-premises networks to Azure through site-to-site virtual private networks.
1,795 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.