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

    losing OpenVPN connection every 20 - 120 seconds

    Scheduled Pinned Locked Moved OpenVPN
    76 Posts 7 Posters 12.9k 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.
    • A
      akkiz @chpalmer
      last edited by

      @chpalmer oops my bad

      1 Reply Last reply Reply Quote 0
      • chpalmerC
        chpalmer
        last edited by chpalmer

        When you get a chance delete your picture above with your IP addresses. People can be jerks..

        Use paint or some other program to block that in your picture.

        Triggering snowflakes one by one..
        Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box.

        A 1 Reply Last reply Reply Quote 0
        • A
          akkiz @chpalmer
          last edited by akkiz

          @chpalmer Done!!!

          1 Reply Last reply Reply Quote 0
          • chpalmerC
            chpalmer
            last edited by

            They're not yours specifically but close enough for some to care.

            Triggering snowflakes one by one..
            Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box.

            A 1 Reply Last reply Reply Quote 0
            • A
              akkiz @chpalmer
              last edited by akkiz

              @chpalmer 2.png 1 - Copy.jpg

              1 Reply Last reply Reply Quote 0
              • chpalmerC
                chpalmer
                last edited by

                @akkiz said in losing OpenVPN connection every 20 - 120 seconds:

                pfSense package system has detected an IP change or dynamic WAN reconnection

                This seems to agree with the addresses you have pictured throughout the thread here. How often does your WAN IP address change?

                Triggering snowflakes one by one..
                Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box.

                A 1 Reply Last reply Reply Quote 0
                • A
                  akkiz @chpalmer
                  last edited by akkiz

                  @chpalmer i dont think wan ip changes so frequently only on restart starting open vpn changes it maybe

                  1 Reply Last reply Reply Quote 0
                  • chpalmerC
                    chpalmer
                    last edited by

                    Im trying to understand your internet connection a little.

                    What is it? DSL or fiber.. or? The ping time to the first gateway says that maybe the router is on premises. But fiber can be fairly quick as well.. Can you go to a command window and do c:>ping -n 2000 google.com and post the results??

                    My guess is that somehow your connection past your gateway is going up and down intermittently and causing the VPN connection to reset.

                    Otherwise the VPN server your pointed at may have issues.

                    Triggering snowflakes one by one..
                    Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box.

                    A 1 Reply Last reply Reply Quote 0
                    • A
                      akkiz
                      last edited by stephenw10

                      2.jpg

                      fiber coming to white box which is directly connected by cat 6 cable to pf sense box wan port using ppoe type connection with user name and password
                      Microsoft Windows [Version 10.0.18363.535]
                      (c) 2019 Microsoft Corporation. All rights reserved.

                      C:\Users\akila>ping -n 2000 google.com

                      Pinging google.com [172.217.19.174] with 32 bytes of data:
                      Reply from 172.217.19.174: bytes=32 time=8ms TTL=55
                      Reply from 172.217.19.174: bytes=32 time=7ms TTL=55
                      Reply from 172.217.19.174: bytes=32 time=7ms TTL=55
                      Reply from 172.217.19.174: bytes=32 time=7ms TTL=55
                      Reply from 172.217.19.174: bytes=32 time=7ms TTL=55
                      Reply from 172.217.19.174: bytes=32 time=12ms TTL=55

                      1 Reply Last reply Reply Quote 0
                      • kiokomanK
                        kiokoman LAYER 8
                        last edited by

                        if you are not using it disable ipv6 under pppoe connection: ipv6 configuration type -> none

                        ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                        Please do not use chat/PM to ask for help
                        we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                        Don't forget to Upvote with the 👍 button for any post you find to be helpful.

                        A 1 Reply Last reply Reply Quote 0
                        • A
                          akkiz @kiokoman
                          last edited by

                          @kiokoman ok let me see

                          1 Reply Last reply Reply Quote 0
                          • A
                            akkiz
                            last edited by akkiz

                            problem still the same

                            1 Reply Last reply Reply Quote 0
                            • B
                              bcruze
                              last edited by

                              under system >advanced >networking : network interfaces. is reset all states checked or unchecked? i would uncheck that

                              A 1 Reply Last reply Reply Quote 0
                              • A
                                akkiz @bcruze
                                last edited by akkiz

                                @bcruze its was unchecked only

                                A 1 Reply Last reply Reply Quote 0
                                • A
                                  akkiz @akkiz
                                  last edited by akkiz

                                  i even changed vpn server location but behaviour is still same
                                  Jan 9 16:28:23 php-fpm 45949 /rc.openvpn: OpenVPN: One or more OpenVPN tunnel endpoints may have changed its IP. Reloading endpoints that may use OPT1_VPNV4.
                                  Jan 9 16:28:27 php-fpm 78271 /rc.newwanip: Creating rrd update script
                                  Jan 9 16:28:29 php-fpm 78271 /rc.newwanip: pfSense package system has detected an IP change or dynamic WAN reconnection - 10.106.0.226 -> 10.187.0.86 - Restarting packages.
                                  Jan 9 16:28:29 check_reload_status Starting packages
                                  Jan 9 16:28:30 php-fpm 343 /rc.start_packages: Restarting/Starting all packages.
                                  Jan 9 16:28:46 check_reload_status Syncing firewall

                                  1 Reply Last reply Reply Quote 0
                                  • B
                                    bcruze
                                    last edited by

                                    did you reboot the system after the ip6 change posted above?

                                    system > advanced > miscellanous > gateway monitoring > flush all states when gateway is down? what is that set too? i would have it unchecked as well

                                    A 1 Reply Last reply Reply Quote 0
                                    • A
                                      akkiz @bcruze
                                      last edited by

                                      @bcruze ok let me do it now

                                      A 1 Reply Last reply Reply Quote 0
                                      • A
                                        akkiz @akkiz
                                        last edited by

                                        @akkiz no difference still disconnects......

                                        1 Reply Last reply Reply Quote 0
                                        • A
                                          akkiz @chpalmer
                                          last edited by

                                          @chpalmer i also tried connecting a modem before pf box and used dhcp in wan interface but the problem is still same and wan ip never changes

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

                                            Where did you get all those custom options from in the OpenVPN setup? Most of those are duplicated in the normal settings anyway.

                                            I don't actually see any errors there. The connection comes up and receives a new IP from the server. It's assigned so has a gateway, pfSense treats it as a WAN and triggers the appropriate scripts when that happens. You could disable 'gateway monitoring action' for now to reduce what is run there.

                                            Do you have a conflict with the LAN? What subnet are you running there? Can we see the routing table from Diag > Routes?

                                            Steve

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