Hi thanks all for the help
i have added for egress filter
modprobe imq numdevs=1
tc qdisc add dev imq0 handle 1: root htb default 1
tc class add dev imq0 parent 1: classid 1:1 htb rate 100kbit
tc qdisc add dev imq0 parent 1:1 handle 10: htb default 1
tc class add dev imq0 parent 10: classid 10:10 htb rate 100kbit
tc qdisc add dev imq0 parent 10:10 handle 20: sfq
iptables -t mangle -A POSTROUTING -p tcp --dport 80 -j IMQ
ip link set imq0 up
when i see the iptable -nxvL -t mangle, iam not able to see the rule which
postrouting sending packets to IMQ
[root@bridge root]# iptables -nxvL -t mangle
Chain PREROUTING (policy ACCEPT 11798 packets, 1175157 bytes)
pkts bytes target prot opt in out source
destination
Chain INPUT (policy ACCEPT 2674 packets, 162372 bytes)
pkts bytes target prot opt in out source
destination
Chain FORWARD (policy ACCEPT 9509 packets, 1048840 bytes)
pkts bytes target prot opt in out source
destination
Chain OUTPUT (policy ACCEPT 1820 packets, 213096 bytes)
pkts bytes target prot opt in out source
destination
Chain POSTROUTING (policy ACCEPT 11329 packets, 1261936 bytes)
pkts bytes target prot opt in out source
destination
And iam not able to see any traffic ifconfig imq, its 0 bytes
imq0 Link encap:UNSPEC HWaddr
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
UP RUNNING NOARP MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:30
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
my setup is like this
my laptop---eth1(Bridge)eth0---Switch--Router--internet
when i have made the packets to jump to IMQ, i should see some traffic in
IMQ right ?
but iam not able to any traffic
any guidance will be great
hare
----- Original Message -----
From: "Hocking James A" <JAHOCKING@qinetiq.com>
To: "''hare ram''" <hareram@sol.net.in>;
<lartc@mailman.ds9a.nl>
Sent: Monday, April 14, 2003 7:26 PM
Subject: RE: [LARTC] problem with IMQ
> > -----Original Message-----
> > From: hare ram [mailto:hareram@sol.net.in]
> > Sent: 14 April 2003 15:01
> > To: lartc@mailman.ds9a.nl
> > Subject: [LARTC] problem with IMQ
> >
> >
> > Hi all
> >
> >
> > iam working with Bridge with Linux RH 8.0
> > when i making sample config in the document, iam getting
> > following error
> > could some one point me what is wrong
> >
> > i have patched the kernel and make also
> > i have rebooted with new kernel
> > but iam getting the folloing error
> >
> > [root@bridge root]# modprobe imq numdevs=1
> > [root@bridge root]# tc qdisc add dev imq0 handle 1: root htb
> > default 1
> > [root@bridge root]# tc class add dev imq0 parent 1: classid
> > 1:1 htb rate
> > 1mbit
> > [root@bridge root]# tc qdisc add dev imq0 parent 1:1 handle
> > 10: htb default
> > 5
> > [root@bridge root]# tc class add dev imq0 parent 10: handle
> > 10:1 htb rate
> > 256kbit burst 30k prio 1
> > Error: Qdisc "handle" is classless.
>
> This last line should be:
>
> tc class add dev imq0 parent 10: classid 10:1 htb rate 256kbit burst 30k
> prio 1
> ^^^^^^^
> James
>
>
> The Information contained in this E-Mail and any subsequent correspondence
> is private and is intended solely for the intended recipient(s).
> For those other than the recipient any disclosure, copying, distribution,
> or any action taken or omitted to be taken in reliance on such information
> is prohibited and may be unlawful.
>
> Emails and other electronic communication with QinetiQ may be monitored.
> Calls to our Customer Contact Centre may be recorded for quality control,
> regulatory and monitoring purposes.
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/