Displaying 4 results from an estimated 4 matches for "bandwidth4lan".
2007 Aug 10
0
Re: Allocating 64 kbits/s out of 256 kbits/s for one LAN behingfirewall (SOLVED)
Hi Paolo Malfatti,
Thanks for your script. It works fine.
I get what I expect.
THANK you all the way until it comes to an end.
FOR the benifit for evryone in the LIST.
HERE IS the SCRIPT AGAIN.
INTERFAZ_LAN=eth0
FULLBANDWIDTH=256
BANDWIDTH4LAN=64
tc qdisc del root dev $INTERFAZ_LAN
tc qdisc add dev $INTERFAZ_LAN root handle 1 htb r2q 4
tc class add dev $INTERFAZ_LAN parent 1: classid 1:2 htb rate
"$FULLBANDWIDTH"Kbit
tc class add dev $INTERFAZ_LAN parent 1: classid 1:5 htb rate
"$BANDWIDTH4LAN"Kbit
tc qdisc add dev $...
2007 Sep 03
1
Can we use 2 tc filter rules with the same prio
...(i.e prio 1).
pls see my script given below. (last 2 lines of the script where I have
highlighted in BOLD letters)
Can I have 2 tc filter rules with the same prio?
What is the proper method to write?
MY SCRIPT IS BELOW
#traffic shaping on eth1 (Downloading)
INTERFAZ_LAN=eth1
FULLBANDWIDTH=256
BANDWIDTH4LAN=64
tc qdisc del root dev $INTERFAZ_LAN
tc qdisc add dev $INTERFAZ_LAN root handle 1: htb r2q 4
tc class add dev $INTERFAZ_LAN parent 1: classid 1:2 htb rate
"$FULLBANDWIDTH"Kbit
tc class add dev $INTERFAZ_LAN parent 1: classid 1:5 htb rate
"$BANDWIDTH4LAN"Kbit
tc qdisc add de...
2007 Aug 08
0
Allocating 64 kbits/s out of 256 kbits/s for one LAN behind firewall
...168.101.0/24 to allocate 64 kbit out of 256 kbit.
the rest for others.
I added rules to the firewall. But I still can not allocate 64 kbit for LAN
with 192.168.101.0/24
I think I need a PREROUTING chain for LAN with 192.168.101.0/24
Script is given below.
INTERFAZ_INT=eth0
FULLBANDWIDTH=256
BANDWIDTH4LAN=64
iptables -t mangle -A PREROUTING -s
192.168.101.0/24<http://192.168.102.0/24>-j MARK --set-mark 0x5
tc qdisc add dev $INTERFAZ_INT root handle 1 htb r2q 4
tc class add dev $INTERFAZ_INT parent 1: classid 1:2 htb rate
"$FULLBANDWIDTH"Kbit
tc class add dev $INTERFAZ_INT parent 1:...
2007 Aug 02
5
Allocating 64 kbits/s out of 256 kbits/s for one LAN behing firewall
Hi,
We have a 256 kbits/s (kilobits per second) link to the internet. it is a
router running Linux that belongs to our ISP. They have given us 8 internet
ips. (i.e- subnet is 255.255.255.248). one has been given to this router. I
have given another internet ip to the firewall running CentOS 4.5. iptables
is running on it. And also, I have installed iproute2 pkg as well.
pls see below for