How to manage fail2ban


1. find out your public ip by going to from your local pc browser
2. you can add your public IP to / etc/ fail2ban/ jail.conf file, next to ignoreip
Hint: you can use vi by typing below (no spaces after / space after vi )

vi / etc/ fail2ban/ jail.conf

see for more info on using vi

3. Put in your public IP next to ignoreip and make sure to comment out the mark/# (delete # sign)
Hint: Type i to start modify the file in vi. You can put in as many public IPs as you want, separate by space.

ignoreip = yyy.yyy.yyy.yyy

4. save and exit out. see for more info on using vi
Hint: You hit Esc key then type :wq

5. do again vi / etc/ fail2ban/ jail.conf to make sure the changes you made is there and correct
Hint: To exit without saving, you hit Esc key then :q

6. restart fail2ban service by typing

service fail2ban restart
service iptables restart

7. Do NOT close your ssh, open another ssh session to test you can now access it
8. if test successful, you are done, if not, check the steps again

Was this answer helpful?

 Print this Article

Also Read

How to fix out of space issues

If your web page not loading or your asterisk down, you may want to ssh as root to check what's...

Call Quality Troubleshooting

In the case that you are experiencing bad call quality please consider the following suggestions....

How to activate Affiliates program

Activate your affiliate account today to: Receive an initial bonus deposit in your affiliate...

Change Timezone

When we provisioned our PBX,  we will provision it to USA Pacific Daylight Timezone....

Issue with IAX Call rejected, CallToken

If you have problem connecting through IAX protocol, please check if you see " Call...