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
|
|
|
|
2017-11-15 22:12:16 +00:00
|
|
|
# ***iptables plugin DEPRECATED in favor of ipset***
|
|
|
|
#
|
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
|
|
|
|
|
|
|
# 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-12-08 13:57:30 +00:00
|
|
|
# This is a command to run to create iptables rules. Two arguments are
|
|
|
|
# passed and replace these two placeholders.
|
|
|
|
iptables_cmd = /usr/local/sbin/cp_iptables.sh "{ip_address}" "{mac_address}"
|
2017-11-15 22:12:16 +00:00
|
|
|
|
|
|
|
|
|
|
|
[ipset]
|
|
|
|
mandatory = False
|
|
|
|
enabled = False
|
|
|
|
debug = True
|
|
|
|
|
|
|
|
# Simply prepend sudo here if you won't run rq worker as root
|
|
|
|
ipset_add_cmd = ipset -exist add authenticated-clients {client_ip}
|
2017-11-16 21:17:40 +00:00
|
|
|
ipset_name = authenticated-clients
|
|
|
|
|
2017-11-17 16:23:36 +00:00
|
|
|
[portalclient]
|
|
|
|
mandatory = False
|
|
|
|
enabled = False
|
|
|
|
debug = True
|
|
|
|
|
2017-11-16 21:17:40 +00:00
|
|
|
# Dummy plugin to provide the client plugin with storage config while
|
|
|
|
# simultaneously providing the manage_client tool with its storage config.
|
|
|
|
[postgres]
|
|
|
|
hostname=localhost
|
|
|
|
username=captiveportal
|
|
|
|
password=secret.
|
|
|
|
database=captiveportal
|
|
|
|
port=5432
|
|
|
|
|
|
|
|
enabled = False
|
|
|
|
mandatory = False
|