[Openswan Users] NAT-T and rightid
G.Carbone at reitek.com
Wed Aug 7 08:03:25 UTC 2013
Thanks for your reply, I tried to change the configuration like you suggested but it doesn't work, I got a "address family inconsistency in this/that connection" error.
So I'm going to give you more details on this configuration (I guess I should have did it since the beginning :) ).
This is my initial configuration (it's a lan-2-lan vpn with multiple subnets on both sides):
A.A.A.A B.B.B.B : PSK "sharedsecret"
With this configuration it doesn't work, the negotiation just fails with this error:
003 "CISCOASA" #199593: we require peer to have ID 'B.B.B.B', but peer declares '192.168.1.1'
Of course 192.168.1.1 is the ASA's the private IP (which is behind a natting firewall).
So, in order to make it work, I changed the configuration by adding the rightid parameter like this:
A.A.A.A 192.168.1.1 : PSK "sharedsecret"
From: Leto [mailto:letoams at gmail.com]
Sent: Monday, August 5, 2013 8:25 PM
To: Giovanni Carbone
Cc: users at openswan.org
Subject: Re: [Openswan Users] NAT-T and rightid
you probably want something like rightsubnet=vhost:%priv
sent from a tiny device
On 2013-08-05, at 15:10, Giovanni Carbone <G.Carbone at reitek.com> wrote:
i’m having a little issue with a tunnel (PSK auth) with a Cisco ASA behind a nat. The tunnels goes up and everything works only if I set the rightid with the private IP of the ASA (I think it’s the way it is supposed to work).
The problem is the other end doesn’t want me to have one of their private IPs configured statically on my side; they may change it “anytime” and they don’t want to have to notify me of this change in order to keep up the tunnel (they say that they have many other tunnels working without having to deal with the ASA’s private IP on the other end).
So, is there a way to tell Openswan to work only with the ASA’s public IP?
Informativa Privacy - Ai sensi del D. Lgs n. 196/2003 (Codice Privacy) precisiamo che le informazioni contenute in questo messaggio sono riservate e a uso esclusivo del destinatario. Ogni uso, copia o distribuzione non autorizzata è proibita e passibile di sanzioni ai termini di legge. Reitek non è responsabile di eventuali copie o distribuzioni non autorizzate. Se questo messaggio è stato ricevuto per errore, preghiamo gentilmente di eliminarlo e di informare il mittente. Grazie.
Users at lists.openswan.org
Building and Integrating Virtual Private Networks with Openswan:
More information about the Users