Advertisement
efxtv

Protect DNS leaks

Jun 10th, 2023 (edited)
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | Cybersecurity | 0 0
  1. #If you want to protect your IP being revealed during you surf on browser you can follow the steps
  2.  
  3. #Via firefox
  4.  
  5. sudo apt install tor
  6. sudo service tor start
  7.  
  8. sudo apt install firefox / sudo snap install firefox
  9. firefox #Go to settings> network settings> proxy settings > choose Use system proxy settings
  10.  
  11. open DNS leaks / where is my IP you will se the tor IP every where
  12.  
  13. ____________________________________________________________________________________
  14. # Via brave browser (will not run without tor service)
  15. sudo service tor start
  16. Click on right hand side hamburger
  17. click on pen new window with tor
  18. Brows any site you want with tor network
  19. ___________________________________________________________________________________
  20.  
  21. #system DNS settings to hide all the DNS leaks
  22.  
  23. Open the Terminal on your Linux machine by pressing Ctrl + T.
  24. Enter the following command to become the root user:
  25.  
  26. su
  27.  
  28. Once you’ve entered your root password, run these commands:
  29.  
  30. rm -r /etc/resolv.conf
  31. nano /etc/resolv.conf
  32.  
  33. When the text editor opens, type in the following lines:
  34.  
  35. nameserver 8.8.8.8
  36. nameserver 208.67.222.222
  37. nameserver 1.1.1.1
  38.  
  39. # SAVE
  40. ctrl s
  41. ctrl x
  42.  
  43.  
  44. Close and save the file. You can do so by clicking Ctrl + X and pressing Y. Continue typing in the terminal:
  45.  
  46. chattr +i /etc/resolv.conf
  47. reboot now
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement