
This script is working on all Linux standard distribution, but use at your own risk! The script has been made to automated the creation of iptables rules. There is an easy to use menu as well
root:~# ./firewall.sh
Firewall script by www.waltercedric.com
Credits to all various authors - GNU/GPL 3.0 Script
Choose one of the following options:
[N]ew firewall rules
[C]lear all firewall rules
[T]est firewall rules
[S]ave firewall rules to /etc/network/iptables
[E]xit
Features
Use iptables
Allow or disallow most services (dns, http, ftp, smtp, icmp, ntp, ssh …),
Protect ssh against too many login attempt in a timeframe,
Protect ssh and allow only one ip to use that services,
Harden the webserver by dropping illegal http packets,
Easy to read and extend script written in bash,
GNU/GPL 3.0 Script,
To use it, just edit the file firewall.sh and change the variables.
Read more: Restrictive Iptables Based Firewall for Webserver script
Category: Linux
Published Date
Written by Administrator
Hits: 442