VPN connection

Discussion in 'Linux' started by Chicksaw, Aug 3, 2008.

  1. Chicksaw

    Chicksaw

    Joined:
    Aug 1, 2008
    Messages:
    10
    Likes Received:
    0
    Hello,

    I have trouble starting a vpn connection on my aspire One.
    I installed every package related to vpn ( vpnc, openvpn, networkmanager-vpnc(-openvpn), pptp,..)
    One thing worked, that is the vpn connection manager(vpnc) where i could manage the connection but have no idea where to connect it.

    Anyone got a solution?
    thx
     
    Chicksaw, Aug 3, 2008
    #1
  2. Chicksaw

    anz

    Joined:
    Aug 4, 2008
    Messages:
    18
    Likes Received:
    0
    Dear Chicksaw,
    sorry - no solution but more questions. Calling vpnc with a profile (that works on other computer) results in
    The device exists - I have also removed it and created again with "mknod /dev/net/tun c 10 200" - same result.
    A "modprobe tun" gives a "FATAL: Module tun not found."
    Seems that the module is not compiled?
     
    anz, Aug 4, 2008
    #2
  3. Chicksaw

    anz

    Joined:
    Aug 4, 2008
    Messages:
    18
    Likes Received:
    0
    anz, Aug 4, 2008
    #3
  4. Chicksaw

    Chicksaw

    Joined:
    Aug 1, 2008
    Messages:
    10
    Likes Received:
    0
    Can you explain me how you made it work?
    I copied the files but whats next?
     
    Chicksaw, Aug 4, 2008
    #4
  5. Chicksaw

    Chicksaw

    Joined:
    Aug 1, 2008
    Messages:
    10
    Likes Received:
    0
    i have a config file and i can add this vpn connection via VPN Connection Manager(vpnc).
    Isn't there a user friendly way with a gui? because typing vpnc and manually adding the IPSEC etc... still gives the tun error, even after coping the modules.
    I need this vpn for my college network connection.
     
    Chicksaw, Aug 4, 2008
    #5
  6. Chicksaw

    anz

    Joined:
    Aug 4, 2008
    Messages:
    18
    Likes Received:
    0
    Hmmm - I only know kvpn (a gui with kde) - sorry, thats no satisfying answer (at work i user kde/gentoo) - I 'll search.
    Our network gurus use cisco - therefore i 've got a pcf file (for the cisco client - for that a gui exists). But cisco client may not work with the "newest" kernel (f.e. http://forums.gentoo.org/viewtopic-t-661331-highlight-cisco+client.html).
    But the pcf file cannot be used with vpnc - you need to cenvert it with a small perl script called pcf2vpnc.pl

    To use pcf2vpnc.pl:
    1) download the script at http://svn.unix-ag.uni-kl.de/vpnc/trunk/pcf2vpnc
    2) put the script pcf2vpnc.pl and the pcf file <pcf file> in a directory
    3) run the script
    perl pcf2vpnc.pl <pcf file> <vpnc config>
    4) Copy as root the new <vpnc config> to /etc/vpnc/default.conf
    (I hope the path is correct - I will correct it, when using the AspireOne at home)

    Here some fine links:

    VPN Setup http://support.cs.utah.edu/index.php?option=com_content&view=article&id=45&Itemid=73
    Cisco VPN and Linux: http://episteme.arstechnica.com/eve/forums/a/tpc/f/96509133/m/424003558831
    HOW TO: Cisco VPN Feisty Fawn 7.04 http://ubuntuforums.org/archive/index.php/t-500504.html


    Does still a "modprobe tun" (as root) result in a "FATAL: no module found"?


    ------------------------
    Sorry for my english ...
     
    anz, Aug 5, 2008
    #6
  7. Chicksaw

    Chicksaw

    Joined:
    Aug 1, 2008
    Messages:
    10
    Likes Received:
    0
    oke thanks, i downloaded the script but how do i run it?
    from the pcf file i manually made a conf file it looks like:
    IPSec gateway .... etc
     
    Chicksaw, Aug 5, 2008
    #7
  8. Chicksaw

    anz

    Joined:
    Aug 4, 2008
    Messages:
    18
    Likes Received:
    0
    Ok -
    perl pcf2vpnc.pl <pcf file> <vpnc config>
    f.e.
    Code:
    perl pcf2vpnc.pl my_uni_cisco.pcf default.conf
    worked ...

    open the terminal
    (f.e. Alt-F2, and type in the command line
    Code:
    terminal
    )

    Enter as root (in terminal):
    Code:
    su -
    You should have a directory /etc/vpnc:
    Code:
    cd /etc/vpnc
    There should be the example file called default.conf
    Code:
    ls -al
    Rename the example file f.e.:
    Code:
    mv default.conf default.conf.original
    Copy YOUR converted file <vpnc config> to /etc/vpnc
    Code:
    cp <path_where_your_vpnc_file_is>/<vpnc config> ./default.conf
    <vpnc config> ... placeholder for the name of your converted pcf file
    <path_where_your_vpnc_file_is> ... path of the directory, where <vpnc config> is stored
    ./ ... "sign" for your current directory - in our case it is /etc/vpnc

    after that (as root) typing
    Code:
    vpnc
    should work.
     
    anz, Aug 5, 2008
    #8
  9. Chicksaw

    anz

    Joined:
    Aug 4, 2008
    Messages:
    18
    Likes Received:
    0
    anz, Aug 5, 2008
    #9
  10. Chicksaw

    Chicksaw

    Joined:
    Aug 1, 2008
    Messages:
    10
    Likes Received:
    0
    everything worked after i changed the default file!
    thx for the tips.
     
    Chicksaw, Aug 5, 2008
    #10
  11. Chicksaw

    uzi

    Joined:
    Aug 1, 2008
    Messages:
    19
    Likes Received:
    0
    Both PPTP and VPNC connections working for me successfully as well, thanks for the description.

    When I donwloaded the cisco PCF file to copy the coded group password, some kind of wizzard poped up with Import options button, I have no clue what was that, any ideas? Can the AA1 handle PCF files directly maybe?

    I did not investigate it further, I've created the default.conf file
     
    uzi, Aug 8, 2008
    #11
  12. Chicksaw

    fatherted

    Joined:
    Aug 30, 2008
    Messages:
    4
    Likes Received:
    0
    Hi all
    I have established a VPN connection to our work network; however, the default route is getting overwritten to point to the tunnel whereas I only want 10.10.10.0/24 to be routed over the tunnel. On an ubuntu laptop that I have there is a vpnc-connect utility which reads a 'Target networks' config line in /etc/vpnc/default.conf and sets up the tunnel as I have described.

    How can I replicate vpnc-connect on my AA1?

    Thanks
    Michael
     
    fatherted, Aug 30, 2008
    #12
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.