Using a command such as this one, you would redirect connections to a system you don't want to permit to your loopback interface.
# route add 66.55.44.33 gw 127.0.0.1 lo
To reverse this, you would do this:
# route delete 66.55.44.33
You could also do block connections to a particular system or subnet using a command such as these:
# route add -host 66.55.44.33 reject # route add -net 66.55.44.0/24 reject
Wrap Up
Managing routing configuration on Linux systems is relatively easy, but a good handle on what the basic commands can tell you and do for you is essential.
Read more of Sandra Henry-Stocker's Unix as a Second Language blog and follow the latest
href="http://www.itworld.com/news">IT news
flickr / Ramkarthikblogger
- ‹ previous
- 1
- 2
- 3
- 4
- 5


















