Jump to content
  • [6.12.1] Wireguard deactivates itself after about 1 minute.


    OmegaXis
    • Solved Minor

    Since updating to 6.12.1 yesterday and adding a new client this morning, Wireguard seems to be deactivating itself automatically after about a minute.

     

    Attached is the wg-quick log.

     

    wg-quick up wg0
    [#] ip link add wg0 type wireguard
    [#] wg setconf wg0 /dev/fd/63
    [#] ip -4 address add 192.168.126.1 dev wg0
    [#] ip link set mtu 1420 up dev wg0
    [#] ip -4 route add 192.168.126.3/32 dev wg0
    [#] ip -4 route add 192.168.126.2/32 dev wg0
    [#] logger -t wireguard 'Tunnel WireGuard-wg0 started';/usr/local/emhttp/webGui/scripts/reload_services
    Terminated
    [#] ip link delete dev wg0
    Unable to access interface: No such device
    [#] ip link delete dev wg0
    Cannot find device "wg0"
    
    wg-quick down wg0
    wg-quick: `wg0' is not a WireGuard interface

    Steps to reproduce

    log into unraid, go to settings/vpn manager

    add new client

    activate tunnel

    watch tunnel deactivate

     

    attached is also a screenshot of previously working tunnel settings.

    image.thumb.png.c7538ee6da240f805f694b1637a44bb5.png

     

    chipshop-diagnostics-20230623-1511.zip




    User Feedback

    Recommended Comments

    Try the following:

    - Stop the WG tunnel

    - Make a dummy configuration change to force an update

    - Start the WG tunnel

     

    Link to comment

    Your wireguard tunnels use IP addresses in the same range as your LAN network (192.168.126.x), that gives conflicts.

    The default WG network is 10.253.0.0 and is recommended to use.

     

    Link to comment
    16 minutes ago, OmegaXis said:

    my lan is 192.168.128.x

     

    Sorry misread 6 and 8.

     

    In your log file the following is happening each time the WG tunnel is started

    Jun 23 15:03:23 chipshop wireguard: Tunnel WireGuard-wg0 started
    Jun 23 15:03:25 chipshop vnstatd[7491]: Interface "wg0" enabled.
    Jun 23 15:03:35 chipshop vnstatd[7491]: Interface "wg0" disabled.

     

    Remove the networkstats plugin and retest

    Or start your system in safe mode and retest

     

    Link to comment

    Test ran and plugin removed, no improvement, attaching new logs

    wg-quick down wg0
    wg-quick: `wg0' is not a WireGuard interface
    
    wg-quick up wg0
    [#] ip link add wg0 type wireguard
    [#] wg setconf wg0 /dev/fd/63
    [#] ip -4 address add 192.168.126.1 dev wg0
    [#] ip link set mtu 1420 up dev wg0
    [#] ip -4 route add 192.168.126.3/32 dev wg0
    [#] ip -4 route add 192.168.126.2/32 dev wg0
    [#] logger -t wireguard 'Tunnel WireGuard-wg0 started';/usr/local/emhttp/webGui/scripts/reload_services
    Terminated
    [#] ip link delete dev wg0
    Unable to access interface: No such device
    [#] ip link delete dev wg0
    Cannot find device "wg0"
    
    wg-quick down wg0
    wg-quick: `wg0' is not a WireGuard interface
    
    wg-quick down wg0
    wg-quick: `wg0' is not a WireGuard interface
    
    wg-quick up wg0
    [#] ip link add wg0 type wireguard
    [#] wg setconf wg0 /dev/fd/63
    [#] ip -4 address add 192.168.126.1 dev wg0
    [#] ip link set mtu 1420 up dev wg0
    [#] ip -4 route add 192.168.126.3/32 dev wg0
    [#] ip -4 route add 192.168.126.2/32 dev wg0
    [#] logger -t wireguard 'Tunnel WireGuard-wg0 started';/usr/local/emhttp/webGui/scripts/reload_services
    Terminated
    [#] ip link delete dev wg0
    Unable to access interface: No such device
    [#] ip link delete dev wg0
    Cannot find device "wg0"
    
    wg-quick down wg0
    wg-quick: `wg0' is not a WireGuard interface

    in between the two tests of wireguard shown here i adjusted NAT (Turned on NAT, clicked apply, activated tunnel, waited for deactivation, Turned off NAT, clicked apply, turned on tunnel, waited for deactivation.)

     

    Attached are new diags from most recent test.

     

    chipshop-diagnostics-20230623-1958.zip

    Link to comment

    Safe mode on, issue is still persistent. As usual, new logs attached.  Additionally same testing methodology of toggeling NAT was preformed again.

    wg-quick up wg0
    [#] ip link add wg0 type wireguard
    [#] wg setconf wg0 /dev/fd/63
    [#] ip -4 address add 192.168.126.1 dev wg0
    [#] ip link set mtu 1420 up dev wg0
    [#] ip -4 route add 192.168.126.3/32 dev wg0
    [#] ip -4 route add 192.168.126.2/32 dev wg0
    [#] logger -t wireguard 'Tunnel WireGuard-wg0 started';/usr/local/emhttp/webGui/scripts/reload_services
    [#] iptables -t nat -A POSTROUTING -s 192.168.126.0/24 -o br0 -j MASQUERADE;iptables -N WIREGUARD_DROP_WG0;iptables -A WIREGUARD -o br0 -j WIREGUARD_DROP_WG0;iptables -A WIREGUARD_DROP_WG0 -s 192.168.126.0/24 -d 192.168.128.1 -j ACCEPT;iptables -A WIREGUARD_DROP_WG0 -s 192.168.126.0/24 -j DROP;iptables -A WIREGUARD_DROP_WG0 -j RETURN
    [#] ip -4 route flush table 200
    [#] ip -4 route add default via 192.168.126.1 dev wg0 table 200
    [#] ip -4 route add 192.168.128.0/24 via 192.168.128.1 dev br0 table 200
    
    wg-quick up wg0
    
    wg-quick down wg0
    wg-quick: `wg0' is not a WireGuard interface
    
    wg-quick down wg0
    
    wg-quick down wg0
    wg-quick: `wg0' is not a WireGuard interface
    
    wg-quick up wg0
    [#] ip link add wg0 type wireguard
    [#] wg setconf wg0 /dev/fd/63
    [#] ip -4 address add 192.168.126.1 dev wg0
    [#] ip link set mtu 1420 up dev wg0
    [#] ip -4 route add 192.168.126.3/32 dev wg0
    [#] ip -4 route add 192.168.126.2/32 dev wg0
    [#] logger -t wireguard 'Tunnel WireGuard-wg0 started';/usr/local/emhttp/webGui/scripts/reload_services
    Terminated
    [#] ip link delete dev wg0
    Unable to access interface: No such device
    [#] ip link delete dev wg0
    Cannot find device "wg0"
    
    wg-quick down wg0
    wg-quick: `wg0' is not a WireGuard interface

     

    chipshop-diagnostics-20230623-1632.zip

    Link to comment

    With tunnels are autostarted I don't have a problem, tunnels stay active all the time, but when making changes I can replicate your issue. Need to further investigate why this happens.

     

    Thx

     

    Link to comment

    In my testing I do the following:

     

    - WG tunnel is active

    - Make a change (NAT rule)

    - Apply, and then afterwards tunnel goes down (this is unexpected)

    - Re-activate tunnel and second time it stays up

     

    Link to comment

    I dont have it stay up the second time. It still goes down. doesnt matter how many times I reactivate it.

     

    This tunnel is important to me as it's how I access my home lab for proof of concept stuff for work.  What are the chances of this getting resolved soon?

    Edited by OmegaXis
    Link to comment

    At this point, i am reverting back to 6.11.5, the entire server has become slow and unresponsive, ill try 6.12 again maybe when 6.12.2 comes out. There are just too many instabilities for a piece of paid software.

     

    Cant even downgrade. went to try and only 6.12 is an option.

     

    image.thumb.png.03a1e039fdc936e691e43bcf000aa01e.png
     

    Edited by OmegaXis
    Link to comment
    5 hours ago, OmegaXis said:

     

    Cant even downgrade. went to try and only 6.12 is an option.

     

    You can always use the Manual method described here in the online documentation.

    Link to comment
    23 minutes ago, sittingmongoose said:

    I am also having this issue. 

     

    I don't see this problem in your diagnostics.

    Next release has an update to solve a race condition when a wireguard tunnel is updated.

    Please retest when it is available.

     

    • Like 1
    Link to comment
    6 minutes ago, bonienl said:

     

    I don't see this problem in your diagnostics.

    Next release has an update to solve a race condition when a wireguard tunnel is updated.

    Please retest when it is available.

     

    Any idea when the next release is due?

    Link to comment

    Is there a means to sign up to beta test it if not I'll wait until it comes out and try again I'm back on 6.12.0 and currently stable 

    Link to comment


    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.
    Note: Your post will require moderator approval before it will be visible.

    Guest
    Add a comment...

    ×   Pasted as rich text.   Restore formatting

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.


  • Status Definitions

     

    Open = Under consideration.

     

    Solved = The issue has been resolved.

     

    Solved version = The issue has been resolved in the indicated release version.

     

    Closed = Feedback or opinion better posted on our forum for discussion. Also for reports we cannot reproduce or need more information. In this case just add a comment and we will review it again.

     

    Retest = Please retest in latest release.


    Priority Definitions

     

    Minor = Something not working correctly.

     

    Urgent = Server crash, data loss, or other showstopper.

     

    Annoyance = Doesn't affect functionality but should be fixed.

     

    Other = Announcement or other non-issue.

×
×
  • Create New...