Skip to main content
2 of 3
Improved formating
Ingo
  • 42.6k
  • 20
  • 85
  • 205

Try this

sudo nano /etc/dnsmasq.conf

My internet is connected via eth0 then theres a vpn connection turned on

interface eth0
static ip_address=192.168.1.80/24
static routers=192.168.1.254
static domain_name_servers=1.1.1.1

interface=eth1       # Use interface wlan0 (or whatever interface is your wireless)
server=1.1.1.1       # Cloudfare
dhcp-range=192.168.7.100,192.168.7.120,255.255.255.0,24h # IP range and lease time

interface=wlan0       # Use interface wlan0 (or whatever interface is your wireless)
server=103.86. 96.100       # Cloudfare
dhcp-range=192.168.17.100,192.168.17.120,255.255.255.0,24h # IP range and lease time

sudo reboot
that should fix the dns leak