sshfs and openvpn
sshfs and openvpn
I'm working on a custom puppy derivative (via unleashed) and needed sshfs to mount remote home directories via ssh and openvpn to secure a voip client connection to a central server, so I compiled and packaged sshfs and re-packaged the necessary files from the debian sarge openvpn package. Hopefully these will be useful for others...
- Attachments
-
- sshfs_fuse-1.7.tar.gz
- sshfs fuse 1.7 pupget
- (57.53 KiB) Downloaded 2178 times
Problem getting openvpn to work
Hello,
I have installed both of the pupgets in this topic thread, but when I try to execute open vpn, I get the following error message:
Mon Mar 5 12:45:45 2007 Note: Cannot open TUN/TAP dev /dev/net/tun: No
such device (errno=19)
Mon Mar 5 12:45:45 2007 Note: Attempting fallback to kernel 2.2 TUN/TAP
interface
Mon Mar 5 12:45:45 2007 Cannot allocate TUN/TAP dev dynamically
Mon Mar 5 12:45:45 2007 Exiting
I looked in the /dev/net folder and there is a tun file in it, but it a zero byte file. Is that correct? Or am I missing something else I have to install?
Thanks,
Mel
I have installed both of the pupgets in this topic thread, but when I try to execute open vpn, I get the following error message:
Mon Mar 5 12:45:45 2007 Note: Cannot open TUN/TAP dev /dev/net/tun: No
such device (errno=19)
Mon Mar 5 12:45:45 2007 Note: Attempting fallback to kernel 2.2 TUN/TAP
interface
Mon Mar 5 12:45:45 2007 Cannot allocate TUN/TAP dev dynamically
Mon Mar 5 12:45:45 2007 Exiting
I looked in the /dev/net folder and there is a tun file in it, but it a zero byte file. Is that correct? Or am I missing something else I have to install?
Thanks,
Mel
I was able to get it work but honestly I cannot remember how now, and it was only a test. Are you trying to get OpenVPN to work? I think what I did was chmod 666 /dev/net/tun to set rw permissions for everyone but I cannot remember. I should have written it down.
For the original posters, because I actually want to get OpenVPN going again, is the SSH pup related to OpenVPN or separate, i.e., do I need to install both pups or just the OpenVPN to get OpenVPN to work? The original post had two pups in the answer.
Many thanks,
Mel
For the original posters, because I actually want to get OpenVPN going again, is the SSH pup related to OpenVPN or separate, i.e., do I need to install both pups or just the OpenVPN to get OpenVPN to work? The original post had two pups in the answer.
Many thanks,
Mel
Thanks for the reply.
Yes I'm trying to get OpenVPN going. At this point it's more like a desperate need.
chmod 666 /dev/net/tun did not work and neither did 777.
It looks like the tun.ko module is missing. Can a more experienced user confirm that fact and maybe compile it for 2.15CE?
Which version of Puppy did you use?
BTW, based on the original post, it looks like sshfs is to mount remote directories. I don't think it's directly needed for OpenVPN.
If you figure out anything, please let me know.
Kirk
Yes I'm trying to get OpenVPN going. At this point it's more like a desperate need.
chmod 666 /dev/net/tun did not work and neither did 777.
It looks like the tun.ko module is missing. Can a more experienced user confirm that fact and maybe compile it for 2.15CE?
Which version of Puppy did you use?
BTW, based on the original post, it looks like sshfs is to mount remote directories. I don't think it's directly needed for OpenVPN.
If you figure out anything, please let me know.
Kirk
I got it going. The driver was stripped out.
I compiled the kernel and drivers, and copied the tun.ko file to /lib/modules/2.6.18.1/kernel/drivers/net on the CD
Then I used this script to start:
http://www.tuxjm.net/downloads/source/s ... envpn.init
Seems to work well so far.
Kirk
I compiled the kernel and drivers, and copied the tun.ko file to /lib/modules/2.6.18.1/kernel/drivers/net on the CD
Then I used this script to start:
http://www.tuxjm.net/downloads/source/s ... envpn.init
Seems to work well so far.
Kirk
- Attachments
-
- tun.tar
- Tun Modules
- (40 KiB) Downloaded 1120 times
I have always used
# modprobe tun
to make the virtual tunnel device, only need to run that once then
You need the config file from the far side firewall connection and fire it up like so...
# openvpn your_config_name.ovpn
No need to recompile the kernel. As for the 2 pups I have always installed both.
And yes it works really good. Neat script too.
-D
# modprobe tun
to make the virtual tunnel device, only need to run that once then
You need the config file from the far side firewall connection and fire it up like so...
# openvpn your_config_name.ovpn
No need to recompile the kernel. As for the 2 pups I have always installed both.
And yes it works really good. Neat script too.
-D
modprobe tun did not work until after I compiled the module and put it in the right spot.
Maybe it's the version I have... maybe this box doesn't like me...I don't know...but it does seem to be working now.
EDIT: I stand corrected. modprobe tun does work in 2.14 and 2.15CE. It doesn't work on my remastered 2.15CE disk...go figure.
Maybe it's the version I have... maybe this box doesn't like me...I don't know...but it does seem to be working now.
EDIT: I stand corrected. modprobe tun does work in 2.14 and 2.15CE. It doesn't work on my remastered 2.15CE disk...go figure.
Hi,
I am asking for help on running openvpn as i did like said above but have no results, so if someone could point me to the thing i have missed it would be very useful:
1. I have installed ssh_fuse and openvpn tar.gz downloaded above
2. i have downloaded tun.tar and put the KO files at the right place like stated above
3. downloaded openvpn.init and chmod +x so to be able to run it.
Reading openvpn.init shows it needs a config file to be in /etc/openvpn/myconfig.conf
but i have no idea how to build this config file... I need the vpn to be on port 443...
I have created /etc/openvpn but let it empty
Now, i open a terminal and when i run
it says "starting openvpn: success" but when i check with
there is no service listening to any port.
So, please, may someone help me to have this vpn running ?
Best regards,
Laurent.
I am asking for help on running openvpn as i did like said above but have no results, so if someone could point me to the thing i have missed it would be very useful:
1. I have installed ssh_fuse and openvpn tar.gz downloaded above
2. i have downloaded tun.tar and put the KO files at the right place like stated above
3. downloaded openvpn.init and chmod +x so to be able to run it.
Reading openvpn.init shows it needs a config file to be in /etc/openvpn/myconfig.conf
but i have no idea how to build this config file... I need the vpn to be on port 443...
I have created /etc/openvpn but let it empty
Now, i open a terminal and when i run
Code: Select all
# ./openvpn.init start
Code: Select all
# netstat -ta
there is no service listening to any port.
So, please, may someone help me to have this vpn running ?
Best regards,
Laurent.
Hi,DennisF wrote:It would help to know what you want to connect to.
My experience is connecting as a mobile user to a firewall the config files are generated on the firewall and loaded on the client.
-DF
Well i want to connect to another puppy pc with openvpn, it seemed obvious to me but now i read your response i understand it is not the only option...
Best regards,
Laurent.
Compiling tun.ko
I was wondering if someone had already written a guide to recompiling the tun.ko or similar kernel modules.
I have a different version of puppy (2.6.21.5), and I need the same file.
Thanks ahead.
John
I have a different version of puppy (2.6.21.5), and I need the same file.
Thanks ahead.
John
-
- Posts: 4
- Joined: Sat 03 Nov 2007, 18:28
Re: sshfs and openvpn
Am I correct in thinking these don't work in Puppy Linux 3.01?phizone wrote:Hopefully these will be useful for others...
(I'd really, really, really like them to!)
j