* [LARTC] Count no of hosts
@ 2003-02-07 7:47 CLS Prasad
2003-02-07 7:50 ` Stef Coene
2003-02-07 16:45 ` Martin A. Brown
0 siblings, 2 replies; 3+ messages in thread
From: CLS Prasad @ 2003-02-07 7:47 UTC (permalink / raw)
To: lartc
Is there any way to dynamically measure the no of concurrent internal hosts
(IP's) utilising the linux NAT Gateway/forwarding box.
The idea is to measure the no of hosts actively using the gateway. I do not
want to measure the no of TCP connections which iptraf does because it does
not give the actual no of hosts.
_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid963
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [LARTC] Count no of hosts
2003-02-07 7:47 [LARTC] Count no of hosts CLS Prasad
@ 2003-02-07 7:50 ` Stef Coene
2003-02-07 16:45 ` Martin A. Brown
1 sibling, 0 replies; 3+ messages in thread
From: Stef Coene @ 2003-02-07 7:50 UTC (permalink / raw)
To: lartc
On Friday 07 February 2003 08:35, CLS Prasad wrote:
> Is there any way to dynamically measure the no of concurrent internal hosts
> (IP's) utilising the linux NAT Gateway/forwarding box.
> The idea is to measure the no of hosts actively using the gateway. I do not
> want to measure the no of TCP connections which iptraf does because it does
> not give the actual no of hosts.
:)
On slashdot was an article about the same subject. It can be done if you
really want to do so.
http://slashdot.org/article.pl?sid\x03/02/05/2129218&mode=thread&tid•
Stef
--
stef.coene@docum.org
"Using Linux as bandwidth manager"
http://www.docum.org/
#lartc @ irc.oftc.net
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [LARTC] Count no of hosts
2003-02-07 7:47 [LARTC] Count no of hosts CLS Prasad
2003-02-07 7:50 ` Stef Coene
@ 2003-02-07 16:45 ` Martin A. Brown
1 sibling, 0 replies; 3+ messages in thread
From: Martin A. Brown @ 2003-02-07 16:45 UTC (permalink / raw)
To: lartc
: Is there any way to dynamically measure the no of concurrent internal
: hosts (IP's) utilising the linux NAT Gateway/forwarding box.
If you have root level access to the box, you can use a bit of shell to
determine the number of concurrent "clients" in any given instant. This
assumes, of course, that you don't have an internally SNATed/masqueraded
network which {c,w}ould hide more clients.
ipchains?
# /sbin/ipchains -MnL | awk '/[0-9][0-9]:[0-9][0-9]/{print $3}' \
> | sort | uniq | wc -l
iptables?
# awk '/(ESTABLISHED|ASSURED)/{print $5}' /proc/net/ip_conntrack \
> | sort | uniq
Naturally with iptables, you'll need to know a bit more about your use of
the connection tracking to disambiguate any inbound or internal to DMZ
connections to accurately count your SNAT/MASQUERADEd connections.
The above shell is not designed with efficiency in mind (obviously), but
you get the idea.
-Martin
--
Martin A. Brown --- SecurePipe, Inc. --- mabrown@securepipe.com
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-02-07 16:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-07 7:47 [LARTC] Count no of hosts CLS Prasad
2003-02-07 7:50 ` Stef Coene
2003-02-07 16:45 ` Martin A. Brown
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.