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

    Consistent RDP disconnects

    Scheduled Pinned Locked Moved General pfSense Questions
    34 Posts 8 Posters 17.3k 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.
    • johnpozJ
      johnpoz LAYER 8 Global Moderator
      last edited by

      Did you look up those errors?

      he dartbundle files show this error message when the user gets disconnected: TUNNELPROTOCOLDPDMGR_ERROR_NO_DPD_RESPONSE:The secure gateway failed to respond to Dead Peer Detection packets. This error means that the DTLS channel was torn due to dpd failure. This error is resolved by tweaking the dpd keepalives and issuing these commands:

      webvpn
            svc keepalive 30
            svc dpd-interval client 80
            svc dpd-interval gateway 80

      http://www.cisco.com/c/en/us/support/docs/security/asa-5500-x-series-next-generation-firewalls/100597-anyconnect-vpn-troubleshooting.html

      Looks to me like your having failure with your VPN, which in turn will cause your RDP to end.

      As to the unchecked box for monitor – so did you CHECK it??

      Advanced MISC -- The monitoring process will flush states for a gateway that goes down if this box is not checked. Check this box to disable this behavior.

      What are you monitoring??  If you miss pings, states can get flushed..  Which would server all connections.

      An intelligent man is sometimes forced to be drunk to spend time with his fools
      If you get confused: Listen to the Music Play
      Please don't Chat/PM me for help, unless mod related
      SG-4860 24.11 | Lab VMs 2.8, 24.11

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

        @johnpoz:

        Did you look up those errors?

        he dartbundle files show this error message when the user gets disconnected: TUNNELPROTOCOLDPDMGR_ERROR_NO_DPD_RESPONSE:The secure gateway failed to respond to Dead Peer Detection packets. This error means that the DTLS channel was torn due to dpd failure. This error is resolved by tweaking the dpd keepalives and issuing these commands:

        webvpn
              svc keepalive 30
              svc dpd-interval client 80
              svc dpd-interval gateway 80

        http://www.cisco.com/c/en/us/support/docs/security/asa-5500-x-series-next-generation-firewalls/100597-anyconnect-vpn-troubleshooting.html

        Looks to me like your having failure with your VPN, which in turn will cause your RDP to end.

        As to the unchecked box for monitor – so did you CHECK it??

        Advanced MISC -- The monitoring process will flush states for a gateway that goes down if this box is not checked. Check this box to disable this behavior.

        What are you monitoring??  If you miss pings, states can get flushed..  Which would server all connections.

        I looked them up but I can't actually edit the configuration files for the VPN connect. They're downloaded from client sites. I'd have to ask the clients to edit them.

        I've checked the tick box now for monitor. I'll see if that changes anything.

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

          Wow, I can't believe it! Ticking that box fixed the problem. I had no idea that setting was even there, and had no idea what it did. Now I know.

          1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator
            last edited by

            It didn't really fix anything..  What it did is not reset states on loss of contact with your monitor IP.  This points to issue with your gateway not answering pings all the time.  Actual issue with your internet line, etc.

            What are you monitoring?  Normally its your gateway..  Does it not answer ping consistently?  You would see this in your pfsense logs..  Pick something else to monitor that is past your isp gateway.  Quite often they don't answer pings very well.

            Other problem with that is if you saturate your line and pings start to fail, then states can get reset..

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.8, 24.11

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

              @johnpoz:

              It didn't really fix anything..  What it did is not reset states on loss of contact with your monitor IP.  This points to issue with your gateway not answering pings all the time.  Actual issue with your internet line, etc.

              What are you monitoring?  Normally its your gateway..  Does it not answer ping consistently?  You would see this in your pfsense logs..  Pick something else to monitor that is past your isp gateway.  Quite often they don't answer pings very well.

              Other problem with that is if you saturate your line and pings start to fail, then states can get reset..

              All I know is before, RDP would lock up and then have to reconnect every few minutes. Now I can go more than an hour and not notice any hang ups.

              The gateway is from Comcast, so I wouldn't be surprised if it's not able to be connected to sometimes. I have a Comcast router in my house that I can't even get into the web app of.

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

                How do I see or change what I'm monitoring?

                1 Reply Last reply Reply Quote 0
                • johnpozJ
                  johnpoz LAYER 8 Global Moderator
                  last edited by

                  system routing - click on edit your gateway(s) and you can turn off monitoring - change the probe time.  It defaults to 1 every second.  You can change it to monitor some other ip than your actual gateway.

                  Don't you have the gateways widget on your dashboard - this shows you your gateway IP, response time - if online, etc.

                  An intelligent man is sometimes forced to be drunk to spend time with his fools
                  If you get confused: Listen to the Music Play
                  Please don't Chat/PM me for help, unless mod related
                  SG-4860 24.11 | Lab VMs 2.8, 24.11

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

                    @johnpoz:

                    system routing - click on edit your gateway(s) and you can turn off monitoring - change the probe time.  It defaults to 1 every second.  You can change it to monitor some other ip than your actual gateway.

                    Don't you have the gateways widget on your dashboard - this shows you your gateway IP, response time - if online, etc.

                    I can see them on my dashboard but they've always been up when I log in, and I don't sit there and watch it.

                    Any suggestions on what I should monitor instead? Can I specify the IP of a website or something?

                    1 Reply Last reply Reply Quote 0
                    • johnpozJ
                      johnpoz LAYER 8 Global Moderator
                      last edited by

                      sure - you can monitor anything on the internet that will answer the ping..  So your currently monitoring your actual gateway - what does your quality graph look like - do you see packet loss, really high times?

                      example see my pfsense graph, and I also run smokeping - which can monitor anything you want to monitor for latency as well.

                      If your states were resetting because of loss of monitor - your quality graph should show that.  If you saturate your line your latency is going to go way up to your gateway.  This is going to happen no matter what your monitor out on the internet..  See the last one the 2 spikes – I was maxing out my download and the latency spikes up!!  Something like that could cause you grief if your resetting your states and you fill up your pipe with say your rdp traffic, and then reset, etc.

                      What does your quality graph look like would be a start to seeing if your having issues with monitoring your gateway.

                      quaility.png
                      quaility.png_thumb
                      smokeping.png
                      smokeping.png_thumb
                      spikes.png
                      spikes.png_thumb

                      An intelligent man is sometimes forced to be drunk to spend time with his fools
                      If you get confused: Listen to the Music Play
                      Please don't Chat/PM me for help, unless mod related
                      SG-4860 24.11 | Lab VMs 2.8, 24.11

                      1 Reply Last reply Reply Quote 0
                      • I
                        imperialdrive
                        last edited by

                        Just upgraded from 2.1.1 to 2.1.4… our office moved into a new building and the PFS install there was 2.1.4... after years of great performance, we quickly noticed RDP disconnect before a minute, every time, when going over a VPN connection handled by an internal MS RRAS server.  I went through everything I could think of before finally hooking our previous office PFS device and BOOM everything worked just fine.  So, now I'm thinking, ok let's upgrade to the latest version while I'm at it... now the constant RDP disconnects return.

                        Downgrading now, but hey I feel your pain.  If there's anything I can do to help troubleshoot this for others, let me know.

                        1 Reply Last reply Reply Quote 0
                        • I
                          imperialdrive
                          last edited by

                          @imperialdrive:

                          Just upgraded from 2.1.1 to 2.1.4… our office moved into a new building and the PFS install there was 2.1.4... after years of great performance, we quickly noticed RDP disconnect before a minute, every time, when going over a VPN connection handled by an internal MS RRAS server.  I went through everything I could think of before finally hooking our previous office PFS device and BOOM everything worked just fine.  So, now I'm thinking, ok let's upgrade to the latest version while I'm at it... now the constant RDP disconnects return.

                          Downgrading now, but hey I feel your pain.  If there's anything I can do to help troubleshoot this for others, let me know.

                          OK, I spoke too soon.  Still had issues.  Downgraded to 2.1.0… STILL ISSUES... went through the following settings with success - disable gateway monitors, clear invalid DF bits, disables firewall scrub, bypass firewall rules for traffic on same interface, unchecked the private networks options under wan, disabled all offloading under network interfaces under advanced

                          After all that, and a full reboot... everything is working.  I'll keep an eye on it and slowly undo some of the changes to narrow it down.

                          1 Reply Last reply Reply Quote 0
                          • I
                            imperialdrive
                            last edited by

                            @imperialdrive:

                            @imperialdrive:

                            Just upgraded from 2.1.1 to 2.1.4… our office moved into a new building and the PFS install there was 2.1.4... after years of great performance, we quickly noticed RDP disconnect before a minute, every time, when going over a VPN connection handled by an internal MS RRAS server.  I went through everything I could think of before finally hooking our previous office PFS device and BOOM everything worked just fine.  So, now I'm thinking, ok let's upgrade to the latest version while I'm at it... now the constant RDP disconnects return.

                            Downgrading now, but hey I feel your pain.  If there's anything I can do to help troubleshoot this for others, let me know.

                            OK, I spoke too soon.  Still had issues.  Downgraded to 2.1.0… STILL ISSUES... went through the following settings with success - disable gateway monitors, clear invalid DF bits, disables firewall scrub, bypass firewall rules for traffic on same interface, unchecked the private networks options under wan, disabled all offloading under network interfaces under advanced

                            After all that, and a full reboot... everything is working.  I'll keep an eye on it and slowly undo some of the changes to narrow it down.

                            Upgraded to 2.1.1 and still running, also crossed the following off the list (offloading under network interfaces can be default, checksum offloading enabled, gateway monitoring can be enabled, disable PF scrubbing does not have to be checked, clear invalid DF bits does not have to be check) which just leaves the bypass firewall rules for traffic on same interface and the unchecked block private networks optoin under wan.

                            I'll upgrade to 2.1.2 later this week and report back more findings.

                            1 Reply Last reply Reply Quote 0
                            • M
                              Muhammad Abdul Hadi
                              last edited by

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