FedoraForum.org - Fedora Support Forums and Community
Results 1 to 7 of 7
  1. #1
    Join Date
    May 2011
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    vpnc not connecting

    Hi All,
    i need to install vpnc in amazon ec2 fedor 8 instance. i have installed with yum install vpnc commaned. And i have placed config file in /etc/vpnc/some.conf. but it is not connecting and giving the following error.
    vpnc: can't open /dev/net/tun, check that it is either device char 10 200 or (with DevFS) a symlink to ../misc/net/tun (not misc/net/tun): No such device.
    any help, thanks in advance

  2. #2
    Join Date
    Jan 2010
    Posts
    8,699
    Mentioned
    41 Post(s)
    Tagged
    0 Thread(s)

    Re: vpnc not connecting

    Haven't seen that particular error. Is there a /dev/net/tun?

    This probably has something to do with Amazon's EC2 cloud configuration, but that's just a guess.


    You may have to load the module

    moprobe tun

    If you get fatal, no tun module found or something similar, then it means that something might be slightly wrong with the install. I haven't used EC2 so don't know exactly how it works, but if that's the case, and there is no /dev/net tun, I would try a different EC2 machine if that's simple.

    If the device exists and all that, then it may simply be that you didn't run vpnc with root privilege, which is necessary for it to start.

  3. #3
    Join Date
    May 2011
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: vpnc not connecting

    Thank you for reply. i am very new to fedora. i don’t know how to load the module. i run vpnc as root only. i have checked the file location /dev/net/tun. tun file is the there with zero bytes.
    first of all, am i installing vpnc in write way. i have done with "yum install vpnc". and made changes to config file. and run vpnc as root.
    my doubt is it correct way to install vpnc.

  4. #4
    Join Date
    Jan 2010
    Posts
    8,699
    Mentioned
    41 Post(s)
    Tagged
    0 Thread(s)

    Re: vpnc not connecting

    To load it, type the command

    modprobe tun


    Then doing


    lsmod |grep tun

    should show that it's loaded.

    Then try again. Your manner of installation, yum install vpnc should be correct.

    I have a moderately old page about it, (doesn't cover this issue though) at

    http://home.roadrunner.com/~computertaijutsu/vpnc.html

    (Actually, it covers CentOS more than Fedora. In Fedora, I didn't mention that the best way to install it there is to use yum -y install vpnc.)

  5. #5
    Join Date
    May 2011
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: vpnc not connecting

    I have recomplied kernel which is provided by amazon(it is 2.6.16. amazon will take this aversion only always). now when i am executing "modprobe tun" i am getting the follwong error.

    WARNING: Error inserting crc32 (/lib/modules/2.6.16-xenU/kernel/lib/crc32.ko): I
    nvalid module format
    FATAL: Error inserting tun (/lib/modules/2.6.16-xenU/kernel/drivers/net/tun.ko):
    Invalid module format

  6. #6
    Join Date
    Jan 2010
    Posts
    8,699
    Mentioned
    41 Post(s)
    Tagged
    0 Thread(s)

    Re: vpnc not connecting

    Wow, I have no idea with a 2.6.16 kernel. What version of Fedora is it running?

    Are you sure this is Fedora and not RHEL or CentOS? Even RHEL 5 has a 2.6.18 kernel.

    I really can't help in this case, I would guess you need an older version of vpnc.

  7. #7
    Join Date
    May 2011
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: vpnc not connecting

    It is fedora 8.

    ---------- Post added at 02:12 PM ---------- Previous post was at 02:06 PM ----------



    ---------- Post added at 02:13 PM ---------- Previous post was at 02:12 PM ----------

    kernel is 2.6.16-xenU

    ---------- Post added at 05:27 PM ---------- Previous post was at 02:13 PM ----------

    Amazon Ec2 fedora 8 instance will take always 2.6.16. it is provided dev source
    http://s3.amazonaws.com/ec2-download...2.6.16-ec2.tgz. i am downloading this and recompiling the kernel. even after that when i am trying to "modprobe tun" it is giving the following error.

    WARNING: Error inserting crc32 (/lib/modules/2.6.16-xenU/kernel/lib/crc32.ko): Invalid module format FATAL: Error inserting tun (/lib/modules/2.6.16-xenU/kernel/drivers/net/tun.ko):Invalid module format

    if i execute uname -a, result is following

    Linux ip-10-245-11-18 2.6.16-xenU #1 SMP Mon May 28 03:41:49 SAST 2007 i686 i686
    i386 GNU/Linux

    i am really stuck. i am not understanding how to proceed

Similar Threads

  1. vpnc not connecting to cisco server.
    By gyp in forum Servers & Networking
    Replies: 1
    Last Post: 7th March 2011, 02:37 PM
  2. Vpnc
    By divebuddy in forum Servers & Networking
    Replies: 2
    Last Post: 3rd August 2010, 03:19 PM
  3. vpnc vs. networkmanager-vpnc. I don't get it.
    By KaiTheory in forum Servers & Networking
    Replies: 0
    Last Post: 30th March 2010, 07:12 AM
  4. Vpnc
    By woodson2 in forum Servers & Networking
    Replies: 5
    Last Post: 4th February 2010, 07:31 PM
  5. vpnc what is what
    By dark shark in forum Alpha - Beta (Fedora 9 Only)
    Replies: 1
    Last Post: 14th April 2008, 01:58 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
  •