https://github.com/turbolabit/zzfirewall
iptables rules to shut off undesired connection and clients from certain geos
https://github.com/turbolabit/zzfirewall
Last synced: 5 months ago
JSON representation
iptables rules to shut off undesired connection and clients from certain geos
- Host: GitHub
- URL: https://github.com/turbolabit/zzfirewall
- Owner: TurboLabIt
- Created: 2022-06-02T08:41:40.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2026-01-20T09:30:18.000Z (5 months ago)
- Last Synced: 2026-01-20T19:10:58.372Z (5 months ago)
- Language: Shell
- Size: 167 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🔥🧱 zzfirewall 🧱🔥
iptables rules to shut off undesired connections and clients from certain geos
# Install
Just execute:
````bash
sudo apt install curl -y && curl -s https://raw.githubusercontent.com/TurboLabIt/zzfirewall/master/setup.sh?$(date +%s) | sudo bash
````
Now copy the provided sample configuration file (`zzfirewall.default.conf`) to your own `zzfirewall.conf` and set your preference:
````bash
sudo cp /usr/local/turbolab.it/zzfirewall/zzfirewall.default.conf /etc/turbolab.it/zzfirewall.conf && sudo nano /etc/turbolab.it/zzfirewall.conf
````
# Shields Up!
````bash
sudo zzfirewall
````
# Restrict SSH access
If you want to limit SSH access to pre-approved hosts, create a file and add your IPs/DDNS (one per line):
````bash
sudo nano /etc/turbolab.it/zzfirewall-whitelist.conf && sudo zzfirewall-whitelist-update
````
# Emergency firewall reset
````bash
sudo zzfirewall-reset
````
# For the maintainers: update the lists
````bash
sudo zzfirewall-generate
````