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

    How to use VPN pushed DNS for VPN

    Scheduled Pinned Locked Moved DHCP and DNS
    1 Posts 1 Posters 188 Views 1 Watching
    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.
    • YanikY Offline
      Yanik
      last edited by

      Hello,
      I was using Asus router with Asuswrt-Merlin firmware.
      I was using my openvpn connections dns server at each openvpn connection which is pushed.

      I mean:
      My wan 123.123.123.123 uses 8.8.8.8
      my vpn1 456.456.456.456 uses pulled dns server from the vpn connection, lets say 10.34.1.10
      my vpn2 789.789.789.789 uses 10.28.10.1

      So every vpn connection uses pulled vpn internal dns server.
      Something like this:
      PUSH: Received control message: 'PUSH_REPLY,comp-lzo no,redirect-gateway def1 bypass-dhcp,dhcp-option DNS 10.34.1.10,route-gateway 10.34.1.10,topology subnet,ping 10,ping-restart 60,ifconfig 10.34.1.216 255.255.255.0,peer-id 0,cipher AES-256-GCM'

      How can i create the same with pfsense?
      I cant define dns server for each vpn at general settings tab because my vpn is a pool and offers me best server at the reconnect so pulled vpn may change everytime.

      Any ideas?

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