Re: ip accounting for ftp

Glynn Clements (glynn@sensei.co.uk)
Wed, 14 Oct 1998 08:58:48 +0100 (BST)


chris wrote:

> Thanks for the help with setting up accounting but one small hitch ..
> ftp !
>
> when I use prot 21 I never seem to get any trafic
> I think my rules are ok , they seem to work for stmp,pop and www
>
> ALL="0.0.0.0/0"
>
> /sbin/ipfwadm -A out -a -P tcp -S $PPPREMOTE -D $ALL $PORT -x

Odd. Note that port 21 is only the control channel, so you won't see
*much* traffic, but you should see some.

For active-mode FTP, adding a rule with a remote port of 20 will count
the traffic on the data channel. You can't track passive-mode FTP, as
both ends use ephemeral ports.

-- 
Glynn Clements <glynn@sensei.co.uk>
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.rutgers.edu