惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

小众软件
小众软件
Y
Y Combinator Blog
Cisco Talos Blog
Cisco Talos Blog
T
Threatpost
T
Tor Project blog
I
Intezer
T
Threat Research - Cisco Blogs
L
LINUX DO - 热门话题
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
L
Lohrmann on Cybersecurity
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
The Last Watchdog
The Last Watchdog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
P
Privacy & Cybersecurity Law Blog
N
News | PayPal Newsroom
N
News and Events Feed by Topic
C
CERT Recently Published Vulnerability Notes
T
Tenable Blog
K
Kaspersky official blog
V
Visual Studio Blog
T
Troy Hunt's Blog
Project Zero
Project Zero
博客园_首页
The Register - Security
The Register - Security
O
OpenAI News
G
Google Developers Blog
Simon Willison's Weblog
Simon Willison's Weblog
J
Java Code Geeks
D
DataBreaches.Net
F
Full Disclosure
Latest news
Latest news
C
CXSECURITY Database RSS Feed - CXSecurity.com
S
Security Affairs
Recent Commits to openclaw:main
Recent Commits to openclaw:main
腾讯CDC
有赞技术团队
有赞技术团队
Hacker News - Newest:
Hacker News - Newest: "LLM"
阮一峰的网络日志
阮一峰的网络日志
C
Cisco Blogs
Vercel News
Vercel News
V
Vulnerabilities – Threatpost
月光博客
月光博客
Hacker News: Ask HN
Hacker News: Ask HN
B
Blog RSS Feed
P
Palo Alto Networks Blog
Stack Overflow Blog
Stack Overflow Blog
The Cloudflare Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
D
Darknet – Hacking Tools, Hacker News & Cyber Security
G
GRAHAM CLULEY

WireGuard

小火箭开启包括所有网络后, wg 失效 Wireguard For Windows 五年来首次推送了更新 - V2EX 跨省跨运营商, wireguard 丢包。wireguard 能否丢包自动重发 - V2EX 请教一个使用 WireGuard 后速度下降的问题 WireGuard 又可以用了??! Wireguard 为什么容易就断了?手动换 endpoint 非常麻烦 - V2EX wg 会被 isp 搞了? Wirguard IPv6 过墙会被阻断吗 - V2EX Wireguard 端点地址如何避免自动切换? - V2EX wg-easy 4 天前更新了,支持 IPV6 了。 - V2EX wireguard 客户端路由 ip 分流问题 - V2EX wireguard 内网通讯的延迟大概是多少 - V2EX 家有公网 IP,如何在宿舍开放端口跟朋友联机? - V2EX wireguard 一点小技巧发现 - V2EX WireGuard 的 udp 从国外穿透回来是不是会被阻断,现在用 frp 的 quic 一年多了很稳定,不知道要不要换 WireGuard - V2EX frp 配合 wireguard 稳定吗? - V2EX 阿里云中转 Wireguard 回家问题 - V2EX wg-easy 有流量通过但是无法访问内网 - V2EX 请教 tailscale 直连问题 - V2EX 两地的 Wireguard 在 Wi-Fi 下无法连接,但是在蜂窝网络下却可以,这是为什么? - V2EX Wireguard 自动重连的问题 - V2EX Wireguard 同时使用多台 iOS/Mac 设备通过 Surge 连接的问题 - V2EX wireguard 国内都不行了? - V2EX wireguard 配置 - V2EX clash.meta 连接 wireguard 回家访问局域网不通 - V2EX 请教一个 wireguard 的奇怪问题 - V2EX 用 wg 连回家相对于 ss/vmess 有什么优势吗 - V2EX 家宽用 Wireguard 被封了 - V2EX 问个问题, wireguard 组网成功后,如何设置通过域名互相访问指定设备? - V2EX 握手成功,但是只能单向 ping 通 - V2EX 不是程序员,不太懂 wireguard 的机制 - V2EX 请教个 wireguard 的问题 - V2EX Wireguard 的 allowIPS 问题 - V2EX DDNS 域名连家里的 WireGuard 会被运营商知道是通过域名访问的吗? - V2EX 快速部署 wireguard 的最佳实践是? - V2EX wireguard 能访问局域网但是不能访问本机 - V2EX 用 wireguard 组网跨境使用,如何实现境内外分流,现在通过 gre 隧道打通,所有的流量都走境外了,导致境内业务访问就比较慢了 - V2EX 如何调试 WireGuard 内核模块 - V2EX 我的笔记本使用 wireguard 正常连接家里内网 ip,却没有办法使用家里的 dns。 - V2EX wireguard 运行在 layer4 会造成很大的性能损耗? - V2EX 免费 WireGuard 节点 - V2EX 简直是丧心病狂,连 wireguard 官网也 TM 的 DNS 污染,日了狗了! - V2EX WireGuard 的 docker 容器如何为局域网做代理 - V2EX wiregaurd 打洞同 nat3 需要打洞很长时间,有个疑问和包大小数据发送间隔 - V2EX wiregaurd 用命令启动的,但是我想实现配置文件里面的 Table = off 效果,失败 - V2EX 编译 wireguard 的安卓客户端遇到点问题,开发语言是 Kotlin - V2EX unity web gl 中 上游路由不生效 netbird - V2EX WireGuard MTU 设置心得 - V2EX “心跳间隔”该填多少比较好?
关于 Wireguard 设置 Address /24 /33 疑问 - V2EX
Getting · 2024-03-19 · via WireGuard
tavimori

7

tavimori      2024 年 3 月 20 日

Wireguard 在系统路由表建立路由其实有两个阶段。

第一个阶段是在系统加载虚拟网卡并设置网卡地址时。这时会读取 [Interface] 下的 Address ,设立相应的 IP 地址,如果是/24 的话,系统会自动对/24 增加一个路由,使得相关流量从该虚拟网卡走。

第二个阶段是使用类似 wg-quick 等工具时,这些工具会在基本操作之外读取你 [Peer] 下各个 peer 的 AllowedIPs 字段,并且将对应的段加到路由表,使得相关流量从该虚拟网卡走。

所以如果你是用 wg-quick (通常也包括 iPhone 客户端这类功能完整的 wireguard 前端),只要相应的 peer 下面的 AllowedIPs 包含需要的段的话,[Interface] 下面的地址设置成 /32 应该也是没有关系的。

与此相对的,在一些路由器上配置的 wireguard 并不会自动加载 AllowedIPs 路由(例如 RouterOS 就是这样),这种时候就需要通过设置虚拟网卡的 IP 地址和正确的前缀,或者手动增加路由条目来确保相应地址会走虚拟网卡。