UFW Off

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

UFW Off

Postby stebo12 on Mon Nov 25, 2013 11:25 am

-Linux Mint Mate 16 64bit
-Regular desktop use
-I am behind a router

UFW firewall seems to be off by default. Would you recommend turning it on or leaving it off?
stebo12
Level 1
Level 1
 
Posts: 12
Joined: Mon Nov 25, 2013 11:04 am

Linux Mint is funded by ads and donations.
 

Re: UFW Off

Postby OrangeCrate on Mon Nov 25, 2013 11:37 am

Personally, I have it enabled.

If you decide you want it, it's easy to do. At the command line...

Enable it:

Code: Select all
sudo ufw enable


Check that it worked:

Code: Select all
sudo ufw status



Here's the documentation. It should answer most if not all of any questions your might have. Do please note, that for most users, the default setup is fine for every day use:

https://help.ubuntu.com/community/UFW
OrangeCrate
Level 1
Level 1
 
Posts: 8
Joined: Wed Mar 25, 2009 10:06 am
Location: USA

Re: UFW Off

Postby stebo12 on Mon Nov 25, 2013 11:43 am

I usually turn it on, but this time I was debating whether the firewall is a performance hog or not AND whether I actually needed it?

Thanks.
stebo12
Level 1
Level 1
 
Posts: 12
Joined: Mon Nov 25, 2013 11:04 am

Re: UFW Off - SOLVED

Postby JCW2 on Mon Nov 25, 2013 4:48 pm

OrangeCrate wrote:Personally, I have it enabled...


Not sure about the OP, but I'm a Newbie running Maya Cinnamon (32-bit), so far only from a boot DVD and only through the GUI (also behind a router but paranoid). In the GUI the firewall appears to have only an inbound and an outbound on/off switch. Am I assuming correctly that the preferred settings would be inbound ON and outbound OFF? (Presumably that would use the default rules for inbound. I suppose turning outbound ON would deny everything?)

Or are there other choices offered by the GUI that I missed? -- JCW2
Last edited by JCW2 on Sun Dec 01, 2013 11:29 am, edited 1 time in total.
JCW2
Level 1
Level 1
 
Posts: 9
Joined: Mon Nov 25, 2013 4:11 pm

Re: UFW Off

Postby gold_finger on Mon Nov 25, 2013 6:32 pm

JCW2 wrote:Am I assuming correctly that the preferred settings would be inbound ON and outbound OFF?

Just the opposite. Incoming = Deny; Outgoing = Allow.
This will deny requests to connect to your computer from the internet unless it is in response to a connection your computer initiated -- eg. Firefox browser requesting a page to view. Random attempts from the internet to connect to your computer will be denied. Outgoing = Allow lets you connect when you try -- again FF browser trying to get online as an example.
Add "Solved" to title of thread if solution is found. (Go to your first post and hit "Edit" button.) This helps make it easier for others to find solutions that work.

Try Linux Beginner Search Engine for Linux questions.
gold_finger
Level 6
Level 6
 
Posts: 1340
Joined: Mon Mar 11, 2013 11:39 pm

Re: UFW Off

Postby TheDynamicHamza21 on Tue Nov 26, 2013 1:11 am

JCW2 wrote:
OrangeCrate wrote:Personally, I have it enabled...


Not sure about the OP, but I'm a Newbie running Maya Cinnamon (32-bit), so far only from a boot DVD and only through the GUI (also behind a router but paranoid). In the GUI the firewall appears to have only an inbound and an outbound on/off switch. Am I assuming correctly that the preferred settings would be inbound ON and outbound OFF? (Presumably that would use the default rules for inbound. I suppose turning outbound ON would deny everything?)

Or are there other choices offered by the GUI that I missed? -- JCW2




It is well known that the GUI (Gufw) doesn't work as intended. Even if you enable UFW using the GUI,Gufw it will display UFW is disabled everytime you restart your computer,even though it is indeed enabled. That's why most linux users just use "sudo ufw enable" rather the gufw. Set it and forget it. Unless you have particular needs you just set once and don't worry about it.
Linux Registered User: # 573034

www.domeshotsandfatlaces.com
User avatar
TheDynamicHamza21
Level 5
Level 5
 
Posts: 729
Joined: Thu Oct 04, 2012 7:24 pm
Location: California

Re: UFW Off

Postby stebo12 on Tue Nov 26, 2013 6:29 pm

TheDynamicHamza21 wrote:
JCW2 wrote:
OrangeCrate wrote:Personally, I have it enabled...


Not sure about the OP, but I'm a Newbie running Maya Cinnamon (32-bit), so far only from a boot DVD and only through the GUI (also behind a router but paranoid). In the GUI the firewall appears to have only an inbound and an outbound on/off switch. Am I assuming correctly that the preferred settings would be inbound ON and outbound OFF? (Presumably that would use the default rules for inbound. I suppose turning outbound ON would deny everything?)

Or are there other choices offered by the GUI that I missed? -- JCW2




It is well known that the GUI (Gufw) doesn't work as intended. Even if you enable UFW using the GUI,Gufw it will display UFW is disabled everytime you restart your computer,even though it is indeed enabled. That's why most linux users just use "sudo ufw enable" rather the gufw. Set it and forget it. Unless you have particular needs you just set once and don't worry about it.


I've been told a good answer on the Gufw and the reason why it shows disabled. When you check your firewall status via the gufw, it will show 'Off' because you do not have root access to view the 'status' of the firewall...so when you use the 'unlock' button in the GUI, the 'status' becomes available and shows "On". So I believe it is working as intended, you only need root access to view the firewall status.
stebo12
Level 1
Level 1
 
Posts: 12
Joined: Mon Nov 25, 2013 11:04 am

Re: UFW Off

Postby JCW2 on Sat Nov 30, 2013 11:02 am

Thanks to all for useful explanations! -- JCW2
JCW2
Level 1
Level 1
 
Posts: 9
Joined: Mon Nov 25, 2013 4:11 pm

Linux Mint is funded by ads and donations.
 

Return to Newbie Questions

Who is online

Users browsing this forum: bgast1, Bing [Bot], ColinWhite, GenChildren, Google Adsense [Bot] and 46 guests