I am not caliming to be all knowledgable in masquarading, but from what I
understand, what you are asking is impossible.

The problem lies in the fact that bandwidth shaping has everything to do
with source and destination IP's. With your case, however, the returing
traffic doesn't know the difference until after demasquarading has been
performed. At that stage, however, local packets are already local.

On the other hand, it seems that had one of your 98 machines tried to
download from the fast site, while the Linux would be downloading from the
slow site, you would still be having the exact same problem.

In any case, it may be possible to control that behaviour by controling the
rate at which ACK packets go out, but I am not sure how you can do that.

                Shachar



----- Original Message -----
From: "Idan Sofer" <[EMAIL PROTECTED]>
To: "Linux IL mailing list" <[EMAIL PROTECTED]>
Sent: Monday, September 04, 2000 7:52 PM
Subject: CBQ question


> Hello.
>
> I have a linux system(2.2.16) connected to the internet using dial-up
> connection, And another two win98 systems connected to the linux system
> via ethernet.
>
> The linux machine is masquerading tcp packets from the win98 boxes to the
> internet. problem is that if the the linux machine is downloading
> something from a fast site(3-4kb/s), the win98 machines find the bandwidth
> very narrow.
>
> I tried using fair queue to divide the bandwidth so me and the network
> have a relation of 1:1 at the worst case.
>
> However, the problem is that CBQ can control what the linux box SENDS but
> not what it recieves, that means, i can prevent the network to eat up all
> bandwidth, but not the linux box.
>
> The question is, can i somehow force the linux box to reroute all packets
> coming from ppp0 which are not to be demasqueraded to a sort of "virtual
> IP" which will have limited baudrate by CBQ?
>
>
>
>
> =================================================================
> To unsubscribe, send mail to [EMAIL PROTECTED] with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail [EMAIL PROTECTED]
>
>


=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to