Jump to content
Not connected, Your IP: 3.21.247.78
shadowmere24

How to Check for DNS Leak on Ubuntu Server Without GUI

Recommended Posts

I'm running ubuntu server 15.10 and I set up a kill switch with airvpn using ufw. I'm concerned that I may have leaks that i'm unaware of, and i don't know how to check to see if I have them or how to avoid them without using a GUI. So how do i check to see if i have a leak without a GUI, and if I do indeed have a leak, how would I fix it?

 

To be clear, I do not want to install a GUI on my ubuntu server just to check this.

 

Thank you!

Share this post


Link to post

Linux will query the servers from /etc/resolv.conf.

 

If you want to make an explicit rule in order to make sure no other application is changing these servers

in /etc/resolv.conf (although if it's a single user system nothing should ever alter it) you can add these

extra iptables rules:

 

iptables -t nat -A PREROUTING -s 0/0 -p udp --dport 53 -j DNAT --to 10.4.0.1

iptables -t nat -A PREROUTING -s 0/0 -p tcp --dport 53 -j DNAT --to 10.4.0.1

 

These rules will make sure that any application that uses even it's own DNS implementation,

which is again very rare, will be redirected to AirVPN's resolver instead.


Occasional moderator, sometimes BOFH. Opinions are my own, except when my wife disagrees.

Share this post


Link to post

Would typing those into the terminal permanently add them as rules? Also, my setup is simply using transmission to torrent while hosting a plex media server to serve up the content i torrent. From what you've said, it seems like it is unlikely that i would be leaking anything. Is that a fair assessment considering that i'm only worried about leaking my ip while torrenting? And does a dns leak from my media server (or any other service i have) make my torrenting traffic vulnerable to prying eyes?

 

Thanks for the help!

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Security Check
    Play CAPTCHA Audio
    Refresh Image

×
×
  • Create New...