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

    DNS not working properly

    Scheduled Pinned Locked Moved OpenVPN
    4 Posts 2 Posters 1.6k 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.
    • P
      Panja
      last edited by

      I have created 2 OpenVPN servers on my pfSense box.
      1 on UDP 1194
      1 on TCP 443

      Both are setup to forward my pfSense box as DNS server (192.168.1.1).

      I can connect to both servers without problems.
      But when I'm connected to the TCP 443 OpenVPN server I cannot get DNS work.
      "connection timed out; no servers could be reached"

      When connected to the UDP OpenVPN server I don't have this problem.

      Both servers are setup the same, except for the listen port.

      Wha could be the problem?

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

        your not handing out dns in the tcp one..  Different firewall rules on your openvpn instance..

        Make a connection using udp, look at the ipconfig /all of that client, look at its route print.  Then do the same for the tcp connection.  What interface of pfsense dns are you using?  For example I point vpn clients to pfsense lan interface for dns.

        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
        • P
          Panja
          last edited by

          I have "fixed" this.
          Had to add the OpenVPN subnets to the allowed list for the DNS resolver.

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

            Yup the resolver has access list.. and remote networks would have to be allowed..

            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
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.