Skip to content

Instantly share code, notes, and snippets.

@dannyge
Last active July 16, 2016 10:25
Show Gist options
  • Save dannyge/b43a0065881c861b0d9b04bf6ee41887 to your computer and use it in GitHub Desktop.
Save dannyge/b43a0065881c861b0d9b04bf6ee41887 to your computer and use it in GitHub Desktop.
centos
firewall-cmd --zone=public --add-port=8080/tcp --permanent
firewall-cmd --zone=public --add-port=8070/tcp --permanent
firewall-cmd --reload
firewall-cmd --zone=public --list-all
######
firewall-cmd --zone=public --add-masquerade --permanent
firewall-cmd --zone=public --add-forward-port=port=3366:proto=tcp:toport=3306:toaddr=10.140.141.6 --permanent
firewall-cmd --zone=public --add-port=3306/tcp --permanent
firewall-cmd --reload
firewall-cmd --zone=public --list-all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment