Skip to content

Instantly share code, notes, and snippets.

@sumitdhameja
Created February 27, 2016 17:13
Show Gist options
  • Save sumitdhameja/01dc7596c47f6bbbec4d to your computer and use it in GitHub Desktop.
Save sumitdhameja/01dc7596c47f6bbbec4d to your computer and use it in GitHub Desktop.
Configure Firewall
#---------------------------
# Confugure SSH
#---------------------------
apt-get install openssh-server -y
sed -i "s/Port .*/Port 6660/g" /etc/ssh/sshd_config
service ssh restart
#---------------------------
# Configure Firewall
#---------------------------
ufw allow 6660/tcp
ufw allow 8080:8090/tcp
ufw allow 6366/tcp
ufw allow 6466/tcp
ufw enable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment