Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 10th March 2013, 10:03
Unfaiir Unfaiir is offline
HowtoForge Supporter
Join Date: Jul 2012
Location: Orange County, CA, USA
Posts: 43
Thanks: 14
Thanked 4 Times in 2 Posts
Question 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.

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?
We are not equal

Last edited by Unfaiir; 10th March 2013 at 12:10.
Reply With Quote
Sponsored Links
Old 10th March 2013, 21:22
pawan pawan is offline
Senior Member
Join Date: Jul 2010
Posts: 222
Thanks: 44
Thanked 6 Times in 6 Posts

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.
Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Version 1.3 of the ISPConfig 3 Manual is finally available! falko General 44 2nd December 2011 13:04
Ubuntu 11.10, ISPConfig needs some nginx.conf tweaks after following guide. talkingnews Installation/Configuration 10 28th November 2011 22:55
Forwarding SPAM to quarantine. tomrichmond Server Operation 8 20th April 2011 19:50
WebDAV doesn't start - DAVLockDB not created - error 405 Method not allowed maljam Server Operation 2 23rd March 2011 17:06
ISPConfig RC2 released till General 51 17th April 2009 18:12

All times are GMT +2. The time now is 08:39.

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