pptpconfig dotpup to setup PPTP VPN connection

Stuff that has yet to be sorted into a category.
Post Reply
Message
Author
User avatar
RobertB
Posts: 145
Joined: Tue 03 Jan 2006, 01:06
Location: Big D
Contact:

#16 Post by RobertB »

Do you mean you kept trying until you got a connection without "infinite upload", or did you find a way to make it quit failing in that particular way?

User avatar
HairyWill
Posts: 2928
Joined: Fri 26 May 2006, 23:29
Location: Southampton, UK

#17 Post by HairyWill »

Sometimes my router gets confused if I have a tunnel open from one machine, then close the tunnel and soon after try and open a tunnel from a different machine. I would recommend rebooting the router just in case.

I presume you have replaced the busybox ip command with the full one.

I don't use pptpconfig anymore. Here is the script I run by hand, it works in several puppy versions providing I have installed ip. The routing sends all traffic via the tunnel

Code: Select all

#!/bin/sh
cp /etc/resolv.conf /etc/resolv.conf.orig
pptp 152.78.A.B user MYNAME password MYPASSWORD hide-password noauth debug require-mppe

IP=$(ifconfig  | grep 'inet addr' | egrep -v '127.0.0.1|P-t-P' | cut -f 2 -d ':' | cut -f 1 -d ' ')
route -n #(after pppd exit)
echo
sleep 1
ip route replace 152.78.A.B via 192.168.1.1 dev eth0 src $IP
route del default
sleep 1
route -n
route add default dev ppp0
sleep 1
route -n #(after completion)
Will
contribute: [url=http://www.puppylinux.org]community website[/url], [url=http://tinyurl.com/6c3nm6]screenshots[/url], [url=http://tinyurl.com/6j2gbz]puplets[/url], [url=http://tinyurl.com/57gykn]wiki[/url], [url=http://tinyurl.com/5dgr83]rss[/url]

lalope
Posts: 3
Joined: Fri 22 Aug 2008, 13:18

#18 Post by lalope »

HairyWill, you're my new hero.

That script works exactly as advertised, I could connect to the VPN and see the servers.

Maybe I'll try some tweaking, but the important thing (the VPN!) is up and running.

Thanks a lot!

User avatar
paulh177
Posts: 975
Joined: Tue 22 Aug 2006, 20:41

#19 Post by paulh177 »

HairyWill wrote:The routing sends all traffic via the tunne
that's why i liked your pptpconfig, because you had sorted out the routing options so i could have the tunnel open and my vpn running but still use my browser, email etc accessing local machines and the rest of the internet transparently.
or have i misunderstood? (as so often with routing and ip ... )

paul

User avatar
HairyWill
Posts: 2928
Joined: Fri 26 May 2006, 23:29
Location: Southampton, UK

#20 Post by HairyWill »

paulh177 wrote:that's why i liked your pptpconfig
Just in case there is some misconception I didn't write it.
http://sourceforge.net/project/showfile ... p_id=33063
Will
contribute: [url=http://www.puppylinux.org]community website[/url], [url=http://tinyurl.com/6c3nm6]screenshots[/url], [url=http://tinyurl.com/6j2gbz]puplets[/url], [url=http://tinyurl.com/57gykn]wiki[/url], [url=http://tinyurl.com/5dgr83]rss[/url]

Post Reply