Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision Next revisionBoth sides next revision | ||
| zh:docs:guide-user:services:vpn:wireguard:server [2022/05/27 03:13] – created yodo | zh:docs:guide-user:services:vpn:wireguard:server [2023/01/17 04:26] – [WireGuard server] update infobox vgaetera | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| ====== WireGuard server ====== | ====== WireGuard server ====== | ||
| - | {{section> | + | {{section> |
| ===== Introduction ===== | ===== Introduction ===== | ||
| Line 8: | Line 8: | ||
| * Follow [[docs: | * Follow [[docs: | ||
| - | ===== Goals ===== | + | ===== 目标 |
| - | * Encrypt your internet connection to enforce security and privacy. | + | * 加密您的互联网连接以加强安全和隐私。 |
| - | * Prevent data leak and traffic spoofing on the client side. | + | * 防止客户端的数据泄露和流量欺骗。 |
| - | * Bypass regional restrictions using commercial providers. | + | * 使用商业vpn服务绕过区域限制。 |
| - | * Escape client side content filters and internet censorship. | + | * 规避客户端内容过滤和互联网审查。 |
| - | * Access your LAN services remotely without port forwarding. | + | * 更方便地远程访问您的局域网服务(无需端口转发)。 |
| ===== Command-line instructions ===== | ===== Command-line instructions ===== | ||
| ==== 1. Preparation ==== | ==== 1. Preparation ==== | ||
| Line 98: | Line 97: | ||
| </ | </ | ||
| - | ===== Testing | + | ===== 测试 |
| - | 建立 VPN 连接. | + | 建立 VPN 连接。 |
| 使用 [[man> | 使用 [[man> | ||
| Line 107: | Line 106: | ||
| </ | </ | ||
| - | Check your client public | + | 检查客户端IP地址. |
| * [[https:// | * [[https:// | ||
| - | Make sure there is no DNS leak on the client side. | + | 请确保客户端没有DNS泄露(DNS leak)发生。 |
| * [[https:// | * [[https:// | ||
| - | Delegate a public | + | 如果使用IPv6,需将公共IPv6前缀委派给VPN网络作为默认配置。 |
| ===== Troubleshooting ===== | ===== Troubleshooting ===== | ||
| Line 126: | Line 125: | ||
| pgrep -f -a wg; wg show; wg showconf vpn | pgrep -f -a wg; wg show; wg showconf vpn | ||
| ip address show; ip route show table all | ip address show; ip route show table all | ||
| - | ip rule show; iptables-save -c | + | ip rule show; ip -6 rule show; nft list ruleset |
| - | ip -6 rule show; ip6tables-save -c | + | |
| # Persistent configuration | # Persistent configuration | ||