kylemanna / docker-openvpn

🔒 OpenVPN server in a Docker container complete with an EasyRSA PKI CA
https://hub.docker.com/r/kylemanna/openvpn/
MIT License
8.78k stars 2.4k forks source link

DNS leaks #764

Open vanodevium opened 12 months ago

vanodevium commented 12 months ago
server 192.168.255.0 255.255.255.0
verb 3
key /etc/openvpn/pki/private/x.x.x.x.key
ca /etc/openvpn/pki/ca.crt
cert /etc/openvpn/pki/issued/x.x.x.x.crt
dh /etc/openvpn/pki/dh.pem
tls-auth /etc/openvpn/pki/ta.key
key-direction 0
keepalive 10 60
persist-key
persist-tun

proto udp
# Rely on Docker to do port mapping, internally always 1194
port 1194
dev tun0
status /tmp/openvpn-status.log

user nobody
group nogroup
comp-lzo no

### Route Configurations Below
route 192.168.254.0 255.255.255.0

### Push Configurations Below
push "dhcp-option DNS 1.1.1.1"
push "dhcp-option DNS 1.0.0.1"
push "comp-lzo no"

I have this configuration but every DNS leak test shows me a DNS leak alert.

Please show me how I can enable security for DNS or fix this problem for different openvpn clients (macos, linux).