[CentOS] Howto create a VPN connection on desktop (CentOS 6)

Thu Jul 14 01:00:27 UTC 2011
Mark Weaver <mweaver at compinfosystems.com>

On 07/13/2011 07:51 AM, John Hodrien wrote:
> On Wed, 13 Jul 2011, Mark Weaver wrote:
>
>> What I've attempting to do is make it possible for me to connect to
>> clients' servers where RRAS service is already running using PPTP so
>> that I can connect remotely while I'm running Linux on my laptop so I
>> don't have to stop what I'm doing and boot Windows.
>
> Does pptp and pptp-setup from EPEL get you to where you want to be?
>
> jh
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>

It really has been a while for me doing this stuff so I'm going to have 
to eat a little crow here and ask: what is all of the following trying 
to tell me?

(tailing /var/log/messages when attempting to activate a pptp VPN 
connection to a windows server using NetworkManager_
=================================================================
Jul 13 20:55:21 defiant NetworkManager[1258]: <info> Starting VPN 
service 'org.freedesktop.NetworkManager.pptp'...
Jul 13 20:55:21 defiant NetworkManager[1258]: <info> VPN service 
'org.freedesktop.NetworkManager.pptp' started 
(org.freedesktop.NetworkManager.pptp), PID 3030
Jul 13 20:55:21 defiant NetworkManager[1258]: <info> VPN service 
'org.freedesktop.NetworkManager.pptp' appeared, activating connections
Jul 13 20:55:21 defiant NetworkManager[1258]: <info> VPN plugin state 
changed: 1
Jul 13 20:55:21 defiant NetworkManager[1258]: <info> VPN plugin state 
changed: 3
Jul 13 20:55:21 defiant NetworkManager[1258]: <info> VPN connection 
'PECG' (Connect) reply received.
Jul 13 20:55:21 defiant pppd[3033]: Warning: can't open options file 
/root/.ppprc: Permission denied
Jul 13 20:55:21 defiant pppd[3033]: Plugin 
/usr/lib64/pppd/2.4.5/nm-pptp-pppd-plugin.so loaded.
Jul 13 20:55:21 defiant pppd[3033]: pppd 2.4.5 started by root, uid 0
Jul 13 20:55:21 defiant pppd[3033]: Using interface ppp0
Jul 13 20:55:21 defiant pppd[3033]: Connect: ppp0 <--> /dev/pts/1
Jul 13 20:55:21 defiant pptp[3034]: nm-pptp-service-3030 
log[main:pptp.c:314]: The synchronous pptp option is NOT activated
Jul 13 20:55:21 defiant pptp[3042]: nm-pptp-service-3030 
log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 1 
'Start-Control-Connection-Request'
Jul 13 20:55:21 defiant pptp[3042]: nm-pptp-service-3030 
log[ctrlp_disp:pptp_ctrl.c:739]: Received Start Control Connection Reply
Jul 13 20:55:21 defiant pptp[3042]: nm-pptp-service-3030 
log[ctrlp_disp:pptp_ctrl.c:773]: Client connection established.
Jul 13 20:55:22 defiant pptp[3042]: nm-pptp-service-3030 
log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 7 
'Outgoing-Call-Request'
Jul 13 20:55:22 defiant pptp[3042]: nm-pptp-service-3030 
log[ctrlp_disp:pptp_ctrl.c:858]: Received Outgoing Call Reply.
Jul 13 20:55:22 defiant pptp[3042]: nm-pptp-service-3030 
log[ctrlp_disp:pptp_ctrl.c:897]: Outgoing call established (call ID 0, 
peer's call ID 61749).
Jul 13 20:55:22 defiant pptp[3042]: nm-pptp-service-3030 
log[ctrlp_disp:pptp_ctrl.c:950]: PPTP_SET_LINK_INFO received from 
peer_callid 0
Jul 13 20:55:22 defiant pptp[3042]: nm-pptp-service-3030 
log[ctrlp_disp:pptp_ctrl.c:953]:   send_accm is 00000000, recv_accm is 
FFFFFFFF
Jul 13 20:55:22 defiant pptp[3042]: nm-pptp-service-3030 
warn[ctrlp_disp:pptp_ctrl.c:956]: Non-zero Async Control Character Maps 
are not supported!
Jul 13 20:55:22 defiant pptp[3042]: nm-pptp-service-3030 
log[ctrlp_disp:pptp_ctrl.c:950]: PPTP_SET_LINK_INFO received from 
peer_callid 0
Jul 13 20:55:22 defiant pptp[3042]: nm-pptp-service-3030 
log[ctrlp_disp:pptp_ctrl.c:953]:   send_accm is FFFFFFFF, recv_accm is 
FFFFFFFF
Jul 13 20:55:22 defiant pptp[3042]: nm-pptp-service-3030 
warn[ctrlp_disp:pptp_ctrl.c:956]: Non-zero Async Control Character Maps 
are not supported!
Jul 13 20:55:22 defiant pppd[3033]: LCP terminated by peer 
(|M-^LT9^@<M-Mt^@^@^CM-.)
Jul 13 20:55:22 defiant pptp[3042]: nm-pptp-service-3030 
log[ctrlp_disp:pptp_ctrl.c:912]: Received Call Clear Request.
Jul 13 20:55:25 defiant pppd[3033]: Connection terminated.
Jul 13 20:55:25 defiant NetworkManager[1258]: <warn> VPN plugin failed: 1
Jul 13 20:55:25 defiant pppd[3033]: Modem hangup
Jul 13 20:55:25 defiant pptp[3034]: nm-pptp-service-3030 
warn[decaps_hdlc:pptp_gre.c:204]: short read (-1): Input/output error
Jul 13 20:55:25 defiant pptp[3034]: nm-pptp-service-3030 
warn[decaps_hdlc:pptp_gre.c:216]: pppd may have shutdown, see pppd log
Jul 13 20:55:25 defiant pptp[3042]: nm-pptp-service-3030 
log[callmgr_main:pptp_callmgr.c:234]: Closing connection (unhandled)
Jul 13 20:55:25 defiant pptp[3042]: nm-pptp-service-3030 
log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 12 
'Call-Clear-Request'
Jul 13 20:55:25 defiant pptp[3042]: nm-pptp-service-3030 
log[call_callback:pptp_callmgr.c:79]: Closing connection (call state)
Jul 13 20:55:25 defiant NetworkManager[1258]: <warn> VPN plugin failed: 1
Jul 13 20:55:25 defiant pppd[3033]: Exit.
Jul 13 20:55:25 defiant NetworkManager[1258]: <warn> VPN plugin failed: 1
Jul 13 20:55:25 defiant NetworkManager[1258]: <info> VPN plugin state 
changed: 6
Jul 13 20:55:25 defiant NetworkManager[1258]: <info> VPN plugin state 
change reason: 0
Jul 13 20:55:25 defiant NetworkManager[1258]: <warn> error disconnecting 
VPN: Could not process the request because no VPN connection was active.

-- 
Mark Weaver
Computer Information Systems & Services, Inc.
mweaver at compinfosystems.com
(717) 512-9718