Skip to content

Instantly share code, notes, and snippets.

@HayatoDoi
Last active November 2, 2017 20:50
Show Gist options
  • Save HayatoDoi/6dec9f66bfb1441a9390a789f35c3f13 to your computer and use it in GitHub Desktop.
Save HayatoDoi/6dec9f66bfb1441a9390a789f35c3f13 to your computer and use it in GitHub Desktop.
firewalld_memo_for_virtualbox.md
apt-get install firewalld
systemctl start firewalld
systemctl enable firewalld
firewall-cmd --permanent --new-zone=hostonly
firewall-cmd --permanent --add-port=0-65535/tcp --zone=hostonly
firewall-cmd --permanent --add-port=0-65535/udp --zone=hostonly
firewall-cmd --permanent --zone=hostonly --change-interface=<interface_name>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment