bitnom / VPN-Chain

Bash script for making chained OpenVPN connections.
MIT License
86 stars 29 forks source link

DNS tunneling does not happens #2

Open Mahdi-ME opened 6 years ago

Mahdi-ME commented 6 years ago

After connection, still local DNS is used

bitnom commented 6 years ago

Does your .ovpn file have dhcp-option DNS set?

Supplementary Data For Reference (Not necessarily solution)

https://unix.stackexchange.com/questions/201946/how-to-define-dns-server-in-openvpn

https://github.com/jonathanio/update-systemd-resolved

http://www.thekelleys.org.uk/dnsmasq/doc.html

cbailes78 commented 5 years ago

I'm getting the same issue. It seems to stem from the route-nopull option in the CONNECT function. This will override the dhcp-option DNS sent from the server or specified locally in the client configuration.

bitnom commented 5 years ago

I recently had some time to check it out but I'm on an internet connection right now that doesn't allow me to use the tun interface in this way. I was going to try allow-pull-fqdn. If someone can verify that for me, I'll change it. Otherwise will have to wait for me to be back on regular connection.

flyingpianoman commented 4 years ago

@TensorTom adding allow-pull-fqdn did not work for me. Btw I'm also seeing Options error: option 'dhcp-option' cannot be used in this context ([PUSH-OPTIONS]). Do note that I'm trying to get this working in a docker container.