一、基础环境
$ uname -a
Linux open-boots-1.localdomain 5.14.0-514.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Sep 30 14:56:52 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
$ uname -r
5.14.0-407.el9.x86_64
$ uname -m
x86_64### 假设服务器公网IP分别是:1.1.1.1;2.2.2.2;3.3.3.3 ### 文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/basic/cross-wireguard-config/
二、开启转发
[crayon-6902c9ee8ecd3667374728/]文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/basic/cross-wireguard-config/
三、服务配置
1:服务端+客户端模式下,请根据需求启动服务端或者客户端服务
[crayon-6902c9ee8ecd8560824629/]
2:综合模式下,启动wg-quick即可
文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/basic/cross-wireguard-config/
| 0 1 2 | wg genkey | tee server_privatekey | wg pubkey > server_publickey wg genkey | tee client_privatekey | wg pubkey > client_publickey wg-quick up /etc/wireguard/wg0.conf | 
3.1 服务器1.1.1.1服务端配置文件
Login四、搭建解释
五、搭建实战
Login
参考文档:
1:https://blog.starryvoid.com/archives/337.html
2:https://www.wireguard.com/install
3:https://ewhisper.cn/posts/59274/
4:https://icloudnative.io/posts/configure-a-mesh-network-with-netmaker/
5:https://docs.procustodibus.com/guide/endpoints/preshared-key/
申明:除非注明Byrd's Blog内容均为原创,未经许可禁止转载!详情请阅读版权申明!
 
							
