Is there any way to use VPN with Puppy?

Booting, installing, newbie
Message
Author
vaso
Posts: 1
Joined: Tue 16 Aug 2005, 05:54

Is there any way to use VPN with Puppy?

#1 Post by vaso »

Is there any way to use VPN with Puppy?

Guest

#2 Post by Guest »

What do you mean with vpn? adsl?
Adsl works - get the files from a working mandrake.

Guest

#3 Post by Guest »

I mean how can I make Virtual Private Network (VPN) ?

moritzes
Posts: 20
Joined: Fri 12 Aug 2005, 03:36
Location: Akron, OH

#4 Post by moritzes »

Depends on what kind of VPN.

It's probably all doable, but will require some compiling.

Someone on the forum has compiled the Cisco IPSEC VPN client for linux and says it works fine. Search for his post.
The PPTP w/ MPPE support (needed for connecting to Microsoft VPN's) looks a bit more difficult.


User avatar
rarsa
Posts: 3053
Joined: Sun 29 May 2005, 20:30
Location: Kitchener, Ontario, Canada
Contact:

#6 Post by rarsa »

I have in my to-do list to prepare the dotpup for the IPsec VPN.

Meanwhile, just do the following

1. Make sure that you have the development environment (usr_devx)
2. Download the attched files to /tmp
3. Execute the following commands:

Code: Select all

cd /usr/src/linux
uname -r >.kernelrelease
make kernelrelease
cd /tmp
tar -xvzf vpn-client1.tar.gz
tar -xvzf vpn-client2.tar.gz
./vpn_install
4. Accept all the defaults.

To start the module just execute

Code: Select all

 /etc/rc.d/vpnclient_init start
To open a connection just execute

Code: Select all

 
cd /etc/CiscoSystemsVPNClient/Profiles
vpnclient connect <yourprofile>
Dont put the extension for the profile. So if your profile is Myoffice.pcf just enter
vpnclient connect Myoffice

This will connect to your vpn network until you press ctr-C, so you will have to open another terminal to work on the vpn.

For example, in my case I use rdesktop to manage some windows2000 servers, so I open another terminal and write

Code: Select all

rdesktop -g 1024x768 <myserver> -K
Of course <myserver> should be the name of your server. e.g.

Code: Select all

rdesktop -g 1024x768 prodserver -K
Last edited by rarsa on Mon 11 Sep 2006, 03:24, edited 3 times in total.

John Doe
Posts: 1681
Joined: Mon 01 Aug 2005, 04:46
Location: Michigan, US

#7 Post by John Doe »

moritzes wrote:The PPTP w/ MPPE support (needed for connecting to Microsoft VPN's) looks a bit more difficult.
I'm hoping we can get this in the next release. My first post in the suggestion group sums up my thoughts:

http://www.murga.org/%7Epuppy/viewtopic.php?t=1936

I made an appeal to Barry tonight with some links (not the best links, but I'm hoping they help) to source and I'm hoping he hears out plea.

(5th message in the thread)

http://www.murga.org/%7Epuppy/viewtopic.php?t=1997

I like to envision a Forbes 500 company's network admin at a corporate board meeting being asked a question and whiping out a usb pen to vpn into the corporate Windows AD network and fix some problem on the spot with a random terminal. As he/she triumphantly proclaims, "we can do that right now, I've got puppy linux here".

User avatar
dvw86
Posts: 636
Joined: Thu 05 May 2005, 00:55
Location: Washington State

#8 Post by dvw86 »

rarsa,
I get an error while running the install script

Code: Select all

chkconfig: No such file or directory
./vpn_install: 47: Syntax error: "(" unexpected

User avatar
rarsa
Posts: 3053
Joined: Sun 29 May 2005, 20:30
Location: Kitchener, Ontario, Canada
Contact:

#9 Post by rarsa »

dvw86 wrote:./vpn_install: 47: Syntax error: "(" unexpected
Oops, that was an oversigtht on my part. You need the bash shell. I think I got it when installing the mrxvt DotPup. mrxvt is a more functional terminal console than rxvt. It's small, it can be transparent, it can have tabbed terminal windows, etc.

You can find it on the DotPups wikki http://www.goosee.com/puppy/wikka/DotPupsContributions

User avatar
dvw86
Posts: 636
Joined: Thu 05 May 2005, 00:55
Location: Washington State

#10 Post by dvw86 »

rarsa wrote: Oops, that was an oversigtht on my part. You need the bash shell. I think I got it when installing the mrxvt DotPup. mrxvt is a more functional terminal console than rxvt. It's small, it can be transparent, it can have tabbed terminal windows, etc.
I have mrxvt and Bash as well, but I still get the error.

User avatar
rarsa
Posts: 3053
Joined: Sun 29 May 2005, 20:30
Location: Kitchener, Ontario, Canada
Contact:

#11 Post by rarsa »

I'm flabbergasted,

I have no clue why.

Do you have bash linked to sh maybe?
Are you executing it from within mrxvt?

The offending line is the following
function getvalue() {

The way you call functions is different between bash and sh.

the first line on the script is:
#!/usr/bin/env bash

If I I change it to use sh, then I get exactly the same error as you.

make sure that your bash is the real bash and not a link to sh.

User avatar
dvw86
Posts: 636
Joined: Thu 05 May 2005, 00:55
Location: Washington State

#12 Post by dvw86 »

rarsa wrote: make sure that your bash is the real bash and not a link to sh.
Yes I am executing it from mrxvt.
/usr/bin/env is a symlink to BusyBox, but Bash is the acctual Bash and not a link to sh.

BenyBen
Posts: 11
Joined: Wed 30 Nov 2005, 02:55

#13 Post by BenyBen »

Same issue here. Followed your instructions rarsa, and get the same error message.

User avatar
rarsa
Posts: 3053
Joined: Sun 29 May 2005, 20:30
Location: Kitchener, Ontario, Canada
Contact:

#14 Post by rarsa »

what puppy are you using?

BenyBen
Posts: 11
Joined: Wed 30 Nov 2005, 02:55

#15 Post by BenyBen »

Hi there. It's puppy 1.01 (I just got it 2 days ago) and I am running it off a flash key if that makes a difference.

User avatar
rarsa
Posts: 3053
Joined: Sun 29 May 2005, 20:30
Location: Kitchener, Ontario, Canada
Contact:

#16 Post by rarsa »

I haven't used 1.0.1 for a long time. I am not sure what I was using when I first tested. It may have been 1.0.3

I am using 1.0.6 and it's working. I may try with 1.0.1 when I get home (If I still have the CD around).
Last edited by rarsa on Wed 30 Nov 2005, 18:18, edited 1 time in total.

BenyBen
Posts: 11
Joined: Wed 30 Nov 2005, 02:55

#17 Post by BenyBen »

Bah, let ME use 1.0.6 first. :) I'll get that, test it out and get back to this thread

For some odd reasons I though 1.0.1 was the latest.

Guest

#18 Post by Guest »

ok, I Installed 1.0.6, and I still get the same error.

BenyBen
Posts: 11
Joined: Wed 30 Nov 2005, 02:55

#19 Post by BenyBen »

oups, the guest post was from me.

User avatar
rarsa
Posts: 3053
Joined: Sun 29 May 2005, 20:30
Location: Kitchener, Ontario, Canada
Contact:

#20 Post by rarsa »

Ok, Instructions fixed.

In my previous tests I had sh symlined to bash.

Now I'm explicitly executing bash and everything works OK.

Please try it.

Post Reply