Hi all
thanks to Mr Devik , Mr Stef, Mr Patrick
At last iam able to successfully compiles with RH 9.0 with Iptables 1.2.8
with IMQ
not all are working fine with out any Errors, and iam able to see the
traffic on IMQ Interface, when i mark the packets
on test base i have made a small example below, need confirmation
below example, iam trying to control up+down= 128kbps for the ip of x.x.x19
when try to download from internet, i was getting approximately 18.3Kil0
bytes
when i try up load the same time, to one of my local FTP server, which is
located out side my LAN
iam able to transfer the rate of 14Kilo Bytes, and the download speed
decreased to 4+ kilo bytes
so i assume my setup is running perfectly both the ways, but i did not use
postrouting..... i have used only prerouting...
my setup is like this
----- FTP Server
LAPTOP--Switch--Eth1(Bridge)Eth0---Switch ---|
-----Internet
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 1mbit
tc qdisc add dev imq0 parent 1:1 handle 10: htb default 5
tc class add dev imq0 parent 10: classid 10:1 htb rate 128kbit burst 3k
prio 1
tc class add dev imq0 parent 10: classid 10:2 htb rate 128kbit burst 3k
prio 2
tc class add dev imq0 parent 10: classid 10:5 htb rate 1mbit prio 3
tc qdisc add dev imq0 parent 10:1 handle 21:0 sfq
tc qdisc add dev imq0 parent 10:2 handle 22:0 sfq
tc qdisc add dev imq0 parent 10:5 handle 23:0 sfq
tc filter add dev imq0 protocol ip pref 1 parent 10: handle 1 fw classid
10:1
tc filter add dev imq0 protocol ip pref 2 parent 10: handle 2 fw classid
10:2
iptables -t mangle -A PREROUTING -i eth1 -j IMQ --todev 0
iptables -t mangle -A PREROUTING -i eth1 -s x.x.x.19 -j MARK --set-mark 1
ip link set imq0 up
so is this setup correct, i need to make some more correction, please
suggest
thanks
hare
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Could some one respond to this post please hare> Hi all > > thanks to Mr Devik , Mr Stef, Mr Patrick > > At last iam able to successfully compiles with RH 9.0 with Iptables 1.2.8 > with IMQ > not all are working fine with out any Errors, and iam able to see the > traffic on IMQ Interface, when i mark the packets > > on test base i have made a small example below, need confirmation > > below example, iam trying to control up+down= 128kbps for the ip ofx.x.x19> > when try to download from internet, i was getting approximately 18.3Kil0 > bytes > > when i try up load the same time, to one of my local FTP server, which is > located out side my LAN > iam able to transfer the rate of 14Kilo Bytes, and the download speed > decreased to 4+ kilo bytes > > so i assume my setup is running perfectly both the ways, but i did not use > postrouting..... i have used only prerouting... > > my setup is like this > > ----- FTP Server > LAPTOP--Switch--Eth1(Bridge)Eth0---Switch ---| > > -----Internet > > > > 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 1mbit > > tc qdisc add dev imq0 parent 1:1 handle 10: htb default 5 > tc class add dev imq0 parent 10: classid 10:1 htb rate 128kbit burst 3k > prio 1 > tc class add dev imq0 parent 10: classid 10:2 htb rate 128kbit burst 3k > prio 2 > tc class add dev imq0 parent 10: classid 10:5 htb rate 1mbit prio 3 > > tc qdisc add dev imq0 parent 10:1 handle 21:0 sfq > tc qdisc add dev imq0 parent 10:2 handle 22:0 sfq > tc qdisc add dev imq0 parent 10:5 handle 23:0 sfq > > tc filter add dev imq0 protocol ip pref 1 parent 10: handle 1 fw classid > 10:1 > tc filter add dev imq0 protocol ip pref 2 parent 10: handle 2 fw classid > 10:2 > > iptables -t mangle -A PREROUTING -i eth1 -j IMQ --todev 0 > iptables -t mangle -A PREROUTING -i eth1 -s x.x.x.19 -j MARK --set-mark 1 > > ip link set imq0 up > > > so is this setup correct, i need to make some more correction, please > suggest > > thanks > hare > > > _______________________________________________ > 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/