All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] simple questions about imq
@ 2005-01-30 16:58 Tóth Nándor
  2005-01-31 13:55 ` Andre Correa
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Tóth Nándor @ 2005-01-30 16:58 UTC (permalink / raw)
  To: lartc

Hi!

I have read all informations i could find, but some things are still not 
clear.

My setup is:
  ---INTERNET1(eth0)-\  /- Local net1 (eth2)
                      GW
  ---INTERNET2(eth1)-/  \- Local net2 (eth3)

I have NAT and a working setup using HTB,SFQ, classifying with the 
iptables -j CLASSIFY way. I shape only the traffic coming from the 
internet heading to the intranet.

I would like to have a configuration like this:
  ---INTERNET1(eth0)-\        /- Local net1 (eth2)
                      GW--imq0
  ---INTERNET2(eth1)-/        \- Local net2 (eth3)

I think it can be done this way:
iptables -t mangle -A PREROUTING -i eth0 -j IMQ --todev 0
iptables -t mangle -A PREROUTING -i eth1 -j IMQ --todev 0

But it would include traffic heading to the gateway directly, wouldn't 
it? Can i put these rules to the POSTROUTING chain?

And i can still have my CLASSIFY targets in the POSTROUTING chain, 
because IMQ queing will happen after it according to 
http://lartc.org/howto/lartc.imq.html.
So for example:
$IPTABLES -t mangle -A POSTROUTING -o $eth2 ... -j CLASSIFY --set-class 1:30
$IPTABLES -t mangle -A POSTROUTING -o $eth3 ... -j CLASSIFY --set-class 1:30
$IPTABLES -t mangle -A POSTROUTING -o $eth2 ... -j RETURN
$IPTABLES -t mangle -A POSTROUTING -o $eth3 ... -j RETURN

If i managed to do this, i promise, i will document it to the imq wiki.

Any advice/help is appreciated!

-- 
Udv,
   Nandor
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-02-01  5:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-30 16:58 [LARTC] simple questions about imq Tóth Nándor
2005-01-31 13:55 ` Andre Correa
2005-01-31 16:59 ` Tóth Nándor
2005-01-31 17:10 ` Andre Correa
2005-01-31 23:39 ` Andy Furniss
2005-02-01  5:44 ` Tóth Nándor

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.