Results 1 to 5 of 5

Thread: VPN connection fails on 13.10 with "invalid VPN secrets" error

  1. #1
    Join Date
    Dec 2013
    Beans
    1

    VPN connection fails on 13.10 with "invalid VPN secrets" error

    After upgrading to Ubuntu 13.10 my VPN connection stated behaving erratically. I used to work ok in version 12.04, but after the upgrade I repeatedly get the "...invalid VPN secrets." error and the VPN fails to connect. I just have to retry 3 or 4 times in a row to get the VPN to connect successfully. This is without any changes to the VPN connection configuration or network manager restart.
    Just try to connect over and over again until it goes through.
    This is a daily occurrence.

    It is getting tiresome to keep retrying until it connects. This worked like a charm before.
    Since I don't have to actually change anything in the configuration to make it work (just be persistent and patient) it would seem something gets either cached or not released properly.

    Also, is there a way to get the message to be more explicit as to what it failed?

    Any help and ideas are welcomed!

  2. #2
    Join Date
    Jan 2014
    Beans
    26

    Re: VPN connection fails on 13.10 with "invalid VPN secrets" error

    I feel for the OP, as this is an infamous error, apparently due to an as-yet unfixed Gnome bug, which is all over the web, but, which nobody seems to know exactly why it happens, nor, more importantly, how to debug.
    Nobody even seems to know WHAT a VPN secret is, in the first place!

    If it helps the OP, I've tried EVERYTHING that is suggested on the web, as people aimlessly tried various and sundry remedies, and documented them all over here this week:
    Installing Ubuntu 13.10 client for free public person vpn server (VPN Reactor)

    Note: Other very similar Ubuntu threads (most either wholly unanswered or filled with shots-in-the-dark) appear to be:

    1. VPN connection fails on 13.10 with "invalid VPN secrets" error, by pvictory5
    2. hma open vpn - invalid vpn secret, by jgw
    3. OpenVPN, by carranty
    4. openvpn - invalid secrets error, by qwertyjjj
    5. Invalid VPN Secrets driving me mad!, by jegan21
    6. Tried everything and still "No VPN secrets found!"\., by koohyar
    7. The VPN connection 'xxxxx' failed because there were no valid VPN secrets., & The VPN connection 'xxxxx' failed because there were no valid VPN secrets. by giesen2
    8. "No VPN Secrets" + Not storing password, by HangukMiguk
    9. OpenVPN fails with no valid secrets, by yedd
    10. Re: PPTP VPN connection is failed after awhile, by demuxer
    11. Re: How to Connect to PrivateTunnel.com Service Under Ubuntu 11.10, by xylo04
    12. Invalid VPN secrets, by Deathmoon
    13. VPN PPTP 'No VPN secrets!', by newbiefly
    14. invalid VPN secrets, by haloflightleader
    15. VPN - failed because of invalid VPN secrets, by chuckNbanna
    16. Getting "No valid secrets" when trying to connect, by jancogo
    17. "No valid VPN Secrets", by altjx
    18. invalid VPN secrets, by mogambo
    19. VPN Connection Error "no valid VPN secrets.", by Mega_Fauna
    20. Ubuntu 9.10 - the vpn connection 'xxx' failed because there were no valid vpn secrets, by sweisler
    21. There were no valid vpn secrets error from NetworkManger, by hq4ever
    22. no valid VPN secrets, by DeViLDuD3
    23. How I fixed my "invalid VPN secrets" problem, by Roadcrew
    24. OpenVPN No Secrets error when connecting. by T3kG33k

    etc.
    Last edited by Gustav_Toppa; February 26th, 2014 at 01:52 PM.

  3. #3
    Join Date
    Apr 2014
    Beans
    1

    Re: VPN connection fails on 13.10 with "invalid VPN secrets" error

    this is the solution i used

    As root edit /etc/NetworkManager/system-connections/vpn-connection-name and under [vpn], change the password flags line to:


    password-flags=0


    And add the following:
    [vpn-secrets]
    password=(your vpn password)

  4. #4
    Join Date
    Apr 2007
    Location
    Stanwood, WA
    Beans
    171
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: VPN connection fails on 13.10 with "invalid VPN secrets" error

    Quote Originally Posted by dan84 View Post
    this is the solution i used

    As root edit /etc/NetworkManager/system-connections/vpn-connection-name and under [vpn], change the password flags line to:


    password-flags=0


    And add the following:
    [vpn-secrets]
    password=(your vpn password)
    This worked for me, too

  5. #5
    Join Date
    May 2012
    Beans
    17

    Re: VPN connection fails on 13.10 with "invalid VPN secrets" error

    I tried the above, with the following results; it is probably important to note that this Cisco VPN connection uses Group authentication (in addition to the regular username and login)
    I have an the following in my [vpn] section:

    Code:
    [vpn]
    NAT Traversal Mode=cisco-udp
    ipsec-secret-type=save
    IPSec secret-flags=1
    xauth-password-type=save
    Vendor=cisco
    Xauth username=**********
    IPSec gateway=***.***.***.***
    DPD idle timeout (our side)=90
    IPSec ID=*****
    Xauth password-flags=0
    Perfect Forward Secrecy=server
    IKE DH Group=dh2
    Local Port=500
    I tried setting the bolded entry above to 0, and also added the [vpn-secrets] section as described:

    Code:
    [vpn-secrets]
    password=*********
    but not only did that not work, it caused another entry to be added to the [vpn-secrets] section:

    Code:
    [vpn-secrets]
    password=*********
    Xauth password=*****
    So:
    1. Should I leave the first line (Xauth password-flags) alone, and add a NEW entry just called password-flags
    2. Should I change my password entry in the [vpn-secrets] to Xauth password?

    Thanks!

Tags for this Thread

Bookmarks

Posting Permissions

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