FedoraForum.org - Fedora Support Forums and Community
Results 1 to 8 of 8
  1. #1
    Join Date
    Nov 2009
    Posts
    59

    OpenVPN service is dead

    I am running F13 kernel 2.6.33.3-85.fc13.x86_64 The services GUI shows OpenVPN as enabled and dead.

    If I restart it from a terminal it shows

    Shutting down openvpn: [ OK ]
    Starting openvpn: [ OK ]

    but when I check the status from the terminal it shows

    openvpn: service not started

    I'm sure it worked when I first set it up but I have not used it for a while.

    I had to manually install system-config-services and Samba. Again I am sure Samba was there.

    Any ideas as to how to get openvpn working. It works perfectly in F12 which I also have installed as part of a multi boot machine.

  2. #2
    Join Date
    Jan 2005
    Posts
    200

    Re: OpenVPN service is dead

    post any openvpn-related output from /var/log/messages

  3. #3
    Join Date
    Nov 2008
    Location
    Canada
    Posts
    2,719

    Re: OpenVPN service is dead

    If nothing there, then launch it from a terminal.

    su
    openvpn --config ConfigFileName

  4. #4
    Join Date
    Nov 2009
    Posts
    59

    Re: OpenVPN service is dead

    Extract from /var/log/messages

    May 20 11:15:46 FSLServer NetworkManager[1213]: <info> Starting VPN service 'org.freedesktop.NetworkManager.openvpn'...
    May 20 11:15:46 FSLServer NetworkManager[1213]: <info> VPN service 'org.freedesktop.NetworkManager.openvpn' started (org.freedesktop.NetworkManager.openvpn), PID 3415
    May 20 11:15:46 FSLServer NetworkManager[1213]: <info> VPN service 'org.freedesktop.NetworkManager.openvpn' appeared, activating connections
    May 20 11:15:46 FSLServer NetworkManager[1213]: <info> VPN plugin state changed: 1
    May 20 11:15:46 FSLServer NetworkManager[1213]: <info> VPN plugin state changed: 3
    May 20 11:15:46 FSLServer NetworkManager[1213]: <info> VPN connection 'FSLClient' (Connect) reply received.
    May 20 11:15:46 FSLServer NetworkManager[1213]: <warn> VPN connection 'FSLClient' failed to connect: 'No VPN secrets!'.
    May 20 11:15:46 FSLServer NetworkManager[1213]: <warn> error disconnecting VPN: Could not process the request because no VPN connection was active

    re starting from console where do I find the config file I have searched for every .conf file including hidden files and cannot find any file other than the sample files.

    Here are the log messages when connecting in F12

    May 20 12:44:53 localhost NetworkManager: <info> Starting VPN service 'org.freedesktop.NetworkManager.openvpn'...
    May 20 12:44:53 localhost NetworkManager: <info> VPN service 'org.freedesktop.NetworkManager.openvpn' started (org.freedesktop.NetworkManager.openvpn), PID 2323
    May 20 12:44:53 localhost NetworkManager: <info> VPN service 'org.freedesktop.NetworkManager.openvpn' appeared, activating connections
    May 20 12:44:53 localhost NetworkManager: <info> VPN plugin state changed: 1
    May 20 12:44:53 localhost NetworkManager: <info> VPN plugin state changed: 3
    May 20 12:44:53 localhost NetworkManager: <info> VPN connection 'FSLClient' (Connect) reply received.
    May 20 12:44:53 localhost nm-openvpn[2327]: OpenVPN 2.1.1 x86_64-redhat-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] built on Jan 5 2010
    May 20 12:44:53 localhost nm-openvpn[2327]: NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
    May 20 12:44:53 localhost nm-openvpn[2327]: Control Channel Authentication: using '/media/XP_Pro_C/Program Files/OpenVPN/config/ta.key' as a OpenVPN static key file
    May 20 12:44:53 localhost nm-openvpn[2327]: LZO compression initialized
    May 20 12:44:53 localhost nm-openvpn[2327]: UDPv4 link local: [undef]
    May 20 12:44:53 localhost nm-openvpn[2327]: UDPv4 link remote: xxx.xxx.xxx.xxx:1194
    May 20 12:44:55 localhost nm-openvpn[2327]: [MOSVPNSVR] Peer Connection Initiated with xxx.xxx.xxx.xxx:1194
    May 20 12:44:57 localhost nm-openvpn[2327]: TUN/TAP device tap0 opened
    May 20 12:44:57 localhost nm-openvpn[2327]: /sbin/ip link set dev tap0 up mtu 1500
    May 20 12:44:57 localhost nm-openvpn[2327]: /sbin/ip addr add dev tap0 10.8.0.6/24 broadcast 10.8.0.255
    May 20 12:44:57 localhost avahi-daemon[1244]: Joining mDNS multicast group on interface tap0.IPv4 with address 10.8.0.6.
    May 20 12:44:57 localhost avahi-daemon[1244]: New relevant interface tap0.IPv4 for mDNS.
    May 20 12:44:57 localhost avahi-daemon[1244]: Registering new address record for 10.8.0.6 on tap0.IPv4.
    May 20 12:44:57 localhost nm-openvpn[2327]: /usr/libexec/nm-openvpn-service-openvpn-helper tap0 1500 1574 10.8.0.6 255.255.255.0 init
    May 20 12:44:57 localhost NetworkManager: <info> VPN connection 'FSLClient' (IP Config Get) reply received.
    May 20 12:44:57 localhost NetworkManager: <info> VPN Gateway: xxx.xxx.xxx.xxx
    May 20 12:44:57 localhost NetworkManager: <info> Tunnel Device: tap0
    May 20 12:44:57 localhost NetworkManager: <info> Internal IP4 Address: 10.8.0.6
    May 20 12:44:57 localhost NetworkManager: <info> Internal IP4 Prefix: 24
    May 20 12:44:57 localhost NetworkManager: <info> Internal IP4 Point-to-Point Address: 0.0.0.0
    May 20 12:44:57 localhost NetworkManager: <info> Maximum Segment Size (MSS): 0
    May 20 12:44:57 localhost NetworkManager: <info> DNS Domain: '(none)'
    May 20 12:44:57 localhost nm-openvpn[2327]: Initialization Sequence Completed
    May 20 12:44:58 localhost NetworkManager: <info> VPN connection 'FSLClient' (IP Config Get) complete.
    May 20 12:44:58 localhost NetworkManager: <info> Policy set 'eth0' (eth0) as default for routing and DNS.
    May 20 12:44:58 localhost NetworkManager: <info> VPN plugin state changed: 4
    May 20 12:44:59 localhost avahi-daemon[1244]: Registering new address record for fe80::24ad:8dff:fe82:8ae8 on tap0.*.
    Last edited by FSLLL; 20th May 2010 at 12:54 PM. Reason: Added log from F12

  5. #5
    Join Date
    Nov 2008
    Location
    Canada
    Posts
    2,719

    Re: OpenVPN service is dead

    Sorry. I assumed you were running it as a service. haven't a clue wrt network manager. If you have all your crt and keys selected then launch selinux troubleshooter as it may prevent NM from accessing VPN secrets from home folders. Past that, I don't know.

  6. #6
    Join Date
    Nov 2009
    Posts
    59

    Re: OpenVPN service is dead

    thanks beaker. I had already tried with selinux disabled, to take it out of the equation, and it made no difference.

    Presumably it could be a problem with the current version of network manager. I'll try creating another connection in Network Manager.
    Last edited by FSLLL; 20th May 2010 at 02:17 PM.

  7. #7
    Join Date
    Nov 2008
    Location
    Canada
    Posts
    2,719

    Re: OpenVPN service is dead

    Just a guess or shot but how about permissions? If the keys and certificates were moved, are they holding onto the original and possibly wrong uid? chown & chmod? NM broke again is likely closer to the truth.

    Might be easier to create a server.conf for the connection and run it as a service.

  8. #8
    Join Date
    Nov 2009
    Posts
    59

    Re: OpenVPN service is dead

    The keys and certificates are the same ones in the same directory regardless of which OS I am using. They work fine in Fedora 12, Ubuntu 9.04, Windows XP Pro and Windows Server 2003. It's no major problem as I can use F12 when I need the VPN.

    I would just like to get it working in F13. The nmb service is also dead on F13.

Similar Threads

  1. [SOLVED] openvpn service is dead
    By vofka in forum Servers & Networking
    Replies: 1
    Last Post: 17th April 2010, 02:08 PM
  2. nmb service is dead
    By ttx336 in forum Using Fedora
    Replies: 27
    Last Post: 18th January 2010, 11:58 PM
  3. OpenVPN service is dead
    By litikiti in forum Servers & Networking
    Replies: 5
    Last Post: 18th January 2010, 02:10 PM
  4. Why my OpenVPN service can't start up ?
    By yu xintian in forum Using Fedora
    Replies: 1
    Last Post: 24th November 2009, 11:16 AM
  5. OpenVPN service failure
    By madplague in forum Servers & Networking
    Replies: 0
    Last Post: 31st July 2004, 03:11 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •