DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Security

OpenBSD Security Functionally paranoid!

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 16th March 2022
stanl stanl is offline
Real Name: Stan
Package Pilot
 
Join Date: Jun 2019
Location: New York
Posts: 163
Default Using /etc/hosts to block sites

I am told that I can use /etc/hosts to block certain sites.

I edit /etc/hosts and add 127.0.0.1 some_site.com. Being both paranoid and neurotic I also add 0.0.0.0 some_site.com just to be sure.

Save file, reboot, open browser and there is some_site.com same as it ever was.

What am I doing wrong or not understanding and could the fact that I use a VPN have anything to do with it?

Thanks
Reply With Quote
  #2   (View Single Post)  
Old 16th March 2022
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

Your resolv.conf(5) needs to have a lookup setting which resolves from your hosts(5) file before it resolves from any nameservers.
Code:
lookup file bind
Reply With Quote
  #3   (View Single Post)  
Old 16th March 2022
stanl stanl is offline
Real Name: Stan
Package Pilot
 
Join Date: Jun 2019
Location: New York
Posts: 163
Default

Thanks, jggimi. Now working as it should.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Name resolution problem with /etc/hosts entry sag OpenBSD General 3 10th October 2016 08:17 AM
hashing known hosts file frcc OpenBSD Security 1 20th August 2013 09:17 AM
hosts.allow and hosts.deny amrogers3 OpenBSD Security 10 10th November 2011 11:28 AM
LLVM milestone reached - Clang compiler self-hosts J65nko News 0 5th February 2010 03:48 PM
Discovering SSH versions of compromised hosts with nc(1) J65nko General software and network 1 31st December 2009 11:01 AM


All times are GMT. The time now is 06:42 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick