[LARTC] Configuring a QoS Box + Cliente Bandwidth Control

2006-12-06 Thread Nataniel Klug
ke this happens? PS.: In the end of this email is my full QOS script. Att, Nataniel Klug --- start - qos.sh --- #!/bin/sh #-- # Script de QoS Cyber Nett #-- # Nataniel Klug # [EMAIL PROTECTED] #-- TC="/sbin/tc" IPT="/usr/local/sbin/iptabl

[LARTC] Routed network + web-cache

2006-07-25 Thread Nataniel Klug
to the internet with the proxy/cache IP. Like when they enter in this site www.meuip.com.br it shows only the proxy/gw server ip and not the client ip. There is some way to make this happens? Att, Nataniel Klug ___ LARTC mailing list LARTC

[LARTC] QoS doubt about network machine

2006-07-20 Thread Nataniel Klug
CLASS 1:1 classid 1:50 htb rate 256Kbit ceil 256Kbit burst 15k $CLASS 1:1 classid 1:60 htb rate 1024Kbit ceil 2048Kbit burst 15k And them direct all traffic coming from my ns2 server (using u32 classifier and src address) to class 1:5... Is this cor

[LARTC] How to match 2 networks using 2 ethernet cards sharing bandwidght?

2006-05-09 Thread Nataniel Klug
becouse they are in different interfaces. Anyone knows some way to make it happen? Att, Nataniel Klug ___ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

Re: [LARTC] Matching interface using U32(?)

2006-05-09 Thread Nataniel Klug
Andy I make it work using iptables mark... I just had to change some parts of the script and it is, now, working fine. Att, Nataniel Klug Andy Furniss escreveu: Nataniel Klug wrote: Hello all, I am trying to make a little bit more complex QoS/Shapping form and I need to shape a

[LARTC] Matching interface using U32(?)

2006-05-05 Thread Nataniel Klug
make this work? Att, Nataniel Klug ___ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

Re: [LARTC] QoS - Ping problem

2006-04-12 Thread Nataniel Klug
Andy, I will try to make this rule and see what happens. Thanks. Att, Nataniel Klug Andy Furniss escreveu: Nataniel Klug wrote: # Regras para a placa eth1 #-- $TC qdisc add dev $DL root handle 1: htb default 50 You are using htb default on eth - unless you make a filter for arp it

Re: [LARTC] I dont want to shape a host

2006-04-11 Thread Nataniel Klug
Martin, Thanks for the answer. I will study your topology and try to make this happens. Att, Nataniel Klug Martin A. Brown escreveu: Nataniel, There are probably a handful of ways to solve this problem. Two pop to mind right away. : I am still reading about my QoS rules and I need

[LARTC] I dont want to shape a host

2006-04-10 Thread Nataniel Klug
not get even into a QoS class. How can I do this? Att, Nataniel Klug ___ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

Re: [LARTC] u32 and iptables do not work together

2006-04-10 Thread Nataniel Klug
Thank you all for the answers... Andreas Klauer escreveu: On Sat, Apr 08, 2006 at 03:18:01PM +0200, Piotr Chytla wrote: On Sat, Apr 08, 2006 at 08:21:40AM -0300, Nataniel Klug wrote: I think it worked fine... This is my new script (below the text). I just dont know how can I know if

Re: [LARTC] u32 and iptables do not work together

2006-04-08 Thread Nataniel Klug
-j MARK --set-mark 10 Att, Nataniel Klug #!/bin/sh #-- # Script de QoS Cyber Nett #-- # Nataniel Klug # [EMAIL PROTECTED] #-- TC="/sbin/tc" IPT="/usr/local/sbin/iptables" DL="eth3" #-- # Apagando regras antigas de

Re: [LARTC] u32 and iptables do not work together

2006-04-07 Thread Nataniel Klug
Andreas, This is not the problem becouse if I disable the rules I am using, and use other script just with rules using fwmark them the other script works fine. Att, Nataniel Klug Andreas Klauer escreveu: On Fri, Apr 07, 2006 at 03:26:00PM -0300, Nataniel Klug wrote: RTNETLINK answers

