[Openswan Users] Does "leftsubnet" support IP range format?
yhsiung at zyxel.com
Mon Aug 5 18:12:43 UTC 2013
I found a Openswan Users thread was discussing about the same question
three years ago as below:
Re: [Openswan Users] IP subnet range
On Mon, 19 Apr 2010, Mike A. Leonetti wrote:
> Is there a way to set the subnet to an IP range instead of an entire
> subnet? I need to satisfy this message when I try and bring up a VPN to
> a Sonicwall.
> peer client ID payload in Quick I1, ID_IPV4_ADDR_RANGE 192.168.1.21 -
> 192.168.1.22 unacceptable: not a valid subnet
It has to be CIDR notation. Any other "ranges" are not allowed, and you'll
have to split it out into multiple CIDR's if possible.
According to Mr. Paul Wouters's answer, Openswan only takes the CIDR notation
as the IP subnet range. I'm wondering is it still the limitation for the
latest (2.6.39) Openswan release? If so, does that mean Openswan cannot handle
the ID_IPV4_ADDR_RANGE ID type (Proxy ID) in phase 2 negotiation?
On Sat, Aug 3, 2013 at 9:49 AM, Yang Hsiung <yhsiung at zyxel.com> wrote:
> I'm sorry for the confusion about my original question. I'm NOT looking for
> a CIDR notation with prefix format in the ipsec.conf. I would like to know
> that does Openswan configuration parser can handle the IP range format
> as below in general:
> IP_ADDRESS_START - IP_ADDRESS_END
> "leftsubnet=192.168.0.1-192.168.0.100" was just an example.
> By looking into the Openswan source, I noticed that ID_IPV4_ADDR_RANGE
> (RFC 2407 18.104.22.168) ID type is being handled. I'm wondering does Openswan
> support it? If so, what's the corresponding IP "range" format should be
> in the ipsec.conf?
> On Sat, Aug 3, 2013 at 5:57 AM, Binand Sethumadhavan <binand at gmx.net>wrote:
>> On 3 August 2013 05:13, Yang Hsiung <yhsiung at zyxel.com> wrote:
>> > leftsubnet=192.168.0.1-192.168.0.100
>> > If not, is there an alternative approach to configure the above example?
>> Well, this is a bit convoluted but this set of leftsubnets:
>> matches exactly 192.168.0.1-192.168.0.100.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Users