* [LARTC] how to force iproute2 to FORWARD to another interface packets with
@ 2002-08-25 13:11 Jan Macek
2002-08-29 12:07 ` [LARTC] how to force iproute2 to FORWARD to another interface Wojtek
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Jan Macek @ 2002-08-25 13:11 UTC (permalink / raw)
To: lartc
I have this situation:
My machine debina, has three interfaces:
eth1 212.126.24.129
ppp0 10.2.0.1 (Point-to-Point: 212.31.242.98)
nsc5 10.2.0.250 (Point-to-Point: 172.23.140.32)
I want packets which come in through the nsc5 interface, to be FORWARDED
to the ppp0 interface to 212.31.242.98, even when their destination
address is 212.126.24.129 (even so this is the IP of eth1 on this
machine).
How to achieve that?
--
Miernik _____________________________________
/ /
tel.: +48603070983 / / mailto:miernik@ctnet.pl
__________________/___/ ICQ UIN: 4004001
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [LARTC] how to force iproute2 to FORWARD to another interface
2002-08-25 13:11 [LARTC] how to force iproute2 to FORWARD to another interface packets with Jan Macek
@ 2002-08-29 12:07 ` Wojtek
2002-09-02 12:58 ` Miernik
2002-09-02 15:17 ` David Lamparter
2 siblings, 0 replies; 4+ messages in thread
From: Wojtek @ 2002-08-29 12:07 UTC (permalink / raw)
To: lartc
Jan Macek wrote:
> I have this situation:
>
> My machine debina, has three interfaces:
>
> eth1 212.126.24.129
> ppp0 10.2.0.1 (Point-to-Point: 212.31.242.98)
> nsc5 10.2.0.250 (Point-to-Point: 172.23.140.32)
>
>
> I want packets which come in through the nsc5 interface, to be FORWARDED
> to the ppp0 interface to 212.31.242.98, even when their destination
> address is 212.126.24.129 (even so this is the IP of eth1 on this
> machine).
>
> How to achieve that?
>
you can use set of 'ip rule' and other routing table
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [LARTC] how to force iproute2 to FORWARD to another interface
2002-08-25 13:11 [LARTC] how to force iproute2 to FORWARD to another interface packets with Jan Macek
2002-08-29 12:07 ` [LARTC] how to force iproute2 to FORWARD to another interface Wojtek
@ 2002-09-02 12:58 ` Miernik
2002-09-02 15:17 ` David Lamparter
2 siblings, 0 replies; 4+ messages in thread
From: Miernik @ 2002-09-02 12:58 UTC (permalink / raw)
To: lartc
On Thu, 29 Aug 2002, Wojtek wrote:
> > My machine debina, has three interfaces:
> >
> > eth1 212.126.24.129
> > ppp0 10.2.0.1 (Point-to-Point: 212.31.242.98)
> > nsc5 10.2.0.250 (Point-to-Point: 172.23.140.32)
> >
> > I want packets which come in through the nsc5 interface, to be FORWARDED
> > to the ppp0 interface to 212.31.242.98, even when their destination
> > address is 212.126.24.129 (even so this is the IP of eth1 on this
> > machine).
>
> you can use set of 'ip rule' and other routing table
I tried to, but it is not that simple:
The routing table 'local' is bound to the first rule (rule 0), and I
cannot put any other rule before it.
I cannot delete the rule 0.
I tried deleting rules from from the local table, and putting them into
table local2, and assinging rule 2 to table local2, but it didn't work
too: I lost connectivity to my local host.
--
Miernik _____________________________________
/ /
tel.: +48603070983 / / mailto:miernik@ctnet.pl
__________________/___/ ICQ UIN: 4004001
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [LARTC] how to force iproute2 to FORWARD to another interface
2002-08-25 13:11 [LARTC] how to force iproute2 to FORWARD to another interface packets with Jan Macek
2002-08-29 12:07 ` [LARTC] how to force iproute2 to FORWARD to another interface Wojtek
2002-09-02 12:58 ` Miernik
@ 2002-09-02 15:17 ` David Lamparter
2 siblings, 0 replies; 4+ messages in thread
From: David Lamparter @ 2002-09-02 15:17 UTC (permalink / raw)
To: lartc
You may want to try the (unoffical) 'ROUTE' netfilter patch (see
patch-o-matic at www.netfilter.org)
after applying and re-compiling kernel + iptables use:
iptables -t mangle -A PREROUTING -i nsc5 -d 212.31.242.98 -j ROUTE
--iface ppp0
(maybe there is another possibility without recompiling kernel ... but I
didn't find anything...)
Miernik schrieb:
> On Thu, 29 Aug 2002, Wojtek wrote:
>
>
>>>My machine debina, has three interfaces:
>>>
>>>eth1 212.126.24.129
>>>ppp0 10.2.0.1 (Point-to-Point: 212.31.242.98)
>>>nsc5 10.2.0.250 (Point-to-Point: 172.23.140.32)
>>>
>>>I want packets which come in through the nsc5 interface, to be FORWARDED
>>>to the ppp0 interface to 212.31.242.98, even when their destination
>>>address is 212.126.24.129 (even so this is the IP of eth1 on this
>>>machine).
>>
>>you can use set of 'ip rule' and other routing table
>
>
> I tried to, but it is not that simple:
>
> The routing table 'local' is bound to the first rule (rule 0), and I
> cannot put any other rule before it.
>
> I cannot delete the rule 0.
>
> I tried deleting rules from from the local table, and putting them into
> table local2, and assinging rule 2 to table local2, but it didn't work
> too: I lost connectivity to my local host.
>
David Lamparter, david.lamparter@t-online.de
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-09-02 15:17 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-25 13:11 [LARTC] how to force iproute2 to FORWARD to another interface packets with Jan Macek
2002-08-29 12:07 ` [LARTC] how to force iproute2 to FORWARD to another interface Wojtek
2002-09-02 12:58 ` Miernik
2002-09-02 15:17 ` David Lamparter
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.