HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   How Do I Block An IP With ISPConfig? (http://www.howtoforge.com/forums/showthread.php?t=60894)

Unfaiir 10th March 2013 09:03

How Do I Block An IP With ISPConfig And Have It Persist After Reboot?
 
I have several IP's that are clearly up to no good that I want to block.

I found a HowtoForge post on how to use "route" to block an IP.

Code:

route add -host xxx.xxx.xxx.xxx reject
When the server reboots, all of the IPs that I've added to the blacklist are now gone.

How can I keep these IPs from being erased at reboot? Do I need to enter them through ISPConfig somehow?

pawan 10th March 2013 20:22

either you save all the ips in a text file like this
route add -host xxx.xxx.xxx.xxx reject
route add -host xxx.xxx.xxx.xxx reject
route add -host xxx.xxx.xxx.xxx reject
and copy paste in terminal on reboot.

or better still use fail2ban to automatically ban the offending IPs automatically.


All times are GMT +2. The time now is 07:04.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.