9 lines
191 B
Bash
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
|