network-manager openvpn does not support static key
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
NetworkManager-OpenVPN |
Unknown
|
Unknown
|
|||
network-manager-openvpn (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Bug Description
Binary package hint: network-
I want to use the NetworkManager applet with OpenVPN extension. Sadly this did not work.
I manually created a client.conf for OpenVPN. It is quiet simple:
remote xyz
dev tun
ifconfig 10.8.0.2 10.8.0.1
secret home-net.key
openvpn client.conf work.
Now I imported these config file into the NetworkManagerO
I use
Description: Ubuntu 9.04
Release: 9.04
Furthermore here an extract from the /var/log/
Oct 14 20:02:49 jupiter NetworkManager: <info> Starting VPN service 'org.freedeskto
Oct 14 20:02:49 jupiter NetworkManager: <info> VPN service 'org.freedeskto
Oct 14 20:02:49 jupiter NetworkManager: <info> VPN service 'org.freedeskto
Oct 14 20:02:49 jupiter NetworkManager: <info> VPN plugin state changed: 1
Oct 14 20:02:49 jupiter NetworkManager: <info> VPN plugin state changed: 3
Oct 14 20:02:49 jupiter NetworkManager: <info> VPN connection 'Home' (Connect) reply received.
Oct 14 20:02:49 jupiter nm-openvpn[4684]: OpenVPN 2.1_rc11 i486-pc-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] built on Mar 9 2009
Oct 14 20:02:49 jupiter nm-openvpn[4684]: NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Oct 14 20:02:49 jupiter nm-openvpn[4684]: /usr/sbin/
Oct 14 20:02:50 jupiter nm-openvpn[4684]: LZO compression initialized
Oct 14 20:02:50 jupiter nm-openvpn[4684]: TUN/TAP device tun0 opened
Oct 14 20:02:50 jupiter nm-openvpn[4684]: /sbin/ifconfig tun0 10.8.0.2 pointopoint 10.8.0.1 mtu 1500
Oct 14 20:02:50 jupiter nm-openvpn[4684]: /usr/lib/
Oct 14 20:02:50 jupiter NetworkManager: <info> VPN plugin failed: 2
Oct 14 20:02:50 jupiter nm-openvpn[4684]: script failed: external program exited with error status: 1
Oct 14 20:02:50 jupiter nm-openvpn[4684]: Exiting
Oct 14 20:02:50 jupiter NetworkManager: <info> VPN plugin failed: 1
Oct 14 20:02:50 jupiter NetworkManager: <info> VPN plugin state changed: 6
Oct 14 20:02:50 jupiter NetworkManager: <info> VPN plugin state change reason: 0
Oct 14 20:02:50 jupiter NetworkManager: <WARN> connection_
Oct 14 20:02:50 jupiter NetworkManager: <info> Policy set 'Auto eth0' (eth0) as default for routing and DNS.
Oct 14 20:03:02 jupiter NetworkManager: <debug> [1255543383.001439] ensure_killed(): waiting for vpn service pid 4679 to exit
Oct 14 20:03:02 jupiter NetworkManager: <debug> [1255543383.001619] ensure_killed(): vpn service pid 4679 cleaned up
Best regards!
I'm suffering from the *exact* same problem. conf.all. forwarding= 1
Specs:
- Default unmodified ubuntu kernel
- Firewall fully open on both sides, except on the server I do (to access other computers in my network):
- sysctl net.ipv4.
- iptables -A POSTROUTING -o ra0 -j MASQUERADE -t nat
Server.conf:
>>><<<
dev tun
ifconfig 10.8.0.1 10.8.0.2
secret static.key 1
comp-lzo
>>><<<
Client.conf:
>>><<<
remote 8.8.8.8 # Yes, I changed it for this post :)
dev tun
ifconfig 10.8.0.2 10.8.0.1
secret static.key 0
comp-lzo
route 10.1.9.0 255.255.255.0
>>><<<
static.key and both config files are located in /etc/openvpn/
static.key is generated with: openvpn --genkey --secret static.key
Doing server. conf on the server. client. conf on the client.
- openvpn --config /etc/openvpn/
- openvpn --config /etc/openvpn/
Gives me a good openvpn connection allowing to access all my computer in my network.
However, when trying to use the openvpn plugin inside network-manager as a client stuff goes wrong. I generated a config file from network-manager (by allowing all users to use it):
>>><<< 7308-41c0- 97b8-da1cb7bc8a c5
[connection]
id=VPN-connection 1
uuid=ae53c3a0-
type=vpn
autoconnect=false
timestamp=0
[ipv4] 10.1.9. 0;24;0. 0.0.0;0; auto-routes= false auto-dns= false hostname= false
method=auto
routes1=
ignore-
ignore-
dhcp-send-
never-default=false
[vpn] type=org. freedesktop. NetworkManager. openvpn type=static- key key=/etc/ openvpn/ static. key
service-
local-ip=10.8.0.2
comp-lzo=yes
remote=8.8.8.8
connection-
remote-ip=10.8.0.1
static-
>>><<<
This does not work, the log say:
Dec 25 15:15:54 Charlie NetworkManager: <info> Starting VPN service 'org.freedeskto p.NetworkManage r.openvpn' ... p.NetworkManage r.openvpn' started (org.freedeskto p.NetworkManage r.openvpn) , PID 7639 p.NetworkManage r.openvpn' just appeared, activating connections openvpn- vulnkey -q /home/ronald/ .static. key network- manager- openvpn/ nm-openvpn- service- openvpn- helper tun0 1500 1545 10.8.0.2 10.8.0.1 init virtual/ net/tun0, iface: tun0) virtual/ net/tun0, iface: tun0): no ifupdown configuration ...
Dec 25 15:15:54 Charlie NetworkManager: <info> VPN service 'org.freedeskto
Dec 25 15:15:54 Charlie NetworkManager: <info> VPN service 'org.freedeskto
Dec 25 15:15:54 Charlie NetworkManager: <info> VPN plugin state changed: 3
Dec 25 15:15:54 Charlie NetworkManager: <info> VPN connection 'Thuis' (Connect) reply received.
Dec 25 15:15:54 Charlie nm-openvpn[7642]: OpenVPN 2.1_rc19 i486-pc-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] built on Oct 13 2009
Dec 25 15:15:54 Charlie nm-openvpn[7642]: NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Dec 25 15:15:54 Charlie nm-openvpn[7642]: /usr/sbin/
Dec 25 15:15:54 Charlie nm-openvpn[7642]: LZO compression initialized
Dec 25 15:15:54 Charlie nm-openvpn[7642]: TUN/TAP device tun0 opened
Dec 25 15:15:54 Charlie nm-openvpn[7642]: /sbin/ifconfig tun0 10.8.0.2 pointopoint 10.8.0.1 mtu 1500
Dec 25 15:15:54 Charlie nm-openvpn[7642]: /usr/lib/
Dec 25 15:15:54 Charlie NetworkManager: SCPlugin-Ifupdown: devices added (path: /sys/devices/
Dec 25 15:15:54 Charlie NetworkManager: SCPlugin-Ifupdown: device added (path: /sys/devices/