Re: howto reduce the ping?

Linux Advanced Routing and Traffic Control

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

 



> #port range 27020:27039, protocol tcp
> 
> #iptables -t mangle -A POSTROUTING -p tcp --dport 27020:27039 -j 
> CLASSIFY --set-class 1:10
>     tc filter add dev ppp0 protocol ip parent 1: prio 1 u32 match ip
> dport 27020 0x13 match ip protocol 6 0xff flowid 1:10
> 

My choice would be fw filter:
iptables -t mangle -A POSTROUTING -p tcp --dport 27020:27039 -j MARK
--set-mark 0x10
tc filter add dev ppp0 protocol ip parent 1:0 prio 1 handle 0x10 fw
classid 1:10


> #port range 27000:27015, protocol udp
> 
>     #iptables -t mangle -A POSTROUTING -p udp --dport 27000:27015 -j 
> CLASSIFY --set-class 1:10
>     tc filter add dev ppp0 protocol ip parent 1: prio 1 u32 match ip
> dport 27000 0x21 match ip protocol 17 0xff flowid 1:10

iptables -t mangle -A POSTROUTING -p udp --dport 27000:27015 -j MARK
--set-mark 0x10

(filter same as above...only one needed)
tc filter add dev ppp0 protocol ip parent 1:0 prio 1 handle 0x10 fw
classid 1:10

Hope that helps.

cheers
-- 
Marek Kierdelewicz
Kierownik Dzia?u Systemów Sieciowych, KoBa
Manager of Network Systems Department, KoBa
tel. (85) 7406466; fax. (85) 7406467
e-mail: admin@xxxxxxx
_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


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