Last active
October 28, 2021 18:53
-
-
Save wwalker/a485b1ff6b69d4a4b7d4734d77d343b4 to your computer and use it in GitHub Desktop.
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
When I do the following, I can then access prometheus node exporter (9100/tcp) from my house, | |
but I can no longer ssh in from my house (I can ssh in from ANYWHERE ELSE just fine. | |
What is wrong with this: |
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
firewall-cmd --new-zone=prometheus-access --permanent && \ | |
firewall-cmd --zone=prometheus-access --add-source=70.113.112.171/32 --permanent && \ | |
firewall-cmd --zone=prometheus-access --add-port=9100/tcp --permanent && \ | |
firewall-cmd --reload |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Turns out that adding a source to a zone means that ALL traffic from that source goes into that zone.