VPS---net.ipv4.ip_forward = 1 ---wg0.conf [Interface] PrivateKey = VPS PrivateKey Address = 30.100.100.1/24 ListenPort = 54321
[Peer] PublicKey = Client A PublicKey AllowedIPs = 30.100.100.2/32
[Peer] PublicKey = Client B PublicKey AllowedIPs = 30.100.100.3/32,20.20.20.0/24
Client A---wg0.conf [Interface] PrivateKey = Client A PrivateKey Address = 30.100.100.2/24
[Peer] PublicKey = VPS PublicKey AllowedIPs = 30.100.100.0/32 Endpoint = 1.2.3.4:54321 PersistentKeepalive = 25
Client B---net.ipv4.ip_forward = 1 ---wg0.conf [Interface] PrivateKey = Client B PrivateKey Address = 30.100.100.3/24
[Peer] PublicKey = VPS PublicKey AllowedIPs = 30.100.100.0/32 Endpoint = 1.2.3.4:54321 PersistentKeepalive = 25
如图所示:系统基本为 Debian/ubuntu ,在 ClientC 没有公网 IP 和不用安装 WireGuard 的情况下(在 RouterB 下还有其他设备:如 ClientD[提供 FTP 服务]),ClientA 如何透过 ClientB 访问 ClientC(D.E.F...) 所提供的服务,请各位帮帮忙把详细的设置和命令告诉一下,谢谢。
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.