NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/58016: wg-userspace(8) requires explicit route setup



The following reply was made to PR bin/58016; it has been noted by GNATS.

From: Taylor R Campbell <riastradh%NetBSD.org@localhost>
To: gnats-bugs%NetBSD.org@localhost, netbsd-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: bin/58016: wg-userspace(8) requires explicit route setup
Date: Sat, 9 Mar 2024 12:44:28 +0000

 If I just create an unopened tun(4) instance, the same thing happens,
 so it's probably a tun(4) issue rather than a wg(4) or wg-userspace(8)
 issue:
 
 # ifconfig tun1 create
 # ifconfig tun1 inet 10.2.0.2/24
 # ifconfig tun1 inet6 fd02::2/64
 # ifconfig tun1 up
 # ifconfig tun1
 tun1: flags=3D0x51<UP,POINTOPOINT,RUNNING> mtu 1500
         status: down
         inet6 fd02::2/64 ->  flags 0x8<DETACHED>
         inet 10.2.0.2/24 ->  flags 0x4<DETACHED>
 # route -n get -inet 10.2.0.1
    route to: 10.2.0.1
 destination: default
        mask: default
     gateway: 192.168.1.1
  local addr: 192.168.1.123
   interface: iwm0
       flags: 0x843<UP,GATEWAY,DONE,STATIC>
  recvpipe  sendpipe  ssthresh  rtt,msec    rttvar  hopcount      mtu     ex=
 pire
        0         0         0         0         0         0         0       =
   0
 # route -n get -inet6 fd02::1
    route to: fd02::1
 destination: fd02::
        mask: ffff:ffff:ffff:ffff::
  local addr: fd02::2
   interface: tun1
       flags: 0x141<UP,DONE,CONNECTED>
  recvpipe  sendpipe  ssthresh  rtt,msec    rttvar  hopcount      mtu     ex=
 pire
        0         0         0         0         0         0         0       =
   0
 


Home | Main Index | Thread Index | Old Index