This commit is contained in:
Stefan Midjich 2016-12-15 12:24:19 +01:00
parent 6b12e1114f
commit ad2d251d48
1 changed files with 3 additions and 0 deletions

View File

@ -71,6 +71,9 @@ All this is of course triggered by the portal application written in Python usin
There's only one relevant plugin right now, iptables. But the idea is that you could add RADIUS plugins or other services. The mandatory flag in plugins.cfg decides if a plugin must pass before a client is authenticated. So you can string several plugins together for several actions that must be performed.
Each plugin responds with JSON.
### iptables plugin
1. Executes the ``iptables_cmd`` defined in plugins.cfg, with arguments being the client IP and potentially the client MAC address.
2. Ensures the exit code of ``iptables_cmd`` is 0, if not 0 it sets a failed flag in its JSON response.