HTB problem...

Linux Advanced Routing and Traffic Control

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

 



>by zytek
>Hello all, my first post here, maybe even I will help someone;)

>I assume that you want somethink like:
>data from server to LAN (PC1,PC2) unshaped (full 100mbit)
>data from Internet to LAN shaped

Correct.

>Then all you need to do is make classes with source 192.168.0.1 and
>destination 192.168.0.2(3) and 100mbit rate and then make classes with
>destination 192.168.0.2(3) with download rate. I believe that you
understand
>what I am thinkig of.

I do, but could you write an example please, so i have something to make
it from? :-)

>Or you can use iptables and mark traffic going from server to LAN, and
other
>mark for traffic in FORWARD chain. (iptables -t mangle -A FORWARD -j
MARK
>--set-mark SOME_MARK)
>When using iptables you will be able to shape upload speed, just mark
traffic
>in forward going from PC1/2 with output interface eth2 (-o eth2) - it
will be
>hosts upload.

Again, an example would be nice.. i have no idea on how to use MARK
command with iptables, even i know a great deal about iptables in
general.

>I won't write you full script, make it yourself, visit LARTC and
firstly try
>"htb.init" for simple class creation. Good fun!

Fair enough, i wouldn't exspect anyone to write a full script for me,
but i would exspect someone to make me an example for instance, how i
can shape PC1's download/upload rate to 256/128 KBit, so i atleast have
something to help me going.

_______________________________________________
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