You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

17 lines
289 B

#!/usr/bin/env bash
# Install firewall
script_dir="$(cd -P "$(dirname "$BASH_SOURCE")" && pwd)"
cd $script_dir
. set.sh
SSH_PORT=${1:-521}
apt-get -y install ufw
ufw logging off
ufw allow in "$SSH_PORT"/tcp
ufw allow in 27960:27969/tcp
ufw allow in 27960:27969/udp
ufw --force enable