Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    If a psk is specified on a peer, it puts the psk in the keepalive field

    Scheduled Pinned Locked Moved WireGuard
    4 Posts 3 Posters 668 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mfld LAYER 8
      last edited by mfld

      2.5.0.a.20210121.1437

      1. Create a peer.

      2. Add keepalive value of 60 seconds.

      3. Add a psk (Pre-shared key).

      4. Hit save.

      Peer will not function. Going back into the peer's settings I can see that the psk value has overwritten the keepalive value. In on other words the psk entered in the "Pre-shared key" field is duplicated now and also showing in the "Keepalive" field.

      Edit: I can see this is not just a cosmetic issue, the log indeed shows the psk is being sent as the keepalive value:

      /vpn_wg_edit.php: The command '/usr/local/bin/wg setconf 'wg0' '/etc/wg/wg0.conf'' returned exit code '1', the output was 'Persistent keepalive interval is neither 0/off nor 1-65535: `xxxxx3MKsP41123454UKiSwDyyyyyyFON309bTzzzzz=' Configuration parsing error'

      1 Reply Last reply Reply Quote 0
      • S
        serbus
        last edited by serbus

        Hello!

        Could be vpn_wg_edit.php line 450

        $('#persistentkeepalive').val(tabletext(peernum, 7));
        

        should be

        $('#persistentkeepalive').val(tabletext(peernum, 5));
        

        ???

        John

        Lex parsimoniae

        M 1 Reply Last reply Reply Quote 1
        • M
          mfld LAYER 8 @serbus
          last edited by

          @serbus Looks like you may be on to something.

          FWIW I updated to 2.5.0.a.20210121.2350 and the bug still exists.

          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            https://redmine.pfsense.org/issues/11288

            1 Reply Last reply Reply Quote 1
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.