UnixGeek wrote: » Add a null route, as in:route add a.b.c.d gw 127.0.0.1 lo
NightShade03 wrote: » Ok well now I feel stupid for not being able to come up with that. Thanks guys.
UnixGeek wrote: » No problem, it's one of those things that's only obvious after you hear about it. The main advantage of doing this is that it's often less resource intensive to null-route somebody than it is the block them on the firewall level. The concept is more portable too than knowing off the top of your head how to work with all the different types of firewalls out there.
darkerosxx wrote: » FYI, you *could* use hosts.deny like this: ALL: a.b.c.d You *could* also use hosts.allow like this: ALL: ALL EXCEPT a.b.c.d If you were doing a bigger network, you could do this to allow a host within that network: ALL: ALL EXCEPT techexams.net EXCEPT goodguy.techexams.net