项目作者: austinkeeley

项目描述 :
An Errbot plugin for displaying pfSense logs.
高级语言: Python
项目地址: git://github.com/austinkeeley/err-pfsense.git
创建时间: 2020-12-22T04:30:13Z
项目社区:https://github.com/austinkeeley/err-pfsense

开源协议:MIT License

下载


err-pfsense

An Errbot plugin for displaying pfSense logs. Currently supports firewall and DHCP logs.

Install

Run the following Errbot command

  1. !repos install https://github.com/austinkeeley/err-pfsense.git

Setup

Configure the bot by running

  1. !plugin config pfsense {'LOG_FILE': '/path/to/your/logfile', 'DEFAULT_IDENTIFIER_STR': '#bots' }

The plugin expects the logs to be in the RFC3164 “BSD Style” syslog output, e.g.

  1. <134>Dec 30 22:40:34 pfsense.hostname tag: message_contents_here

Begin the log streaming with the command

  1. !start log

Configuration Options

Option Type Value
LOG_FILE string Path to the syslog file to display
REVERSE_DNS_LOOKUP Boolean Perform the IP to hostname lookup
DELAY integer Delay, in seconds, to allow the DNS lookup to happen
DEFAULT_IDENTIFIER_STR string Errbot identifier string to send log messages to, e.g. #bots