Page 1 of 1

L2TP/IPSec - Can only connect with SHA1

Posted: Sat Jun 17, 2017 2:14 pm
by CuoreSportivo
Hello everyone!
First post here, so sorry for any inconvenience or mistakes.

Long ago, I set up my MikroTik (RB951G-2HnD with latest current) to act as a L2TP VPN server with IPSec encryption. All this time, I had been using for Hash/Authentication SHA1 and for Encrypton 3DES. Since both of them are considered unsafe, I decided to replace them with SHA256 and AES128.
For some reason, since I applied the above changes, I cannot any more connect to my VPN neither from my Windows 10 laptop, nor from my iPhone (OS 10), nor from my Android (7.0) phone.

Any help is appreciated.


Here are the logs
Image

and here are the IPSec settings (replace SHA1 -which is shown in the pics- with SHA256)
Image Image

Re: L2TP/IPSec - Can only connect with SHA1

Posted: Mon Jun 19, 2017 12:20 pm
by hgonzale
Yes but you are using SHA1 (insecure now) and the original post and me, we are having troubles using sha256

Re: L2TP/IPSec - Can only connect with SHA1

Posted: Fri Jun 23, 2017 12:54 pm
by CuoreSportivo
As hgonzale said, the problem is that I am unable to connect to my VPN when I use SHA256.
@hgonzale, are you trying to connect form a Windows device?

Re: L2TP/IPSec - Can only connect with SHA1

Posted: Fri Jun 23, 2017 6:21 pm
by hgonzale
not, mikrotik -- mikrotik

Re: L2TP/IPSec - Can only connect with SHA1

Posted: Fri Jun 23, 2017 6:41 pm
by pe1chl
You are correct, you can use AES256 and SHA256 in phase 2 but not in phase 1, it does not work.
There are compatibility issues.

Re: L2TP/IPSec - Can only connect with SHA1

Posted: Fri Jun 23, 2017 6:51 pm
by hgonzale
phase1? Could you explain me a little bit!!!!

Thank you

Re: L2TP/IPSec - Can only connect with SHA1

Posted: Fri Jun 23, 2017 7:52 pm
by pe1chl
phase1? Could you explain me a little bit!!!!
When you are not even familiar with IPsec terms like phase 1 and phase 2, and you don't want to spend time
on investigating this yourself, I advise you to not change the default parameters! You will quickly find yourself
in a very difficult situation from which it is difficult to recover when you have not made notes along the way.
(similar to Tom Thumb)

Re: L2TP/IPSec - Can only connect with SHA1

Posted: Fri Jun 23, 2017 10:05 pm
by hgonzale
Ok, I will investigate myself, but in resume, aren't we able to use sha256?

I am providing free VPN for friends and journals in my country (Venezuela) for their own security, and I want to help them with the security...

Re: L2TP/IPSec - Can only connect with SHA1

Posted: Fri Jun 23, 2017 10:12 pm
by pe1chl
The normal default parameters are plenty secure enough to use for a VPN for you and your friends.
The 256 bit variants are really for the extremely paranoid who believe the CIA is trying to break into their encryption
using their supercomputers. It is not at all like default IPsec is wide open for cracking, it is quite secure especially
when compared to other alternatives.

Unfortunately there are interworking isssues with those newer encryption options. So you will have to be able
to debug problems and find workarounds, something that you will not be able to do without in-depth knowledge of
what all those checkmarks and options really do.

Re: L2TP/IPSec - Can only connect with SHA1

Posted: Fri Jun 23, 2017 10:17 pm
by hgonzale
Jajaja I am not paranoid with the CIA.. and even.. in personal, I am pro USA jajajaja (sorry for others)
But my paranoid is with Venezuelan government and for the security of the journalist I am helping!!!!!
And Venezuela government is helped by G2... sorry for talking about politicians jeje
Thank you a lot

Re: L2TP/IPSec - Can only connect with SHA1

Posted: Tue Oct 10, 2017 2:59 pm
by CuoreSportivo
You are correct, you can use AES256 and SHA256 in phase 2 but not in phase 1, it does not work.
There are compatibility issues.
Hello pe1chl,
Are these compatibility issues spotted on the server (MT) side or on the client (Windows/Android/iOS) side?
Do you, or a MT representative, know if these issues are going to be addresses?