[strongSwan] Allowing Certain Ranges to use certain PSK in ipsec.secerts

Adrian Milanoski amilanoski at blackberry.com
Wed Nov 13 23:58:06 CET 2013


Perfect thanks Tobias

I will try and upgrade my current version to the latest one....


Regards,

Adrian Milanoski
Lab Administrator
BBOS WiFI VPN. Security Testing – R&D
Tel.(289) 261-5801 | Cel: (647) 289-261-5801
Email  amilanoski at blackberry.com







-----Original Message-----
From: Tobias Brunner [mailto:tobias at strongswan.org] 
Sent: Tuesday, November 05, 2013 12:45 PM
To: Adrian Milanoski; Users at lists.strongswan.org
Subject: Re: [strongSwan] Allowing Certain Ranges to use certain PSK in ipsec.secerts

Hi Adrian,

> Is it possible to setup ipsec.secrets to allow only certain subnets to 
> use certain PSKs
> 
> 24.177.*.* : PSK “tempskforme”
> 
> Is this at all possible? How can I control which subnets are allowed 
> to access my GW?

With the just released strongSwan 5.1.1 this should be possible.  This release allows you to configure

	right=<subnet>,<or range>,<or single ips>,<or mixed>

instead of right=%any.  Then instead of configuring an IP address in ipsec.secrets you'd configure a specific leftid for each of your connections (of course, your clients have to accept/use that ID as rightid), and then use that ID in ipsec.secrets to select the secret.

Regards,
Tobias

---------------------------------------------------------------------
This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.


More information about the Users mailing list