OPNsense Forum

English Forums => Virtual private networks => Topic started by: robertkwild on January 19, 2022, 01:34:45 AM

Title: Ipsec ikev2 mutual psk how to setup
Post by: robertkwild on January 19, 2022, 01:34:45 AM
Hi all,

Im trying to set up ipsec ikev2 mutual psk on my opnsense fw

I've looked on Google and can only find how to set up mschapv2

Anyone know of any good how tos to do this

Thanks,
Rob
Title: Re: Ipsec ikev2 mutual psk how to setup
Post by: BusinessTux on January 19, 2022, 06:30:59 PM
Hi Rob,

perhaps Google didn't found https://docs.opnsense.org/manual/vpnet.html#ipsec

Ulf
Title: Re: Ipsec ikev2 mutual psk how to setup
Post by: robertkwild on January 19, 2022, 08:14:29 PM
I don't see ipsec ikev2 mutual psk in the list
Title: Re: Ipsec ikev2 mutual psk how to setup
Post by: BusinessTux on January 19, 2022, 08:42:35 PM
You can find it in the single how-tos as Phase 1 auth method

E.G. https://docs.opnsense.org/manual/how-tos/ipsec-s2s-route.html I can.
Title: Re: Ipsec ikev2 mutual psk how to setup
Post by: robertkwild on January 20, 2022, 01:35:29 AM
I'm not after site to site I'm after site to remote clients
Title: Re: Ipsec ikev2 mutual psk how to setup
Post by: BusinessTux on January 20, 2022, 07:37:20 PM
As it looks, Mutual PSK is apparently only supported for IKEv1

https://docs.opnsense.org/manual/how-tos/ipsec-rw.html
Title: Re: Ipsec ikev2 mutual psk how to setup
Post by: robertkwild on January 21, 2022, 08:03:39 PM
thanks

looks like MS windows 10 only supports IKEv2 MSCHAPv2, bit of a bummer as the user needs to install a cert on there machine
Title: Re: Ipsec ikev2 mutual psk how to setup
Post by: robertkwild on January 21, 2022, 08:57:43 PM
do i need to import the CA or server cert to the remote user who wants to connect to my ipsec server?
Title: Re: Ipsec ikev2 mutual psk how to setup
Post by: robertkwild on January 24, 2022, 10:36:51 PM
Finally got it working by following the link you sent

One thing I didn't do was to untick block private networks as I thought that was a bad idea

Also I had to import my CA to my remote user otherwise I got a user error when trying to connect to vpn
Title: Re: Ipsec ikev2 mutual psk how to setup
Post by: BusinessTux on January 30, 2022, 11:16:20 AM
QuoteFinally got it working by following the link you sent
Great to hear.

QuoteOne thing I didn't do was to untick block private networks as I thought that was a bad idea
Correct. This is only for internal lab without public ip addresses.

QuoteAlso I had to import my CA to my remote user otherwise I got a user error when trying to connect to vpn
Yes. The computer of the remote user want to identify the vpn certificate and for this you have to trust your VPN-CA manually by importing the ca certificate.