LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do I view my firewall? (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-view-my-firewall-747783/)

judoka 08-15-2009 01:10 PM

How do I view my firewall?
 
I just built my firewall with fwbuilder. I'm running Ubuntu 9.04 and I would like to view the new firewall. Is it possible? If yes how? If no how do I check if it's working? And how can I see which ports are blocked and which are listening?

repo 08-15-2009 01:12 PM

You can use nmap from an external computer.
However there are sites where you can test the firewall.
http://www.google.be/search?q=online...ient=firefox-a

Completely Clueless 08-15-2009 01:47 PM

Quote:

Originally Posted by judoka (Post 3644539)
I just built my firewall with fwbuilder. I'm running Ubuntu 9.04 and I would like to view the new firewall. Is it possible? If yes how? If no how do I check if it's working? And how can I see which ports are blocked and which are listening?

Go to www.grc.com and hit 'shields up' to test all your ports.

judoka 08-15-2009 01:51 PM

Is there a way to check your firewall internally? Or to see of it's even up form the commandline or some graphical interface?

repo 08-15-2009 01:52 PM

as root
Code:

iptables -L

Completely Clueless 08-15-2009 02:15 PM

Quote:

Originally Posted by repo (Post 3644574)
as root
Code:

iptables -L

But it's not very user friendly at all!.

To the OP, if you do the suggested listing and see any entries marked DROP or REJECT your firewall is at *least* partially working.

repo 08-15-2009 02:20 PM

Quote:

your firewall is at *least* partially working.
why partially ?
why "not very user friendly at all!" ?

The OP wants to know if the firewall is running.

w1k0 08-15-2009 02:38 PM

To check if and how your firewall works you can add that line:

Code:

*.* /dev/tty12
to /etc/syslog.conf and then use that command:

Code:

/etc/rc.d/rc.syslog restart
In result system logs will be displayed on twelve console.

To see system logs press Ctrl+Alt+F12. To come back to X Window press Alt+F7.

The above commands and files work with Slackware. In your distribution it can be other commands and files.

judoka 08-15-2009 10:30 PM

w1ko I dont have a /etc/syslog.conf file, is there another way?

rashid_47010 08-16-2009 01:22 AM

for viewing your firewall

give below command

iptables -nvL


this will give you complete description.

repo 08-16-2009 04:03 AM

Quote:

w1ko I dont have a /etc/syslog.conf file, is there another way?
Depends on you distribution, take a look in
/var/log/*
However, if the log option isn't setup in your firewall, there won't be much info in the logfiles.

w1k0 08-16-2009 09:34 AM

Quote:

Originally Posted by judoka (Post 3644904)
w1ko I dont have a /etc/syslog.conf file, is there another way?

Go to ``Distributions'' forum: http://www.linuxquestions.org/questi...stributions-5/, select your distribution, start new thread, quote my post: http://www.linuxquestions.org/questi...3/#post3644616, and ask how you can do it in your distribution.

judoka 08-16-2009 03:14 PM

Thanks a bunch everybody:)

w1k0 08-16-2009 06:23 PM

Quote:

Originally Posted by judoka (Post 3645644)
Thanks a bunch everybody:)

If it's possible write here how you finally resolved your problem. It'll be nice for future readers of that thread to get to know your solution. We all are curious too.


All times are GMT -5. The time now is 10:53 PM.