Which actual security benefits do you get from blocking ICMP? Is that really worth it, considering that you break Path MTU Discovery, rendering your servers unusable for some people?
I made the mistake the other day of reminding my work colleagues of a certain instructional video relating to traceroute that did the rounds some years ago. Now they are joyfully calling it "Tracer T" all of the time. (-:
and I am more than happy to share that on Windows/Firefox I use a combo of AdBlock+ and NoScript so I only allow FB, and the other "socials" to run their crap ONLY on their own websites and not on others (e.g. the -tracking- "like" buttons on CNN)
I think (on linux, at least), its better to implement this as a nss- module (/etc/nsswitch.conf). You can do things like lookup a hashtable, automatically update databases, etc without having to rewrite system config files.
Also this does not protect you from programs that perform their own dns lookups, and ignore /etc/hosts and /etc/resolv.conf entirely!
I like this and could use something like it, but you should use POSIX sh (/bin/sh) and not rely on Bash in the shebang as well as non-portable functionality it introduces.
no with the host file in general. I did this once (a while ago) and i did notice a difference in website loading speed when i put 1000 lines into that thing
26 comments
[ 2.4 ms ] story [ 64.8 ms ] thread"my servers" is my home servers not some "web servers". Maybe it's just me (: ( paranoid on security )
While it's good to be proactive about security, it is also helpful to understand why blocking icmp (particularly wholesale) is a bad idea.
I had a network guy tell me the other day that he is blocking traceroute for "security reasons". I can't even... =(
Also, my go to site for hosts is: http://someonewhocares.org/hosts/
and I am more than happy to share that on Windows/Firefox I use a combo of AdBlock+ and NoScript so I only allow FB, and the other "socials" to run their crap ONLY on their own websites and not on others (e.g. the -tracking- "like" buttons on CNN)
Not only is it more robust, it acts as a DNS/HTTP server that blocks this kind of stuff on a whole network.
1: https://github.com/pi-hole/pi-hole
Also this does not protect you from programs that perform their own dns lookups, and ignore /etc/hosts and /etc/resolv.conf entirely!
This wouldn't work out of the box on FreeBSD.
I recommend this tool: https://www.shellcheck.net/