Last active
December 18, 2019 06:50
-
-
Save nuga99/c34c2b1871871c51a2854663e7127676 to your computer and use it in GitHub Desktop.
Config iptables VNC blocked
This file contains hidden or 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
iptables -F | |
iptables -X | |
iptables -t nat -F | |
iptables -t nat -X | |
iptables -t mangle -F | |
iptables -t mangle -X | |
iptables -P INPUT ACCEPT | |
iptables -P OUTPUT ACCEPT | |
iptables -P FORWARD ACCEPT |
This file contains hidden or 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
#Basically, Console Access option will open a VNC connection to your Droplet. | |
#VNC is a graphical desktop sharing system, where you see the screen of the Droplet on your computer. | |
#It normally uses a random port to connect the browser with the vnc service. | |
#Since multiple services are run on each machine that accommodates these Droplets, the port used will be a random one. | |
#Usually, it will be in the 5900-7000 range. | |
#Notes : some port may be blocked by ISP (Internet Service Provider) | |
sudo iptables -A INPUT -p tcp --dport 5800 -j ACCEPT # some port using 5800 to establish VNC Console | |
# or | |
sudo iptables -A INPUT -p tcp --dport 5900-7000 -j ACCEPT # some port using between port 5900-7000 | |
sudo netfilter-persistent save # to save the iptables rule |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment