Ask Your Question
1

How do I control my firewall?

asked 2015-03-06 18:57:46 -0500

markito3 gravatar image

In the old days it was called "iptables" if memory serves. I suspect it is something different now. I want to see (a) is my firewall running (b) what if anything is being blocked. Don't know how to do either.

edit retag flag offensive close merge delete

Comments

Thanks for those suggestions.

I am still confused about zones, interfaces, etc., but that probably my problem.

Perhaps I should just state what I am trying to do: 1) I have a wireless router, configured to forward port 80 to my desktop machine. 2) I am running httpd on the desktop, listening on port 80. 3) I want to make sure that my firewall is not standing in the way.

I suppose I could just drop the firewall altogether, but I am not even sure how to do that.

markito3 gravatar imagemarkito3 ( 2015-03-11 19:37:35 -0500 )edit

5 Answers

Sort by ยป oldest newest most voted
4

answered 2015-03-07 06:42:27 -0500

mclmmc gravatar image

now is called: firewalld

(read the documentation at official site)

with systemctl you can see its status (enabled/disable/running)

firewall-cmd cli command

firewall-cmd --zone=home --list-services
firewall-cmd --permanent --zone=public --add-port=514/udp

firewall-config graphic tool

firewall-offline-cmd cli command to use when firewalld isn't running

edit flag offensive delete link more
3

answered 2015-03-07 06:25:52 -0500

osfriese gravatar image

iptables is still in use. You can use

sudo iptables -L

to see your firewall status. The difference today is that firewalld is used to set up iptables. You can configure your firewall with

firewall-config

For further information have a look at Using Firewalls

edit flag offensive delete link more
2

answered 2015-03-07 03:40:21 -0500

Glenn gravatar image

To try to answer part "a" of your question...

To see if your firewall is running execute the following command in a terminal.

systemctl status firewalld.service

You should see something like this:

โ— firewalld.service - firewalld - dynamic firewall daemon
   Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled)
   Active: active (running) since Thu 2015-03-05 06:07:15 EST; 1 day 22h ago
 Main PID: 550 (firewalld)
   CGroup: /system.slice/firewalld.service
           โ””โ”€550 /usr/bin/python -Es /usr/sbin/firewalld --nofork --nopid
Mar 05 06:07:14 phenom systemd[1]: Starting firewalld - dynamic firewall daemon...
Mar 05 06:07:15 phenom systemd[1]: Started firewalld - dynamic firewall daemon.

Notice that the output includes the words "active" and "enabled". My firewall is up and running.

There is also the firewall-cmd command. To get the state of firewalld execute in a terminal the following:

firewall-cmd --state
running

My firewall is shown as "running".

Have a look here. There is a lot of useful information there.

edit flag offensive delete link more
0

answered 2015-03-13 08:55:02 -0500

darakus gravatar image

I think most of your problems will be solved by reading the Using Firewalls link that osfriese posted.

I just wanted to add that there is a gui configuration tool that has been helpful for me working with the firewall on a desktop system in the past. It's fairly straightforward and available in the Software, its called....Firewall.

edit flag offensive delete link more
0

answered 2015-03-12 20:02:48 -0500

markito3 gravatar image

Dropped my firewall on my desktop:

systemctl stop firewalld

That allowed remote connections to the webserver. Probably will explore a more focused relaxation of the firewall, but for now problem solved.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2015-03-06 18:57:46 -0500

Seen: 978 times

Last updated: Mar 13 '15