Page 1 of 1

DNS across site2site tunnel

Posted: Mon Nov 27, 2023 9:20 pm
by lucaset256
Hi all,

I've set my site2site configuration this way:

OpenVPN server (A) is in Switzerland
OpenVPN client (B) is in Italy (via pfsense)

Everything is up and running but I'm facing issues trying to force a PC in Italy to get DNS responses via VPN tunnel by the Openvpn server (A) in Switzerland.

Directives I've tried to set so far:

openvpn (A)
push "dhcp-option DNS router_address_site_A --> push "dhcp-option DNS 192.168.1.1

openvpn (B)
pull-filter ignore "dhcp-option DNS"


i had no luck. Can anybody help me?
thanks
Luca

Re: DNS across site2site tunnel

Posted: Thu Dec 07, 2023 11:32 pm
by Kalibri
Client's option "pull-filter ignore "dhcp-option DNS" tells client to ignore servers dns push, so what dns server is client using?
Check if resolv is updated if you are on linux or tun device dns setting if you are on windows.