Headless VPN connections



Hi!

 I have a few (heh) headless boxes that use NetworkManager for
connectivity, and we'd like to keep it that way (without random hacks
and shellscripts, preferrably)

One of the things that we want is to set up a VPN connection, each box
should automatically reconnect to the VPN if doable, and try to stay
connected.

However, The documentation for this is. pretty lacking.

So, what I want to do is add a config file with the connection
specification for a VPN setup to the base OS of all machines, and have
them "just work" as much as possible.


Now:
  where can I find the documentation for the KeyFile config format? I
think I've seen something in the past, but I can't seem to re-find it.
(hidden on the wiki?)

And:
  Is the below config file "correct" ? What is missing, and what should
I think about for maximum compability?


---8<---
[connection]
id=vpn
uuid=c0ffee00-dead-dead-dead-c0ffeedecaff
type=vpn
autoconnect=true

[vpn]
service-type=org.freedesktop.NetworkManager.openvpn
connection-type=tls
remote=vpn.vpn.host.vpn
cert-pass-flags=0  # what does this do?
mssfix=yes  # compat?
remote-cert-tls=server # WTF is this? Probably passed on to openvpn?
cert=/my/client.cert
key=/my/client.key
ca=/my/ca.cert


[ipv6]
method=auto # what does this do? dhcp?

[ipv4]
method=auto # dhcp?`Static ip?
---8<---




Regards,
  D.S.

-- 
8362 CB14 98AD 11EF CEB6  FA81 FCC3 7674 449E 3CFC

Attachment: signature.asc
Description: OpenPGP digital signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]