Use a forwarding service on a separate public server with a private VPN connection.
Use a forwarding service on a separate public server with a private VPN connection.
Hello, I'm having trouble setting up port forwarding on my network. Since I only have a 4G connection through a 4G router and my ISP doesn't allow port forwarding over mobile networks, I tried using Hetzner Cloud's Algo to create a VPN. It worked well for the VPN setup, but I'm not sure how to handle the port forwarding myself. Any advice or alternatives would be really helpful. Thanks, Tommy Vange
You should redirect the VPN server on the Hertz server side. Unless it's set up to face a public IP, which would mean no action needed. They likely have an option to manage incoming or outgoing traffic. If your PC is handling the VPN as a client, you probably don't need to forward ports.
It seems like it isn't working, so I thought about doing something on the Linux server.
Ensure the VPN configuration works properly. By installing nmap for Windows and scanning your public IP, you can verify if the IPSEC port is accessible. Logs can also help confirm the VPN service is functioning correctly.
The VPN is functioning properly, allowing smooth browsing. It's a bit slow at around 50 Mbps, which shouldn't be an issue. I plan to run nmap later this evening. Also, it's using Google Public DNS; I was thinking Cloudflare's 1.1.1.1 might work better for me.
I understand you're using this as a basic reference for setting up a GRE tunnel, but the process may vary based on your specific needs and configuration. If you decide to go with a VPN-based approach, let me know. Also, confirm whether "net.ipv4.ip_forward" is activated on the server side.
Your Hertz Ubuntu server hosts the VPN service, while your PC uses a VPN client to link to it. Everything seems to be functioning properly. The reason for port forwarding is likely to ensure the VPN server can accept incoming connections from your local network.
You don't have to set up port forwarding if the web server is set to accept connections from all local ports. Your personal VPN IP will match the server's local IP address, allowing your VPN client to connect through it. On the server side, you might need to adjust iptables so that traffic on ports 80 and 443 from the public interface is sent to the VPN interface.