With my rasp Pi, I made a Wifi AP (on wlan0) and I keep the raspberry connected to internet (eth0). The Rasp is not only used for surfing the public web, but also to get sensitive datas on one server.
So I tunnelled it like this :
[users/clients] <==wifi/wlan==> [[Rasp]] <==VPN/eth==> [Server/Data] <====> WWW
But when I run
openvpn & the config, I lose DNS:
- if openVPN is off : clients enter www.example.com and get it displayed
- if openVPN is on : clients enter www.example.com and after 10 seconds (timeout) they get "DNS_PROBE_ERR_NO_INTERNET" . If they enter IPs, they dont get this issue, it works as usual.
isc-dhcp-server (/etc/dhcp/dhcpd.conf) to manage clients routing, dhcp and DNS (126.96.36.199, 188.8.131.52).
IP forwarding is 1.
To sum up, launching VPN breaks the DNS, actually breaks INTERNET FORWARDING - more generally -. I tried to use
bind9, no success.
How can I solve it ?