Skip to content

Instantly share code, notes, and snippets.

@yano3
Created June 3, 2012 07:07
Show Gist options
  • Save yano3/2862354 to your computer and use it in GitHub Desktop.
Save yano3/2862354 to your computer and use it in GitHub Desktop.
ufw setting
$ sudo ufw status
Status: inactive
$ sudo ufw default deny
Default incoming policy changed to 'deny'
(be sure to update your rules accordingly)
$ sudo ufw allow ssh
Rules updated
$ sudo ufw enable
Command may disrupt existing ssh connections. Proceed with operation (y|n)? y
Firewall is active and enabled on system startup
$ sudo ufw status
Status: active
To Action From
-- ------ ----
22 ALLOW Anywhere
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment