Skip to content

Instantly share code, notes, and snippets.

@sagarpanchal
Created June 3, 2017 11:37
Show Gist options
  • Save sagarpanchal/c2bda4df2cc6027d8f40203b18db7a54 to your computer and use it in GitHub Desktop.
Save sagarpanchal/c2bda4df2cc6027d8f40203b18db7a54 to your computer and use it in GitHub Desktop.
su
chmod 751 /etc/default/ufw /lib/ufw/ufw-init /etc/ufw/ufw.conf /usr/sbin/ufw /etc/ufw/applications.d/ufw-bittorent /etc/ufw/applications.d/ufw-directoryserver /etc/ufw/applications.d/ufw-loginserver /etc/ufw/applications.d/ufw-dnsserver /etc/ufw/applications.d/ufw-proxyserver /etc/ufw/applications.d/ufw-webserver /etc/ufw/applications.d/ufw-chat /etc/ufw/applications.d/ufw-printserver /etc/ufw/applications.d/ufw-fileserver /etc/ufw/applications.d/ufw-mailserver
ufw enable && ufw default deny incoming && ufw default allow outgoing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment