From: Javier Charne <javiercharne@speedy.com.ar>
To: lartc@vger.kernel.org
Subject: [LARTC] Re: multiple routing tables for internal router programs
Date: Mon, 11 Jun 2007 19:23:57 +0000 [thread overview]
Message-ID: <466DA14D.4060503@speedy.com.ar> (raw)
In-Reply-To: <Pine.LNX.4.64.0706111505070.3751@tigger.tntechs.com>
Tom Diehl escribió:
>>
>
> Any possibility someone could repost this reply in english.
>
Sorry, Tom. My english is really awful.
>> Lo que podés hacer es "marcar" los paquetes mediante iptables -t mangle
>> y luego definir reglas (ip rule) para routear cada paquete de acuerdo a
>> la marca que tenga, por las tablas (ip route) que tengas definidas.
>>
>> Por ejemplo:
>> Definís una tabla con su gateway (alguno de tus conexiones), y le ponés
>> las redes que necesitás sean "conocidas" en la tabla:
>>
>> ip route add 127.0.0.0/8 dev lo scope link table 100
>> ip route add $NET_INTERNA dev $IF_INTERNA scope link table 100
>> ip route add $NET_ADSL1 dev $IF_ADSL2 scope link table 100
>> ip route add $NET_ADSL2 dev $IF_ADSL2 scope link table 100
>> ip route add default dev $IF_ADSL2 via $GW_ADSL2 table 100
>>
>>
>> Definís una regla que todo paquete esté marcado con un 1, use esa tabla
>> de routeo (salga por ese gateway...)
>>
>> ip rule add fwmark 1 table 100
>>
>> Y también, marcás con un 1 cada paquete que querés que use esa tabla
>> (por ejemplo, el tráfico web):
>>
>> iptables -t mangle -A PREROUTING -p tcp --dport 80 -j MARK --set-mark 1
>
> Regards,
>
I was saying Andrea: Try to define a new routing table, add a chain in
mangle table for tagging packets and add a rule to deliver those packets
to the new route.
Again, I'm sorry. I didn't know this is a "english-only" list.
Saludos!
Javier.-
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
next prev parent reply other threads:[~2007-06-11 19:23 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-11 19:06 [LARTC] Re: multiple routing tables for internal router programs Tom Diehl
2007-06-11 19:23 ` Javier Charne [this message]
2007-06-12 7:59 ` Andrea
2007-06-12 8:09 ` Salim S I
2007-06-12 9:01 ` Peter Rabbitson
2007-06-12 9:15 ` Andrea
2007-06-12 9:29 ` Peter Rabbitson
2007-06-12 9:49 ` Salim S I
2007-06-12 10:02 ` Peter Rabbitson
2007-06-12 10:10 ` Andrea
2007-06-12 10:20 ` Salim S I
2007-06-12 11:23 ` Peter Rabbitson
2007-06-13 4:08 ` Salim S I
2007-06-14 3:50 ` Salim S I
2007-06-14 4:23 ` Alex Samad
2007-06-14 7:26 ` Peter Rabbitson
2007-06-14 10:34 ` Salim S I
2007-06-15 3:26 ` Salim S I
2007-06-15 6:00 ` Peter Rabbitson
2007-06-15 6:01 ` Peter Rabbitson
2007-06-15 6:21 ` Salim S I
2007-06-15 6:29 ` Peter Rabbitson
2007-06-15 9:36 ` Salim S I
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=466DA14D.4060503@speedy.com.ar \
--to=javiercharne@speedy.com.ar \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.