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

    Redirecting DNS only through VPN (solved kind of)

    Scheduled Pinned Locked Moved OpenVPN
    1 Posts 1 Posters 1.7k 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.
    • M
      MaxPF
      last edited by

      I succesfully setup OpenVPN on my pfSense box and I can route traffic from the client to the remote LAN using straigh IP's, but I need the clients to resolve names using the DNS servers on the remote LAN. I want to do it without redirecting all traffic through the VPN tunnel. I just need to redirech DNS traffic to the remote LAN.

      I used the push dhcp-option DNS option, but the clients are still unable to resolve names on the remote LAN because they are using the DNS provided by the local gateway. I know I can create a script to start OpenVPN and change the DNS to point to the remote DNS servers, but I rather use a more "elegant" solution if possible.

      Any suggestion? thanks.

      Max

      Update
      Not sure what changed, but it is now working.

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