Skip to content

Instantly share code, notes, and snippets.

@blackknight36
Last active May 12, 2017 20:45
Show Gist options
  • Save blackknight36/835c683657ad6eeb22764eef5e1e1bf0 to your computer and use it in GitHub Desktop.
Save blackknight36/835c683657ad6eeb22764eef5e1e1bf0 to your computer and use it in GitHub Desktop.
Port forward port 8080 to another box.
firewall-cmd --zone=public --add-masquerade --permanent
firewall-cmd --zone=public --add-forward-port=port=443:proto=tcp:toport=3001 --permanent
firewall-cmd --reload
Note: This only works from *outside* of the server. You can test by connecting to port 8080 from another host.
curl http://10.8.8.72:8080
Enable ssh logging.
firewall-cmd --permanent --zone=public --add-rich-rule='rule service name=ssh log prefix="SSH_" level="debug" limit value=2/m reject'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment