[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: iptables / traffic accounting



On Mon, 2003-05-19 at 23:18, Marc Demlenne wrote:
> On Mon, May 19, 2003 at 10:51:04PM +0100, Pedro Corte-Real wrote:
> > >                 iptables -N traffic
> > >                 iptables -A traffic -i eth0
> > >                 iptables -A traffic -o eth0
> > > 
> > >                 iptables -A INPUT -j traffic
> > >                 iptables -A OUTPUT -j traffic
> > 
> > I was trying to use this but it doesn't seam to account for masquerade
> > packets. Any way around this?
> 
> Simply add a new rule, for your masq'ed paquets...
>                     iptables -A FORWARD -j traffic
> 
> The "IMPUT" chain is for paquets going inside your box
>     "OUTPUT"                           outside
>     "FORWARD"                          threw your box, and that are masq'ed. 


That did the trick, thanks.

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: