Created
February 27, 2016 17:13
-
-
Save sumitdhameja/01dc7596c47f6bbbec4d to your computer and use it in GitHub Desktop.
Configure Firewall
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#--------------------------- | |
# 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