[TriLUG] VTun festival of pain

Rob zaphnod at yahoo.com
Sun Apr 6 19:11:14 EDT 2003


My friend & I have spent the past 6 hours trying to
set up a vtund-based VPN tunnel between two Linux
boxen.  My side works fine (have a tunnel set up to
work already), but his won't init correctly.  We're
going nuts trying to figure out what's wrong, and
since all the obvious (to newbs like us) things have
been exhausted, I'm hoping someone out there can help
with new things to try.

His box:
- vtund 2.5
- Redhat 7.1
- vtund run in server mode (-s)
- firewall hole poked for port 9999, vtund.conf set
with same

/var/log/messages looks like:

Apr  6 15:44:33 rivendell vtund: vtund startup
succeeded
Apr  6 15:44:38 rivendell vtund[4231]: Session
rivendell-maddog[24.199.146.70:2836] opened
Apr  6 15:44:38 rivendell vtund[4231]: Can't allocate
tun device tun0. Invalid argument(22)
Apr  6 15:44:38 rivendell vtund[4231]: Session
rivendell-maddog closed


So, the obvious problem is that tun isn't
installed/modprobed, right?  So he installed the
latest version, modprobe tun'd it, and still, same
error.

lsmod shows:
Module                  Size  Used by
tun                     3616   0  (unused)


We're out of ideas.  "Invalid argument(22)" above
seems like the clue, but I'll be damned if I know what
to make of it.  It's not a line number, apparently.  

Oh yeah, here's his vtund.conf:

options {
  type stand;
  port 9999;
  ...prog stuff here...
}

default {
	comp no;
	speed 0;
	encr no;
	keepalive yes;
	type tun;
	proto tcp;
}

rivendell-maddog {
	pass XXXX;
	device tun0;
	
	up {
		ifconfig "%d %A pointopoint 10.21.200.1";
		route "add -net 10.21.200.0 netmask 255.255.255.0 gw
10.21.200.1";
	};
}

Thanks so much!

-Rob



__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com



More information about the TriLUG mailing list