mirror of
https://codeberg.org/prof_x_pvt_ltd/captive.whump.shanti-portal
synced 2024-08-14 22:46:42 +00:00
typo in markup
This commit is contained in:
parent
e9e30ab3b9
commit
6b12e1114f
1 changed files with 10 additions and 10 deletions
20
README.md
20
README.md
|
@ -52,20 +52,20 @@ See examples in docs/examples directory.
|
|||
|
||||
At the heart is iptables doing the following.
|
||||
|
||||
1. Labeling all traffic with the number 99 in the mangle table.
|
||||
2. Labeled ICMP, DNS and HTTP traffic is redirected to the portal server in the nat table.
|
||||
3. All other labeled traffic is dropped.
|
||||
4. Authenticated clients are jumped out of the mangle table before being labeled, using the RETURN target.
|
||||
5. Authenticated clients are also deleted from conntrack after having their exception rules created in the mangle table.
|
||||
1. Labeling all traffic with the number 99 in the mangle table.
|
||||
2. Labeled ICMP, DNS and HTTP traffic is redirected to the portal server in the nat table.
|
||||
3. All other labeled traffic is dropped.
|
||||
4. Authenticated clients are jumped out of the mangle table before being labeled, using the RETURN target.
|
||||
5. Authenticated clients are also deleted from conntrack after having their exception rules created in the mangle table.
|
||||
|
||||
## Portal
|
||||
|
||||
All this is of course triggered by the portal application written in Python using Bottle.
|
||||
|
||||
1. A clients redirected HTTP traffic puts them in the portal webpage.
|
||||
2. They send a POST form to the /approve url. This can be with user info, personal info, or simply an approve button for a EULA.
|
||||
3. The portal executes its plugins in the order that their config section appears in plugins.cfg.
|
||||
4. Each plugin is passed the request object from Bottle which contains form values among other things.
|
||||
1. A clients redirected HTTP traffic puts them in the portal webpage.
|
||||
2. They send a POST form to the /approve url. This can be with user info, personal info, or simply an approve button for a EULA.
|
||||
3. The portal executes its plugins in the order that their config section appears in plugins.cfg.
|
||||
4. Each plugin is passed the request object from Bottle which contains form values among other things.
|
||||
|
||||
## Plugins
|
||||
|
||||
|
@ -73,4 +73,4 @@ There's only one relevant plugin right now, iptables. But the idea is that you c
|
|||
|
||||
### iptables plugin
|
||||
|
||||
1. Executes the iptables_cmd defined in plugins.cfg, with arguments being the client IP and potentially the client MAC address.
|
||||
1. Executes the ``iptables_cmd`` defined in plugins.cfg, with arguments being the client IP and potentially the client MAC address.
|
||||
|
|
Loading…
Reference in a new issue