dhcp-script=/etc/detect_new_device.sh
Reference:
| #!/bin/sh | |
| # | |
| # Author: Luis Felipe Domínguez Vega <[email protected]> | |
| # https://gist.github.com/lfdominguez/08de623d9f9c0fa84e6b4d5d0d25025c | |
| # Program to use with the rate software to send to InfluxDB the | |
| # rate of each IP on interface | |
| # | |
| # rate_to_influx <influxdb_url> <influxdb_database> <local_network> <interface> | |
| # rate_to_influx http://127.0.0.1:8086 network 192.168.0.0/24 re1 |
| #!/usr/local/bin/bash | |
| # pkg install bash | |
| # add to shellcmd as "/root/push_ip_metrics.sh &" via Services/shellcmd | |
| pushgatewayip="192.168.1.2:9091" | |
| network="192.168.1.0/24" | |
| interface="bce1" | |
| interval="1" | |
| rate -i "${interface}" -r "${interval}" -e -n -Ab -a 255 -c "${network}" -d | while read -r line; do |
| # /etc/fail2ban/filter.d/traefik-auth.conf | |
| [Definition] | |
| failregex = ^<HOST> \- \S+ \[\] \"(GET|POST|HEAD) .+\" 401 .+$ |
dhcp-script=/etc/detect_new_device.sh
Reference: