[Swan] Need Help in %any
raeeskhan.ca at gmail.com
Fri Jan 25 17:02:39 UTC 2019
*Good Morning Friends,*
Thank you for your support. I have a question regarding left/right section
of IPSec connection.
I have read that the left and right ip of a connection could be
*address* --> It works fine for me.
%*defaultroute* --> It also works fine for me. It automatically uses the
local address of the default-route interface.
%*any* --> I am facing issue with it. This is what it says.
The value *%any* for the local endpoint signifies an address to be filled
in (by automatic keying) during negotiation. If the local peer initiates
the connection setup the routing table will be queried to determine the
correct local IP address. In case the local peer is responding to a
connection setup then any IP address that is assigned to a local interface
will be accepted.
Prior to 5.0.0 <https://wiki.strongswan.org/projects/strongswan/wiki/500>
specifying *%any* for the local endpoint was not supported for IKEv1
connections, instead the keyword *%defaultroute* could be used, causing the
value to be filled in automatically with the local
address of the default-route interface (as determined at IPsec startup time
and during configuration update). Either left or right may be
*%defaultroute*, but not both.
If *%any* is used for the remote endpoint it literally means any IP address.
* leftsubnet=220.127.116.11/32 <http://18.104.22.168/32>*
* leftupdown="/usr/bin/rmf_ipsec_updown --route yes"*
* rightsubnet=22.214.171.124/32 <http://126.96.36.199/32>*
* rightupdown="/usr/bin/rmf_ipsec_updown --route yes"*
leftupdown="/usr/bin/rmf_ipsec_updown --route yes"
rightupdown="/usr/bin/rmf_ipsec_updown --route yes"
Even if I use %any on left section of both devices, it doesn't take IP from
the routing table. I am not sure how would it take an IP during negotiation.
Am I missing something ? Please help.
Thank you very much.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Swan