Created
June 14, 2021 15:10
-
-
Save DorkNstein/d5d13e9015a9d7c50d571366e9128e6d to your computer and use it in GitHub Desktop.
Azure open firewall to all specific port from RedHat VM.
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
# 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