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

    Wireguard weird behavior

    Scheduled Pinned Locked Moved WireGuard
    7 Posts 2 Posters 751 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.
    • L
      lcbbcl
      last edited by

      Hello,
      I have installed wg in pf and acting as client, my problem come if my wan connection is resetting then my wg connection also go down and never come back.
      But if i go to my wg tunnel (pf side) and i change the listen port from 6669 to default(51820) then my wg connection is coming up and is working, even if its the wrong port, because on the wg server is set to listen on port 6669. If my connection is going down again i need to set again another port.

      Bob.DigB 1 Reply Last reply Reply Quote 0
      • Bob.DigB
        Bob.Dig LAYER 8 @lcbbcl
        last edited by Bob.Dig

        @lcbbcl Maybe you got a new dynamic WAN-IP? And if you are changing the port that means you are connecting again, the other site can not reach you.

        Who has a static IP in your case? Show your config.

        L 1 Reply Last reply Reply Quote 0
        • L
          lcbbcl @Bob.Dig
          last edited by

          @Bob-Dig No dynamic ip involved , my home connection and also the remote server have static ip(public).
          But still why wg tunnel come up and working if the listen port is wrong?

          Bob.DigB 1 Reply Last reply Reply Quote 0
          • Bob.DigB
            Bob.Dig LAYER 8 @lcbbcl
            last edited by Bob.Dig

            @lcbbcl It only needs one but it would be much better if both could connect. If you have static IPs on both ends then there shouldn't be a problem at all. Maybe your config is flawed or your install.

            L 1 Reply Last reply Reply Quote 0
            • L
              lcbbcl @Bob.Dig
              last edited by

              @Bob-Dig I did a short video, my English it is not so advance to explain.
              Bug?
              If my connection go down again i have the same problem, i can't reuse the same port i need to change to another port. This behavior remain until i reboot my pfsense then again i can use 6669,etc etc

              Bob.DigB 1 Reply Last reply Reply Quote 0
              • Bob.DigB
                Bob.Dig LAYER 8 @lcbbcl
                last edited by

                @lcbbcl Nice video. You also have a non functional "WAN". What is set as the Default gateway in pfSense? You should switch it to the PPPoE I guess.
                And it will take time if you loose your internet connection, I would guess. So maybe you find a faster way to reset the wireguard connection, changing the port probably not the best idea.
                I would check if you have public reachable ports on your site to begin with.

                L 1 Reply Last reply Reply Quote 0
                • L
                  lcbbcl @Bob.Dig
                  last edited by

                  @Bob-Dig My wan is ppoe with vlan, the other wan is the nic interface (parent).
                  I will try later when i go home, if ports remain up for wg and for that reason i need to use another port to bring up the connection.
                  It is still werid why wg tunnel is working with different port.

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