feat: improved README and set 1 as starting day
This commit is contained in:
@@ -3,10 +3,19 @@
|
|||||||
|
|
||||||
### Install
|
### Install
|
||||||
1) Copy `limitator` to `/etc/init.d/`
|
1) Copy `limitator` to `/etc/init.d/`
|
||||||
|
```
|
||||||
|
scp -O limitator root@uli:/etc/init.d
|
||||||
|
```
|
||||||
2) Run `chmod +x /etc/init.d/limitator`
|
2) Run `chmod +x /etc/init.d/limitator`
|
||||||
3) Copy `config/limitator` to `/etc/config/`
|
3) Copy `config/limitator` to `/etc/config/`
|
||||||
|
```
|
||||||
|
scp -O config/limitator root@uli:/etc/config
|
||||||
|
```
|
||||||
4) Edit `/etc/config/` if needed.
|
4) Edit `/etc/config/` if needed.
|
||||||
5) Copy `www/*` to `/www/`
|
5) Copy `www/*` to `/www/`
|
||||||
|
```
|
||||||
|
scp -rO www root@uli:/
|
||||||
|
```
|
||||||
6) Run `chmod +x /www/cgi-bin/limitator.json`
|
6) Run `chmod +x /www/cgi-bin/limitator.json`
|
||||||
7) Run `opkg update && opkg install iptables-mod-extra coreutils-date`
|
7) Run `opkg update && opkg install iptables-mod-extra coreutils-date`
|
||||||
8) Run `mkdir ~/limitator`
|
8) Run `mkdir ~/limitator`
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ config limitator 'limitator'
|
|||||||
option monthly_quota '90'
|
option monthly_quota '90'
|
||||||
option wan_dev 'eth1.1'
|
option wan_dev 'eth1.1'
|
||||||
option exclude_network '10.0.2.0/24'
|
option exclude_network '10.0.2.0/24'
|
||||||
option exclude_network '10.0.3.0/24'
|
option exclude_network '10.0.254.0/24'
|
||||||
option iptables_forward 'FORWARD'
|
option iptables_forward 'FORWARD'
|
||||||
option iptables_input 'INPUT'
|
option iptables_input 'INPUT'
|
||||||
option iptables_output 'OUTPUT'
|
option iptables_output 'OUTPUT'
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ EOF
|
|||||||
config_load "limitator"
|
config_load "limitator"
|
||||||
config_get MONTHLY_QUOTA limitator quota 15 # Monthly quota in GB
|
config_get MONTHLY_QUOTA limitator quota 15 # Monthly quota in GB
|
||||||
config_get WAN_DEV limitator wan_dev 'wlan0' # Interface name for WAN
|
config_get WAN_DEV limitator wan_dev 'wlan0' # Interface name for WAN
|
||||||
config_get FIRST_DAY limitator first_day 13 # Day of month when internet plan starts accounting..
|
config_get FIRST_DAY limitator first_day 1 # Day of month when internet plan starts accounting..
|
||||||
config_get START_TIME limitator start_time '08:00' # Starting time of internet plan limited hours.
|
config_get START_TIME limitator start_time '08:00' # Starting time of internet plan limited hours.
|
||||||
config_get END_TIME limitator end_time '22:00' # Ending time of internet plan limited hours.
|
config_get END_TIME limitator end_time '22:00' # Ending time of internet plan limited hours.
|
||||||
config_get INTRANET limitator intranet '10.0.0.0/8' # Traffic in Intranet does not count for quota.
|
config_get INTRANET limitator intranet '10.0.0.0/8' # Traffic in Intranet does not count for quota.
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
<br><br>
|
<br><br>
|
||||||
|
|
||||||
<h3>Descripción</h3>
|
<h3>Descripción</h3>
|
||||||
<p>El periodo de facturación de internet comienza el día 13. La cuota mensual se divide entre la cantidad de días
|
<p>El periodo de facturación de internet comienza el día 1. La cuota mensual se divide entre la cantidad de días
|
||||||
del periodo de facturación y se va asignando según transcurren los días. Si se sobrepasa la cuota asignada se
|
del periodo de facturación y se va asignando según transcurren los días. Si se sobrepasa la cuota asignada se
|
||||||
corta la conexión a internet y hay que esperar a que transcurra el día para que se asigne la cuota del próximo
|
corta la conexión a internet y hay que esperar a que transcurra el día para que se asigne la cuota del próximo
|
||||||
día.</p>
|
día.</p>
|
||||||
@@ -47,4 +47,4 @@
|
|||||||
<script src="js/main.js"></script>
|
<script src="js/main.js"></script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user