Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/christitustech/firewallsetup
Fast Firewall Setup
https://github.com/christitustech/firewallsetup
Last synced: 7 days ago
JSON representation
Fast Firewall Setup
- Host: GitHub
- URL: https://github.com/christitustech/firewallsetup
- Owner: ChrisTitusTech
- Created: 2019-06-24T01:18:10.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-07-12T18:12:49.000Z (over 2 years ago)
- Last Synced: 2024-12-10T14:02:02.701Z (16 days ago)
- Language: Shell
- Size: 10.7 KB
- Stars: 164
- Watchers: 11
- Forks: 83
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# firewallsetup
## Fast Firewall SetupThis 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
```