Networking :: DSL and KVPNC



Quote (greavette @ Aug. 08 2007,05:48)


I won't be able to try this outside of qemu until I have a spare drive.  For now I can only run this from my USB using the embedded version.

.....

I did notice a message when I ran it again (not sure how I missed it the first time?).  I use the following instruction:
"sudo vpnc /mnt/hdb/vpnc.conf --local-port 0 --script /etc/vpnc-script"
I'm asked to input my password and then I receive the following messages:
"readlink: /dev/net/tun: No such file or directory"
"VPNC started in background (pid: 631)..."


mmm, this could the the key difference. tun should just be available with DSL. What version are you using? I was testing the not-too old 3.3 version. I was using the live CD, it wasn't installed at all. You mention you don't have another drive. Do you mean you do not have a cdrom/dvd drive? I would suggest trying the live cd as it is very quick to test and doesn't need anything except ram :-) If the live cd works there maybe something missing from the USB version you have.

I get the impression that older releases of DSL either didn't have tun or a tun device was not created -- but I don't know the history at all so I could be 100% wrong here.

Good luck!

Chris

Of course, the Live Cd...why didn't I think of that!  Thanks, I'll give that a try.

I was pretty sure I was running the DSL-embedded 3.4 but maybe it is 3.3...I'll download 3.4 embedded version as well after using the Live CD to test it out.

Thanks for the tips!

greavette.

Here is an adjusted vpnc that  creates /var/run/vpnc if it does not exist, creates /dev/net/tun if it does not exist, and inserts the tun module.  The command is /usr/bin/vpnc-connect to connect, the script is in /etc/vpnc/vpnc-script.   I used DSL 2.4 to build this .dsl so it should pretty much work on all DSL versions.  Thanks to the feedback you have given, this extension should be useful.   I will put it on my server when I get home and edit this post with the link for any who later want to download and use it.  Thanks for both of your help.  Here is the link:

http://74.237.17.82/dsl/vpnc-0.4.dsl

Quote (Jason W @ Aug. 13 2007,09:46)
Here is an adjusted vpnc that  creates /var/run/vpnc if it does not exist, creates /dev/net/tun if it does not exist, and inserts the tun module.  The command is /usr/bin/vpnc-connect to connect.....


I finally had a free moment to try the new package. It is almost there, I had to edit /usr/bin/vpnc-connect to add command line param calls to /usr/bin/vpnc otherwise command line params were ignored. E.g.:

Add $*:
Code Sample

exec /usr/bin/vpnc $*


I didn't have problems with tun before so hopefully greavette can test on his system.

I tested on dsl 3.3, I made the change above (placed my MYSERVER.conf file in/etc/vpnc ) and used:
Code Sample

sudo vpnc-connect MYSERVER --local-port 0


Thanks for putting this together,

Chris


original here.