Difference between revisions of "Call is not going through and not shown in Last Calls"

From Kolmisoft Wiki
Jump to navigationJump to search
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
* Make sure that configuration is correct on Caller side and it is really sending call to right IP (your server IP).
* Make sure that configuration is correct on Caller side and it is really sending call to right IP (your server IP).
<br>
= Check if IP is not blocked =
It can be done online checking [[Blocked IPs]]
=== Old method ===
* Make sure that iptables are not blocking Caller IP on server side. Command to do that:
* Make sure that iptables are not blocking Caller IP on server side. Command to do that:


  # iptables -L -n | grep DROP | grep 11.22.33.44
  # iptables -nL | grep -e "DROP" -e "REJECT" | grep 11.22.33.44


Where 11.22.33.44 is Caller's Public IP address.
Where 11.22.33.44 is Caller's Public IP address.
Line 9: Line 17:


  '''DROP'''      all  --  11.22.33.44        0.0.0.0/0
  '''DROP'''      all  --  11.22.33.44        0.0.0.0/0
or
'''REJECT'''    all  --  11.22.33.44            0.0.0.0/0          reject-with


If you are not getting such line, IP is not blocked by iptables on your server.
If you are not getting such line, IP is not blocked by iptables on your server.


'''To unblock IP:'''
<br>
 
= Unblock IP =
   
   
  iptables -nL --line-numbers | grep 11.22.33.44
  iptables -nL --line-numbers | grep 11.22.33.44
Line 26: Line 40:
After this command IP will be unblocked.
After this command IP will be unblocked.


<br>
= Add IP to whitelist so it would not be blocked again =


'''To add IP to whitelist so it would not be blocked again by fail2ban:'''
If you are sure this IP should never be blocked, do following steps:


Open file /etc/fail2ban/jail.conf with you favorite text editor.
Open file '''/etc/fail2ban/jail.conf''' with you favorite text editor.


Find the line which starts with
Find the line which starts with
Line 42: Line 58:


  service fail2ban restart
  service fail2ban restart
<br><br>
= Video =
<html>
<iframe width="640" height="360" src="https://www.youtube.com/embed/o2xxPDrBBcw" frameborder="0"></iframe>
</html>
<br><br>
= See also =
* [[How to block someone's IP]]

Latest revision as of 09:19, 19 January 2022

  • Make sure that configuration is correct on Caller side and it is really sending call to right IP (your server IP).


Check if IP is not blocked

It can be done online checking Blocked IPs

Old method

  • Make sure that iptables are not blocking Caller IP on server side. Command to do that:
# iptables -nL | grep -e "DROP" -e "REJECT" | grep 11.22.33.44

Where 11.22.33.44 is Caller's Public IP address.

If IP is blocked by iptables in your server output, will look like this:

DROP       all  --  11.22.33.44        0.0.0.0/0

or

REJECT     all  --  11.22.33.44            0.0.0.0/0           reject-with

If you are not getting such line, IP is not blocked by iptables on your server.


Unblock IP

iptables -nL --line-numbers | grep 11.22.33.44

output will be like:

4    DROP       all  --  11.22.33.44       0.0.0.0/0

notice that first number and then place in following command to delete rule which block IP:

iptables -D INPUT 4

After this command IP will be unblocked.


Add IP to whitelist so it would not be blocked again

If you are sure this IP should never be blocked, do following steps:

Open file /etc/fail2ban/jail.conf with you favorite text editor.

Find the line which starts with

ignoreip = 127.0.0.1

add IP which was blocked to end of this line so it would look like that:

ignoreip = 127.0.0.1 11.22.33.44

restart fail2ban service to apply changes:

service fail2ban restart



Video



See also