29 lines
731 B
Markdown
29 lines
731 B
Markdown
# Limitator
|
|
## Monthly quota for OpenWRT
|
|
|
|
### Install
|
|
1) Copy `limitator` to `/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@ROUTER:/etc/config
|
|
```
|
|
4) Edit `/etc/config/` if needed.
|
|
5) Copy `www/*` to `/www/`
|
|
```
|
|
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`
|
|
8) Run `mkdir ~/limitator`
|
|
9) Run `crontab -e` and copy&paste contents in `crontab` file.
|
|
10) Run `/etc/init.d/limitator enable`
|
|
11) Reboot.
|
|
|
|
### Additional steps for Backfire 10.03
|
|
1) Install iptables-mod-ipopt
|
|
2) Delete /bin/date link
|