2025年9月23日火曜日

[FreeBSD] USB Ether(ue0) link down/up issue (WireGuard(wg0) ,14.x and later)

 Current status

FreeBSD VersionCPUEthernet Interfaceenable Wireguard?reproduce?Notes
15.0-ALPHA
amd64
ue0
YESYES[NG]
NONO[OK]
cdce0
YES?
NO?
run0(Wi-Fi)
YESTesting
NO?
em0
YESNO[OK]
NO?
arm64
ue0
YES?
NO?
cdce0
YES?
NO?
run0(Wi-Fi)
YES?
NO?
Internal IF
YES?
NO?
14.3-RELEASE
amd64
ue0
YES?
NO?
arm64
ue0
YESYES[NG]
NONO[OK]
Internal IFYESNO[OK]Oracle cloud
14.0-RELEASE
amd64
ue0
YESNot tested
arm64YESYES[NG]
13.5-RELEASE
amd64
ue0
YESNO[OK]
arm64YESNO[OK]

NOTE1
  • Could changing the order of the interfaces shown by ifconfig from wg0 to ue0 solve the problem?
    • Result: It won't solve it[NG].

Enviroment

USB Ethernet
  • axe0: <ASIX Elec. Corp. AX88772, rev 2.00/0.01, addr 2> on usbus0
    ue0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
            options=80008<VLAN_MTU,LINKSTATE>
  • run0: <Ralink 802.11 n WLAN, class 0/0, rev 2.00/1.01, addr 2> on usbus7
    run0: MAC/BBP RT3071 (rev 0x021C), RF RT3022 (MIMO 2T2R), address 4c:xx:xx:xx:xx
amd64 machine
  • Lenovo T400s

arm64 machines

Example Configuration of Wireguard 

/usr/local/etc/wireguard/wg0.conf
[Interface]
Privatekey =[PrivateKey]
Address = 10.8.229.1/24
table = off
ListenPort = 1129

[Peer]
PublicKey = [PublicKey]
AllowedIPs = 10.8.0.0/16, 192.168.11.0/24, 192.168.3.0/24,0.0.0.0/0

(NOTES: no EndPoint config, just wait a connection mode)

/etc/rc.conf.local
wireguard_enable="YES"
wireguard_interfaces="wg0"

Related articles


FreeBSD Forums:

FreeBSD Bugzilla

0 件のコメント: