Fix config and README
This commit is contained in:
@@ -4,17 +4,17 @@
|
||||
### Install
|
||||
1) Copy `limitator` to `/etc/init.d/`
|
||||
```
|
||||
scp -O limitator root@uli:/etc/init.d
|
||||
scp -O limitator root@ROUTER:/etc/init.d
|
||||
```
|
||||
2) Run `chmod +x /etc/init.d/limitator`
|
||||
3) Copy `config/limitator` to `/etc/config/`
|
||||
```
|
||||
scp -O config/limitator root@uli:/etc/config
|
||||
scp -O config/limitator root@ROUTER:/etc/config
|
||||
```
|
||||
4) Edit `/etc/config/` if needed.
|
||||
5) Copy `www/*` to `/www/`
|
||||
```
|
||||
scp -rO www root@uli:/
|
||||
scp -rO www root@ROUTER:/
|
||||
```
|
||||
6) Run `chmod +x /www/cgi-bin/limitator.json`
|
||||
7) Run `opkg update && opkg install iptables-mod-extra coreutils-date`
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
config limitator 'limitator'
|
||||
option monthly_quota '90'
|
||||
option wan_dev 'eth1.1'
|
||||
option exclude_network '10.0.2.0/24'
|
||||
option exclude_network '10.0.254.0/24'
|
||||
option exclude_network '10.0.1.0/24'
|
||||
option exclude_network2 '10.0.3.0/24'
|
||||
option exclude_network3 '10.0.0.0/24'
|
||||
option iptables_forward 'FORWARD'
|
||||
option iptables_input 'INPUT'
|
||||
option iptables_output 'OUTPUT'
|
||||
|
||||
Reference in New Issue
Block a user