LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 12-09-2012, 07:02 PM   #1
garryconn
LQ Newbie
 
Registered: Nov 2011
Distribution: Debian, Slackware
Posts: 9
Blog Entries: 1

Rep: Reputation: Disabled
How to connect my desktop running slackware 13.37 to my PPTP VPN


Hello,

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: http://slackbuilds.org/repository/13.37/network/pptp/

and have read the page here: http://pptpclient.sourceforge.net/documentation.phtml

but just can't quite get on top of figuring it out. Any help will be greatly appreciated.
 
Old 12-11-2012, 03:10 AM   #2
VicFer
LQ Newbie
 
Registered: Sep 2012
Location: Italy
Distribution: Slackware
Posts: 11

Rep: Reputation: Disabled
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
Code:
/usr/sbin/pppd call nameofthelink pty "/usr/sbin/pptp nameofthevpnserver_oripaddress --nolaunchpppd"
- waited few seconds for the link
- set a route with
Code:
/sbin/route add -net xxx.xxx.xxx.0 netmask 255.255.255.0 gw ipaddress_as_per_your_server_config
I'm working quite well with it, hope this help.

Bye
 
Old 12-11-2012, 06:07 AM   #3
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware -current, 14.1
Posts: 1,049

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

cheers,
 
Old 12-11-2012, 12:29 PM   #4
vdemuth
Member
 
Registered: Oct 2003
Location: West Midlands, UK
Distribution: Slackware 14 (Server),Suse 13.1 (Desktop),, Mepis on the wifes lappy
Posts: 768

Rep: Reputation: 92
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.
 
Old 12-11-2012, 07:39 PM   #5
longus
LQ Newbie
 
Registered: Dec 2008
Posts: 28

Rep: Reputation: 0
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
VPN-USERNAME * 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 255.255.255.0
route add -net 10.0.0.0 netmask 255.224.0.0 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!
 
  


Reply

Tags
pptp, vpn, vpnclient


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to connect PPTP VPN in centos anishkumarv Linux - Newbie 3 05-12-2011 10:46 AM
[SOLVED] pptp changed default after connect VPN Solov Linux - Networking 1 08-10-2010 09:06 AM
PPTP VPN can connect, but cannot ping terrio Linux - Networking 5 02-18-2010 06:39 AM
PPTP VPN cant connect to Lan Spunky Linux - Networking 10 10-17-2008 10:18 AM
creating VPN with PPtP to connect to a router Lleb_KCir Linux - General 3 08-12-2004 12:50 AM


All times are GMT -5. The time now is 06:45 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration