[Openswan Users] A question about localid & remoteid

jungfo jungfo at innopiatech.com
Thu Jul 17 21:55:34 EDT 2008


 

Hello,

I am using openswan-1.0.9(KLIPS) and openswan-2.4.7(NETKEY) on my system.

I have a one question about charater of using at localid and remoteid.

 

I want to use following special character in localid and remoteid. Is it
valid?

 

Special character

# = numbersign

@ = at sign

/ = slash

\ = backslash

-      = hyphen

% = percent

. = period

_ = underscore

 

 

 

Example 1 , I Success with following configuration.

Ipsec.conf

Conn Test_IPsec

           Left=192.168.x.x

           Leftsubnet=165.213.176.0/24

           Right=x.x.x.x

           Rightsubnet=x.x.x.x/24

           Leftid=@jungfo at innopia#1/123-1_14%department4\first.

           rightid=@horiee at innopia#1/123-1_12%department4\first.

           Type=tunnel

           Auto=start

           Authby=secret

           ...

 

Ipsec.secret

.

### fixed contents

@jungfo at innopia#1/123-1_14%department4\first.
@horiee at innopia#1/123-1_12%department4\first. : PSK "test1234"

 

 

Example 2 , I Failed with following configuration.

Ipsec.conf

Conn Test_IPsec

           Left=192.168.x.x

           Leftsubnet=165.213.176.0/24

           Right=x.x.x.x

           Rightsubnet=x.x.x.x/24

           Leftid=@@#/-_%\.

           rightid=@#/-_%\.@

           Type=tunnel

           Auto=start

           Authby=secret

           ...

 

Ipsec.secret

.

### fixed contents

@@#/-_%\. @#/-_%\.@ : PSK "test1234"

 

 

I want to know regular expressions for leftid and righted.

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openswan.org/pipermail/users/attachments/20080718/e6447c31/attachment.html 


More information about the Users mailing list