大网数据广告活动
服务器运维问答

Any way to run a VPN server behind a nat that one has no control over?

· 52CE 我爱测

I have a 4G router in a remote place to connect to the internet. My ISP does not give my router a public IP, instead it seems to put multiple sim cards into some private network behind a NAT (which I obviously have no control ove…

问题原文

原帖链接 · matthias_buehlmann · CC BY-SA 4.0

I have a 4G router in a remote place to connect to the internet.

My ISP does not give my router a public IP, instead it seems to put multiple sim cards into some private network behind a NAT (which I obviously have no control over).

So it probably looks a bit like this:

--------------------------------------

                Internet

--------------------------------------
               ISP NAT
--------------------------------------
    My 4G Router
------------------------
    My hardware firewall
------------------------
    My local network
------------------------

My hardware firewall can act as a VPN server and preferrably I would like o use that one, but I'm also willing to run a separate VPN server on a computer in my local network to solve this.

In this situation, is ther ANY way I can run a VPN server that can accept incomming VPN connections (I CAN initialize VPN connections to outside VPN servers from within my local network. But I want to be able to initiate connections from the outside to a VPN server inside my network)?

已采纳解答

原帖链接 · matthias_buehlmann · CC BY-SA 4.0

Answering my own Question:

SoftEther https://www.softether.org/ is exactly what I was looking for. It allows to run a VPN Server behind a NAT and has Nat Traversal features so that clients can connect to it from the outside. For stubborn firewalls it also offers a free Handshake service (https://www.vpnazure.net/) to build up a tunnel between server and client even if both are behind NATs (traffic does not run through the handshake server).

On top of that it is really easy to setup and very feature rich, allowing various VPN clients to connect to it.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2020-04-08)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。