DNS across site2site tunnel

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
lucaset256
OpenVpn Newbie
Posts: 1
Joined: Mon Nov 27, 2023 9:05 pm

DNS across site2site tunnel

Post by lucaset256 » Mon Nov 27, 2023 9:20 pm

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

Kalibri
OpenVpn Newbie
Posts: 3
Joined: Wed Dec 06, 2023 9:08 pm

Re: DNS across site2site tunnel

Post by Kalibri » Thu Dec 07, 2023 11:32 pm

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.

Post Reply