Re: [LARTC] realtime trafic monitor
Gogu Ionut wrote: Hello !! i search a small utility (console based) to view the traffic on real time made by 1 user (ip ) ...something like : 192.168.1.2 11 kbps 192.168.1.3 111 kbps 192.168.1.4 88 kbps 192.168.1.5 64 kbps Try iptraf. raj ___ LARTC mailing list / [EMAIL PROTECTED] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
[LARTC] Testing if tc works as configured and shaping rtp traffic
Hi, I have implemented qos at my gateway, mostly for speeding up dns and [video,voice] chat traffic and to slow down p2p traffic. It seems every thing is working properly, as by browsing speed has been improved. But I want to test it by sending various traffic and to see through which qdisc the traffic flows, so that i can be certain that it is working the way I want it to work. The rules i am using are at the end of the mail. I also have a problem with msn chat, as it uses h.323 and i want to prioritize rtp and rtcp traffic. I searched a solution for it a lot but nothing came up. Any way I can mark rtp traffic so that it can be redirected to a qdisc? thanks and regards, raj -- #!/bin/sh # eth0 in, eth1 out TCQDSK_CMD=tc qdisc add dev eth1 TCCLAS_CMD=tc class add dev eth1 IPT_CMD=iptables -t mangle -A POSTROUTING -o eth1 $TCQDSK_CMD root handle 1: htb default 12 $TCCLAS_CMD parent 1: classid 1:1 htb rate 20mbit ceil 20mbit $TCCLAS_CMD parent 1:1 classid 1:10 htb rate 2mbit ceil 2mbit prio 1 $TCCLAS_CMD parent 1:1 classid 1:11 htb rate 16mbit ceil 20mbit prio 2 $TCCLAS_CMD parent 1:1 classid 1:12 htb rate 2mbit ceil 2mbit prio 3 $TCQDSK_CMD parent 1:10 handle 31: pfifo limit 5 $TCQDSK_CMD parent 1:11 handle 35: pfifo limit 5 $TCQDSK_CMD parent 1:12 handle 39: sfq perturb 10 #Hi prio $IPT_CMD -p tcp --tcp-flags SYN,RST,ACK SYN -j CLASSIFY --set-class 1:10 $IPT_CMD -p udp --dport 53-j CLASSIFY --set-class 1:10 $IPT_CMD -p tcp --dport 22-j CLASSIFY --set-class 1:10 #Yahoo $IPT_CMD -p udp --dport 5000 -j CLASSIFY --set-class 1:10 $IPT_CMD -p tcp --dport 5050 -j CLASSIFY --set-class 1:10 $IPT_CMD -p tcp --dport 5100 -j CLASSIFY --set-class 1:10 #Skype $IPT_CMD -p udp --sport 59883 -j CLASSIFY --set-class 1:10 #Mid Prio $IPT_CMD -p tcp --dport 21 -j CLASSIFY --set-class 1:11 $IPT_CMD -p tcp --dport 23 -j CLASSIFY --set-class 1:11 $IPT_CMD -p tcp --dport 25 -j CLASSIFY --set-class 1:11 $IPT_CMD -p tcp --dport 80 -j CLASSIFY --set-class 1:11 $IPT_CMD -p tcp --dport 110 -j CLASSIFY --set-class 1:11 $IPT_CMD -p tcp --dport 143 -j CLASSIFY --set-class 1:11 $IPT_CMD -p tcp --dport 443 -j CLASSIFY --set-class 1:11 # low prio is default ___ LARTC mailing list / [EMAIL PROTECTED] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
[LARTC] Newbie question - RPDB, policy routing etc...
Hello all, I am going through the LARTC howto to understand how the iproute2 works. But some concepts like Policy Routing, RPDB etc are not clear to me. I am pretty new to iproute, beeing using route command for long... From what I understand 1. rules (ip rule) tell how to select packets for routing and route (ip route) tell where to route the selected packets. 2. A collection of rules is RPDB 3. Policy routing is routing using rules. 4. rules can specify a packet on various parameters, like source dest, fwmark, interface etc... 5. route can tell only dst interface or next hop. I am sure I am missing some thing. I read and reread the howto and man pages, but it's still some what hazy. The original requirement with which I started off is this: I have a lan, with full public IPs, which normally access Internet. I want to route one subnet of that lan via my linux box (for removal of obnoxious content for children) Normally the lan is connected to net via 2 cisco box. I have configured the cisco boxen to send packets to my linux box, from and to. Now I just have to route them properly in my box. My linux box has 2 ips, 192.168.60.1 and 192.168.50.1, both cisco boxes have corresponding 50.2 and 60.2 address, and I can ping both cisco boxes. cisco boxes has normal public ips also. The network dig is as follows: [ client ] [cisco 1] [linux ] [cisco 2] [100.100.100.100]-[100.100.100.101] [192.168.60.1]-[192.168.60.2] [192.168.50.2 ]-[192.168.50.1] [100.100.101.100]- [Internet] I hope my dig is legible. This is what I want to do. I would much appreciate if some one can give a clear picture as to how iproute works. thanks and regards, raj ___ LARTC mailing list / [EMAIL PROTECTED] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
[LARTC] [ot]Bridging and Cisco switch
Hi, I was trying to setup QoS for my network in my machine. It had a Ethernet interface connected to a cisco switch. I connected one more interface on to the same switch and setup and bridge, zeroed out both the interfaces and assigned my old ip to the bridge interface. After this when I pinged outside, all the lights in my switch started blinking fast. I immediately pulled the network cable from my box. Is the configuration I attempted legal? Is their any problem with bridges and Switchs? When a packet comes to bridge ip, which interface does it go? I am bit confused! Thanks for your help raj ___ LARTC mailing list / [EMAIL PROTECTED] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
[LARTC] Graphing tc output
Hi, My HTB shaping is working perfectly, and i have setup a bridge and hosts behind the bridge are now getting only the bandwidth they are supposed to get. Thanks to every one here for helping me out :) Now I am thinking of making a graph of traffic going through various classes. Is their any thing readily available for it, or is parsing the output if tc and passing it to rrdtool the preferred way? Any suggestions? Thanks, raj ___ LARTC mailing list / [EMAIL PROTECTED] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/