[lug] Re: [CLUE-Tech] Setting up a running list of IP masqerade entries...

celttechie (Brian Jarrett) celttechie at yahoo.com
Tue Mar 13 08:19:08 MST 2001

I'll have to look into this one also.

Thanks to all who replied...
I created a script that combines a couple of the suggested approaches:


echo 'enter string to grep'
read grepstring

while :
    netstat -Mn | grep $grepstring
    sleep 5

exit 0

I found that the listing was getting too long on the console and so I
decided to add the ability to only display certain entries using grep.
Eventually I think I'll work on a larger script that will log certain
connections to a file that I could then print out (or just send it directly
to a dot-matrix printer.)  I'll probably want to add a way to exit or change
what's displayed without exiting the script, but this crude piece works for

I used 'netstat -Mn' so the display wasn't waiting for name resolution.


----- Original Message -----
From: "Brandon N" <bneill at yahoo.com>
To: <clue-tech at clue.denver.co.us>
Sent: Thursday, March 08, 2001 3:31 PM
Subject: Re: [CLUE-Tech] Setting up a running list of IP masqerade

> this might help. just tail the log file.
> http://freshmeat.net/projects/linuxmasqueraderlogpatch/
> --- "celttechie (Brian Jarrett)" <celttechie at yahoo.com> wrote:
> > Hello all,
> >
> > I am able to run ipchains from an ssh session to view current
> > masqueraded connections.  I'm wondering if there is already something
> > created, or how I might go about creating a solution, to show these
> > connections in real time over the ssh terminal.
> >
> > Does anyone have any ideas?  Even something similar to the output of
> > tail would be OK, although I don't think it would update the list,
> > only show new connections being made.
> >
> > TIA,
> > Brian Jarrett
> >
> __________________________________________________
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail.
> http://personal.mail.yahoo.com/
> _______________________________________________
> CLUE-Tech mailing list
> CLUE-Tech at clue.denver.co.us
> http://clue.denver.co.us/mailman/listinfo/clue-tech

Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

More information about the LUG mailing list