Difference between revisions of "Gufw Firewall"

From MyWiki
Jump to: navigation, search
Line 5: Line 5:
 
     '''sudo ufw enable'''
 
     '''sudo ufw enable'''
 
  To check the status of UFW:
 
  To check the status of UFW:
'''sudo ufw status verbose'''
+
    '''sudo ufw status verbose'''
 
  The output should be like this:
 
  The output should be like this:
 
  youruser@yourcomputer:~$ '''sudo ufw status verbose'''
 
  youruser@yourcomputer:~$ '''sudo ufw status verbose'''
Line 15: Line 15:
 
  youruser@yourcomputer:~$
 
  youruser@yourcomputer:~$
 
  Note that by default, deny is being applied to incoming. There are exceptions, which can be found in the output of this command:
 
  Note that by default, deny is being applied to incoming. There are exceptions, which can be found in the output of this command:
'''sudo ufw show raw'''
+
    '''sudo ufw show raw'''
 
  You can also read the rules files in /etc/ufw (the files whose names end with .rules).
 
  You can also read the rules files in /etc/ufw (the files whose names end with .rules).
 
  Disable UFW
 
  Disable UFW
 
  To disable ufw use:
 
  To disable ufw use:
'''sudo ufw disable'''
+
    '''sudo ufw disable'''

Revision as of 12:45, 25 May 2014

https://help.ubuntu.com/community/UFW
Enable and Disable
Enable UFW
To turn UFW on with the default set of rules:
    sudo ufw enable
To check the status of UFW:
    sudo ufw status verbose
The output should be like this:
youruser@yourcomputer:~$ sudo ufw status verbose
[sudo] password for youruser:
Status: active
Logging: on (low)
Default: deny (incoming), allow (outgoing)
New profiles: skip
youruser@yourcomputer:~$
Note that by default, deny is being applied to incoming. There are exceptions, which can be found in the output of this command:
    sudo ufw show raw
You can also read the rules files in /etc/ufw (the files whose names end with .rules).
Disable UFW
To disable ufw use:
    sudo ufw disable