Skip to content

iptables rules to shut off undesired connection and clients from certain geos

Notifications You must be signed in to change notification settings

TurboLabIt/zzfirewall

Repository files navigation

🔥🧱 zzfirewall 🧱🔥

iptables rules to shut off undesired connections and clients from certain geos

Install

Just execute:

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:

sudo cp /usr/local/turbolab.it/zzfirewall/zzfirewall.default.conf /etc/turbolab.it/zzfirewall.conf && sudo nano /etc/turbolab.it/zzfirewall.conf

Shields Up!

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):

sudo nano /etc/turbolab.it/zzfirewall-whitelist.conf && sudo zzfirewall-whitelist-update

Emergency firewall reset

sudo zzfirewall-reset

For the maintainers: update the lists

sudo zzfirewall-generate

About

iptables rules to shut off undesired connection and clients from certain geos

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages