[strongSwan] How to route multiple networks over the same tunnel?

Carlos Xavier cbastos at connection.com.br
Tue Nov 23 08:39:00 CET 2010


Hi Andreas.

Tank you very much for the answer.
I think it should have a sample of this configuration on the documentation, I couldn´t find any 
reference to it.

I´m sorry for the late reply.

Best Regards.
Carlos

----- Original Message ----- 
From: "Andreas Steffen" <andreas.steffen at strongswan.org>
To: "Carlos Xavier" <cbastos at connection.com.br>
Cc: <Users at lists.strongswan.org>
Sent: Friday, November 12, 2010 12:31 PM
Subject: Re: [strongSwan] How to route multiple networks over the same tunnel?


> Hello Carlos,
>
> you can define as many networks as you like:
>
> conn client_card_trans
>         left=XXX.160.208.130
>         leftid=XXX.160.208.130
>         right=XXX.7.199.162
>         rightid=XXX.7.199.162
>         dpdaction=restart
>         keyexchange=ikev1
>         ike=aes256-sha1-modp1024
>         esp=3des-md5
>         pfsgroup=modp1024
>         authby=secret
>
> conn net1
> also=client_card_trans
>         leftsubnet=172.31.0.0/24
>         rightsubnet=XXX.7.197.253/32
> auto=start
>
> conn net2
> also=client_card_trans
> leftsubnet=10.10.15.3/32
>  rightsubnet=172.31.4.0/24
> auto=start
>
> First one IKE_SA between XXX.160.208.130 and XXX.7.199.162
> is created during Main Mode and then two Quick Modes
> follows which set up the IPsec SAs for the subnets.
>
> Regards
>
> Andreas
>
> On 11/12/2010 12:49 PM, Carlos Xavier wrote:

snip...
.
>>
>> Is that possible to route multiple networks on the same tunnel with StrongSwan?
>> How can I make this configuration on StrongSwan?
>>
>> Regards,
>> Carlos.
>
> ======================================================================
> Andreas Steffen                         andreas.steffen at strongswan.org
> strongSwan - the Linux VPN Solution!                www.strongswan.org
> Institute for Internet Technologies and Applications
> University of Applied Sciences Rapperswil
> CH-8640 Rapperswil (Switzerland)
> ===========================================================[ITA-HSR]==
>
> 





More information about the Users mailing list