Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IP 'Blocking' in Debian Linux; Ghetto Style.
#1
IP 'Blocking' in Debian Linux; Ghetto Style.
By iintens - the iintens blog

This is a neat little trick I learned a while back from my good friend bsdpunk - It's a
quick and easy way to 'block' IP addresses on Debian Linux - This also works on debian-based distributions (Ubuntu.etc).

route add -host <offending-ip> netmask 0.0.0.0 lo

This is in no way a good permanent solution for blocking IP addresses, the data sent from the offending IP still reaches where it's supposed to, the applicatoin attached to that port (if any) still processes the packets and replies to them (if that's what it is supposed to do) but instead of being pushed to the destination IP they are just sent through the loopback interface (it basically eats the packets).

Enjoyed this, read more awesome crap at http://blog.iintens.org
[Completely Honest. Seriously.]

Protip: Anonymous Reputation Points are for Pussies
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Installing Linux Mint Debian- advice? iDiDiT 3 2,032 01-07-2012, 10:25 PM
Last Post: AceInfinity
  Debian (and based distros) WhatPulse team. Gone 2 1,047 04-28-2010, 11:55 AM
Last Post: Gone
  Limewire on Debian bases Canoris 3 1,027 12-23-2009, 03:17 PM
Last Post: Gone
  Debian - Squeeze help? xAgentOverDDoSe 0 473 10-13-2009, 02:05 PM
Last Post: xAgentOverDDoSe
  Question about Debian? Kenji Harima 4 651 10-12-2009, 01:06 AM
Last Post: MyNameIs940

Forum Jump:


Users browsing this thread: 1 Guest(s)