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

OpenVPN TCP - No traffic

OpenVPN
openvpn problem gremlins
3
15
1.5k
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.
  • C
    Crlaozwyn
    last edited by Crlaozwyn Sep 18, 2019, 3:58 AM Sep 18, 2019, 3:57 AM

    I've had a rough journey with OpenVPN so far (previous thread here) but for the last month or so, things have been working exactly as expected. All traffic has successfully been routing. Around two days ago, I noticed it wasn't working. I can't exactly pinpoint when things broke, as I was traveling.

    I'm still able to connect - both client and server have happy logs that they're talking. However, no traffic is going through. Symptoms are similar to what was happening on the previous thread, except no settings have changed. I did recently upgrade to the latest PFSense version, though I can't conclusively say the issue started at the same time as the upgrade. My UDP connection continues to work without issue. Any idea why a working VPN would suddenly stop? Any troubleshooting tips are welcome.

    Thanks in advance.

    1 Reply Last reply Reply Quote 0
    • C
      Crlaozwyn
      last edited by Sep 21, 2019, 11:03 PM

      Bump - would still appreciate help with this!

      1 Reply Last reply Reply Quote 0
      • V
        viragomann
        last edited by Sep 23, 2019, 12:06 PM

        The outbound NAT rules you posted in the other thread won't work for upstream traffic. You have to change the interface to "WAN" and the sources have to be your VPN tunnel network. Don't know if 192.168.13.0/24 is you tunnel network.

        Additionally, have you already removed 'push "redirect-gateway def1"' from custom options?

        1 Reply Last reply Reply Quote 0
        • C
          Crlaozwyn
          last edited by Sep 23, 2019, 1:22 PM

          Thanks @viragomann. I did get the NAT rules figured out (later in the thread, I think). They've been on WAN with the VPN subnet (yes, the .13. is the VPN).

          There are currently no custom options set. I do have "Force all client-generated IPv4 traffic through the tunnel" checked.

          1 Reply Last reply Reply Quote 0
          • V
            viragomann
            last edited by Sep 23, 2019, 1:41 PM

            Are you able to access your local device from the VPN client?

            Please post the routing table of the client device.

            1 Reply Last reply Reply Quote 0
            • C
              Crlaozwyn
              last edited by Sep 23, 2019, 1:45 PM

              Argh! It started working again without me making a single change from yesterday.

              Is the routing table part of the logs? If so, I think the only relevant entry would be this:
              2019-37-22 15:37:02 NIP: adding (included) IPv4 route 192.168.13.0/24

              1 Reply Last reply Reply Quote 0
              • V
                viragomann
                last edited by Sep 23, 2019, 2:16 PM

                No, the routing table is a list containing all route of an operating system. It depends on the OS how to show it.

                In Windows and some Linux "netstat -r" may work.
                In other Linux "route" or "ip route".
                In MacOS "netstat -nr".

                1 Reply Last reply Reply Quote 0
                • J
                  johnpoz LAYER 8 Global Moderator
                  last edited by Sep 23, 2019, 2:47 PM

                  route print will also work on windows.

                  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.7.2, 24.11

                  1 Reply Last reply Reply Quote 0
                  • C
                    Crlaozwyn
                    last edited by Sep 23, 2019, 11:02 PM

                    Gotcha, thank you both for the clarification. Unfortunately the client is an iPhone and, based on a bit of Googling, there isn't really a way to access the IP routing table. With some help, I did discover a setup issue on my part though:

                    Both UDP and TCP OpenVPN servers were using the same subnet. I've changed the subnet for UDP to be unique and non-overlapping. It hasn't fixed it yet, but that should hopefully prevent TCP from breaking at least...

                    1 Reply Last reply Reply Quote 0
                    • J
                      johnpoz LAYER 8 Global Moderator
                      last edited by johnpoz Sep 23, 2019, 11:46 PM Sep 23, 2019, 11:40 PM

                      Dude is that you on reddit ;) heheeh - that is me over on reddit

                      You should be able to see your route table via Hurricane electric app.

                      Let me double check that.

                      Yup the HE tools shows that
                      login-to-view

                      You can get it here
                      https://networktools.he.net/

                      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.7.2, 24.11

                      1 Reply Last reply Reply Quote 0
                      • C
                        Crlaozwyn
                        last edited by Sep 23, 2019, 11:45 PM

                        Bahahah, yeah that's me. I didn't get a response here after a few days so I figured I'd put another line in the water. Thanks again for your help.

                        HE.NET app definitely has a lot of data. Do you need all interfaces? There's around a hundred rows

                        1 Reply Last reply Reply Quote 0
                        • J
                          johnpoz LAYER 8 Global Moderator
                          last edited by Sep 23, 2019, 11:50 PM

                          You just need to find your vpn interface, once you connect.

                          You can use it to do a traceroute as well.. Can you ping your lan side interface of pfsense?

                          Here pinging my lan IP of pfsense using tcp from ios
                          login-to-view

                          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.7.2, 24.11

                          1 Reply Last reply Reply Quote 0
                          • C
                            Crlaozwyn
                            last edited by Crlaozwyn Sep 24, 2019, 12:18 AM Sep 24, 2019, 12:08 AM

                            Total fail screenshot attempt - deleted

                            1 Reply Last reply Reply Quote 0
                            • J
                              johnpoz LAYER 8 Global Moderator
                              last edited by johnpoz Sep 24, 2019, 12:12 AM Sep 24, 2019, 12:09 AM

                              Well that doesn't look like you have any routes. But I specific route vs default route.. Let me change mine and reconnect

                              Even when I set to default, I still see routes for the tunnel network..

                              Are you even connected?

                              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.7.2, 24.11

                              1 Reply Last reply Reply Quote 0
                              • C
                                Crlaozwyn
                                last edited by Sep 24, 2019, 12:17 AM

                                So uh... I totally disabled the VPN in order to be able to actually upload anything. Screenshot fail! Should be a little more enlightening here...
                                login-to-view

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