* iptables IMQ command problem
@ 2005-11-24 12:32 Diego Cabrero
2005-11-28 18:12 ` Controling Inbound and Outbound traffic simultaneusly Diego Cabrero
0 siblings, 1 reply; 3+ messages in thread
From: Diego Cabrero @ 2005-11-24 12:32 UTC (permalink / raw)
To: netfilter-devel, netfilter
Hi everybody,
Here is my situation:
First of all, i need control over the downlink bandwith, so i patched
kernel (2.4.28), iptables (1.2.11) so that i get IMQ support (imq0 and
imq1), but when i run the traffic control script i've got an error on
this line:
iptables -t mangle -A PREROUTING -i eth1 -j IMQ --todev 0
The error report is:
iptables v1.2.11: Unknown arg `--todev'
Try `iptables -h' or 'iptables --help' for more information.
RTNETLINK answers: Invalid argument
RTNETLINK answers: No such file or directory
RTNETLINK answers: No such file or directory
I've tried a lot of things like change the file's ".IMQ-test" mode ,
check if todev variable exist (it does), don't know what could be next,
i'd appreciate some help.
Thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: iptables IMQ command problem
@ 2005-11-24 15:17 Diego Cabrero
0 siblings, 0 replies; 3+ messages in thread
From: Diego Cabrero @ 2005-11-24 15:17 UTC (permalink / raw)
To: Artur Szczurzynski, netfilter-devel, netfilter
Is it not supposed to be installed since imq0 and imq1 are working?
Also i compiled kernel choosing IMQ device module option. Insmod the
imq.o driver as well, but still does not work. There must be something else.
Here is the list of modules loaded while i execute the command.
Module Size Used by Not tainted
------------------------------------------------
ipt_IMQ 824 0 (unused)
imq 1140 0 (unused)
cls_fw 2520 1 (autoclean)
ipt_MARK 760 2 (autoclean)
sch_htb 20928 3 (autoclean)
8139too 13768 1
mii 2464 0 [8139too]
crc32 2912 0 [8139too]
e100 49972 1
keybdev 2084 0 (unused)
mousedev 4148 0 (unused)
hid 21188 0 (unused)
input 3488 0 [keybdev mousedev hid]
ehci-hcd 18412 0 (unused)
usb-uhci 23184 0 (unused)
usbcore 62988 1 [hid ehci-hcd usb-uhci]
Is it not supposed to be installed since imq0 and imq1 are working?
Also i compiled kernel choosing IMQ device module option.
Artur Szczurzynski wrote:
>
> Hi,
>
> You need to load IMQ Device (imq) module in /etc/modules
> __________________________ *
> initiative** *· · · · ·
> Artur Szczurzynski/
> Network Administrator/*
> T *+48 22 57 23 389 *
> F *+48 22 57 23 301*
> C *+48 505 129 241*
> E *artur.szczurzynski@pl.initiative.com
>
Hi everybody,
Here is my situation:
First of all, i need control over the downlink bandwith, so i patched
kernel (2.4.28), iptables (1.2.11) so that i get IMQ support (imq0 and
imq1), but when i run the traffic control script i've got an error on
this line:
iptables -t mangle -A PREROUTING -i eth1 -j IMQ --todev 0
The error report is:
iptables v1.2.11: Unknown arg `--todev'
Try `iptables -h' or 'iptables --help' for more information.
RTNETLINK answers: Invalid argument
RTNETLINK answers: No such file or directory
RTNETLINK answers: No such file or directory
I've tried a lot of things like change the file's ".IMQ-test" mode ,
check if todev variable exist (it does), don't know what could be next,
i'd appreciate some help.
Thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Controling Inbound and Outbound traffic simultaneusly.
2005-11-24 12:32 iptables IMQ command problem Diego Cabrero
@ 2005-11-28 18:12 ` Diego Cabrero
0 siblings, 0 replies; 3+ messages in thread
From: Diego Cabrero @ 2005-11-28 18:12 UTC (permalink / raw)
Cc: netfilter-devel, netfilter
Hi,
I'm Running two independent traffic applications between two computers
conected point to point each other, at the same time each of these
applications are generating trafficin one direction so i have two
independent traffics traveling througth the same channel.
Figure:
eth1, PC1 ---------app1-----------> eth1, PC2
<--------app2------------
My problem is that i am trying to control the whole inbound and outbound
traffic through PC1 (by using IMQ for ingress) but it seems like they
are connected somehow.
This is the script i am using:
---------------------------
Inbound control commands:
tc qdisc add dev imq0 root handle 1: htb
tc class add dev imq0 parent 1: classid 1:1 htb rate
${INBOUND}kbps ceil ${INBOUND}kbps
iptables -t mangle -A PREROUTING -i eth1 -j MARK --set-mark 1
tc filter add dev imq0 protocol ip parent 1:0 handle 1 fw
flowid 1:1
iptables -t mangle -A PREROUTING -i eth1 -j IMQ --todev 0
Outbound control commands:
tc qdisc add dev eth1 root handle 2: htb
tc class add dev eth1 parent 2: classid 2:1 htb rate
${OUTBOUND}kbps ceil ${OUTBOUND}kbps
tc filter add dev eth1 protocol ip parent 2:0 prio 3 u32
match ip dst 0.0.0.0/0 flowid 2:1
Any ideas?
Thanks!!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-11-28 18:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-24 12:32 iptables IMQ command problem Diego Cabrero
2005-11-28 18:12 ` Controling Inbound and Outbound traffic simultaneusly Diego Cabrero
-- strict thread matches above, loose matches on Subject: below --
2005-11-24 15:17 iptables IMQ command problem Diego Cabrero
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.