LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-22-2006, 08:40 PM   #1
vxd
LQ Newbie
 
Registered: Jan 2006
Distribution: Slackware
Posts: 24

Rep: Reputation: 15
Setting up pptp (VPN) client on slack?


I'm running into a brick wall trying to get connected to my company VPN. This is my final linux hurdle before I will be running slack on the desktop. Any help is appreciated. So here we go:

1)
I came across the official PPTP client page (http://pptpclient.sourceforge.net/) of which looked to be very straightforward. I had all my correct VPN server information since I already connect to the VPN in windows.

2)
So since the website doesn't have slackware specific instructions, I follow the "generic" instructions (http://pptpclient.sourceforge.net/#tryit).

3)
First step is to install MPPE support in the kernel. I have done so and verified it's there. "modprobe ppp-compress-18". Good to go so far!

4)
Step 2 is to install MPPE support in PPP. It's already there if pppd is version 2.4.3. So I run "pppd --version". Output says I'm using 2.4.4b1. So on to the next step!

5)
Install the PPTP client software. So I download "pptp-1.7.0.tar.gz", extract it, and follow the instructions in "INSTALL". The program installs as expected.

6)
Last step is to configure PPP. I have two options. (a) download pptpconfig or (b) configure PPP manually. I choose B...I like manual.

7)
So first step is to ensure that /etc/ppp/options.pptp contains "lock noauth nobsdcomp nodeflate". It does by default.

8)
Next, I add a line to /etc/ppp/chap-secrets. My chap-secrets file is pasted below with of course my username and password temporarily changed. Note that my windows domain is "US":

Code:
root@NETCFG:/usr# cat /etc/ppp/chap-secrets
# Secrets for authentication using CHAP
# client        server  secret                  IP addresses
US\\myname PPTP mypass *
root@NETCFG:/usr#
9) Moving right along, I am asked to create a /etc/ppp/peers/$TUNNEL file. I choose "mywork" as my $TUNNEL name. This is what my "mywork" file looks like:

Code:
root@NETCFG:/usr# cat /etc/ppp/peers/ofix
pty "pptp gate2.mycompanyname.com --nolaunchpppd"
name US\\myname
remotename PPTP
require-mppe-128
file /etc/ppp/options.pptp
ipparam mywork
root@NETCFG:/usr#
10) Ok that completes the "manual configuration" part. I am now ready to run this thing. So the guide says to use the command "pon mywork". No go:

Code:
root@NETCFG:/usr# pon mywork
bash: pon: command not found
root@NETCFG:/usr#
11) Ok, so now I'm screwed. No "pon". A little internet searching turned up nothing of interrest about "pon". However, I do track down some information that looks like you can run this as "pppd call mywork". So here goes:

Code:
root@NETCFG:/usr# pppd call mywork
root@NETCFG:/usr#
12) BINGO! So i'm thinking all is well. So I check the tail of /var/log/messages to see whats happening. This is what I get:

