Difference between revisions of "Log Watch and Ban"

From IPitomy Wiki
Jump to navigation Jump to search
Line 5: Line 5:
 
==<span class="mw-headline" id="Enable_Log_Watch.2FBan_Service">Enable Log Watch + Ban Service </span>==
 
==<span class="mw-headline" id="Enable_Log_Watch.2FBan_Service">Enable Log Watch + Ban Service </span>==
  
'''STEPS:'''
+
=== '''STEPS:''' ===
 
 
 
[[File:PBXSetupGeneral.png|frameless|187x187px]]
 
[[File:PBXSetupGeneral.png|frameless|187x187px]]
  
Line 23: Line 22:
 
|-
 
|-
 
| style="background-color:#b8cce4;  border-top:0.0069in solid #0000ff;  border-bottom:0.0069in solid #0000ff;  border-left:0.0069in solid #0000ff;  border-right:none;  padding-top:0in;  padding-bottom:0in;  padding-left:0.075in;  padding-right:0.075in" |<center>'''Sections/Fields'''</center>
 
| style="background-color:#b8cce4;  border-top:0.0069in solid #0000ff;  border-bottom:0.0069in solid #0000ff;  border-left:0.0069in solid #0000ff;  border-right:none;  padding-top:0in;  padding-bottom:0in;  padding-left:0.075in;  padding-right:0.075in" |<center>'''Sections/Fields'''</center>
| style="background-color:#b8cce4;  border:0.0069in solid #0000ff;  padding-top:0in;  padding-bottom:0in;  padding-left:0.075in;  padding-right:0.075in" |<center>'''Description'''</center>
+
! style="background-color:#b8cce4;  border:0.0069in solid #0000ff;  padding-top:0in;  padding-bottom:0in;  padding-left:0.075in;  padding-right:0.075in" |<center>'''Description'''</center>
 
|-
 
|-
 
| style="border-width: 0.0069in medium 0.0069in 0.0069in;  border-style: solid none solid solid;  border-color: rgb(0, 0, 255) -moz-use-text-color rgb(0, 0, 255) rgb(0, 0, 255);  padding: 0in 0.075in;  text-align: center" |'''Service is currently Running '''<br />
 
| style="border-width: 0.0069in medium 0.0069in 0.0069in;  border-style: solid none solid solid;  border-color: rgb(0, 0, 255) -moz-use-text-color rgb(0, 0, 255) rgb(0, 0, 255);  padding: 0in 0.075in;  text-align: center" |'''Service is currently Running '''<br />
Line 47: Line 46:
 
| style="border:0.0069in solid #0000ff;  padding-top:0in;  padding-bottom:0in;  padding-left:0.075in;  padding-right:0.075in" | Enter the IP addresses you wish to be ignored by the PBX in regards to failed SIP registration attempts. The IP address field will accept many different formats of IP address (e.g. - 10.0.0.1/24 is accepted as well as 192.168.1.1).
 
| style="border:0.0069in solid #0000ff;  padding-top:0in;  padding-bottom:0in;  padding-left:0.075in;  padding-right:0.075in" | Enter the IP addresses you wish to be ignored by the PBX in regards to failed SIP registration attempts. The IP address field will accept many different formats of IP address (e.g. - 10.0.0.1/24 is accepted as well as 192.168.1.1).
 
|}
 
|}
 +
'''''Be sure to Use the "Save Changes" button at the bottom of the page and the "Apply Changes" button at the top right to commit any of these settings changes to the database'''''
  
==== Be sure to Use the "''Save Changes''" button at the bottom of the page and the "''Apply Changes''" button at the top right to commit any of these settings changes to the database ====
+
== <span class="mw-headline" id="Disable_Log_Set_Security_Setting">Disable Log Watch + Ban Service </span> ==
 
 
 
 
 
 
==== <span class="mw-headline" id="Disable_Log_Set_Security_Setting">To Disable Log Watch + Ban Service </span> ====
 
 
 
'''STEPS:'''
 
  
 +
=== '''STEPS:''' ===
 
[[File:PBXSetupGeneral.png|frameless|187x187px]]
 
[[File:PBXSetupGeneral.png|frameless|187x187px]]
  

Revision as of 18:03, 15 March 2024

Log Watch + Ban Service

This feature allows the PBX to monitor the SIP registration traffic and ban any IP address that makes 3 failed registration attempts. The IP address will be banned for either 3 days or until the service is restarted. Configuration settings allow you to ignore (not monitor) IP addresses attempting registration, as well as allowing you to manually add addresses you want the system to ignore. If you set up an Admin Email Address under PBX Setup=>General and have Unified Messaging configured, the PBX will send you an email any time an IP address is banned via this feature. Follow this link to see what a Ban Email will look like.

Enable Log Watch + Ban Service

STEPS:

PBXSetupGeneral.png

  1. From the PBX Setup->General page, locate the Security Settings SecuritySettings.png (use the Ctrl+F feature in your browser to search for the word "security" if you are having trouble scrolling to it).
  2. Enable the Log Watch Ban Service by setting the parameter to “Yes” on the drop-down list. LWnB.Enable1.png
  3. Click the "Save Changes" button at the bottom of the page to save the changes. Be sure to also click "Apply Changes" at the top right to put the changes into effect.

Once you have enabled the Log Watch/Ban Services, you will be able to configure the parameters for the security settings.

Settings

The following screenshot and table describes the settings for the Log Watch and Ban feature.

LWnB settings.png

Sections/Fields
Description
Service is currently Running
This indicates the status of the service, either Running or Not Running.
Reload Button
Restarts the Ban service, clearing any existing banned IP addresses.
 Enable Log Watch & Ban Service
Set to Yes and the PBX will monitor failed SIP registration attempts. 5 failed attempts and the IP is blocked for:
  • 3 days
  • or Until system reboot
  • or Until the reload button is clicked
 Ignore IPs in SIP LocalNets
If set to Yes, this service will not ban IP addresses which have been specified in PBXSetup>SIP. When set to No, all IP addresses will be banned after three failed attempts to register unless they are entered into the "Ignoring Addresses" list below.
Ignoring Addresses
Lists the addresses that were manually entered to be ignored in regards to failed SIP registration attempts.
 Add Entry
Enter the IP addresses you wish to be ignored by the PBX in regards to failed SIP registration attempts. The IP address field will accept many different formats of IP address (e.g. - 10.0.0.1/24 is accepted as well as 192.168.1.1).

Be sure to Use the "Save Changes" button at the bottom of the page and the "Apply Changes" button at the top right to commit any of these settings changes to the database

Disable Log Watch + Ban Service

STEPS:

PBXSetupGeneral.png

  1. From the PBX Setup->General page, locate the Security Settings SecuritySettings.png (use the Ctrl+F feature in your browser to search for the word "security" if you are having trouble scrolling to it).
  2. Disable the Log Watch Ban Service by setting the parameter to “No” on the drop-down list. Disable LWnB.png
  3. Click the "Save Changes" button at the bottom of the page to save the changes. Be sure to also click "Apply Changes" at the top right to put the changes into effect.

It should be noted that the Log Watch is not intended to be the only line of defense for security. It is best practice, if you are being attacked by an intruder, to permanently ban the offending IP address at the router/firewall level. This keeps the problem traffic off your LAN.


PRO Tip: If you are troubleshooting a single remote phone that has gone offline, this feature could be the reason. Confirm the user's IP address and make sure it's in the ignore list.