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
DOCKER_EE_URL="Put your Docker EE url here" | |
DOCKER_EE_VERSION=18.09 | |
sudo apt-get remove docker docker-engine docker-ce docker.io | |
sudo apt-get update -y | |
sudo apt-get install -y \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
software-properties-common | |
curl -fsSL "${DOCKER_EE_URL}/ubuntu/gpg" | sudo apt-key add - |
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
#This iptables snippet enables port 22, 80 and 443 only. | |
#WARNING: YOU HAVE TO EXECUTE THE 1ST COMMAND TO AVOID SELF BLOCKING, IF YOU DON'T TYPE THIS COMMAND THEN YOI'LL BE BLOCKED FROM ACCESSING YOUR SERVER. | |
#Accept active connecion (void self blocking) | |
iptables -A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT | |
#Accept loopback connections | |
iptables -A INPUT -i lo -j ACCEPT | |
#Allow port 22 (ssh) |