mirror of
https://codeberg.org/prof_x_pvt_ltd/captive.whump.shanti-portal
synced 2024-08-14 22:46:42 +00:00
docs
This commit is contained in:
parent
6b12e1114f
commit
ad2d251d48
1 changed files with 3 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue