Re: [LARTC] NAT+mangle+tc

2004-10-11 Thread Ethy H. Brito
On Tue, 12 Oct 2004 07:04:17 +1000 Alexander Samad <[EMAIL PROTECTED]> wrote: > you can do something like > > iptables -t mangle -A PREROUTING -s AddrIWantToShape -j mark 0x02 > iptables -t mangle -A PREROUTING -s AddrIWantToShape2 -j mark 0x03 -- SNIP -- > > tc filter add dev InternetInt paren

Re: [LARTC] NAT+mangle+tc

2004-10-11 Thread Alexander Samad
Hi What you can do is mark the packets in netfilter (iptables) and then use the marks to assign the packets to classes you can do something like iptables -t mangle -A PREROUTING -s AddrIWantToShape -j mark 0x02 iptables -t mangle -A PREROUTING -s AddrIWantToShape2 -j mark 0x03 iptables -t nat -

Re: [LARTC] NAT+mangle+tc

2004-10-11 Thread emo terziev
Hi , Jason I know LARTC HOWTO. mi download shapers work fine, but I don't know can i limit upload when i have NAT because source IP address is changed and i cannot make u32 src filter. in other hand package marking isn't usable in my case because i want user A to have for example 128K to G

Re: [LARTC] NAT+mangle+tc

2004-10-11 Thread Jason Boxman
On Monday 11 October 2004 07:29, emo terziev wrote: > Hi All, > I wonder can I do NAT+mangle+tc on same maschine? I want to shape > outgoing traffic per IP on my gateway computer. Sure, you can do that on the same machine. You can do NAT with a variety of scripts or just hand written iptables r

[LARTC] NAT+mangle+tc

2004-10-11 Thread emo terziev
Hi All, I wonder can I do NAT+mangle+tc on same maschine? I want to shape outgoing traffic per IP on my gateway computer. Regards Emil Terziev ___ LARTC mailing list / [EMAIL PROTECTED] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lart