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.
Reply
 
Thread Tools Display Modes
  #1  
Old 10th March 2013, 09: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.

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

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

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
Reply

Bookmarks

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 12:04
Ubuntu 11.10, ISPConfig 3.0.4.1 needs some nginx.conf tweaks after following guide. talkingnews Installation/Configuration 10 28th November 2011 21:55
Forwarding SPAM to quarantine. tomrichmond Server Operation 8 20th April 2011 18:50
WebDAV doesn't start - DAVLockDB not created - error 405 Method not allowed maljam Server Operation 2 23rd March 2011 16:06
ISPConfig 3.0.0.9 RC2 released till General 51 17th April 2009 17:12


All times are GMT +2. The time now is 12:38.


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