LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-22-2015, 03:10 PM   #1
Skiph
LQ Newbie
 
Registered: Mar 2015
Location: New Braunfels, TX
Posts: 9

Rep: Reputation: Disabled
firewall-cmd --state "not running"


I have been flailing trying to get a web server running on Fedora 21.

Finally did so.

I have my iptables working (me thinks) as they should. I can connect from my Linux box (local) or from my Mac on the same network/subnet.

Problem is in my "travels" I have somehow trashed my firewall-cmd.

I was adding parameters to it w/o issue. E.G
firewall-cmd --zone=public --add-port=80/tcp --permanent
Then restarting firewall-cmd
firewall-cmd --realod

This was all working. I "fixed" my problem with connecting to my web server from other LAN workstations (iptables issues) and was going back to see if all was well. Now when I try to restart I get a:
FirewallD is not running
That from my "reload" command above.

Have I fixed my web server issue or is my world wide open att?

Assistance, as always, greatly appreciated.

Skip
 
Old 03-23-2015, 08:27 AM   #2
mddnix
Member
 
Registered: Mar 2013
Location: Bengaluru, India
Distribution: Redhat, Arch, Ubuntu
Posts: 498

Rep: Reputation: 137Reputation: 137
Probably firewalld service unit is not running. Did you try

Code:
# systemctl enable firewalld
What does the following commands say?
Code:
# systemctl is-enabled firewalld
# systemctl is-active firewalld

Last edited by mddnix; 03-23-2015 at 08:29 AM.
 
Old 03-23-2015, 10:46 AM   #3
Skiph
LQ Newbie
 
Registered: Mar 2015
Location: New Braunfels, TX
Posts: 9

Original Poster
Rep: Reputation: Disabled
# systemctl enable firewalld
# systemctl is-enabled firewalld
enabled
# systemctl is-active firewalld
inactive
# firewall-cmd --reload
FirewallD is not running
#

Those were some commands I have now learned. However...no joy.

What are the ramifications of NOT having firewallD running?

Thank you, mddesai, for your response.
 
Old 03-23-2015, 11:46 AM   #4
mddnix
Member
 
Registered: Mar 2013
Location: Bengaluru, India
Distribution: Redhat, Arch, Ubuntu
Posts: 498

Rep: Reputation: 137Reputation: 137
by issuing enable, firewalld service unit is configured to automatically start at next boot, however to to start it now, you have issue

Code:
systemctl start firewalld
 
1 members found this post helpful.
Old 03-24-2015, 12:06 AM   #5
zafar_dandoti
Member
 
Registered: Dec 2005
Location: India
Distribution: centos
Posts: 169

Rep: Reputation: Disabled
Did u enable iptables as well Which would be conflicting with firewalld?
 
1 members found this post helpful.
Old 03-25-2015, 08:54 AM   #6
Skiph
LQ Newbie
 
Registered: Mar 2015
Location: New Braunfels, TX
Posts: 9

Original Poster
Rep: Reputation: Disabled
Well, kiss my never mind!

The "systemctl start firewalld" (suggestion from mddesai) did the trick. I SWEAR i tried this before. Maybe in another life or another dimension, I guess.

Maybe one day, I will understand what I just did.

I have NO idea if this conflicts with iptables or not (afar_dandoti). If Linux is magic, iptables is black magic.

You guys are just as handy as a pocket on a shirt!

Skip
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
"nmcli con" failed "Can't obtain connections: settings service is not running." parcox Slackware 2 08-14-2012 05:26 PM
How to set the font-size for "xterm" terminal-emulator (running "bash" shell) ajaygarg Linux - Desktop 1 03-09-2012 01:38 PM
"TOP" Command keeps going to "stopped" state mudtoe Linux - Newbie 3 03-10-2009 12:15 AM
How to read "identify" button press event, or state of "identify" blue led with IPMI? iav Linux - Server 0 01-27-2009 02:13 PM
CSH: "cmd >& file" or "cmd </dev/null >& file" stefanlasiewski Programming 1 09-08-2003 05:19 PM


All times are GMT -5. The time now is 02:27 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration