2016-04-15 17:22:16 +00:00
|
|
|
# Lists all the plugins, or jobs, and whether they are enabled or not. Each
|
|
|
|
# section name must correspond to a plugin name in the plugins dir.
|
2016-04-16 17:18:42 +00:00
|
|
|
|
|
|
|
# This is just a sample plugin, comment out or remove in production.
|
2016-04-16 16:48:03 +00:00
|
|
|
[sample_log]
|
2016-04-15 17:22:16 +00:00
|
|
|
enabled = True
|
2016-04-18 16:13:57 +00:00
|
|
|
debug = True
|
2016-04-18 19:43:28 +00:00
|
|
|
mandatory = True
|
2016-04-16 16:48:03 +00:00
|
|
|
|
2016-04-16 17:18:42 +00:00
|
|
|
# Runs an iptables command to add a rule, commonly used for captive portal
|
|
|
|
# firewalls.
|
2016-04-16 16:48:03 +00:00
|
|
|
[iptables]
|
2016-04-18 16:13:57 +00:00
|
|
|
enabled = False
|
|
|
|
debug = True
|
2016-04-16 17:09:37 +00:00
|
|
|
|
|
|
|
# If you know you won't be able to get the clients HW address then use this.
|
|
|
|
only_ip = True
|
|
|
|
|
|
|
|
# Command templates for arping and iptables.
|
2016-04-16 17:18:42 +00:00
|
|
|
# Arping might block so make sure you use a timeout and limit the number of
|
|
|
|
# packets it sends.
|
2016-04-18 16:13:57 +00:00
|
|
|
arping = -f -c 1 -w 30 -I eth0 {ip_address}
|
2016-04-16 17:18:42 +00:00
|
|
|
|
2016-04-16 19:30:43 +00:00
|
|
|
iptables_mac = -t mangle -I internet 1 -m mac --mac-source {mac_address} -j RETURN
|
2016-04-17 08:21:58 +00:00
|
|
|
iptables_ip = -t mangle -I internet 1 -m tcp -p tcp --source {ip_address} -j RETURN
|