[LARTC] u32 and iptables do not work together

2006-04-07 Thread Nataniel Klug
script (the one that is working fine is at the end). Att, Nataniel Klug -- #!/bin/sh #-- # Script de QoS Cyber Nett #-- # Nataniel Klug # [EMAIL PROTECTED] #-- TC="/sbin/tc" IPT="/usr/local/sbin/iptables" DL="eth3" #-- # Apagando regras antiga

Re: [LARTC] QoS - Ping problem

2006-04-06 Thread Nataniel Klug
. Thanks for all answers I have get. Att, Nataniel Klug Jody Shumaker escreveu: CLASS="/sbin/tc class add dev $DL parent" $CLASS 1: classid 1:1 htb rate 3072Kbit $CLASS 1:1 classid 1:10 htb rate 1024Kbit ceil 1024Kbit $CLASS 1:1 classid 1:20 htb rate 1536Kbit ceil 2560Kbit $CLASS 1:1

Re: [LARTC] QoS - Ping problem

2006-04-06 Thread Nataniel Klug
ateway of my network) it returns that big size time and a big lost: Estatísticas do Ping para 200.221.2.45: Pacotes: Enviados = 4, Recebidos = 4, Perdidos = 0 (0% de perda), Aproximar um número redondo de vezes em milissegundos: Mínimo = 17ms, Máximo = 21ms, Média = 18ms

[LARTC] QoS - Ping problem

2006-04-05 Thread Nataniel Klug
? #!/bin/sh #-- # Script de QoS Cyber Nett #-- # Nataniel Klug # [EMAIL PROTECTED] #-- TC="/sbin/tc" IPT="/usr/local/sbin/iptables" $IPT -t mangle -X $IPT -t mangle -F DL="eth1" #-- # Apagando regras antigas de QoS #-- $TC qdi

[LARTC] Configuration of my QoS ruleset (now working fine with u32 classifier)

2006-04-05 Thread Nataniel Klug
Hello all, As I have promised I am sending my QoS rules. This now works fine with u32 classifier (and parent 1:0 that I could not understand why it did not worked well before). Att, Nataniel Klug #!/bin/sh #-- # Script de QoS Cyber Nett #-- # Nataniel

Re: [LARTC] Another question (now about u32)

2006-04-04 Thread Nataniel Klug
have an error talking to the kernel Att, Nataniel Klug Nataniel Klug escreveu: Hello all, I am trying to match some conections using u32 but I tryed this: [EMAIL PROTECTED] ~]# tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ip src 0/0 match ip dst 0/0 match ip sport 80

Re: [LARTC] Another question (now about u32)

2006-04-04 Thread Nataniel Klug
Jody, Tryed, not working, same error: [EMAIL PROTECTED] ~]# tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ip sport 80 0x flowid 1:10 RTNETLINK answers: Invalid argument We have an error talking to the kernel Att, Nataniel Klug Jody Shumaker escreveu: On 4/4/06

[LARTC] Another question (now about u32)

2006-04-04 Thread Nataniel Klug
out my other question (QoS). It was very useful hints. Now I think my QoS is working almost 100% ok. Att, Nataniel Klug ___ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

[LARTC] QoS Solution for an ISP - Need help on my build tryout

2006-04-03 Thread Nataniel Klug
set-mark 40 I made this for every port and every protocol I want but I could not make this QoS works fine. This is still too slow (http browsing). Can someone help me? Att, Nataniel Klug ___ LARTC mailing list LARTC@mailman.ds9a.nl http://mailm

Re: [LARTC] Balancing multiple connections and NAT

2006-02-23 Thread Nataniel Klug
route flush cache So all cache will be lost (off course that conections that still exists will remain with their track to the destination). Att, Nataniel Klug - Original Message - From: "Raj Mathur" <[EMAIL PROTECTED]> To: Sent: Thursday, February 23, 2006 4:14 PM

