我是 nategateway 和网络方面的新手
我想让私有网络中的云服务器通过 opnsense 访问互联网。我正在使用 hetzner 云提供商
我尝试 ping google ip (142.250.105.139),但出现错误
network not reachable
我尝试 pingwww.google.com但我收到了这个错误
www.google.com temporary error in name resolution
但我可以从云服务器 ping opnsense
Network Configuration
opnsense server: router / 10.0.0.2
client server: 10.0.0.3
Hetzner Network: nat-network / 10.0.0.0/16
Hetzner subnet: 10.0.0.0/24
Hetzner gateway: 10.0.0.1
高级出站 NAT
Interface: WAN
Address Family: IPv4
Protocol: any
Source: WAN Address
Destination: any
Translation
Address: WAN Address
没有默认的 LAN 规则,所以我创建了一个。
注意。我使用 opt1 作为 LAN
Action: Pass
Interface: LAN
Address Family: IPv4
Protocol: TCP
Source: any
Destination: LAN Network
静态路由
Destination network: 10.0.0.0/16
Gateway: 10.0.0.1
WAN 规则
Action: Block
Interface: WAN
Address Family: IPv4+IPv6
Protocol: TCP/UDP
Source: any
Destination: This firewall (self)
Destination Port Range: From "HTTP (80)" to "HTTPS (443)"
我正在关注这个教程