Skip to content

Instantly share code, notes, and snippets.

@rilindo
Created February 6, 2016 03:12
Show Gist options
  • Save rilindo/39cc42f80705114f3441 to your computer and use it in GitHub Desktop.
Save rilindo/39cc42f80705114f3441 to your computer and use it in GitHub Desktop.
The right way to forward ports
firewall-cmd --zone=public --add-masquerade
firewall-cmd --add-forward-port port=4404:proto=tcp:toport=22:toaddr=192.168.15.10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment