Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo 3.0.0 and PPTP Config Problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Mike Downs
n00b
n00b


Joined: 07 Nov 2011
Posts: 10
Location: San Jose

PostPosted: Wed Nov 16, 2011 10:58 pm    Post subject: Gentoo 3.0.0 and PPTP Config Problem Reply with quote

I'm new to Gentoo/Linux and I'm trying to use PPTP to get a VPN connection setup to my company/employer. The pon myTunnel executions shows some stuff, but no indication of why it is failing also my sys admin at work says that authorization is failing.
Here's my sanitized /etc/ppp/chap-secrets file
myName myVPN myPassword *

Here's my sanitized /etc/ppp/peers/myVPN file
pty "pptp 1.2.3.4"
lock
debug
dump
logfd 2
nodetach
require-mppe-128
noauth
nobsdcomp
nodeflate
name myName
password myPassword
remotename myTunnel
file /etc/ppp/options.pptp
ipparam myTunnel

Here's my /etc/ppp/options.pptp with all comments removed.
lock
noauth

refuse-pap
refuse-eap
refuse-chap
refuse-mschap

nobsdcomp
nodeflate

require-mppe-128

Here's the sanitized output of 'pon myTunnel'

pon myTunnel
pppd options in effect:
debug # (from /etc/ppp/peers/myTunnel)
nodetach # (from /etc/ppp/peers/myTunnel)
logfd 2 # (from /etc/ppp/peers/myTunnel)
dump # (from /etc/ppp/peers/myTunnel)
noauth # (from /etc/ppp/options.pptp)
refuse-pap # (from /etc/ppp/options.pptp)
refuse-chap # (from /etc/ppp/options.pptp)
refuse-mschap # (from /etc/ppp/options.pptp)
refuse-eap # (from /etc/ppp/options.pptp)
name myName # (from /etc/ppp/peers/myTunnel)
password ?????? # (from /etc/ppp/peers/myTunnel)
remotename myTunnel # (from /etc/ppp/peers/myTunnel)
# (from /etc/ppp/options.pptp)
pty pptp 1.2.3.4 # (from /etc/ppp/peers/myTunnel)
ipparam myTunnel # (from /etc/ppp/peers/myTunnel)
nobsdcomp # (from /etc/ppp/options.pptp)
nodeflate # (from /etc/ppp/options.pptp)
require-mppe-128 # (from /etc/ppp/options.pptp)
using channel 9
Using interface ppp0
Connect: ppp0 <--> /dev/pts/3
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x4dd3cced> <pcomp> <accomp>]
Script pptp 1.2.3.4 finished (pid 20933), status = 0x0
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x4dd3cced> <pcomp> <accomp>]
Modem hangup
Connection terminated.

Does anyone see what I might be doing wrong? I believe that I followed the Gentoo PPTP How To correctly

Thanks.
_________________
Mike
Back to top
View user's profile Send private message
mr.sande
Tux's lil' helper
Tux's lil' helper


Joined: 26 Apr 2010
Posts: 82
Location: Norway

PostPosted: Thu Nov 17, 2011 12:59 pm    Post subject: Reply with quote

Your options seem just fine. I just tested my own pptp setup with gentoo-sources-3.0.6.
From what I (think) I know, you don't need to include your password in the peer file, only in chap-secrets.

Are you sure that you have all the right kernel modules? Just to be on the safe side I usually include all the ppp modules.

Did you set the vpn up with pptpsetup? If not, its worth a try.
Back to top
View user's profile Send private message
Mike Downs
n00b
n00b


Joined: 07 Nov 2011
Posts: 10
Location: San Jose

PostPosted: Thu Nov 17, 2011 10:33 pm    Post subject: Reply with quote

Wow, pptpsetup actually worked. I used all the same parameters as 'pon', but at least now I have a ppp0 when I do an ifconfig. Do I now have to add a route like I've seen in some of the forum threads?
_________________
Mike
Back to top
View user's profile Send private message
mr.sande
Tux's lil' helper
Tux's lil' helper


Joined: 26 Apr 2010
Posts: 82
Location: Norway

PostPosted: Sat Nov 19, 2011 2:37 am    Post subject: Reply with quote

Yes.

The route you add depends on how you want to use the vpn. If you use it to get Internet access you can probably use
Code:

route add default ppp0

Remember to also set up DNS :) You can get DNS from pptp if you use "usepeerdns" in your peer file (/etc/ppp/peers/<file>).

If you already have Internet access and use VPN to connect to some other network then it has to be done differently, and I don't remember exactly how :oops:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum