shaping on tcp ports

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi all:

the following scipt is wokring perfectly with limiting ...on limimitng per
ip basis..


----
eth0=public static ip
eth2= private ip ( 192.168.2.1)
--
iptables -t mangle -A POSTROUTING -s ! 192.168.0.0/32 -d 192.168.2.101/32
-j MARK --set-mark 21012

tc class add dev eth2 parent 1:1 classid 1:2101 htb rate 32kbit ceil 64kbit

tc filter add dev eth2 parent 1:0 protocol ip prio 2 handle 21012 fw
classid 1:2101

tc qdisc add dev eth2 parent 1:2101 handle 2101: sfq perturb 10

-----------------

Now what i am trying to do is... limiting 192.168.2.101 75% for httpd and
25% to rest..

what i have to do? i am confused on iptables marking as well..

Thanks
Paras.


Paras pradhan
Systems Dept.
Bajranet PVT LTD
Kathmandu
Nepal.


_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux