[LARTC] TC-ng questions/problems

2004-08-05 Thread Joost Kraaijeveld
Hi all, We have 2 class C networks that are connected by a Linux router with the internet. We want to apply traffic control (bandwidth control). For that we wrote the tcc script below. We have 2 problems: 1. To establish a 2 megagit download we must actually set the value to 2500kbps. Is

RE: [LARTC] TC-ng questions/problems

2004-08-05 Thread Joost Kraaijeveld
Hi Chalres, Thanks for the answer. I have also been bitten by the byte/bit bug in the past but in this case it must be something different. All my values are in in the correct amount of bits. The most important problem is actually problem 2: why does the tc toward internet (dev WAN) do what

Re: [LARTC] TC-ng questions/problems

2004-08-05 Thread [EMAIL PROTECTED]
Hi Joost, I think that maybe you have run across an issue that I too had trouble with. A snip from a message from Martin BROWN explains: You have not actually found a bug, but rather a historical strangeness about the Linux traffic control system. For reasons of which I'm ignorant, the

Re: [LARTC] iptables mark + openvpn will the mark survive ?

2004-08-05 Thread Rene Gallati
Hello, I want to setup bandwidth restrictions for a few clients that use openvpn to connect to my server. I'm using iptables to mark the packets in the mangle table (PRE/POSTROUTING) on eth0 before they get sent via the tunnel. Will the mark survive even if the packets then get routed via an

Re: [LARTC] should I shape tun[N] or eth0 ?

2004-08-05 Thread Rene Gallati
Hello, If I have a few vpn tunnels with different tun interfaces. And all this tunnel traffic is coming in on my eth0 interface, it also leave via eth0 again. I would like to share the available bandwidth evenly with tunnel clients. Would applying the bandwidth rule on eth0 with htb sfq work

Re: [LARTC] should I shape tun[N] or eth0 ?

2004-08-05 Thread Rio Martin.
On 05 August 2004 pm 16:51, Rene Gallati wrote: Hello, If I have a few vpn tunnels with different tun interfaces. And all this tunnel traffic is coming in on my eth0 interface, it also leave via eth0 again. I would like to share the available bandwidth evenly with tunnel clients. Would

RE: [LARTC] TC-ng questions/problems

2004-08-05 Thread [EMAIL PROTECTED]
Hi Joost, OK -- on the units of measure -- you may to double check that your upstream provider is 2.000.000 bits/s and not 2 * 1024^1024. I think that your r2q is probably off -- please see: http://www.docum.org/stef.coene/qos/faq/cache/31.html Check your system log as well -- you may see an

RE: [LARTC] TC-ng questions/problems

2004-08-05 Thread Joost Kraaijeveld
Hi Charles, [EMAIL PROTECTED] schreef: I think that your r2q is probably off -- please see: http://www.docum.org/stef.coene/qos/faq/cache/31.html This link does not work. All other numbers are there but one is not. But it's true: in the logfiles I see r2q mentioned (jumping with joy in my

[LARTC] NAT tc filter addresses

2004-08-05 Thread Bill Gradwohl
Is there a flow diagram as to where tc actions take place with respect to NAT and other iptables functions on a multihomed box (private public NICs) ? Are tc filter rules consulted before or after NATing? My real interest is in basic understanding first, and then solving a real problem

[LARTC] HTB mpu and overhead settings for PPPoE ADSL?

2004-08-05 Thread Stefan Gold
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, I'm using HTB to shape my outgoing traffic over a ADSL-link with PPPoE with a nominal bandwidth of 128kbit/s. My goal is to favour small packets like ACKs and interactive services like ssh; in other words, I want to achieve low lantency.

Re: [LARTC] TC-ng questions/problems

2004-08-05 Thread Stef Coene
On Thursday 05 August 2004 12:36, Joost Kraaijeveld wrote: Hi Charles, [EMAIL PROTECTED] schreef: I think that your r2q is probably off -- please see: http://www.docum.org/stef.coene/qos/faq/cache/31.html This link does not work. Correct link (I rehosted the site and the main path is

[LARTC] URGENT HELP needed!! Problem with second route dual ISP

2004-08-05 Thread Segree, Gareth
Title: URGENT HELP needed!! Problem with second route dual ISP Below is a snippet from my firewall script isp1_ip=xx.0.5.20 isp1_gw=xx.0.5.1 isp1_net=xx.0.5.0/28 isp1_if=eth2 isp2_ip=xx.182.19.88 isp2_gw=xx.182.19.1 isp2_net=xx.182.19.0/28 isp2_if=eth3 lo_ip=127.0.0.1 lo_if=lo

Re: [LARTC] NAT tc filter addresses

2004-08-05 Thread Stef Coene
On Thursday 05 August 2004 18:47, Bill Gradwohl wrote: Is there a flow diagram as to where tc actions take place with respect to NAT and other iptables functions on a multihomed box (private public NICs) ? Are tc filter rules consulted before or after NATing? See kptd on www.docum.org. Stef

[LARTC] marking passive ftp and shaping

2004-08-05 Thread nix4me
I am trying to mark outbound passive ftp traffic with iptables and shape it to 35KBytes. I am using the following script on the computer that runs the ftp server. It is not working correctly, it seems to limit ALL traffic. Cant file share or anything. Anyone might know what is wrong?

Re: [LARTC] NAT tc filter addresses

2004-08-05 Thread Martin A. Brown
Bill, : Is there a flow diagram as to where tc actions take place with : respect to NAT and other iptables functions on a multihomed box : (private public NICs) ? Are tc filter rules consulted before or : after NATing? For simplicity's sake, let's just talk about packets leaving the box