Last active
May 12, 2017 20:45
-
-
Save blackknight36/835c683657ad6eeb22764eef5e1e1bf0 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
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