Files

9 lines
191 B
Bash
Raw Permalink Normal View History

2025-07-01 20:45:31 +05:30
#!/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