Files
scripts/firewall.sh
2025-07-01 20:45:31 +05:30

9 lines
191 B
Bash

#!/bin/sh
echo Opening port \"$1\" in firewall
sudo iptables -I INPUT 6 -m state --state NEW -p tcp --dport $1 -j ACCEPT
echo Saving the changes to IPTables
sudo netfilter-persistent save