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

    DNS: pass DHCP lease via pfsense_ovpn_client => OVPN_Server => OVPN_Client

    Scheduled Pinned Locked Moved OpenVPN
    1 Posts 1 Posters 647 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.
    • V
      Vetal
      last edited by

      I created following setup to expose services from my internal network bullet proof way, e.g. from behind the firewall.

      It was a common way:

      Client => pfsense NAT/Port-forwarding => Server,

      where pfsense WAN is advertized via DynDNS

      I did following set up, using this instructions from http://openvpn.net/index.php/open-source/documentation/howto.html#scope:

      [Client OpenVPN ] => [VPS (Digital Ocean) with OpenVPN Server] <= [pfSense, OpenVPN Client] <=> [internal servers (192.168.5.0/24)]

      OpenVPN lives on 10.8.0.0/24. All config is concentrated on OpenVPN server, pushing pfsense LAN 192.168.5.0/24 with route/iroute to the external client (on the left). So I can access any machine by the external client on pfsense subnet via pfSense LAN IP, given I have it allowed on OpenVPN firewall page.

      It works perfectly, though I want to provide DHCP leases info to the client. So, client can access server 192.168.5.5 on pfSense LAN. With "some-server.mydomain", not by IP. The same way I can do it within pfSense LAN, where DNS request come to DNS Forwarder of pfSense, where I have " Register DHCP leases in DNS forwarder" option set.

      How can I pass this DNS to external client, while leaving the rest of DNS for him untouched. Or, at least, pushing google DNS?

      External client does not have his gateway redirected, so everything outside of VPN subnet and pushed subnets goes as usual.

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