Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:capt_portal [2015/04/01 09:24] – created translator1 | en:capt_portal [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | First we select the protocols for Captive Portal availability in a separate class, as it is described in [[priority_config|Assignment of priorities]]. These protocols typically are http/ | ||
- | < | ||
- | bittorrent | ||
- | http 8 | ||
- | https 8 | ||
- | dns 8 | ||
- | default | ||
- | </ | ||
- | Next we create the configuration file captive_portal.cfg. It specifies the bandwidth limits in Captive Portal mode for each of 8 classes(([[opt_bandwidth_mgmt|More details on bandwidth control]])). | ||
- | |||
- | < | ||
- | htb_root=rate 1mbit | ||
- | htb_class0=rate 8bit ceil 8bit | ||
- | htb_class1=rate 1mbit ceil 1mbit | ||
- | htb_class2=rate 8bit ceil 8bit | ||
- | htb_class3=rate 8bit ceil 8bit | ||
- | htb_class4=rate 8bit ceil 8bit | ||
- | htb_class5=rate 8bit ceil 8bit | ||
- | htb_class6=rate 8bit ceil 8bit | ||
- | htb_class7=rate 8bit ceil 8bit | ||
- | </ | ||
- | htb_root - is the root class. It specifies the total bandwidth. The bandwidth is redistributed within this class\\ | ||
- | rate - is the lower bandwidth limit\\ | ||
- | ceil - is the upper bandwidth limit, that can be borrowed from the root class if available | ||
- | |||
- | We place a subscriber into Cpative Portal when his account runs out of money: | ||
- | < | ||
- | fdpi_ctrl load --policing captive_portal.cfg --ip 192.168.0.1 | ||
- | fdpi_ctrl load --service 5 --ip 192.168.0.1 | ||
- | </ | ||
- | |||
- | Here we unblock the subscriber upon a deposit to his account: | ||
- | < | ||
- | fdpi_ctrl load --policing rate_plan1.cfg --ip 192.168.0.1 | ||
- | fdpi_ctrl del --service 5 --ip 192.168.0.1 | ||
- | </ | ||
- | |||
- | Future developments: |