Displaying 3 results from an estimated 3 matches for "interfaz_int".
2007 Aug 10
0
Re: Allocating 64 kbits/s out of 256 kbits/s for one LAN behingfirewall (SOLVED)
...FAZ_LAN parent 1:5 handle 5 sfq perturb 10
> tc filter add dev $INTERFAZ_LAN parent 1:0 protocol ip prio 1 u32 match ip
> dst 192.168.101.0/24 <http://192.168.102.0/24> classid 1:5
>
> Regards
>
> Paolo Malfatti
>
> PS: dont forget to put a "tc qdisc del root dev $INTERFAZ_INT" rule at
> the beginning of your previous script.
>
>
>
> ------------------------------
> From: *"Indunil Jayasooriya" <indunil75@gmail.com>*
> To: *"Pio Mendez" <pio_mendez@hotmail.com>, lartc@mailman.ds9a.nl*
> Subject: *Re: [LARTC...
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
2007 Aug 08
0
Allocating 64 kbits/s out of 256 kbits/s for one LAN behind firewall
...68.101.0/24
Now, I want LAN with 192.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
t...