You are not logged in.

#1 2008-03-10 05:57:25

rekcuts
Member
Registered: 2008-03-10
Posts: 4

Solved: VPNC: can't initialise tunnel interface

Hello, I've been browsing for a few hours now, and haven't come up with much towards solving this problem.

Basically, I just installed Arch and I got my 4965 wifi to work using Wicd and now am trying to login to my school VPN through VPNC.


Any help you could offer would be appreciated. I have copied some information for your perusal. Thanks.

Error:
When I run: sudo vpnc --debug 3 /etc/vpnc/offcampus.conf
The following is output:
vpnc: can't intialise tunnel interface: Invalid argument



/etc/vpnc/offcampus.conf is my conf file for the connection
# example vpnc configuration file
# see vpnc --long-help for details

Interface name tun0
#IKE DH Group dh2
#Perfect Forward Secrecy nopfs

# You may replace this script with something better
#Script /etc/vpnc/vpnc-script
# Enable this option for NAT traversal
#UDP Encapsulate

IPSec gateway vpn-offcampus.bu.edu
IPSec ID BostonU
IPSec secret BostonU
Xauth username wstucker
#Xauth password ---



Here's some stuff from my rc.conf

# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
HOSTNAME="a_t61"
#
# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available
# interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
#   - prefix an entry in INTERFACES with a ! to disable it
#   - no hyphens in your interface names - Bash doesn't like it
#
# Note: to use DHCP, set your interface to be "dhcp" (eth0="dhcp")
#
lo="lo 127.0.0.1"
#eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
eth0="dhcp"
wlan="dhcp"
INTERFACES=(eth0 wlan0)
#
# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
#   - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 192.168.0.1"
ROUTES=(!gateway)
#
# Enable these network profiles at boot-up.  These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
#   - set to 'menu' to present a menu during boot-up (dialog package required)
#   - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network-profiles
#
#NET_PROFILES=(main)

#
# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
#   - prefix a daemon with a ! to disable it
#   - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(syslog-ng network dbus !dhcdbd !networkmanager wicd netfs crond)


# End of file


ifconfig its the same before and after i run vpnc... you can see than the tun0 is not created

eth0      Link encap:Ethernet  HWaddr 00:1A:6B:36:AA:42 
          inet addr:169.254.122.98  Bcast:169.254.255.255  Mask:255.255.0.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Base address:0x1840 Memory:fe200000-fe220000

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

wlan0     Link encap:Ethernet  HWaddr 00:13:E8:26:C6:11 
          inet addr:192.168.37.102  Bcast:192.168.37.255  Mask:255.255.255.0
          inet6 addr: fe80::213:e8ff:fe26:c611/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1495 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1539 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:996149 (972.8 Kb)  TX bytes:347181 (339.0 Kb)

wmaster0  Link encap:UNSPEC  HWaddr 00-13-E8-26-C6-11-00-00-00-00-00-00-00-00-00-00 
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)




tun is installed, when i run modprobe tun no errors are thrown.

Basically, I have no idea at this point, google results have suggested that I should use the --ifmode tap parameter, but that gives the same error as well.

Thanks all.

Last edited by rekcuts (2008-03-15 02:35:08)

Offline

#2 2009-01-17 11:12:22

ramjet
Member
Registered: 2005-02-16
Posts: 37

Re: Solved: VPNC: can't initialise tunnel interface

not sure if yoru still experiencing this but i had the same issue and fixed it by doing

bash-3.2# chmod +x  /dev/net/tun

Offline

Board footer

Powered by FluxBB