我按照本指南成功配置了通过互联网连接到我的家庭网络的 VPN 连接。
目前的配置是:
家庭网络(远程)
LAN:
192.168.1.1 => Router/Modem Gateway
192.168.1.20 => OpenVPN server (BananaPI device) on port 1194
192.168.1.40 => Other Device (with WebInterface)
Services:
The ISP has a Dynamic Public IP so in the Router a Dynamic DNS service is configured:
my.domain.com points to the public IP
Port Forwarding:
- External Port 1194 is forwarded to Local 1194 for 192.168.1.20
(I can access the VPN server from internet at the address my.domain.com:1194)
Run Code Online (Sandbox Code Playgroud)
客户端网络(本地)
192.168.1.1 …Run Code Online (Sandbox Code Playgroud)