I could move forward from this issue by reinstalling strongswan and using strongswan-swanctl service, apparently I was not using the patched version, I noticed that because the vici_query.c file I had in the source was different than the one in the patched repo.Now I am seeing something quite strange.I get both spoke and hub to establish an IPSec sessions and SA are being established, I do see the Spoke sending registration message to the hub, I see the Hub receiving it and sending back a reply but the reply never gets to the spoke.Also the message counter in the SA statistics doesn't go up after a few messages.The IP of the spoke gets installed in the hub routing table but I cannot ping it, if I try it, it comes with this error:ping: sendmsg: invalid argumentI notice this happens as soon as the hub adds the route of the /32 host in its routing table, after that point communication is broken between hub and spoke and the hub's reply message never gets into the IPsec tunnel nor any other packet.Any ideas about this?Thanks,On Wed, May 9, 2018 at 11:37 PM, Felipe Arturo Polanco <felipeapolanco@gmail.com> wrote:Hi,I'm having trouble getting DMVPN to work in FRR.I followed this guide:
https://wiki.alpinelinux.org/wiki/Dynamic_Multipoint_VPN_(DM VPN)_Phase_3_with_Quagga_NHRPd #Hub_Node I installed patched strongswan as per the instruction in the README file:But still I cannot figure out how to establish a connection between a hub and a spoke.There is this error in the logs on both hub and spoke:May 09 23:24:19 FRR01 charon-systemd[107289]: vici initiate 'dmvpn'May 09 23:24:19 FRR01 nhrpd[107823]: VICI: Key 'success'='no'May 09 23:24:19 FRR01 charon-systemd[107289]: unable to resolve %any, initiate abortedMay 09 23:24:19 FRR01 nhrpd[107823]: VICI: Key 'errmsg'='establishing CHILD_SA 'dmvpn' failed'May 09 23:24:19 FRR01 charon-systemd[107289]: tried to checkin and delete nonexisting IKE_SAMay 09 23:24:19 FRR01 nhrpd[107823]: VICI: strongSwan: establishing CHILD_SA 'dmvpn' failedSpoke:FRR01# sh dmvpnSrc Dst Flags SAs Identity192.168.17.131 192.168.17.135 n 0FRR01# sh ip nhrpIface Type Protocol NBMA Flags Identitygre1 local 10.255.255.2 - -interface gre1ip nhrp holdtime 3600ip nhrp network-id 1ip nhrp nhs dynamic nbma 192.168.17.135ip nhrp registration no-uniqueip nhrp shortcutno link-detecttunnel protection vici profile dmvpntunnel source ens37-------Hub:FRR_RR01# sh dmvpnSrc Dst Flags SAs IdentityFRR_RR01# sh ip nhrpIface Type Protocol NBMA Flags Identitygre1 local 10.255.255.1 - -interface gre1ip nhrp holdtime 3600ip nhrp network-id 1ip nhrp nhs dynamic nbma 192.168.17.135ip nhrp redirectip nhrp registration no-uniqueip nhrp shortcutno link-detecttunnel protection vici profile dmvpntunnel source ens37---/etc/swanctl/swanctl.conf[root@FRR_RR01 ~]# cat /etc/swanctl/swanctl.confconnections {dmvpn {version = 2pull = nomobike = nodpd_delay = 15dpd_timeout = 30fragmentation = yesunique = replacerekey_time = 4hreauth_time = 13hproposals = aes256-sha512-ecp384local {auth = pskid = hub}remote {auth = psk}children {dmvpn {esp_proposals = aes256-sha512-ecp384local_ts = dynamic[gre]remote_ts = dynamic[gre]inactivity = 90mrekey_time = 100mmode = transportdpd_action = clearreqid = 1}}}}---Any idea what could be wrong?