Re: [LARTC] can all internet traffic be directed thru 1 computer on aRouter?

2006-02-14 Thread Nataniel Klug
there is anything else you can serve us to make an analisys. Att, Nataniel Klug Gerente Cyber Nett Brazil - Original Message - From: "Ian stuart Turnbull" <[EMAIL PROTECTED]> To: Sent: Monday, February 13, 2006 5:32 PM Subject: [LARTC] can all internet traffic be directed

Re: [LARTC] Route all LAN traffic through eth2 and keep web/mailtraffic on eth0

2006-02-12 Thread Nataniel Klug
PREROUTING -i eth1 -j MARK --set-mark 1 Now we must send this maked packges to routing table that has default gateway to interface eth2: ip rule add prio 200 fwmark 1 table route-eth2 This is only an example. Read the LARTC howto them, if you still have any doubt, come back here. Att, Nataniel Klug

[LARTC] Routing packges by destination port

2006-02-08 Thread Nataniel Klug
anyway to use transparent squid with multiple routing tables and marking packages? PS.: What is this error "Icmp checksum is wrong" Att, Nataniel Klug ___ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

[LARTC] Routing for multiple interfaces (marking ports)

2006-02-04 Thread Nataniel Klug
from all lookup main 32767: from all lookup default This prio reads tables from lower prio (0) to higher prio (32767) or it makes reading this the other way? Att, Nataniel Klug ___ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9

Re: [LARTC] limit number of connections per ip

2006-02-03 Thread Nataniel Klug
So Rasmus, If I put a limit into TCP connections it will reflect into UDP conections over the same source IP? How can I make a limit into TCP connections? Att, Nataniel Klug - Original Message - From: "Rasmus Melgaard" <[EMAIL PROTECTED]> To: Sent: Thursday, Februa

[LARTC] About ip route 2 prio at tables

2006-02-01 Thread Nataniel Klug
lower prio or higher prio tables? If it looks in lower, then my rule is right. The other way I will have to rewrite it. Att, Nataniel Klug ___ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

Re: [LARTC] control p2p upload bandwidth rate

2006-01-11 Thread Nataniel Klug
what you said is that only one package in a mark will me matched without that other comands, so, the lines I have put in red are correct? Today it is working fine, but I have never made a test longer than 20 or 30 minutes...   Att,   Nataniel Klug - Original Message - From: Jody

Re: [LARTC] control p2p upload bandwidth rate

2006-01-10 Thread Nataniel Klug
from a client and forward this to some cbq/htb band control rules. It is working fine, but I have never made a test for longer time...   Thanks for your cooperation.   Att,   Nataniel Klug - Original Message - From: Jody Shumaker To: lartc@mailman.ds9a.nl Sent: Thursday

[LARTC] Redirect mark to some route

2005-10-19 Thread Nataniel Klug
      Now I want that all packges with this mark get throu my gateway using the link at eth2 and all other packges use link at eth1. How can I do this?!   Att,   Nataniel Klug ___ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin

Re: [LARTC] Load balance (two links in one server): why is this notworking?

2005-10-19 Thread Nataniel Klug
Marek,   I made a test to route some kind of trafic throu one link and other kind throu other using L7-Filter compiled into kernel and iptables.   It worked properly. So now I will put P2P and messenger trafic throu one link and all other trafic thou other link.   Thanks.   Att,   Nataniel

[LARTC] Load balance (two links in one server): why is this not working?

2005-10-19 Thread Nataniel Klug
d from $IP2 table T2### Atualiza tabela de cache#$IP route flush cache--- SCRIPT ---   Att,   Nataniel Klug ___ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

[LARTC] Two differente networks at the same ethernet pci adapter

2005-10-18 Thread Nataniel Klug
links # Balanceamento de carga entre pontos de rede # # Script criado por NATANIEL KLUG #- # # # Variaveis de sistema # IPTABLES="/usr/local/sbin/iptables" IP="/sbin/ip" # # # ENTRADA DE LINKS # IF1='eth0'