Trying to get VPN working in Slacko 5.6

Booting, installing, newbie
Post Reply
Message
Author
Norton
Posts: 1
Joined: Wed 12 Mar 2014, 19:45

Trying to get VPN working in Slacko 5.6

#1 Post 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

jafadmin
Posts: 1249
Joined: Thu 19 Mar 2009, 15:10

#2 Post 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.

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#3 Post 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.

jafadmin
Posts: 1249
Joined: Thu 19 Mar 2009, 15:10

#4 Post by jafadmin »

I'll DL Slacko 5.6 and see what's happening.

Thx @ Tempestuous

jafadmin
Posts: 1249
Joined: Thu 19 Mar 2009, 15:10

#5 Post 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.
Last edited by jafadmin on Sat 15 Mar 2014, 13:10, edited 1 time in total.

jafadmin
Posts: 1249
Joined: Thu 19 Mar 2009, 15:10

#6 Post 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.

jafadmin
Posts: 1249
Joined: Thu 19 Mar 2009, 15:10

#7 Post by jafadmin »

This all works OK in Precise 5.7.1 once you create a symlink to busybox called "ip" in /bin.

morochos
Posts: 68
Joined: Wed 28 Aug 2013, 02:55

#8 Post by morochos »

Please, explain how to create a symlink to busybox called "ip" in /bin

User avatar
nilsonmorales
Posts: 972
Joined: Fri 15 Apr 2011, 14:39
Location: El Salvador

#9 Post 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
[b][url=http://nilsonmorales.blogspot.com/]My blog |[/url][/b][b][url=https://github.com/woofshahenzup]| Github[/url][/b]
[img]https://i.postimg.cc/5tz5vrrX/imag018la6.gif[/img]
[img]http://s5.postimg.org/7h2fid8pz/botones_logos3.png[/img]

jafadmin
Posts: 1249
Joined: Thu 19 Mar 2009, 15:10

#10 Post by jafadmin »

or, in roxfiler right-click busybox in /bin, and click "link" in the menu. Name the link "ip" (case is important).

Post Reply