Guest User!

You are not Sophos Staff.

This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DPD does not restart IPsec site-to-site connection

Wondering if this or similar issues resolved. I'm having this problem with only 1 of my VPN connections so far. The timing, however, used to be 1 hour, but is more like 4-8 hours inconsistently after changing lifetime of the IPSec SA. who knows.  But I found a StrongSWAN option that again, does not seem exposed in the Astaro GUI.


dpdaction     controls the use of  the  Dead  Peer  Detection  protocol
                     (DPD,  RFC  3706)  where  R_U_THERE notification messages
                     (IKEv1)  or  empty  INFORMATIONAL  messages  (IKEv2)  are
                     periodically sent in order to check the liveliness of the
                     IPsec peer. The  values  clear,  hold,  and  restart  all
                     activate DPD. If no activity is detected, all connections
                     with a dead peer are stopped and unrouted ( clear ),  put
                     in the hold state ( hold ) or restarted ( restart ).  For
                     IKEv1, the default is  none  which  disables  the  active
                     sending  of  R_U_THERE notifications.  Nevertheless pluto
                     will always send the DPD Vendor ID during connection  set
                     up in order to signal the readiness to act passively as a
                     responder if the peer wants to use DPD. For  IKEv2,  none
                     does’t  make sense, since all messages are used to detect
                     dead peers. If specified, it has the same meaning as  the
                     default ( clear ).

I would prefer to always set to RESTART for my things. But I'm betting that since Astaro might not be setting this, it's doing the CLEAR action. Further, the sad thing is that Dead Peer Detection is set at the entire router level in Astaro. However this option really is supposed to be at the connection level to be able to configure each one independently.

For now, I just turned off DPD for the entire router and going to see if that helps.


This thread was automatically locked due to age.
Parents

  • I would prefer to always set to RESTART for my things. But I'm betting that since Astaro might not be setting this, it's doing the CLEAR action.


    "restart" is the default dpdaction on every Astaro ever since. You must have overseen it:
    # grep dpdaction /var/chroot-ipsec/etc/ipsec.conf
    
            dpdaction="restart"



    For now, I just turned off DPD for the entire router and going to see if that helps.


    Why would you want to turn off DPD for a connection? IPsec is pretty useless without it.

  • Why would you want to turn off DPD for a connection? IPsec is pretty useless without it.


    Why do you say that? The only thing it would not do, is automatically shut down (or restart) a tunnel.  So without it, the systems would simply try to send traffic and have it fail due to some comm error. Not much different from every day life with an IPSec tunnel even with DPD on because other issues can happen behind it.
Reply

  • Why would you want to turn off DPD for a connection? IPsec is pretty useless without it.


    Why do you say that? The only thing it would not do, is automatically shut down (or restart) a tunnel.  So without it, the systems would simply try to send traffic and have it fail due to some comm error. Not much different from every day life with an IPSec tunnel even with DPD on because other issues can happen behind it.
Children
No Data