This is a multi-part message in MIME format. ------=_NextPart_000_0010_01C48930.8DED2120 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable You cant shape router upload or imq will crash. also that imq will not be able to shape traffic per each loacal ip with = filters, but you can easily mark packets with iptables in forward of = prerouting chain. ----- Original Message -----=20 From: Alin Nonosel=20 To: lartc@mailman.ds9a.nl=20 Sent: Tuesday, August 24, 2004 1:32 AM Subject: [LARTC] imq question Hi I've a stupid question. How can I shape upload using IMQ? Instead of putting a rule in iptables in PREROUTING should i use = POSTROUTING? And another question is, can I make routing rule based on ip addresses = assigned by iptables to an imq device? The idea is, let's say i have some rules in iptables like: -t mangle = -A PREROUTING -s 192.168.0.0/16 -j IMQ --todev 0 Can i route this class thru another ip, something like fwmark is = doing? with iptables marking the packets and ip rule fwmark? Best regards, Alin ------=_NextPart_000_0010_01C48930.8DED2120 Content-Type: text/html; charset="koi8-r" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; charset=3Dkoi8-r"> <META content=3D"MSHTML 6.00.2800.1458" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>You cant shape router upload or imq = will=20 crash.</FONT></DIV> <DIV><FONT face=3DArial size=3D2>also that imq will not be able to shape = traffic per=20 each loacal ip with filters, but you can easily mark packets with = iptables=20 in forward of prerouting chain.</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <BLOCKQUOTE dir=3Dltr=20 style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; = BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV> <DIV=20 style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: = black"><B>From:</B>=20 <A title=3Dalin@polar.ro href=3D"mailto:alin@polar.ro">Alin = Nonosel</A> </DIV> <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A = title=3Dlartc@mailman.ds9a.nl=20 href=3D"mailto:lartc@mailman.ds9a.nl">lartc@mailman.ds9a.nl</A> </DIV> <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Tuesday, August 24, 2004 = 1:32=20 AM</DIV> <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> [LARTC] imq = question</DIV> <DIV><BR></DIV> <DIV><FONT face=3DArial size=3D2>Hi</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>I've a stupid question. How can I = shape upload=20 using IMQ?</FONT></DIV> <DIV><FONT face=3DArial size=3D2>Instead of putting a rule in iptables = in=20 PREROUTING should i use POSTROUTING?</FONT></DIV> <DIV><FONT face=3DArial size=3D2>And another question is, can I make = routing rule=20 based on ip addresses assigned by iptables to an imq device?<BR>The = idea is,=20 let's say i have some rules in iptables like: -t mangle -A PREROUTING = -s=20 192.168.0.0/16 -j IMQ --todev 0</FONT></DIV> <DIV><FONT face=3DArial size=3D2>Can i route this class thru another = ip, something=20 like fwmark is doing? with iptables marking the packets and ip rule=20 fwmark?</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Best regards,</FONT></DIV> <DIV><FONT face=3DArial size=3D2>Alin</FONT></DIV> <DIV><FONT face=3DArial=20 size=3D2></FONT> </DIV></BLOCKQUOTE></TD></TR></TABLE></BODY></HTML>= ------=_NextPart_000_0010_01C48930.8DED2120--