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

Site to site IPSEC - Astaro -> Juniper

Hi

Has anyone come across this one before, Astaro to Juniper ipsec.  When the tunnel is connecting with a single remote network then all is fine, when I add in the other two networks that are required the tunnel becomes unstable and the following arrives in the log files.

My understanding is that the juniper side does not like something and is stripping down the tunnel, at which point the astaro tries to rebuild it.

I can add each of the 3 remote networks into the config indiviually (1 at a time) and the tunnel is stable, add all 3 and it goes down and down and down.

Any suggestions are welcome, the juniper side is out of my control and I am trying to get more information from the 3rd party but I would like to arrive there armed with some info to start with.

Log file --------------
2015:01:08-16:15:38 Astaro220-1 pluto[8156]: "S_Connection 2" #7: initiating Quick Mode PSK+ENCRYPT+TUNNEL+UP to replace #4 {using isakmp#1}
2015:01:08-16:15:38 Astaro220-1 pluto[8156]: "S_Connection 2" #8: initiating Quick Mode PSK+ENCRYPT+TUNNEL+UP to replace #3 {using isakmp#1}
2015:01:08-16:15:38 Astaro220-1 pluto[8156]: "S_Connection 2" #9: initiating Quick Mode PSK+ENCRYPT+TUNNEL+UP to replace #2 {using isakmp#1}
2015:01:08-16:15:38 Astaro220-1 pluto[8156]: "S_Connection 2" #7: sent QI2, IPsec SA established {ESP=>0xd212dd0f 0xfdd1bc60 0x5ba4c793 


This thread was automatically locked due to age.
Parents
  • Paul,

    The UTM has an IPsec feature called "Anti Replay" enabled. It is not configurable. (See NOTES below). You can try enabling replay protection in the Juniper side and see if that helps, it may or may not. If you have replay DISABLED on the juniper side, then you have ZERO change of building a stable tunnel.

    I have no idea of this is your problem, but I know for sure that it is an issue with default juniper settings, were replay protection is disabled.

    The symptoms are pretty simple to recognize. You can get the tunnel established and it will pass traffic as expected, until that traffic becomes congested. TCP Packets, doing what TCP packets do, will start to arrive out of order. At some point the UTM IPsec stack will inspect the traffic looking for the packet numbering, to ensure that there is no MIM attack but it will find no numbers (or find an unexpected result) and will BLOCK the tunnel WIHTOUT ONE BIT OF LOGGING. No mind you, the tunnel will not collapse, it will stay up and connected, but it will simply not pass any user traffic and instead will only pass the heartbeat and other IPsec keep-alive data. 

    You see Anti-Replay is a little understood compile time configurable feature of the OpenSwan (and derivatove) IPsec packages. It is a security option (on by default) to prevent out of order (man-in-the-middle) type of packet attacks against the tunnel. It is a mess to get working between different vendors, so as a rule we disable replay protection when building IPsec tunnels between dissimilar endpoints.

    Here is the rub, you can't turn replay protection off on a UTM IPsec tunnel. The brain trust in development feels that it is a "security risk" to allow an end user to turn it off (laughable at best). At the same time, they also refuse to turn up any kind of logging to indicate that Replay Protection has kicked in OR that the tunnel traffic is being blocked by said protection.  THIS IS A HUGE FAIL on the part of SOPHOS, any what you slice it and has been ignored for a long time. In fact, there are plenty of unsolved IPsec problem threads here that can easily be attributed to this issue, except few folks know about it and development refuses to address it.

    So not sure if that is your problem but it is worth a look...
Reply
  • Paul,

    The UTM has an IPsec feature called "Anti Replay" enabled. It is not configurable. (See NOTES below). You can try enabling replay protection in the Juniper side and see if that helps, it may or may not. If you have replay DISABLED on the juniper side, then you have ZERO change of building a stable tunnel.

    I have no idea of this is your problem, but I know for sure that it is an issue with default juniper settings, were replay protection is disabled.

    The symptoms are pretty simple to recognize. You can get the tunnel established and it will pass traffic as expected, until that traffic becomes congested. TCP Packets, doing what TCP packets do, will start to arrive out of order. At some point the UTM IPsec stack will inspect the traffic looking for the packet numbering, to ensure that there is no MIM attack but it will find no numbers (or find an unexpected result) and will BLOCK the tunnel WIHTOUT ONE BIT OF LOGGING. No mind you, the tunnel will not collapse, it will stay up and connected, but it will simply not pass any user traffic and instead will only pass the heartbeat and other IPsec keep-alive data. 

    You see Anti-Replay is a little understood compile time configurable feature of the OpenSwan (and derivatove) IPsec packages. It is a security option (on by default) to prevent out of order (man-in-the-middle) type of packet attacks against the tunnel. It is a mess to get working between different vendors, so as a rule we disable replay protection when building IPsec tunnels between dissimilar endpoints.

    Here is the rub, you can't turn replay protection off on a UTM IPsec tunnel. The brain trust in development feels that it is a "security risk" to allow an end user to turn it off (laughable at best). At the same time, they also refuse to turn up any kind of logging to indicate that Replay Protection has kicked in OR that the tunnel traffic is being blocked by said protection.  THIS IS A HUGE FAIL on the part of SOPHOS, any what you slice it and has been ignored for a long time. In fact, there are plenty of unsolved IPsec problem threads here that can easily be attributed to this issue, except few folks know about it and development refuses to address it.

    So not sure if that is your problem but it is worth a look...
Children
No Data