I have been trying to properly port-forward my VPN server to no avail. I run an OpenVPN Access Server (made following a guide here) on Azure and would like users to connect to the VPN Public IP, which would forward them to my actual server public IP (a visual explanation at the end).
There are already VERY similar posts about this here and there. As a result of that, I have tried a bunch of things and researched a bunch of questions before, namely this, this, this, this (and probably even more), as well as certain articles like this, this and that, others as well probably. I have tried running this based on my situation, to no avail as well.
I have tried adding the Public IP of the VPN server in the User Permissions of the Access Server, to no avail:
51.x.x.x:tcp/63394
51.x.x.x:udp/63394
51.x.x.x:tcp/23394
51.x.x.x:udp/23394
51.x.x.x:tcp/29339
51.x.x.x:udp/29339
I have also tried running the game server on both the public and lan IP, but that didn't make a difference. I can access the OpenVPN AS admin web UI via 10.0.1.4, which makes me think that the setup is correct. I have also added port-forwarding and traffic rules on my router for testing, but that had no effect either (tun0 interface port-forward to lan interface lan IP of PC, traffic rule vpn zone to lan zone - accept).
I have also added inbound and outbound rules in Azure for the VM. That hasn't helped either. I am not sure whether it's due to the OS or due to Azure. I am also not sure whether OpenVPN listens on port 63394, but even with DMZ on that port I am not able to connect to that port.
The current router and VPN Server routing can be viewed here.
The amount of information is a bit overwhelming, and I cannot seem to wrap my head around it alone anymore.
A visual representation of my setup is here:
EDIT: I have come to the point where I am able to ping the Game Server PC from the outside (by pinging the public IP of the VPN Server) and from within the VPN server (by pinging 10.0.2.25). I am also able to connect to the server with the 10.0.2.25 IP, however, I cannot connect with the public IP of the VPN Server. Any thoughts?
route add
, but I couldn't find any significant information that could give me an understanding for that. I could try usingroute add 10.0.1.4 255.255.255.0 10.0.1.25
, but I don't know if that would accomplish anything or not, since I couldn't find any help on that..