Avoid CGNAT Using AzureVM and OpenVPN
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