https://github.com/katsudouki/iptables-shell
simple script to configure iptables firewall
https://github.com/katsudouki/iptables-shell
firewall firewall-rules iptables shellscript
Last synced: about 1 year ago
JSON representation
simple script to configure iptables firewall
- Host: GitHub
- URL: https://github.com/katsudouki/iptables-shell
- Owner: katsudouki
- License: mit
- Created: 2024-03-30T16:43:09.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-11T02:00:14.000Z (over 1 year ago)
- Last Synced: 2025-02-01T23:28:08.567Z (over 1 year ago)
- Topics: firewall, firewall-rules, iptables, shellscript
- Language: Shell
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple script to configure iptables firewall


## Install
```bash
git clone https://github.com/katsudouki/iptables-shell.git
cd iptables-shell
chmod +x iptables-shell.sh
sudo mv iptables-shell.sh /usr/bin/iptables-shell.sh
```
## Usage
to start the firewall run the command as root with sudo
```bash
sudo iptables-shell.sh start
```
to stop run
```bash
sudo iptables-shell.sh stop
```
and to
to start the firewall run the command as root with sudo
```bash
sudo iptables-shell.sh unlock $PORT
```
Don't forget to replace $PORT with the port number