I would like to propose the following patch to handle the options in the
configuration file (just tested it right now, and it does the job)

[vpn]
<...>
ping=10
ping-restart=60

As one can see, the process spawned has the proper arguments :
$ ps auxw | grep vpn
root      3752  0.0  0.0  28444  2728 ?        S    22:16   0:00 
/usr/sbin/openvpn --remote <...> --nobind --dev tun --proto udp --port 1194 
--auth-nocache --ping-restart 60 --ping 10 --syslog nm-openvpn 
--script-security 2 --up 
/usr/lib/NetworkManager/nm-openvpn-service-openvpn-helper --up-restart 
--persist-key --persist-tun --management 127.0.0.1 1194 
--management-query-passwords --route-noexec --ifconfig-noexec --secret <...> 
--ifconfig 192.168.100.2 192.168.100.1

This alone of course won't fix the UI, but it's a start.

** Attachment added: "Adds "--ping" and "--ping-restart""
   
https://bugs.launchpad.net/ubuntu/+source/network-manager-openvpn/+bug/364101/+attachment/4435168/+files/support-ping-options

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/364101

Title:
  network-manager-openvpn does not support all options supported by
  openvpn

To manage notifications about this bug go to:
https://bugs.launchpad.net/network-manager-openvpn/+bug/364101/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to