This repository has been archived on 2020-03-04. You can view files and clone it, but cannot push or open issues or pull requests.
firewall/ufw.sh

20 lines
359 B
Bash

#!/bin/bash
# Incoming services
ufw allow proto tcp from any to any port 22,80,443,2200,2422,2442,25565,51413
IPS=(
"68.183.220.24"
"68.183.219.248"
"157.230.31.163"
"45.77.55.222"
"104.248.141.204"
)
for ((i = 0; i<${#IPS[@]}; i++));do
ufw allow from ${IPS[${i}]}
done
ufw default deny incoming
ufw default reject routed
ufw default allow outgoing