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

    Needing EXPERTS! - OpenVPN (tun) Routing - Access PCs over Hostnames not IPs

    Scheduled Pinned Locked Moved OpenVPN
    20 Posts 2 Posters 13.8k 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.
    • Cry HavokC
      Cry Havok
      last edited by

      Ok, do you actually have an active Windows Domain or Active Directory? What device is acting as your Domain Controller?

      1 Reply Last reply Reply Quote 0
      • O
        onkeldave83
        last edited by

        hello,
        we have an active windows domain, i think!
        a pdc samba debian server.
        twelve clients (meber of domain) can connect over this server into domain.

        but what is with the dns tool for pfsense?
        is tinydns easy to use over gui in pfsense 2.0 beta 5 ?

        i think, when the tinydns is a solution, i would kill and reconfigure the pdc samba debian server ;)

        when not - i take debian to resolve the vpn and local hostnames over a wins server solution.
        (little bit reconfigure the smb.conf)

        1 Reply Last reply Reply Quote 0
        • Cry HavokC
          Cry Havok
          last edited by

          Stop over complicating things. You're just going to cause yourself pointless work and make the situation more confusing.

          In the OpenVPN configuration on pfSense start by pushing the IP of the Samba server as the WINS server. As you're using Samba as a PDC then you're using a Windows NT domain, not Active Directory. That means that WINS is probably your primary name resolution service for the local network.

          1 Reply Last reply Reply Quote 0
          • O
            onkeldave83
            last edited by

            ok i test it!
            thanks

            1 Reply Last reply Reply Quote 0
            • O
              onkeldave83
              last edited by

              hmm when i push the pdc as wins server in openvpn config, i cant ping over vpn with hostnames :(
              every host is registered in /etc/hosts

              what is wrong?

              1 Reply Last reply Reply Quote 0
              • Cry HavokC
                Cry Havok
                last edited by

                /etc/hosts where - on the PDC or the client?

                Are the client computers configured to use WINS for name resolution? What version of Windows are they running?

                1 Reply Last reply Reply Quote 0
                • O
                  onkeldave83
                  last edited by

                  hello cry havok,

                  on the pdc the /etc/hosts!

                  the clients aren't configure to use wins for name resolution, i have for testing configured my pc to use the wins for name-resolution.
                  but i can also ping with hostnames without wins entry on my machine ;)

                  we use only windows xp 32 and 64 bit machines

                  thanks

                  1 Reply Last reply Reply Quote 0
                  • Cry HavokC
                    Cry Havok
                    last edited by

                    WINS is a broadcast protocol - you don't need to populate /etc/hosts on the PDC and I'm not sure the doing so will achieve anything.

                    If you don't configure the client to use WINS how on earth do you expect WINS to work? Try doing that, and ensuring that when connected to the VPN a WINS server is defined (the output of ipconfig/all on a client should help you identify that).

                    1 Reply Last reply Reply Quote 0
                    • O
                      onkeldave83
                      last edited by

                      ok you are right!

                      i have modified one hostname from pdc's /etc/hosts from rails to railsbitch
                      AND I CAN PING IT! PORNO ;)

                      ok i have to configured all clients in local network to use wins yes?

                      and then i can ping everyone in local network over vpn?! right?

                      thanks a lot forward havok

                      1 Reply Last reply Reply Quote 0
                      • Cry HavokC
                        Cry Havok
                        last edited by

                        And the remote devices need to be using WINS too - they need to have it enabled on the OpenVPN adapter and have the setting pushed to them by the OpenVPN server.

                        1 Reply Last reply Reply Quote 0
                        • O
                          onkeldave83
                          last edited by

                          yes i pushed the wins server throw the tunnel to vpn-clients.
                          i test it tonight thanks for tipps havok

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