How to use VPN pushed DNS for VPN
-
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.1So 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?