Code:
root@NETCFG:/usr# tail /var/log/messages -n 16
Feb 22 20:33:00 NETCFG pppd[8979]: pppd 2.4.4b1 started by root, uid 0
Feb 22 20:33:00 NETCFG pppd[8979]: Using interface ppp0
Feb 22 20:33:00 NETCFG pppd[8979]: Connect: ppp0 <--> /dev/pts/4
Feb 22 20:33:00 NETCFG pptp[8980]: anon log[main:pptp.c:267]: The synchronous pptp option is NOT activated
Feb 22 20:33:00 NETCFG pptp[8991]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 1 'Start-Control-Connection-Request'
Feb 22 20:33:00 NETCFG pptp[8991]: anon log[ctrlp_disp:pptp_ctrl.c:738]: Received Start Control Connection Reply
Feb 22 20:33:00 NETCFG pptp[8991]: anon log[ctrlp_disp:pptp_ctrl.c:772]: Client connection established.
Feb 22 20:33:01 NETCFG pptp[8991]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 7 'Outgoing-Call-Request'
Feb 22 20:33:01 NETCFG pptp[8991]: anon log[ctrlp_disp:pptp_ctrl.c:857]: Received Outgoing Call Reply.
Feb 22 20:33:01 NETCFG pptp[8991]: anon log[ctrlp_disp:pptp_ctrl.c:896]: Outgoing call established (call ID 0, peer's call ID 44949).
Feb 22 20:33:31 NETCFG pppd[8979]: Connection terminated.
Feb 22 20:33:31 NETCFG pptp[8991]: anon log[callmgr_main:pptp_callmgr.c:231]: Closing connection (unhandled)
Feb 22 20:33:31 NETCFG pptp[8991]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 12 'Call-Clear-Request'
Feb 22 20:33:31 NETCFG pptp[8991]: anon log[call_callback:pptp_callmgr.c:78]: Closing connection (call state)
Feb 22 20:33:31 NETCFG pppd[8979]: Modem hangup
Feb 22 20:33:31 NETCFG pppd[8979]: Exit.
root@NETCFG:/usr#
I also run ifconfig to see if I have a pp0 interface. I don't.

So i've ran through 3 times and something isn't working quite right here. I'm POSITIVE that I have the correct VPN server information. Anybody have a clue what's going on?

Thanks in advance!
 
Old 02-22-2006, 11:24 PM   #2
vxd
LQ Newbie
 
Registered: Jan 2006
Distribution: Slackware
Posts: 24

Original Poster
Rep: Reputation: 15
I think I may have resolved this issue on my own. Apparently Linksys routers have a special "filter" that requires attention to pass PPTP. Go figure. For whatever reason I don't need to do anything within MS Windows.

Welp, I'm officially Linux desktop bound!
 
Old 02-23-2006, 08:37 PM   #3
MMYoung
Member
 
Registered: Apr 2004
Location: Arkansas
Distribution: Ubuntu 8.10
Posts: 365

Rep: Reputation: 30
Quote:
Originally Posted by vxd
I think I may have resolved this issue on my own. Apparently Linksys routers have a special "filter" that requires attention to pass PPTP.
I have a Linksys router on my desktop and have UDP ports 500 and 4500 open for VPN "stuff" and have been using the CISCO VPN Client without any problems. I'm wanting to get away from closed source, as much as possible, and have installed pptp-1.7.0, followed your instructions here (as well as on the PPTP project page) but still no luck. The ppp_mppe (as well as ppp_generic) modules are loading at boot and my pppd version is the same as yours. Still can't connect via my ADSL line.

Any help would be greatly appreciated.

Thanks,
MMYoung
 
Old 02-23-2006, 08:42 PM   #4
vxd
LQ Newbie
 
Registered: Jan 2006
Distribution: Slackware
Posts: 24

Original Poster
Rep: Reputation: 15
Posting through my VPN tunnel...muhahaha!!!

Are you connecting to a microsoft VPN server?

If so, after you do the connect command can you do a "tail /var/log/messages -n50". Post whatcha got!
 
Old 02-23-2006, 09:02 PM   #5
MMYoung
Member
 
Registered: Apr 2004
Location: Arkansas
Distribution: Ubuntu 8.10
Posts: 365

Rep: Reputation: 30
Quote:
Originally Posted by vxd
Posting through my VPN tunnel...muhahaha!!!

Are you connecting to a microsoft VPN server?

If so, after you do the connect command can you do a "tail /var/log/messages -n50". Post whatcha got!
Why HECK NO! It's a CICSO! (light bulb comes on over head) I'm thinking my boss said we HAVE to use the CISCO VPN client now that I think about it! But don't quote me on that.

The CISCO VPN Client works GREAT! Matter of fact I can remote into our Windows Servers from my Slackware Linux box using the rdesktop (Remote Desktop) and tsclient (Terminal Services) packages I've built. Matter of fact here's a screenshot.

I might give the pptp thing another try later on, at least wait until I find out for sure if we have to use ONLY the CISCO client.

Later,
MMYoung
 
Old 02-23-2006, 10:13 PM   #6
vxd
LQ Newbie
 
Registered: Jan 2006
Distribution: Slackware
Posts: 24

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by MMYoung
Why HECK NO! It's a CICSO! (light bulb comes on over head) I'm thinking my boss said we HAVE to use the CISCO VPN client now that I think about it! But don't quote me on that.

The CISCO VPN Client works GREAT! Matter of fact I can remote into our Windows Servers from my Slackware Linux box using the rdesktop (Remote Desktop) and tsclient (Terminal Services) packages I've built. Matter of fact here's a screenshot.

I might give the pptp thing another try later on, at least wait until I find out for sure if we have to use ONLY the CISCO client.

Later,
MMYoung
How pretty. Mine looks like a terminal window

I'm not sure, but I doubt cisco uses PPTP, but I could be wrong. That would certainly be the first thing to check.
 
Old 02-23-2006, 11:42 PM   #7
MX_Unforgiven
LQ Newbie
 
Registered: Nov 2004
Location: Yekaterinburg, Russia
Posts: 25

Rep: Reputation: 15
LOOK HERE!!!

[unforgiven | /usr/doc/ppp-2.4.4b1/scripts : 10:40:38] $ ls

drwxr-xr-x 3 root root 4,0K 2004-11-13 17:27 .
drwxr-xr-x 3 root root 4,0K 2005-09-04 23:27 ..
-rwxr-xr-x 1 root root 5,5K 2003-03-09 15:04 autopppd
-rwxr-xr-x 1 root root 2,3K 2004-04-12 17:02 callback
-rw-r--r-- 1 root root 2,8K 1997-06-25 13:07 chat-callback
drwxr-xr-x 2 root root 4,0K 1999-07-21 11:08 chatchat
-rw-r--r-- 1 root root 548 1999-02-27 09:32 ip-down.local.add
-rw-r--r-- 1 root root 729 1999-11-15 08:28 ip-up.local.add
-rw-r--r-- 1 root root 609 2004-04-12 17:02 ipv6-down.sample
-rw-r--r-- 1 root root 815 2004-04-12 17:02 ipv6-up.sample
-rw-r--r-- 1 root root 86 2000-03-10 01:07 options-rsh-loc
-rw-r--r-- 1 root root 92 2000-03-10 01:07 options-rsh-rem
-rw-r--r-- 1 root root 86 2000-03-10 01:07 options-ssh-loc
-rw-r--r-- 1 root root 92 2000-03-10 01:07 options-ssh-rem
-rw-r--r-- 1 root root 146 2002-11-25 04:36 plog
-rw-r--r-- 1 root root 2,8K 2002-11-25 04:30 poff
-rw-r--r-- 1 root root 970 2004-04-12 17:02 pon
-rw-r--r-- 1 root root 3,6K 2004-11-13 17:16 pon.1
-rwx--x--x 1 root root 967 1995-08-09 08:49 ppp-off
-r-x--x--x 1 root root 1,7K 1995-10-16 23:17 ppp-on
-rwx------ 1 root root 397 1995-10-17 00:25 ppp-on-dialer
-rwxr-xr-x 1 root root 2,0K 2000-04-15 15:49 ppp-on-rsh
-rwxr-xr-x 1 root root 2,3K 2000-04-15 15:49 ppp-on-ssh
-rw-r--r-- 1 root root 6,1K 2000-03-13 11:13 README
-rwx--x--x 1 root root 2,2K 1995-08-09 08:49 redialer
-rwxr-xr-x 1 root root 2,4K 2004-02-02 08:36 secure-card


I had the same problem. I guess you know waht to do know
 
Old 02-26-2006, 05:19 PM   #8
MMYoung
Member
 
Registered: Apr 2004
Location: Arkansas
Distribution: Ubuntu 8.10
Posts: 365

Rep: Reputation: 30
Quote:
Originally Posted by vxd
How pretty. Mine looks like a terminal window

I'm not sure, but I doubt cisco uses PPTP, but I could be wrong. That would certainly be the first thing to check.
You need my Terminal Services and Remote Desktop client packages. Give 'em a try and see what you think. Here are the download links:

rdesktop
tsclient

BTW, checked and sure enough CISCO uses ipsec so I'm going to have to use the CISCO VPN cleint for Linux. Which ain't a bad thing I don't guess.

Let me know if my packs work for you!

Later,
MMYoung
 
Old 02-26-2006, 10:36 PM   #9
vxd
LQ Newbie
 
Registered: Jan 2006
Distribution: Slackware
Posts: 24

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by MMYoung
You need my Terminal Services and Remote Desktop client packages. Give 'em a try and see what you think. Here are the download links:

rdesktop
tsclient

BTW, checked and sure enough CISCO uses ipsec so I'm going to have to use the CISCO VPN cleint for Linux. Which ain't a bad thing I don't guess.

Let me know if my packs work for you!

Later,
MMYoung
oh nice. Haven't had a chance to install and try yet, but I will. I've got them DL'd.
 
  


Reply


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 install vpn - client (pptp) for Suse Linux. vadimkovalev Linux - Newbie 2 10-01-2005 01:27 PM
How to install vpn - client (pptp) for Linux. vadimkovalev Linux - Networking 1 09-30-2005 01:42 AM
Problem with installation of a VPN - PPTP client l2g Linux - Networking 1 12-24-2004 01:37 AM
use of pptp client to access vpn krish87 Linux - Networking 0 08-20-2004 01:32 PM
VPN Server [mgetty (Dialin) + PPTP] <-> [Client WindowsXP] ingram Linux - Newbie 4 09-21-2003 12:52 PM


All times are GMT -5. The time now is 08:33 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