LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 08-15-2009, 02:10 PM   #1
judoka
Member
 
Registered: Jul 2009
Distribution: Ubuntu 14.04 LTS, CentOS
Posts: 218

Rep: Reputation: 16
Smile 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?
 
Old 08-15-2009, 02:12 PM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
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
 
Old 08-15-2009, 02:47 PM   #3
Completely Clueless
Member
 
Registered: Mar 2008
Location: Marbella, Spain
Distribution: Many and various...
Posts: 814

Rep: Reputation: 69
Quote:
Originally Posted by judoka View Post
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.
 
Old 08-15-2009, 02:51 PM   #4
judoka
Member
 
Registered: Jul 2009
Distribution: Ubuntu 14.04 LTS, CentOS
Posts: 218

Original Poster
Rep: Reputation: 16
Is there a way to check your firewall internally? Or to see of it's even up form the commandline or some graphical interface?
 
Old 08-15-2009, 02:52 PM   #5
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
as root
Code:
iptables -L
 
Old 08-15-2009, 03:15 PM   #6
Completely Clueless
Member
 
Registered: Mar 2008
Location: Marbella, Spain
Distribution: Many and various...
Posts: 814

Rep: Reputation: 69
Quote:
Originally Posted by repo View Post
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.
 
Old 08-15-2009, 03:20 PM   #7
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
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.
 
Old 08-15-2009, 03:38 PM   #8
w1k0
Senior Member
 
Registered: May 2008
Location: Poland
Distribution: Slackware, Mint
Posts: 1,252

Rep: Reputation: 205Reputation: 205Reputation: 205
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.
 
Old 08-15-2009, 11:30 PM   #9
judoka
Member
 
Registered: Jul 2009
Distribution: Ubuntu 14.04 LTS, CentOS
Posts: 218

Original Poster
Rep: Reputation: 16
w1ko I dont have a /etc/syslog.conf file, is there another way?
 
Old 08-16-2009, 02:22 AM   #10
rashid_47010
LQ Newbie
 
Registered: Nov 2004
Location: Saudi Arabia
Distribution: CentOS/Fedora
Posts: 27

Rep: Reputation: 16
for viewing your firewall

give below command

iptables -nvL


this will give you complete description.
 
Old 08-16-2009, 05:03 AM   #11
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
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.
 
Old 08-16-2009, 10:34 AM   #12
w1k0
Senior Member
 
Registered: May 2008
Location: Poland
Distribution: Slackware, Mint
Posts: 1,252

Rep: Reputation: 205Reputation: 205Reputation: 205
Quote:
Originally Posted by judoka View Post
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.
 
Old 08-16-2009, 04:14 PM   #13
judoka
Member
 
Registered: Jul 2009
Distribution: Ubuntu 14.04 LTS, CentOS
Posts: 218

Original Poster
Rep: Reputation: 16
Thanks a bunch everybody
 
Old 08-16-2009, 07:23 PM   #14
w1k0
Senior Member
 
Registered: May 2008
Location: Poland
Distribution: Slackware, Mint
Posts: 1,252

Rep: Reputation: 205Reputation: 205Reputation: 205
Quote:
Originally Posted by judoka View Post
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.
 
  


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
Folder View or graphical view login using ssh caliskans Linux - Newbie 2 07-05-2009 05:57 PM
View As HTML / View As Text button craig467 Programming 4 01-22-2008 05:54 PM
KDE Konqueror View Mode Icons (Image Preview/Tree View) sadarax Linux - General 7 06-27-2006 01:45 PM
how to view movies that only windows media player can view? servnov Linux - General 7 02-08-2006 11:42 AM
W2K cannot view samba share but can view NT FiveFlat Linux - Software 3 06-10-2005 03:54 PM


All times are GMT -5. The time now is 12:55 PM.

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