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

OpenVPN not routing all traffic despite Redirect Gateway checked

Scheduled Pinned Locked Moved OpenVPN
19 Posts 2 Posters 1.4k 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.
  • W
    wmcneil @netblues
    last edited by Jul 28, 2020, 3:37 PM

    @netblues Running ping on the VPN Client, I am able to reach 8.8.8.8, as well as a DNS server (209.18.47.62) that has been assigned by DHCP on the WAN. When I try and ping www.intel.com, I am getting Unknown Host

    N 1 Reply Last reply Jul 28, 2020, 3:40 PM Reply Quote 0
    • N
      netblues @wmcneil
      last edited by Jul 28, 2020, 3:40 PM

      @wmcneil Post client dns settings from openvpn server.
      Seems like your vpn clients don't have a dns.
      Are you using dns resolver (unbound) on pf?

      W 1 Reply Last reply Jul 28, 2020, 3:53 PM Reply Quote 0
      • W
        wmcneil @netblues
        last edited by Jul 28, 2020, 3:53 PM

        @netblues VPN DNS and DNS Resolver(it is enabled) Settings below.
        temp1.jpg temp2.jpg

        N 1 Reply Last reply Jul 28, 2020, 4:00 PM Reply Quote 0
        • N
          netblues @wmcneil
          last edited by Jul 28, 2020, 4:00 PM

          @wmcneil So what is on 10.55.83.10? Can you ping it?
          Can you use it via nslookup?

          W 1 Reply Last reply Jul 28, 2020, 4:06 PM Reply Quote 0
          • W
            wmcneil @netblues
            last edited by Jul 28, 2020, 4:06 PM

            @netblues 10.55.83.10 is the LAN address of my pfSense box (SG-1100). Should I be using something else here?

            I can successfully ping that IP from my vpn client. I don't have a nslookup on my vpn client (it is my android phone), but I do have traceroute, and that failed to receive any response.

            W 1 Reply Last reply Jul 28, 2020, 4:16 PM Reply Quote 0
            • W
              wmcneil @wmcneil
              last edited by Jul 28, 2020, 4:16 PM

              @netblues I removed 10.55.83.10, and passed no DNS servers to the VPN. Things are now working....Looks like DNS resolver is working for the VPN clients by default, so no list has to be passed.....thank you very much for your help.

              N 1 Reply Last reply Jul 28, 2020, 4:58 PM Reply Quote 0
              • N
                netblues @wmcneil
                last edited by Jul 28, 2020, 4:58 PM

                @wmcneil actually vpn clients are using their internet provider dns. You might have issues accesing internal resources by name.

                W 1 Reply Last reply Jul 28, 2020, 6:06 PM Reply Quote 0
                • W
                  wmcneil @netblues
                  last edited by Jul 28, 2020, 6:06 PM

                  @netblues I could provide the same list of DNS servers that the WAN is using to the VPN. The only drawback is that I am allowing the WAN DHCP DNS servers to override (be placed before) the primary and secondary servers specified in System / General Setup. So I can specify the current numeric IP of those servers for the VPN, but if they change they will not be automatically updated.

                  N 1 Reply Last reply Jul 28, 2020, 7:03 PM Reply Quote 0
                  • N
                    netblues @wmcneil
                    last edited by Jul 28, 2020, 7:03 PM

                    @wmcneil The correct way is to have openvpn clients use pf sense resolver, for long term stability.
                    Perhaps specifying the openvpn server ip as dns would work for you.

                    W 1 Reply Last reply Jul 28, 2020, 7:47 PM Reply Quote 0
                    • W
                      wmcneil @netblues
                      last edited by Jul 28, 2020, 7:47 PM

                      @netblues How do I configure pfsense so that the openvpn clients use pfsense resolver?

                      N 1 Reply Last reply Jul 28, 2020, 7:56 PM Reply Quote 0
                      • N
                        netblues @wmcneil
                        last edited by Jul 28, 2020, 7:56 PM

                        @wmcneil First assign an interface to openvpn.
                        Then restart openvpn.
                        dnsresolver should be listening to this new interface too.
                        So specifying a dns of 10.55.201.1 should work.

                        W 1 Reply Last reply Jul 28, 2020, 9:04 PM Reply Quote 0
                        • W
                          wmcneil @netblues
                          last edited by Jul 28, 2020, 9:04 PM

                          @netblues I created a new interface named OPT2, and assigned it to my OpenVPN server. (settings and status below). I have not assigned any DNS to the OpenVPN yet, because I'm not following why you think 10.55.201.1 will work, as that is an available IP for assignment to a tunnel client?
                          temp1.jpg temp2.jpg

                          N 1 Reply Last reply Jul 29, 2020, 3:57 AM Reply Quote 0
                          • N
                            netblues @wmcneil
                            last edited by Jul 29, 2020, 3:57 AM

                            @wmcneil In openvpn the first ip of openvpn tunnel network is always assigned to the server, ie pfsense

                            W 1 Reply Last reply Jul 29, 2020, 12:08 PM Reply Quote 0
                            • W
                              wmcneil @netblues
                              last edited by Jul 29, 2020, 12:08 PM

                              @netblues Yes, I see now that a client is connected to the VPN the interface assigned to it (OPT2) has been assigned the first tunnel address (10.55.201.1). That said, it does not work to use 10.55.201.1 as the VPN DNS server. If I use the SG-1100 LAN IP (10.55.83.10) as the VPN DNS server, things are working.

                              N 1 Reply Last reply Jul 29, 2020, 12:10 PM Reply Quote 0
                              • N
                                netblues @wmcneil
                                last edited by Jul 29, 2020, 12:10 PM

                                @wmcneil Ok then, the important thing is to have a pf working dns.
                                Just remember not to block access to dns with rules.

                                1 Reply Last reply Reply Quote 0
                                19 out of 19
                                • First post
                                  19/19
                                  Last post
                                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                  This community forum collects and processes your personal information.
                                  consent.not_received