[strongSwan] IP range support

Tobias Brunner tobias at strongswan.org
Wed Feb 8 11:14:09 CET 2012


Hi Chester,

> I am using strongswan-4.2.8, I have a question want to check you, does
> this version have support IP range like 192.168.2.3-192.168.2.233 when
> set to left|right side?

No, we currently don't support arbitrary address ranges.  Such ranges
are simply mapped to the smallest subnet containing at least all the
addresses (192.168.2.0/24 in your case).

> If not does any one have an idea to implement it?

You have to manually split your range into multiple subnets and use
these in left|rightsubnet.  For your range this would give you a list of
10 subnets:

  192.168.2.3/32, 192.168.2.4/30, 192.168.2.8/29, 192.168.2.16/28,
  192.168.2.32/27, 192.168.2.64/26, 192.168.2.128/26, 192.168.2.192/27,
  192.168.2.224/29, 192.168.2.232/31

I just added a ticket for this [1], so we will probably add support for
address ranges in one of our next releases.

Regards,
Tobias

[1] http://wiki.strongswan.org/issues/173




More information about the Users mailing list