https://github.com/codekow/simple-ipblock
A simple bash script that gives basic IP blocking
https://github.com/codekow/simple-ipblock
Last synced: about 1 year ago
JSON representation
A simple bash script that gives basic IP blocking
- Host: GitHub
- URL: https://github.com/codekow/simple-ipblock
- Owner: codekow
- Created: 2022-02-01T17:49:00.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-10-04T09:31:08.000Z (over 2 years ago)
- Last Synced: 2025-02-13T18:49:38.106Z (over 1 year ago)
- Language: Shell
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# simple-ipblock
A simple bash script that creates basic IP blocking with `iptables`
This script can be used on a router based with tomato / asus-merlin firmware.
## Quickstart
```
cd /opt/usr/bin
curl -L https://github.com/codekow/simple-ipblock/raw/main/ipblock.sh -o ipblock.sh
chmod +x ipblock.sh
```
- Put [ipblock.sh](ipblock.sh) into path (ex: /opt/usr/bin/ipblock.sh).
- Modify `BLOCKLIST_DIR` in [ipblock.sh](ipblock.sh) to specfy config files location. Default is `BLOCKLIST_DIR=/opt/etc/ipblock`.