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

    Split Tunnel Traffic Failing for Web Traffic

    Scheduled Pinned Locked Moved OpenVPN
    9 Posts 3 Posters 1.1k 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.
    • T
      Technolust
      last edited by

      OpenVPN connects but I can't figure out where to resolve the DNS issue I'm having when connecting using split tunnel.

      I see this in the log:

      Mon May 22 14:53:04 2023 Blocking outside dns using service succeeded.

      I can't find where to allow outside dns..

      Thanks,

      Joe

      V 1 Reply Last reply Reply Quote 0
      • V
        viragomann @Technolust
        last edited by

        @technolust
        Block Outside DNS is an option in the OpenVPN server settings. As far as I know, this is not enabled by default.

        Did you also check DNS Server enable or Redirect IPvx Gateway?
        If sou you need to provide a DNS server to the clients and allow the access to it.

        R 1 Reply Last reply Reply Quote 0
        • R
          rcoleman-netgate Netgate @viragomann
          last edited by

          @viragomann worth noting I believe that setting only applies to Windows.

          Ryan
          Repeat, after me: MESH IS THE DEVIL! MESH IS THE DEVIL!
          Requesting firmware for your Netgate device? https://go.netgate.com
          Switching: Mikrotik, Netgear, Extreme
          Wireless: Aruba, Ubiquiti

          1 Reply Last reply Reply Quote 0
          • T
            Technolust
            last edited by

            3A1C6B1B-6FB6-4121-8343-9A34CCBF43C2.jpeg

            Here are the settings for the DNS, I’m running Windows 11. Will uncheck Block Outside DNS and Uncheck Force DNS cache update. Last time I tried this had no effect on Windows 11 but you know Microsoft and their infinite wisdom…

            R 1 Reply Last reply Reply Quote 0
            • R
              rcoleman-netgate Netgate @Technolust
              last edited by

              @technolust said in Split Tunnel Traffic Failing for Web Traffic:

              Here are the settings for the DNS, I’m running Windows 11.

              See in your image this:
              8e3cab46-058a-4ff2-b2fd-ef271a9e0c0c-image.png

              Windows 11 will not work for this.

              Ryan
              Repeat, after me: MESH IS THE DEVIL! MESH IS THE DEVIL!
              Requesting firmware for your Netgate device? https://go.netgate.com
              Switching: Mikrotik, Netgear, Extreme
              Wireless: Aruba, Ubiquiti

              T 1 Reply Last reply Reply Quote 0
              • T
                Technolust @rcoleman-netgate
                last edited by

                @rcoleman-netgate I knew that but had to leave the house to test. I just made the change and the result is the same. However, if I setup a full tunnel by adding the below to the vpn file I get traffic web traffic without any issues.

                redirect-gateway def1

                686a1db2-a26d-4233-b040-b7100d0b389a-image.png

                If I remove the redirect-gateway def1 and setup the split tunnel I lose the web traffic again.
                Also note, I'm testing on Win11 22H2 I haven't tested Linux yet.. iPhone and Android devices work just fine. Damn Microsoft killing me again!!!

                V 1 Reply Last reply Reply Quote 0
                • V
                  viragomann @Technolust
                  last edited by

                  @technolust said in Split Tunnel Traffic Failing for Web Traffic:

                  If I remove the redirect-gateway def1 and setup the split tunnel I lose the web traffic again.

                  Is it due to name resolution not working?
                  If so, try to provide your pfSense IP as DNS server if you're running unbound on it and remove the public DNS servers. Ensure that access is allowed. Possibly you have to add the VPN tunnel to the Resolver ACLs.

                  If you provide public DNS servers without 'redirect gateway' you would also route them over the VPN by adding them to the "Local Networks".

                  T 1 Reply Last reply Reply Quote 0
                  • T
                    Technolust @viragomann
                    last edited by

                    @viragomann It could be due to the name resolution not working but I'm not 100% sure. I thought of this as well. When I go to Cloudflare (1.1.1.1) website shows up.

                    I renamed the vpn file with redirect-gateway def1 to the original. Checked the box and the issue happens... 1.1.1.1 comes up but dns not working... Then I brought back the redirect vpn file and unchecked the box and it works... Then I reverted the vpn file back to redirect-gateway and left the box unchecked and it works. Almost as if there is a caching issue with the vpn file...

                    try to provide your pfSense IP as DNS server I have a pi-hole setup as DNS server.

                    Should I try that IP?

                    Conf File:

                    dev tun
                    persist-tun
                    persist-key
                    data-ciphers AES-256-GCM:AES-128-GCM:CHACHA20-POLY1305:AES-256-CBC
                    data-ciphers-fallback AES-256-CBC
                    auth SHA256
                    tls-client
                    client
                    resolv-retry infinite
                    remote xxx.xxx.xxx.xxx 1194 udp4
                    nobind
                    verify-x509-name "pffw-cer" name
                    auth-user-pass
                    pkcs12 fw-UDP4-1194.p12
                    tls-crypt fw-UDP4-1194-tls.key
                    remote-cert-tls server
                    explicit-exit-notify
                    
                    

                    If I remove nobind and append "redirect-gateway def1" to the end of the file (full tunnel) it works. This is the only difference between the two files.

                    Possibly you have to add the VPN tunnel to the Resolver ACLs This part I don't recall how to do...

                    If you provide public DNS servers without 'redirect gateway' you would also route them over the VPN by adding them to the "Local Networks". Do I need to do this under IPv4 Local network(s) in the Tunnel Settings?

                    V 1 Reply Last reply Reply Quote 0
                    • V
                      viragomann @Technolust
                      last edited by

                      @technolust said in Split Tunnel Traffic Failing for Web Traffic:

                      It could be due to the name resolution not working but I'm not 100% sure.

                      Do an nslookup to get sure. Or even a ping to google.com or whatever.

                      I renamed the vpn file with redirect-gateway def1 to the original. Checked the box and the issue happens... 1.1.1.1 comes up but dns not working... Then I brought back the redirect vpn file and unchecked the box and it works

                      Normally this is pushed to clients by the server and hence doesn't need to be set on the client, however, it's possible.

                      You can enhance the clients log level to see, what configuration changes the client does in the OS with the line:

                      verb 3
                      

                      try to provide your pfSense IP as DNS server I have a pi-hole setup as DNS server.
                      Should I try that IP?

                      Yes.

                      Possibly you have to add the VPN tunnel to the Resolver ACLs This part I don't recall how to do...

                      This is lapsed, since the Resolver is not the DNS server.
                      Maybe you have to configure it on the Pi-hole properly.

                      If you provide public DNS servers without 'redirect gateway' you would also route them over the VPN by adding them to the "Local Networks". Do I need to do this under IPv4 Local network(s) in the Tunnel Settings?

                      Yes, IPv4 addresses have to be added to the "Local IPv4 Networks", IPv6 to the respective other one.
                      Note to use CIDR notation, e.g. for Cloudflare "1.1.1.1/32".

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