OPNsense Forum

Archive => 15.1 Legacy Series => Topic started by: Edge on February 19, 2015, 08:06:07 am

Title: ikev1 and ikev2 / Firewall
Post by: Edge on February 19, 2015, 08:06:07 am
Hi Folks,

i've installed opnsense and tested it. Seems very interessting for me and i think i will change our OpenBSD Firewall to Opnsense soon.
I have 2 Questions:
1.) Do you support ikev1? We have some Customers which still use ikev1 for IPSec VPN. I tried to establish a VPN between them and my Opnsense GW, but when i choose ikev1 i only receive "charon: 03[NET] received unsupported IKE version 1.0 from 1.2.3.4, sending INVALID_MAJOR_VERSION" Could you give me a hint?
2.) I have a large pf.conf from my Firewall and i don't want to copy it via Browser. So i would like to write a Script which converts my pf.conf to a format which fits to Opnsense. I've searched via command line but i wasn't able to find the file where to save Firewall Rules. Could you give an advise here where to find the file?
Thanks and keep going!
Title: Re: ikev1 and ikev2 / Firewall
Post by: franco on February 22, 2015, 09:42:14 am
Hi there,

(1) IKEv1 has been fixed with 15.1.6.1 -- we'd appreciate a heads-up if there are remaining issues: https://forum.opnsense.org/index.php?topic=77.0

(2) I'll get back on that soon, but there should be a way to pull it off. Most likely through the config.xml itself.


Thank you for your feedback :)

Franco
Title: Re: ikev1 and ikev2 / Firewall
Post by: Edge on February 23, 2015, 09:50:03 am
Hi franco,

thx for your little Update. IKEv1 works like a charm now.
I'm waiting for your input, when i finish the script, i will commit it to the community for an easy-migration of their pf.conf Firewalls.

Greetings
Title: Re: ikev1 and ikev2 / Firewall
Post by: Edge on February 23, 2015, 02:58:32 pm
I found something strange, i think it's only an issue with the Webgui:

When i establish an IPSec IKEv1 Site-to-Site Connection between two endpoints, everything works like a charm. I can ping through the tunnel, can transfer data etc.
But in the Gui Status -> IPSec -> Overview the Tunnel has always Status disconnected.
Again: Traffic is working well, in both directions, i've played with Firewall Rules but nothing gets me another Status than disconnected even the Tunnel is up and running.
Could you be so kind to check this?

Thanks in advance
Title: Re: ikev1 and ikev2 / Firewall
Post by: franco on February 23, 2015, 10:16:43 pm
Added to the issue tracker: https://github.com/opnsense/core/issues/64