LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   vpnc problem in openSUSE 10.3 GM (https://www.linuxquestions.org/questions/linux-networking-3/vpnc-problem-in-opensuse-10-3-gm-590749/)

levite 10-10-2007 05:42 AM

vpnc problem in openSUSE 10.3 GM
 
Hi everyone,

Can anyone help me with this one?

When trying to connect from command line, whether using a .pcf file or typing
logon info in when prompted I get always the same feedback:

vpnc: hash comparison failed: AUTHENTICATION_FAILED
check group password!

When trying to connect build a VPN connection from NetworkManager in GNOME or
KDE I get this error message:

Could not start a VPN connection Test due to a connection error.
The VPN login failed because the VPN program could not connect to the VPN
server.

Or is anyone able to use vpnc in openSUSE 10.3??


openSUSE 10.3 final
vpnc-0.3.3.75
iproute2-2.6.22-31
NetworkManager-glib-0.6.5-36
NetworkManager-0.6.5-36
NetworkManager-kde-0.2r674918-55
NetworkManager-devel-0.6.5-36
NetworkManager-gnome-0.6.5-36
NetworkManager-vpnc-0.5.0cvs20060202-175
NetworkManager-vpnc-gnome-0.5.0cvs20060202-175
NetworkManager-vpnc-kde-0.2r674918-55

windstrewn 10-12-2007 09:27 AM

Hi levite

Sorry, I can't help, but I can add a similar problem to the thread...

I have been using VPNC on Debian, Ubuntu and OpenSUSE 10.2 to connect to a Cisco concentrator for quite some time and have never run into problems. In fact, this setup has always been faster than a corresponding VPN connection under Windows.

However, since I installed OpenSUSE 10.3 (final) on one of my boxes, I've had nothing but trouble.

When I run

vpnc myConfigFile.conf

I can connect to the VPN gateway but I get the following message:
"Error: either "to" is duplicate or "hoplimit" is garbage"

After that I can even ping the VPN gateway. But I cannot ping any other machine.
The 'vpnc-disconnect' command closes the tunnel correctly and does not throw any more error messages.

To be on the save side I quickly set up a VPN Tunnel on a Debian Etch box using vpnc and my config file: no problem. The connection was immediately up and running just fine.


So, perhaps there's something strange about VPNC in OpenSUSE 10.3 in general...?


I'm sure that levite and myself would appreciate your help tremendously, you VPN-cracks out there... :)

nhorne 10-19-2007 08:56 PM

vpnc problem in openSUSE 10.3 GM - fixed (?)
 
I hit this problem too. I fixed it by updating /usr/share/vpnc/vpnc-script:

if [ -n "$IPROUTE" ]; then
fix_ip_get_output () {
sed 's/cache//;s/metric[ 0-9]\+//g;s/hoplimit [ 0-9]\+//g'
# sed 's/cache//;s/metric[0-9]\+ [0-9]\+//g'
}

(the commented out line is the original).

I found the solution here:

forum.linux-portugal.org/viewtopic.php?p=1869&sid=ab5eb2ab8a365531f9da5f135863d168

I don't speak Portuguese, but it seems to do the trick.

windstrewn 10-20-2007 07:03 AM

Problem solved
 
Thanks a lot, nhorne!!!

Your hint solved my problem.
Let me just add, that the spaces in your script excerpt are very important!

sed 's/cache//;s/metric[ 0-9]\+//g;s/hoplimit [0-9]\+//g'

still throws the error message "Error: either "to" is duplicate or "hoplimit" is garbage"

only

sed 's/cache//;s/metric[ 0-9]\+//g;s/hoplimit [ 0-9]\+//g'

with the space between the [ and the 0-9] does the trick. :study:


So happy VPN-surfing to everyone... ;)


All times are GMT -5. The time now is 11:28 AM.