From 14a892e627a375334a02381351f139d94ad7ecf3 Mon Sep 17 00:00:00 2001 From: ダカマ Date: Mon, 2 Jun 2025 13:08:46 +0200 Subject: First dump --- firewallsetup/README.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 firewallsetup/README.md (limited to 'firewallsetup/README.md') diff --git a/firewallsetup/README.md b/firewallsetup/README.md new file mode 100644 index 0000000..58ed5b4 --- /dev/null +++ b/firewallsetup/README.md @@ -0,0 +1,28 @@ +# firewallsetup +## Fast Firewall Setup + +This is a script for setting up a firewall with settings for tarpitting ssh and basic protections that everyone needs. + +## Download the rules to /etc/ +``` +git clone https://github.com/ChrisTitusTech/firewallsetup.git +```` +## Make the Rules Permenant +### Debian-based Distributions +``` +sudo apt install iptables-persistent +sudo /etc/init.d/netfilter-persistent save +``` +### Arch Linux Distributions +*Use iptable-save which is pre-installed* +``` +sudo iptables-save > /etc/iptables/iptables.rules +``` +### RHEL / CentOS Distributions +*This is by far the simpliest way to save rules and check them # chkconfig --list | grep iptables* + +*Note: chkconfig iptables on only needs to be run once to turn the service on* +``` +sudo chkconfig iptables on +sudo service iptables save +``` -- cgit v1.2.3