Re: HTB - default class is used only

Linux Advanced Routing and Traffic Control

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

 



Hello Dan,

 : i have very simple script to control upload in network with 3 IP
 : addresses.  Problem is, that rule for default class is used only and
 : filtering by IPs doesn't work.

I am going to guess that this is a masquerading or SNAT host.  Is this
accurate?

 : I have RH9 with kernel 2.4.20-24.9, htb script starts without errors,
 : iproute-2.4.7-7.90.1 installed (shouldn't I uninstall iproute and
 : install iproute2?)

RedHat calls the "iproute2" package "iproute".  It has the tools you
need--"tc"....although, I believe their RH9 iproute package is not patched
to handle HTB.  I imagine, though that you must have figured this out
already if you are generating the below output.

You appear to be adding your HTB mechanisms to one interface, eth0.  This
means that you are shaping traffic transmitted outbound on eth0.  You are
not shaping any traffic received on eth0.

Do you have another interface on the machine?  I presume that your other
interface is the external or Internet-facing interface.  This is the
interface on which you should add the HTB classes for shaping upload
traffic.

Is this also a masquerading (SNAT) box?  If so, the source IP address will
no longer be 192.168.1.0/24 but rather the public IP on your box.  You'll
need to use marking.

You may benefit from my HOWTO [0].  Just remember that you can only shape
what you transmit, and readjust your installation accordingly.

-Martin

  [0] http://www.tldp.org/HOWTO/Traffic-Control-HOWTO/
-- 
Martin A. Brown --- SecurePipe, Inc. --- mabrown@xxxxxxxxxxxxxx

_______________________________________________
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