Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 24 Oct 2014, 05:46
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
sshfs and openvpn
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [17 Posts]   Goto page: 1, 2 Next
Author Message
phizone

Joined: 13 Dec 2006
Posts: 4

PostPosted: Wed 13 Dec 2006, 21:52    Post subject:  sshfs and openvpn
Subject description: pupget packages
 

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...
openvpn-2.0.9.tar.gz
Description  openvpn 2.0.9 pupget
gz

 Download 
Filename  openvpn-2.0.9.tar.gz 
Filesize  219.76 KB 
Downloaded  3002 Time(s) 
sshfs_fuse-1.7.tar.gz
Description  sshfs fuse 1.7 pupget
gz

 Download 
Filename  sshfs_fuse-1.7.tar.gz 
Filesize  57.53 KB 
Downloaded  1718 Time(s) 
Back to top
View user's profile Send private message Visit poster's website 
redrum

Joined: 02 Oct 2006
Posts: 56
Location: Athens , Grecce

PostPosted: Sat 23 Dec 2006, 09:37    Post subject:  

great work ! Very usefull Very Happy
Back to top
View user's profile Send private message 
JohnMc

Joined: 07 Apr 2006
Posts: 118

PostPosted: Sat 23 Dec 2006, 17:30    Post subject: good job!  

Most definately on the openvpn!
Back to top
View user's profile Send private message 
mlamelas

Joined: 04 Oct 2006
Posts: 42
Location: Madrid, Spain

PostPosted: Mon 05 Mar 2007, 19:24    Post subject: 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
Back to top
View user's profile Send private message 
ICQ Number 
kirk22

Joined: 03 May 2007
Posts: 15

PostPosted: Thu 03 May 2007, 19:27    Post subject:  

I'm getting the same error with Puppy 2.15.

Is Universal TUN/TAP device support compiled in the kernel?

I've also run -
mkdir /dev/net
mknod /dev/net/tun c 10 200

Any help would be appreciated.
Back to top
View user's profile Send private message 
mlamelas

Joined: 04 Oct 2006
Posts: 42
Location: Madrid, Spain

PostPosted: Thu 03 May 2007, 21:05    Post subject:  

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
Back to top
View user's profile Send private message 
ICQ Number 
kirk22

Joined: 03 May 2007
Posts: 15

PostPosted: Fri 04 May 2007, 04:49    Post subject:  

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
Back to top
View user's profile Send private message 
kirk22

Joined: 03 May 2007
Posts: 15

PostPosted: Fri 04 May 2007, 09:43    Post subject:  

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/slackware-10.1/openvpn/openvpn.init

Seems to work well so far.

Kirk
tun.tar
Description  Tun Modules
tar

 Download 
Filename  tun.tar 
Filesize  40 KB 
Downloaded  891 Time(s) 
Back to top
View user's profile Send private message 
DennisF

Joined: 28 Feb 2007
Posts: 86

PostPosted: Fri 04 May 2007, 19:58    Post subject:  

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
Back to top
View user's profile Send private message 
kirk22

Joined: 03 May 2007
Posts: 15

PostPosted: Sat 05 May 2007, 09:04    Post subject:  

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.
Back to top
View user's profile Send private message 
lvds


Joined: 23 Jan 2007
Posts: 315
Location: Near the window

PostPosted: Wed 23 May 2007, 02:08    Post subject:  

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
Code:
# ./openvpn.init start


it says "starting openvpn: success" but when i check with
Code:
# netstat -ta

there is no service listening to any port.

So, please, may someone help me to have this vpn running ?

Best regards,
Laurent.

_________________
This is China today
Asus 1225C eeePC Atom Cedar Trail 2G Ram - DELL Optiplex 780 core2 duo 4G Ram, Intel4 chipset Video, ICH10 chipset Audio, Intel 82567LM-3 Network
Back to top
View user's profile Send private message 
DennisF

Joined: 28 Feb 2007
Posts: 86

PostPosted: Wed 23 May 2007, 07:52    Post subject:  

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
Back to top
View user's profile Send private message 
lvds


Joined: 23 Jan 2007
Posts: 315
Location: Near the window

PostPosted: Wed 23 May 2007, 15:03    Post subject:  

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


Hi,

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... Embarassed

Best regards,
Laurent.

_________________
This is China today
Asus 1225C eeePC Atom Cedar Trail 2G Ram - DELL Optiplex 780 core2 duo 4G Ram, Intel4 chipset Video, ICH10 chipset Audio, Intel 82567LM-3 Network
Back to top
View user's profile Send private message 
mroogly

Joined: 10 Oct 2007
Posts: 1

PostPosted: Wed 10 Oct 2007, 10:27    Post subject:  Compiling tun.ko
Subject description: Howto, any tips
 

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
Back to top
View user's profile Send private message 
jamescridland

Joined: 03 Nov 2007
Posts: 4

PostPosted: Tue 01 Jan 2008, 16:02    Post subject: Re: sshfs and openvpn
Subject description: pupget packages
 

phizone wrote:
Hopefully these will be useful for others...
Am I correct in thinking these don't work in Puppy Linux 3.01?

(I'd really, really, really like them to!)

j
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [17 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0763s ][ Queries: 13 (0.0043s) ][ GZIP on ]