LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-08-2006, 06:13 AM   #1
pshankland
Member
 
Registered: Feb 2006
Location: UK
Distribution: CentOS 5.5
Posts: 46

Rep: Reputation: 15
iptables - viewing live log


How can I view, through SSH, the data going through my iptables firewall? I know this can be done as I have done it before but I am currently having a bit of a mental block!

Thanks.
 
Old 03-08-2006, 06:59 AM   #2
manya
Member
 
Registered: Apr 2004
Posts: 194

Rep: Reputation: 15
Hi

You can use iptstate command..it shows what exactly is happening thorugh IPtables rules
 
Old 03-08-2006, 07:32 AM   #3
pshankland
Member
 
Registered: Feb 2006
Location: UK
Distribution: CentOS 5.5
Posts: 46

Original Poster
Rep: Reputation: 15
How do I use that?

THanks.
 
Old 03-13-2006, 04:44 AM   #4
pshankland
Member
 
Registered: Feb 2006
Location: UK
Distribution: CentOS 5.5
Posts: 46

Original Poster
Rep: Reputation: 15
Anybody able to help me with the usage of ipstate?

Thanks.
 
Old 03-13-2006, 05:11 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608
Download tool, read man page, try. *Then* ask.
 
Old 03-13-2006, 05:15 AM   #6
pshankland
Member
 
Registered: Feb 2006
Location: UK
Distribution: CentOS 5.5
Posts: 46

Original Poster
Rep: Reputation: 15
Appear to have ipstate installed as it is located in /dev/ipstate. Problems is when I run /dev/ipstate --help I get Permission Denied error even though I am logged in as root.

I don't think that ipstate is what I am after anyway as I have been able to look at the live data going through the tptables firewall before but simply can't remember how I did it.

BTW - I HAVE looked at google and through this forum for ipstate help but have had no luck in finding anything.
 
Old 03-13-2006, 05:22 AM   #7
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Try googling on 'iptables ipstate' - I haven't tried ipstate but these were returned:
http://info.ccone.at/INFO/Mail-Archi.../msg03252.html
http://www.supporting-role.net/softw...tware-list.php
 
Old 03-13-2006, 05:38 AM   #8
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608
Appear to have ipstate installed as it is located in /dev/ipstate. Problems is when I run /dev/ipstate --help I get Permission Denied error even though I am logged in as root.
Iptstate is *not* a device. It's an app, here: http://www.phildev.net/iptstate/.


I don't think that ipstate is what I am after anyway as I have been able to look at the live data going through the tptables firewall before but simply can't remember how I did it.
Iptstate provides a "top"-like view of connections and their state and will allow you to sort traffic by criteria. Tailing your firewall log doesn't compare to what you can do with iptstate.

Last edited by unSpawn; 03-13-2006 at 05:39 AM. Reason: //have keybd, cant type.
 
Old 03-13-2006, 06:45 AM   #9
pshankland
Member
 
Registered: Feb 2006
Location: UK
Distribution: CentOS 5.5
Posts: 46

Original Poster
Rep: Reputation: 15
Have installed iptstate but not really what I was after (thanks though).

What I wanted was to see the information as it comes through the firewall and not the 'top' view.

Any other suggestions?

Thanks.
 
Old 03-13-2006, 08:10 AM   #10
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608
Well, as I said in my previous post, you could use tail -f /some/system/logfile (usually "messages": check /etc/syslog.conf and provided you have "-j LOG" targets defined in your firewall rules). That'll just provide a stream of loglines w/o any coherence unless you're a speedreader with an optimised mental cache :-]
 
Old 03-13-2006, 08:57 AM   #11
pshankland
Member
 
Registered: Feb 2006
Location: UK
Distribution: CentOS 5.5
Posts: 46

Original Poster
Rep: Reputation: 15
that was what I was after.

Thanks.
 
  


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
Deleted /var/log/messages, can't log any files-iptables chingyenccy Linux - Newbie 7 02-27-2005 04:03 PM
Looking for a package, log viewing jbeiter Linux - Software 6 01-10-2005 08:53 AM
IPtables Log Analyzer from http://www.gege.org/iptables/ brainlego Linux - Software 0 08-11-2003 06:08 AM
viewing the boot log/dialogue? bigjohn Linux - Software 22 07-28-2003 05:22 PM
iptables, changing log file from /var/log/messages acid2000 Linux - Networking 3 03-11-2003 08:38 PM

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

All times are GMT -5. The time now is 07:31 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
Open Source Consulting | Domain Registration