-   Slackware (
-   -   How to connect my desktop running slackware 13.37 to my PPTP VPN (

garryconn 12-09-2012 07:02 PM

How to connect my desktop running slackware 13.37 to my PPTP VPN

I have been working on this for a few hours and can't seem to figure it out. I am trying to connect my desktop computer (running slackware 13.37) via PPTP to my VPN. Can anyone lend a helping hand?

I have this installed:

and have read the page here:

but just can't quite get on top of figuring it out. Any help will be greatly appreciated.

VicFer 12-11-2012 03:10 AM

Hi garryconn
I made such a setup more then a year ago, maybe I do not remember exactely what I did but:
- launched pptpsetup (read the man page for help)
- set up the link with

/usr/sbin/pppd call nameofthelink pty "/usr/sbin/pptp nameofthevpnserver_oripaddress --nolaunchpppd"
- waited few seconds for the link
- set a route with

/sbin/route add -net netmask gw ipaddress_as_per_your_server_config
I'm working quite well with it, hope this help.


mrclisdue 12-11-2012 06:07 AM

As an alternative, you could install the NetworkManager-pptp plugin from sbopkg and give that a shot (presuming gui)....


vdemuth 12-11-2012 12:29 PM

Also, if you are running KDE, then KVpnc is a great utility. Been using it for a good amount of time now on a couple of lappys and a netbook to connect to my companies corporate services without issue.

longus 12-11-2012 07:39 PM

Hi! I also recommend NetworkManager. This is a great tool.
Anyway years ago i have used pptp to obtain internet from my provider. What i did:

1) edit /etc/ppp/chap-secrets and add a line there with the VPN-USERNAME, asterix and the name of the VPN-SERVER
2) edit /etc/resolv.conf and add there the names of the DNS servers
3) run these commands;
NB: Replace these IPs with your! It's just an example.

ifconfig eth0 10.X.X.X broadcast 10.X.X.255 netmask
route add -net netmask gw 10.X.X.X
pptp VPN-SERVER debug noauth user VPN-USERNAME
sleep 5

route add default gateway VPN-GATEWAY (i used my vpn IP)
route del default gateway 10.X.X.X

You can put them in a script, which can be executed at boot time.
After that you can easily create a script watching /proc/sys/net/ipv4/conf/ppp0, if not presented to recreate the vpn.

At the moment i am wondering how can i start the vpn to my G3 mobile provider by hand! :)

All times are GMT -5. The time now is 07:03 PM.