LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 02-13-2016, 07:14 PM   #1
linuxmac
LQ Newbie
 
Registered: Nov 2015
Posts: 11

Rep: Reputation: Disabled
Question UFW Firewall does not start after roboot on Ubuntu 14.04.3


All my Ubuntu 14.04.3 workstations do not start up the UFW firewall automatically after the computer is restarted. My ufw.config file is
# Set to yes to start on boot. If setting this remotely, be sure to add a rule
# to allow your remote connection before starting ufw. Eg: 'ufw allow 22/tcp'
ENABLED=yes

# Please use the 'ufw' command to set the loglevel. Eg: 'ufw logging medium'.
# See 'man ufw' for details.
LOGLEVEL=low
 
Old 02-13-2016, 07:45 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
Have you verified that ufw is not running in the background somewhere with the ps command?

Code:
ps -A | grep ufw
Note that ufw is not a firewall; it is a tool for configuring your firewall. Linux firewall capability is part of the kernel; it's called iptables. Once you have configured the firewall rules for iptables, there should be no need to run ufw unless you wish to change the firewall configuration.
 
Old 02-14-2016, 03:41 AM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Linux firewall capability is part of the kernel;
It's called Netfilter, 'iptables' is the user land management interface.


Quote:
Once you have configured the firewall rules for iptables, there should be no need to run ufw unless you wish to change the firewall configuration.
So instead test rules are loaded issuing (sudo) 'iptables-save;'.
 
Old 02-14-2016, 06:36 AM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Code:
sudo ufw enable
is the usual command to start and keep ufw running.

Code:
sudo ufw status
tells you its status.

IF
Code:
sudo ufw status
says "Status: inactive" after the enable command, then we can proceed.

Last edited by Habitual; 02-14-2016 at 07:46 AM.
 
Old 02-15-2016, 04:25 PM   #5
linuxmac
LQ Newbie
 
Registered: Nov 2015
Posts: 11

Original Poster
Rep: Reputation: Disabled
I found the reason all 3 do not start up. It is because the kernel version was not the latest 3.16.0-60 as of Feb-15-2016.

Strangely the kernel was not updated by sudo apt-get update of sudo apt-get upgrade.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu 14.04.3 UFW firewall hack linuxmac Linux - Security 3 12-30-2015 03:41 PM
LXer: Getting Started with UFW (Uncomplicated Firewall) on Ubuntu 15.04 LXer Syndicated Linux News 0 09-21-2015 02:31 PM
ufw firewall rhlnewbie Linux - Software 2 10-18-2009 03:23 PM
LXer: Ubuntu 9.10 UFW Firewall LXer Syndicated Linux News 0 10-15-2009 01:02 AM
LXer: Gufw - Simple GUI for ufw (Uncomplicated Firewall) in Ubuntu LXer Syndicated Linux News 0 09-30-2008 03:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 07:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration