WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: vpnc  (Read 3026 times)

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
vpnc
« on: August 30, 2009, 09:54:29 AM »
Thanks to Robert Schumann for:

Code: [Select]
Title:          vpnc.tce (TESTING)
Description:    vpn client for Cisco concentrators
Version:        0.5.3~svn-rev-416
Author:         Maurice Massar
Original-site:  http://www.unix-ag.uni-kl.de/~massar/vpnc/
Copying-policy: GPLv2
Size: 130KB
Extension_by:   Robert Schumann
Comments:       VPN Client needed to connect to cisco routers.
This extension is PPI compatible.
Change-log:     2009/08/30 Initial version.
Current: 2009/08/30


Code: [Select]
Title:          vpnc.tcz (TESTING)
Description:    vpn client for Cisco concentrators
Version:        0.5.3~svn-rev-416
Author:         Maurice Massar
Original-site:  http://www.unix-ag.uni-kl.de/~massar/vpnc/
Copying-policy: GPLv2
Size: 500KB
Extension_by:   Robert Schumann
Comments:       VPN Client needed to connect to cisco routers.
This extension is PPI compatible.
Change-log:     2009/08/30 Initial version.
Current: 2009/08/30


Offline alu

  • Sr. Member
  • ****
  • Posts: 429
Re: vpnc
« Reply #1 on: August 30, 2009, 11:23:23 AM »
tested three times the vpnc.tcz, but no luck; first test with sylpheed and links open and working as well as using my config file for vpnc (which works on my ubuntu machine with vpnc):

$ sudo vpnc myconfigfile.conf
route: SIOCADDRT: Invalid argument

trying without any web service loaded and with my config file, same error message; last try without any web service and without my config file, same error. it seems to me that there is a problem with the vpnc-script file; i have another one, but can't use it since the extension is loop mounted.

Offline alu

  • Sr. Member
  • ****
  • Posts: 429
Re: vpnc
« Reply #2 on: August 30, 2009, 11:28:25 AM »
... and i forgot the main point: after the error message has been displayed, i did ctrl-c in order to get back to prompt; then i would like to start links in order to post the error message; links started, but it could not connect to the web; doing it also three times, i noticed that after vpnc hangs, sylpheed continues to work (it was already open) and connects to the internet fine, but each new web-app newly open (i tried with links and opera) can't connect to the internet; sudo ping www.google.com returns the same result

Offline gutmensch

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 605
  • I can make it disappear, have no fear!
    • remembrance blog
Re: vpnc
« Reply #3 on: August 30, 2009, 06:24:12 PM »
Ok, I've tested vpnc.tcz again, for me it's working without any problem.

For me your error message looks like indeed a call from the vpnc-script to change the route fails on your network device. In my opinion there are some possibilities what caused this error:

1.) Problems with your network (busy device, other routes, programs trying to manage it, resolvconf, etc...)
2.) Problems relating to your special Cisco concentrator (I don't think that everyone is fully supported)
3.) Problems with the vpnc-script, which doesn't do what you need at your special configuration.

As debugging I would suggest:

1.) Run a fresh untouched version of tinycore as a guest in a Virtual Environment and load only vpnc and test it again.
2.) Execute the command "route -v" before you start vpnc, and after that. Even try to set the route manually like "route add default gw 192.168.1.1". Call dmesg and look out for other SIOCADDRT messages, as they relate to any network misconfiguration which might have been occured.
3.) If that doesn't help, extract the vpnc.tce extension and modify the vpnc-script to spit out more debugging information, where the route commands are called so that you can see, what he's trying to set.

Best regards,
Robert
If I seem unduly clear to you, you must have misunderstood what I said. (Alan Greenspan)

Offline alu

  • Sr. Member
  • ****
  • Posts: 429
Re: vpnc
« Reply #4 on: August 31, 2009, 04:51:20 AM »
thanks Robert, that was helpful and it now works. Here is what I did.

I started mc 2.3RC2 with nolocal norestore base in my bootline, and then install my internet connection (i am using a usb 3g dongle) and only load your vpnc.tcz extension with required dependencies; firstly, only running:

sudo vpnc myconffile

gave me the same error message as before, and i got after that no internet connection at all; i solved this last issue in copying back my resolv.conf to /etc which enables me to connect to the internet again; i then default the route to my vpn gateaway as you suggested with:

sudo route add default gw mydefaultgateaway

and then i restarted vpnc with:

sudo vpnc myconfigfile

and it worked, showing me a pid for vpnc and giving me access to the network at my office; i noticed that my resolv.conf was correctly modified, and moreover, as i ended vpnc by killing its pid, i saw that my resolv.conf was the usual one i am using in order to connect to the internet, which means that after vpnc ends, i can surf without beeing forced to reconnect or to copy back again my usual resolv.conf to /etc.

thank you warmely for your help and for this application.

Offline markcs

  • Newbie
  • *
  • Posts: 1
Re: vpnc
« Reply #5 on: September 15, 2009, 08:52:17 AM »
Hi!

Is there any possibility to get this version of vpnc included?

http://svn.unix-ag.uni-kl.de/vpnc/branches/vpnc-nortel/ (described here in ubuntu formums: http://ubuntuforums.org/showthread.php?t=441042)

This vpnc also connects to Nortel vpn servers ....

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: vpnc
« Reply #6 on: February 02, 2010, 08:23:25 PM »
Thanks to Robert Schumann for an update:

Code: [Select]
Title: vpnc.tcz
Description: vpnc - VPN concentrator for Cisco network routers
Version: 0.5.3~svn449
Author: Maurice Massar
Original-site: http://www.unix-ag.uni-kl.de/~massar/vpnc/
Copying-policy: GPLv2
Size: 64.0K
Extension_by: Robert Schumann
Comments: If you want to use the included pcf2vpnc script you will
have to install the perl5.tcz extension once as it is not
included in the dependencies (due to size).

Put your conf to /usr/local/etc/vpnc/your.conf and
add it to your backup.

This extension is PPI compatible
Change-log: 10/02/02 Bump to svn 0.5.3-svn449, rebuild, reduce size.
09/08/29 Initial version.
Current: 10/02/02


Offline gutmensch

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 605
  • I can make it disappear, have no fear!
    • remembrance blog
Re: vpnc
« Reply #7 on: February 03, 2010, 04:29:47 AM »
Update on update (is on the way):
- Needed again a fix for static directory declarations in source files although there's a makefile directive
- Hope to remember it next time ;)
If I seem unduly clear to you, you must have misunderstood what I said. (Alan Greenspan)

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: vpnc
« Reply #8 on: February 03, 2010, 08:11:02 AM »
Thanks to Robert Schumann for an update:

Code: [Select]
Title: vpnc.tcz
Description: vpnc - VPN concentrator for Cisco network routers
Version: 0.5.3~svn449
Author: Maurice Massar
Original-site: http://www.unix-ag.uni-kl.de/~massar/vpnc/
Copying-policy: GPLv2
Size: 64.0K
Extension_by: Robert Schumann
Comments: If you want to use the included pcf2vpnc script you will
have to install the perl5.tcz extension once as it is not
included in the dependencies (due to size).

Then do:
  1. pcf2vpnc your.pcf > your.conf
  2. sudo cp your.conf /usr/local/etc/vpnc/
  3. sudo vpnc your

Add your.conf to your backup and for automatic start put in
your username and password as well.

This extension is PPI compatible
Change-log: 10/02/03 Fix /etc/vpnc to /usr/local/etc/vpnc.
10/02/02 Bump to svn 0.5.3-svn449, rebuild, reduce size.
09/08/29 Initial version.
Current: 10/02/03