All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Re: IPSec tunnel and routing
@ 2005-12-05  9:24 Alexander Kotelnikov
  2005-12-05 10:27 ` Alexander Kotelnikov
  0 siblings, 1 reply; 3+ messages in thread
From: Alexander Kotelnikov @ 2005-12-05  9:24 UTC (permalink / raw)
  To: lartc

>>>>> On Mon, 05 Dec 2005 06:08:30 +0100
>>>>> "AU" = Andreas Unterkircher <unki@netshadow.at> wrote:
AU> 
AU> Alexander Kotelnikov schrieb:
>> Ok, I would not ask all this if I have no problem with
>> tunnelling. With configuration like described above, where multihomed
>> maches have ip-addresses (192.168.1.1, 10.1.0.1) and (192.168.2.1,
>> 10.2.0.1) tunneling works for all machines, but these two
>> routers. This happenes becase if we send a packet from 10.1.0.1 into
>> 192.168.2/24 this packet does not come to ipsec, but is pushed to
>> default gateway, if it exists. In other words, local generated packets
>> do not come through prerouting or something.
>> 
AU> You have to add a route on 10.1.0.1 to make sure packets which belong to 
AU> 192.168.2.0/24 have
AU> a src address of 192.168.1.1. 

Very funny, how do you imagine this could be done?

-- 
Alexander Kotelnikov
Saint-Petersburg, Russia

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [LARTC] Re: IPSec tunnel and routing
@ 2005-12-05  9:42 Andreas Unterkircher
  0 siblings, 0 replies; 3+ messages in thread
From: Andreas Unterkircher @ 2005-12-05  9:42 UTC (permalink / raw)
  To: lartc

ip ro add 192.168.2.0/24 via 10.2.0.1 dev ethx src 192.168.1.1
the spd policies will then match and encrypt the traffic.

this is the same solution like you have to do for the freeswan
ipsec stack.

for me it works...

Alexander Kotelnikov (sacha@myxomop.com) schrieb:
>
> >>>>> On Mon, 05 Dec 2005 06:08:30 +0100
> >>>>> "AU" = Andreas Unterkircher <unki@netshadow.at> wrote:
> AU>
> AU> Alexander Kotelnikov schrieb:
> >> Ok, I would not ask all this if I have no problem with
> >> tunnelling. With configuration like described above, where multihomed
> >> maches have ip-addresses (192.168.1.1, 10.1.0.1) and (192.168.2.1,
> >> 10.2.0.1) tunneling works for all machines, but these two
> >> routers. This happenes becase if we send a packet from 10.1.0.1 into
> >> 192.168.2/24 this packet does not come to ipsec, but is pushed to
> >> default gateway, if it exists. In other words, local generated packets
> >> do not come through prerouting or something.
> >>
> AU> You have to add a route on 10.1.0.1 to make sure packets which belong to
> AU> 192.168.2.0/24 have
> AU> a src address of 192.168.1.1.
>
> Very funny, how do you imagine this could be done?
>
> --
> Alexander Kotelnikov
> Saint-Petersburg, Russia
>
> _______________________________________________
> LARTC mailing list
> LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
>

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [LARTC] Re: IPSec tunnel and routing
  2005-12-05  9:24 [LARTC] Re: IPSec tunnel and routing Alexander Kotelnikov
@ 2005-12-05 10:27 ` Alexander Kotelnikov
  0 siblings, 0 replies; 3+ messages in thread
From: Alexander Kotelnikov @ 2005-12-05 10:27 UTC (permalink / raw)
  To: lartc

>>>>> On Mon, 05 Dec 2005 10:42:23 +0100
>>>>> "AU" = Andreas Unterkircher <unki@netshadow.at> wrote:
AU> 
AU> ip ro add 192.168.2.0/24 via 10.2.0.1 dev ethx src 192.168.1.1
AU> the spd policies will then match and encrypt the traffic.

Uff... src in route... something really crazy, even thenks for the
hint. 

Rather wild situation when one need to explicitly set up route for
router own packets, while forwarded ones find their (same!)
destination themself.

-- 
Alexander Kotelnikov
Saint-Petersburg, Russia

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-12-05 10:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-05  9:24 [LARTC] Re: IPSec tunnel and routing Alexander Kotelnikov
2005-12-05 10:27 ` Alexander Kotelnikov
  -- strict thread matches above, loose matches on Subject: below --
2005-12-05  9:42 Andreas Unterkircher

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.