Page 1 of 1

Trying to get VPN working in Slacko 5.6

Posted: Wed 12 Mar 2014, 20:01
by Norton
Trying to get VPN (PIA) working in Slacko

I've followed everything here

Everything seem fine up to and including "route add default dev ppp0" but browser just hangs.

Can anyone give me (a non technical user)a simple step by step guide to get working?

Thanks

Posted: Sat 15 Mar 2014, 00:22
by jafadmin
I don't have a PIA account so I can't really test.

Give this top post a read and see if it helps:

http://murga-linux.com/puppy/viewtopic.php?t=41929

If you have an account I could use for testing I'd be happy to help further.

Posted: Sat 15 Mar 2014, 01:01
by tempestuous
I have access to a PPTP VPN server, and I just tried Gpptp now:
- it works fine in Lucid Puppy 5.1/5.2.x
- but it fails in Slacko 5.4 and 5.6. I even tried creating a symlink from /sbin/ip to /bin/ip. No luck.
Then I tried the same manual commands I used back in 2006 -
http://www.murga-linux.com/puppy/viewto ... 2140#42140
Under Slacko this works fine.

So there's something about Gpptp in Slacko which is broken.

Posted: Sat 15 Mar 2014, 01:14
by jafadmin
I'll DL Slacko 5.6 and see what's happening.

Thx @ Tempestuous

Posted: Sat 15 Mar 2014, 03:26
by jafadmin
Ok, I figured out what the problem is. It's back to the problem 4.xx puppies had. The route command isn't able set the default route to ppp0.

You can set any non-default route and it will work.

As I recall at the time it seemed it had to do with the BusyBox "route" command. At any rate, It worked just fine in the Lucid puppies.

I'll try to dig into it again, but understand it isn't the Gpptp app doing this. Gpptp is just a front-end for pptp/pppd. The tunnel gets created ok, it's just that the route command is failing for some reason.

Posted: Sat 15 Mar 2014, 12:46
by jafadmin
Running the following commands works:

Code: Select all

	# Route all rfc 1918 ip requests to the vpn tunnel so we can access all possible
     	#  subnets where we're connecting.
  	route add -net 192.168.0.0 netmask 255.255.0.0 gw $MYVPNIPADDR
  	route add -net 172.16.0.0 netmask 255.240.0.0 gw $MYVPNIPADDR
  	route add -net 10.0.0.0 netmask 255.0.0.0 gw $MYVPNIPADDR
The tunnel is up and working, and all traffic gets to those networks just fine.

We just can't get it to work when we set the "default" route to it (or ppp0). It just freezes everything up. I've tried entering the default route in a dozen different ways and it makes no difference.

For some reason the busybox route command under Slacko will not set the default route to a pppX properly, and of course, shows no errors either.

If anyone can help shed some light on this it would really help.

Posted: Sat 15 Mar 2014, 19:04
by jafadmin
This all works OK in Precise 5.7.1 once you create a symlink to busybox called "ip" in /bin.

Posted: Thu 05 Mar 2015, 04:58
by morochos
Please, explain how to create a symlink to busybox called "ip" in /bin

Posted: Thu 05 Mar 2015, 06:36
by nilsonmorales
morochos localize busybox first

Code: Select all

[fixerdog ~] $ which busybox
/bin/busybox
then

Code: Select all

[fixerdog ~] $ ln -s /bin/busybox /bin/ip

Posted: Sat 07 Mar 2015, 01:30
by jafadmin
or, in roxfiler right-click busybox in /bin, and click "link" in the menu. Name the link "ip" (case is important).