V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
wuruxu

设备时间不准确,会导致 wireguard peer 无法正常连接

  •  
  •   wuruxu · Jul 16, 2024 · 885 views
    This topic created in 663 days ago, the information mentioned may be changed or developed.

    问题背景,我的 openwrt 配置的 的 ntp server 是 0.openwrt.pool.ntp.org, 然而我在设备上的 dnsmasq 配置把 .org 的流量全部重定向到 wg0 这个 interface , 每次 openwrt 设备重启,就导致我的 openwrt 设备时间永远不准确,wireguard wg0 也无法完成正常握手。
    解决办法:把 ntp server 配置成 ntp1.aliyun.com
    当 wireguard 配置正确无误的情况下,还是无法连接,请一定要检查设备的时间

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4732 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 10:03 · PVG 18:03 · LAX 03:03 · JFK 06:03
    ♥ Do have faith in what you're doing.