Re: [LARTC] mixing u32 and fwmark

2004-11-19 Thread Catalin(ux aka Dino) BOIE
On Fri, 19 Nov 2004, Kasp wrote: Hi! There is one thing I can't do. In my country we have to pay for foreign internet. Local internet is cheap and fast, but foreign is slow and expensive. So I want do following: mark every packet with iptables, where --set-mark 1 for foreign internet, but

Re: [LARTC] mixing u32 and fwmark

2004-11-19 Thread Eric Leblond
For local, foreign internet you can use : http://www.cookinglinux.org/geoip/ BR, On Fri, 2004-11-19 at 04:47 +0200, Kasp wrote: Hi! There is one thing I can't do. In my country we have to pay for foreign internet. Local internet is cheap and fast, but foreign is slow and expensive.

[LARTC] Minimize delay on IMQ

2004-11-19 Thread Avidianto Widodo
Hi, all. There is anyone can give me example configuration IMQ to minimize delay or latency. Thank's Avdianto ___ LARTC mailing list / [EMAIL PROTECTED] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

Re: [LARTC] Shared object not being built by patch-o-matic-ng

2004-11-19 Thread Stian B. Barmen
Just copy the iptables files from pom-ng to iptables dir in the correct location, change permissions if necessary and just build the iptables again. I had to copy the files into my iptables source, manually edit the Makefile to include the ipp2p in the make. Anyhow it finally worked, both

[LARTC] HTBIMQ

2004-11-19 Thread Iulian Stan
i'm trying to limit upload and download but something is wrong(it is about NAT) i will post here my script maybe someone could tell me what is wrong my kernel(2.6.9) is patch with imq(linuximq.net) and my iptables(1.2.11) also #flush tc qdisc del dev eth0 root tc qdisc del dev eth1 root tc

RE: [LARTC] ip-cref and route nat.

2004-11-19 Thread anwara
Hello Peter, I think you have post your problem to [EMAIL PROTECTED] Due kernel problem occur in your case Rgds, Anwara -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter Volkov Alexandrovich Sent: Friday, November 19, 2004 1:10 PM To: [EMAIL

Re: [LARTC] same gw / load balancing

2004-11-19 Thread Tomasz Chilinski
On Thu, 18 Nov 2004 18:25:47 -0400, Guillermo wrote Hi Hi 1.- If the request comes from the right source ip addres (dhcp provided) in my Linux box, it will go through the right dsl modem and ethernet interface. Then i need to use some kind of general ip- proxying if i want to build a load

Re: [LARTC] ip-cref and route nat.

2004-11-19 Thread Peter Volkov Alexandrovich
On Friday 19 November 2004 13:42, anwara wrote: Hello Peter, I think you have post your problem to [EMAIL PROTECTED] Due kernel problem occur in your case Thank you for your response. I'll try immediately to post there. __ Peter. ___ LARTC

Re: [LARTC] Help with prioritizing internet Cafe Terminals

2004-11-19 Thread Craig Main
I have out together the following script, can those in the know please comment on what I have done and whether it will achieve what I am looking for. Many thanks. #!/bin/bash tc qdisc del dev eth1 root tc qdisc add dev eth1 root handle 1: htb default 12 tc class add dev eth1 parent 1: classid

Re: [LARTC] mixing u32 and fwmark

2004-11-19 Thread George Alexandru Dragoi
You can send the marked packets with 1 in a chain, and marked packets with 2 in other chain, and then re-mark them based on source/destination ips, and you will use only fw filters. What Cata said looks damn intersting (I'll check that later). You may also sniff the traffic with tcpdump and see if

Re: [LARTC] Help with prioritizing internet Cafe Terminals

2004-11-19 Thread Jason Boxman
On Friday 19 November 2004 07:59, Craig Main wrote: I have out together the following script, can those in the know please comment on what I have done and whether it will achieve what I am looking for. Many thanks. snip iptables -F PREROUTING -t mangle iptables -A PREROUTING -t mangle -i

Re: [LARTC] HTBIMQ

2004-11-19 Thread Andre Correa
Lulian, what exactly is not OK? Remember that tc works with bits/second. Maybe this is your problem... Please let us know what is not working in details. later Andre Iulian Stan wrote: i'm trying to limit upload and download but something is wrong(it is about NAT) i will post here my script

Re: [LARTC] HTBIMQ

2004-11-19 Thread Stef Coene
On Friday 19 November 2004 11:16, Iulian Stan wrote: i'm trying to limit upload and download but something is wrong(it is about NAT) Can you be more specific? What's something Stef -- [EMAIL PROTECTED]  Using Linux as bandwidth manager      http://www.docum.org/

Re: [LARTC] Minimize delay on IMQ

2004-11-19 Thread Stef Coene
On Friday 19 November 2004 09:32, Avidianto Widodo wrote: Hi, all. There is anyone can give me example configuration IMQ to minimize delay or latency. That's easy, put the traffic you want to give lower delay in a seperate class. Make sure the class has enough bandwidth. You can also

Re: [LARTC] tc rules for Internet Radio

2004-11-19 Thread Andy Furniss
Martin Ward wrote: I am currently using the ultimate-tc script from http://lartc.org/howto/lartc.cookbook.ultimate-tc.html and I want to make sure that internet radio packets (mp3 streaming audio) will always get through no matter what. I have added some iptables commands like this: iptables -A

Re: [LARTC] tc rules for Internet Radio

2004-11-19 Thread Andy Furniss
Andy Furniss wrote: There are lots of complicated things you can do with policers/u32 but I have no experience. First thoughts are to mark all that aren't -sport 8000 and change the police rule to police to police marked. iptables -A PREROUTING -t mangle -p tcp ! --sport 8000 -j MARK

[LARTC] how to match TTL?

2004-11-19 Thread Kasp
Hi! I can't find anywhere correct syntax how to match TTL. All of I found refuse to work :( tc filter add dev eth1 parent 1:0 prio 10 u32 match u8 64 0xff at 8 flowid 1:11 tc filter add dev eth1 parent 1:0 prio 10 u32 match u8 0x10 0xff at nexthdr+13 protocol tcp flowid 1:11 tc filter add dev