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
15,234
Reaction score
2,667
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:
 
  • Like
Reactions: wardmundy

Members online

No members online now.

PIAF 5 - Powered by 3CX

Forum statistics

Threads
22,449
Messages
138,027
Members
14,613
Latest member
roshan2019