All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] is this scenario possible ???
@ 2004-11-16  5:01 Drink Linux
  2004-11-17 22:46 ` Andy Furniss
  2004-11-18 12:56 ` Andy Furniss
  0 siblings, 2 replies; 3+ messages in thread
From: Drink Linux @ 2004-11-16  5:01 UTC (permalink / raw)
  To: lartc

hello .

i have no problem shaping incoming traffic from WAN

how do i shape outgoing traffic to WAN depending on
the speed limit of each subnet ....

ex:
10.10.6.0 --> 512kbps (DOWNLOAD / UPLOAD)
10.10.5.0 --> 256kbps (DOWNLOAD / UPLOAD)



do i have to used forward handle, 

and used 
iptables -s 10.10.6.0/24 -d WAN -j MARK --set-mark 101

and used 
iptables -s 10.10.5.0/24 -d WAN -j MARK --set-mark 102

what do i really have to use? 
prerouting or postrouting.
do i really need to use imq device on this one ?

i can't seem to get it work .....

thanks for anyone can help...

:D


		
__________________________________ 
Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 
http://my.yahoo.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

* Re: [LARTC] is this scenario possible ???
  2004-11-16  5:01 [LARTC] is this scenario possible ??? Drink Linux
@ 2004-11-17 22:46 ` Andy Furniss
  2004-11-18 12:56 ` Andy Furniss
  1 sibling, 0 replies; 3+ messages in thread
From: Andy Furniss @ 2004-11-17 22:46 UTC (permalink / raw)
  To: lartc

Drink Linux wrote:
> hello .
> 
> i have no problem shaping incoming traffic from WAN
> 
> how do i shape outgoing traffic to WAN depending on
> the speed limit of each subnet ....
> 
> ex:
> 10.10.6.0 --> 512kbps (DOWNLOAD / UPLOAD)
> 10.10.5.0 --> 256kbps (DOWNLOAD / UPLOAD)
> 
> 
> 
> do i have to used forward handle, 
> 
> and used 
> iptables -s 10.10.6.0/24 -d WAN -j MARK --set-mark 101
> 
> and used 
> iptables -s 10.10.5.0/24 -d WAN -j MARK --set-mark 102
> 
> what do i really have to use? 
> prerouting or postrouting.
> do i really need to use imq device on this one ?
> 
> i can't seem to get it work .....
> 
> thanks for anyone can help...

It depends on your exact setup - what interfaces do you have to where?

Andy.


_______________________________________________
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] is this scenario possible ???
  2004-11-16  5:01 [LARTC] is this scenario possible ??? Drink Linux
  2004-11-17 22:46 ` Andy Furniss
@ 2004-11-18 12:56 ` Andy Furniss
  1 sibling, 0 replies; 3+ messages in thread
From: Andy Furniss @ 2004-11-18 12:56 UTC (permalink / raw)
  To: lartc

Andy Furniss wrote:
> Drink Linux wrote:
> 
>> hello .
>>
>> i have no problem shaping incoming traffic from WAN
>>
>> how do i shape outgoing traffic to WAN depending on
>> the speed limit of each subnet ....
>>
>> ex:
>> 10.10.6.0 --> 512kbps (DOWNLOAD / UPLOAD)
>> 10.10.5.0 --> 256kbps (DOWNLOAD / UPLOAD)
>>
>>
>>
>> do i have to used forward handle,
>> and used iptables -s 10.10.6.0/24 -d WAN -j MARK --set-mark 101
>>
>> and used iptables -s 10.10.5.0/24 -d WAN -j MARK --set-mark 102
>>
>> what do i really have to use? prerouting or postrouting.
>> do i really need to use imq device on this one ?
>>
>> i can't seem to get it work .....
>>
>> thanks for anyone can help...
> 
> 
> It depends on your exact setup - what interfaces do you have to where?
> 

i have eth0 connected to WAN
and wlan0 connected to LAN ....

i have tried to used postrouting with mark packets but
failed ....

You don't need IMQ as long as you only wan't to shape forwarded traffic.

It should work in postrouting, I think your -d WAN is the problem, you 
need to specify interface -o eth0. As you are marking forwarded traffic 
  you could use forward, and use -i as well as -o eg.

iptables -t mangle -I FORWARD -i wlan0 -o eth0 -s 10.10.5.0/24 -j MARK 
--set-mark 102

Andy.

_______________________________________________
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:[~2004-11-18 12:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-16  5:01 [LARTC] is this scenario possible ??? Drink Linux
2004-11-17 22:46 ` Andy Furniss
2004-11-18 12:56 ` Andy Furniss

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.