[LARTC] Multiple Internetconn. & DNAT

2007-01-30 Thread Peter Huetmannsberger
Hello, I came across a problem today, which after trying a number of approaches I could not solve, and I am hoping someone out there knows how to deal with this. Situation: 2 different internet connections on eth2 and eth3 Traffic coming in on eth2 goes out on eth2 and traffic coming in o

RE:[LARTC] IP based bandwith limit

2004-10-19 Thread Peter Huetmannsberger
Hi! This is a nicely organized script, thank you. If I understand it correctly it stilmeans that there is a bandwidth of 28k for both upload and download though, and not 28k altogether. Or am I wrong? many thanks, .peter On Tue, 19 Oct 2004, james jones wrote: > Check www.geocities.com

Re: [LARTC] IP based bandwith limit

2004-10-18 Thread Peter Huetmannsberger
Hi like I said, I am new too, so take this with a grain of salt. > unfortunately there is only one interface for the customers. My problem > is to limit the up AND down speed in dependence to each other. Downloads become uploads on your internal interface! so if eth0 is your external inter

Re: [LARTC] IP based bandwith limit

2004-10-18 Thread Peter Huetmannsberger
Hi! Again, beware, that I am new to this myself, but if there is no borrowing necessary, does that mean you have more than 12 Mbit to hand out. If so, I assume you have one interface per customer, in which case you could use tbf on each interface. If both customers are behind the same interfa

Re: [LARTC] Beginer question

2004-10-17 Thread Peter Huetmannsberger
Hi! Since I have been playing with a similar setup in the last few weeks, I'll try and answer your question. But be aware that I am a newbie myself. You have outgoing traffic on all those interfaces: Traffic that comes from the Internet to Lan1 or Lan2 is INCOMING traffic on eth1 but it is

[LARTC] Role of Application? How big?

2004-10-17 Thread Peter Huetmannsberger
Hi, I am still struggling with details on this setup. I have the shaping work well with some applications and not with others. Here's what I have: #!/bin/bash tc qdisc add dev eth0 root handle 1: htb default 20 tc class add dev eth0 parent 1: classid 1:1 htb rate 800kbit burst 15k tc class add

[LARTC] Success at last and thanks!

2004-10-15 Thread Peter Huetmannsberger
Hi! Soryr about being a whiner, not enough sleep and too much frustration don't become too well. In any case, I have succeeded with the shaping now. The problem seems to have been twofold. First of all I had the rate too high for the actual throughput. We have a 1mbit connection to the inter

Re: [LARTC] HTB 2.6.8 works 2.4.27 does not!

2004-10-15 Thread Peter Huetmannsberger
Hi again, I have also changed the things suggested by Stef earlier on: - HTB hysteries - PSCHED_CPU - QLENGTH in sfq Nothing seems to help. Kernel 2.4.27 distribution (RH9a) Thanks, .peter ___ LARTC mailing list / [EMAIL PROTECTED] http://ma

[LARTC] HTB 2.6.8 works 2.4.27 does not!

2004-10-15 Thread Peter Huetmannsberger
Hi again, sorry to be such a bother. I got my setup to work with kernel 2.6.8.1, however the two machines where I need to implement the shaping are running a 2.4.27 kernel. I have applied the infamous June patch (htbfair.diff) already, and recompiled the modules. And I am using the tc that c

[LARTC] Is this actually possible?

2004-10-13 Thread Peter Huetmannsberger
Hi everyone, and thanks for your help so far. I have been playing around with tc and htb for a couple of weeks now, and while I am nowhere near understanding everything here, I am beginning to know more about packets than I ever wanted to know. I have two university buildings with a 1mb conn

[LARTC] Ceiling question

2004-10-08 Thread Peter Huetmannsberger
Hi! I have a setup where I want to prefer traffic on one port (for testing purposes I used port 22) my setup is : tc qdisc add dev eth3 root handle 1: htb default 30 tc class add dev eth3 parent 1: classid 1:1 htb rate 96mbit burst 15k tc class add dev eth3 parent 1: classid 1:7 htb rate 2m

Re: [LARTC] Problem with VPN routing from internal network + tun0 and traffic shaping

2004-10-08 Thread Peter Huetmannsberger
OK. I didn't know you wanted to NAT the traffic. If you have the default gw on your client-net set to the client-gw AND you forward the traffic, i.e. set your ip_forward to 1 AND you allow that in your iptables, there is no need to NAT the traffic at all. (If you have a static route set to yo

Re: [LARTC] Problem with VPN routing from internal network

2004-10-08 Thread Peter Huetmannsberger
Hi! Correct me if I am wrong, what it looks like to me is this : 192.168.1.0/24 10.0.0.1 10.0.0.2 192.168.2.0/24 server net serverfw openvpn clientfw client net On the serverfw you need a static route to the client net: route add net 192.168.2.0 netma

Re: [LARTC] HTB and Openvpn

2004-10-06 Thread Peter Huetmannsberger
Hi, many thanks for your help. I have changed my setup accordingly now, however there are still packets showing up on the default qdisc when I go through the tunnel, about half the packets don't seem to match. Did you see anything wrong with the filter rules. Openvpn uses port 5001 on both

[LARTC] HTB and Openvpn

2004-10-06 Thread Peter Huetmannsberger
thing goes over that one. Any idea where I could be wrong? I am sure a lot of this is redundant, but as I said, I have only just started with this particular subject. Many thanks in advance Peter Huetmannsberger Admin Center for Contemporary Art, Linz _