NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
kern/58938: wg tunnel dies after a few days
>Number: 58938
>Category: kern
>Synopsis: wg tunnel dies after a few days
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Dec 26 21:20:00 +0000 2024
>Originator: Christos Zoulas
>Release: NetBSD 10.99.12
>Organization:
clogged tunnels, llc
>Environment:
System: NetBSD quasar.astron.com 10.99.12 NetBSD 10.99.12 (QUASAR) #37: Mon Dec 16 12:41:24 EST 2024 christos%quasar.astron.com@localhost:/usr/src/sys/arch/amd64/compile/QUASAR amd64
Architecture: x86_64
Machine: amd64
>Description:
After a few days my wg tunnel dies and the only way to fix it
is destroy and create the interfaces again. Bringing them up
and down does not work
>How-To-Repeat:
Just bring a tunnel where one end point has an IP address that
changes very frequently.
>Fix:
Please:
Variable endpoint (initiator):
[ 1564986.114049] wg_task_send_init_message:3352: WGP_TASK_SEND_INIT_MESSAGE
[ 1564986.114049] wg_send_handshake_msg_init: session[L=e54c6cb9 R=(unknown)] ->
WGS_STATE_INIT_ACTIVE
[ 1564986.114049] wg_fill_msg_init: wg_fill_msg_init: sender=e54c6cb9
[ 1564986.114049] wg_send_handshake_msg_init:1992: init msg sent
[ 1564991.114103] wg_handshake_timeout_timer:3846: enter
[ 1564991.114103] wg_schedule_peer_task: tasks=0, task=2
[ 1564991.114103] wg_task_retry_handshake:3386: WGP_TASK_RETRY_HANDSHAKE
[ 1564991.114103] wg_destroy_session: session[L=e54c6cb9 R=0] -> WGS_STATE_UNKNO
WN
Fixed endpoint:
[ 872259.780050] wg_overudp_cb:3692: enter
[ 872259.781102] wg_overudp_cb: type=1
[ 872259.781102] wg_handle_msg_init:1605: init msg received
[ 872259.781102] wg_handle_msg_init:1766: Session already initializing, destroyi
ng old states
[ 872259.781102] wg_destroy_session: session[L=195d8c06 R=3ad05aba] -> WGS_STATE
_UNKNOWN
[ 872259.781102] wg_update_endpoint_if_necessary: old=inet: 172.56.161.196:1234,
new=inet: 172.56.161.196:1234
[ 872259.782050] wg_schedule_session_dtor_timer: session dtor already pending
[ 872259.782050] wg_fill_msg_resp: sender=fca71dad
[ 872259.782050] wg_fill_msg_resp: receiver=214c3c9a
[ 872259.782050] wg_send_handshake_msg_resp:2410: resp msg sent
[ 872259.782050] wg_handle_msg_init: session[L=fca71dad R=214c3c9a]: calculate k
eys as responder
[ 872259.783050] wg_handle_msg_init: session[L=fca71dad R=214c3c9a] -> WGS_STATE
_INIT_PASSIVE
[ 872259.783050] wg_handle_msg_init:1847: WGS_STATE_INIT_PASSIVE
Home |
Main Index |
Thread Index |
Old Index