Re: Shaping inbound ok, outbound wrong

Linux Advanced Routing and Traffic Control

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

 



Yes, I think my problem is on the filters. Actually I`m quite confused.
If I have eth0 facing the link and eth1 facing the LAN. I should shape download in eth1 and upload in eth0, right?
Correct.

So, for example I should use this filter for shapìng upload
tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match ip src
200.43.134.17 classid 1:102

And this one for download
tc filter add dev eth1 parent 1:0 protocol ip prio 100 u32 match ip dst
200.43.134.17 classid 1:80

What is 200.43.134.17? Is that a machine on your LAN? Is your network fully routed or are you using MASQ/NAT ?

If that is a PC on your LAN, and you have a fully routed subnet, and all your qdiscs/classes are setup correctly, then yes, those filters should work.
otherwise no.



-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Damion de Soto - Software Engineer email: damion@xxxxxxxxxxxx SnapGear - A CyberGuard Company --- ph: +61 7 3435 2809 | Custom Embedded Solutions fax: +61 7 3891 3630 | and Security Appliances web: http://www.snapgear.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- Free Embedded Linux Distro at http://www.snapgear.org ---

_______________________________________________
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