Skip to content

Instantly share code, notes, and snippets.

@DorkNstein
Created June 14, 2021 15:10
Show Gist options
  • Save DorkNstein/d5d13e9015a9d7c50d571366e9128e6d to your computer and use it in GitHub Desktop.
Save DorkNstein/d5d13e9015a9d7c50d571366e9128e6d to your computer and use it in GitHub Desktop.
Azure open firewall to all specific port from RedHat VM.
# Open port 22 (example)
# (RHEL/CentOS/Fedora)
sudo firewall-cmd --permanent --add-port=22/tcp
sudo firewall-cmd --reload
# (Debian/Ubuntu)
sudo ufw allow 22/tcp
sudo ufw reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment