How do I inport a .OVPN file
-
i am not sure if PFSense allows this but would save a lot of work if it can be done
I need to setup my Router with a vpn and the host server set me the ovpn file only while i can open it and see some of the config it does not seem to be working can i just import even if manually into the system and get this to work instead of trying to reverse engineer the information?
Current PFSesne version is 2.2
willing to install packets if needed -
i am not sure if PFSense allows this but would save a lot of work if it can be done
I need to setup my Router with a vpn and the host server set me the ovpn file only while i can open it and see some of the config it does not seem to be working can i just import even if manually into the system and get this to work instead of trying to reverse engineer the information?
Current PFSesne version is 2.2
willing to install packets if neededdo you have openvpn installed on the machine ?
are you on Windows or Mac ? Linux ? -
Yeah. You have to dissect the ovpn file and insert the tidbits into the right pfSense places. There is no import. It would be nice. I'm sure they'd add it if someone was to code it with some semblance to correctness.
-
Shame no one has made this as this was on the request list from version 2.0 at least
j.
no the point is for the whole network to use the connection (actual a 2nd lan only) by doing on a workstation defeats the value to my needsas to what os the clients of this 2nd lan will actually have all of them and also 1 unix machine in short not practical on the work station level let the router do its job
-
I see value in adding this capability… more specifically, to use a custom provided ovpn file as opposed to actually importing it into pfSense's openvpn xml config.
Then, if the user wants to override anything or add it, they just do it in custom options like normal.
I tried this and to a large degree, it pretty much already works, I can reference a provider config in the custom options by putting in
config /path/to/provider_config.ovpn
the only hiccup is that pfSense requires some fields and hard codes some values that could (and for me do) interfere with a full config (such as keep alive)
https://github.com/pfsense/pfsense/blob/f003f8db0eaba3837c0e2d2566181a51689a3107/src/etc/inc/openvpn.inc#L700
In conclusion, the import option would
- simply forgo requiring any fields
- exposes only the custom options field to allow specifying that custom ovpn file and allow additional parameters for definition or overriding.
I tested my specific use case in the shell and openvpn fires up the connection without a hitch.
Does anyone else see any value in this?
-
I agree, adding this capability would be a big value.
-
IS there still no package capable of importing an ovpn file ?
-
No.