G
G
Gennady Knyazkin2015-09-22 01:14:30
linux
Gennady Knyazkin, 2015-09-22 01:14:30

How to solve dns problem when using openvpn + networkmanager?

Actually a question in a subject.
openSUSE 13.2

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nazar Mokrinsky, 2015-09-22
@nazarpc

I had such a problem (Ubuntu), on the server I created the file /etc/network/if-up.d/iptabes with the content:

#!/bin/sh
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o venet0 -j SNAT --to-source XXX

(don't forget to make it executable).
Where XXX is the address of the server itself.
In general, you can specify a DNS server in the VPN connection settings, for example, Google, but since I use VPN on different operating systems (including mobile ones), I solved the problem on the server side.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question