Skip to content

Instantly share code, notes, and snippets.

@wwalker
Last active October 28, 2021 18:53
Show Gist options
  • Save wwalker/a485b1ff6b69d4a4b7d4734d77d343b4 to your computer and use it in GitHub Desktop.
Save wwalker/a485b1ff6b69d4a4b7d4734d77d343b4 to your computer and use it in GitHub Desktop.
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:
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
@wwalker
Copy link
Author

wwalker commented Oct 28, 2021

Turns out that adding a source to a zone means that ALL traffic from that source goes into that zone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment