An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# Simple script to configure iptables firewall

![Linux](https://img.shields.io/badge/Linux-FCC624?style=for-the-badge&logo=linux&logoColor=black)
![Bash Script](https://img.shields.io/badge/bash_script-%23121011.svg?style=for-the-badge&logo=gnu-bash&logoColor=white)

## 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