SOLVED How to whitelist blocked hosts/IPs

jolebole

Member
Joined
Feb 7, 2016
Messages
37
Reaction score
5
Hello guys,

I just installed new IncrediblePBX 13.13 but I ended up with some blocked IPs in the rules that I dont know how to remove. Check my rule output bellow. A, B and C IP addresses are blocked right now. How can I remove them from here or white list them. Thanks

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Chain f2b-ASTERISK (1 references)
target prot opt source destination
REJECT all -- A.A.A.A 0.0.0.0/0 reject-with icmp-port-unreachable
REJECT all -- B.B.B.B 0.0.0.0/0 reject-with icmp-port-unreachable
REJECT all -- C.C.C.C 0.0.0.0/0 reject-with icmp-port-unreachable
RETURN all -- 0.0.0.0/0 0.0.0.0/0

Chain f2b-BadBots (1 references)
target prot opt source destination
RETURN all -- 0.0.0.0/0 0.0.0.0/0

Chain f2b-SSH (1 references)
target prot opt source destination
RETURN all -- 0.0.0.0/0 0.0.0.0/0

Chain f2b-asterisk-tcp (1 references)
target prot opt source destination
RETURN all -- 0.0.0.0/0 0.0.0.0/0

Chain f2b-asterisk-udp (1 references)
target prot opt source destination
REJECT all -- A.A.A.A 0.0.0.0/0 reject-with icmp-port-unreachable
REJECT all -- B.B.B.B 0.0.0.0/0 reject-with icmp-port-unreachable
REJECT all -- C.C.C.C 0.0.0.0/0 reject-with icmp-port-unreachable
RETURN all -- 0.0.0.0/0 0.0.0.0/0
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,170
Reaction score
5,199
fail2ban-client set asterisk unbanip 12.34.56.78

Then edit /etc/fail2ban/jail.conf and add the IP addresses in the ignoreip variable list and restart Fail2Ban: service fail2ban restart
 

jolebole

Member
Joined
Feb 7, 2016
Messages
37
Reaction score
5
fail2ban-client set asterisk unbanip 12.34.56.78

Then edit /etc/fail2ban/jail.conf and add the IP addresses in the ignoreip variable list and restart Fail2Ban: service fail2ban restart
Mr. Mundy for the rescue. Thanks a lot!!! :clap:
 

Members online

Forum statistics

Threads
25,782
Messages
167,511
Members
19,203
Latest member
frapu
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top