Find the answer to your Linux question:
Results 1 to 4 of 4
Os: Fedora LXDE In the chap secrets file I have the following: Code: Domain\Username Ipaddress Password * In the options.pptp file the only things not commented out are: Code: #Lock ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2014
    Posts
    2

    Issue setting up PPTP connection in the console


    Os: Fedora LXDE

    In the chap secrets file I have the following:

    Code:
    Domain\Username Ipaddress Password *
    In the options.pptp file the only things not commented out are:
    Code:
    #Lock the port
    lock 
    
    #Authentication 
    noauth
    
    #refusals
    refuse-pap
    refuse-eap
    refuse-chap
    
    #Compression
    nobsdcomp
    nodeflate
    Then in the peers folder I have a file called connectionName that has:

    Code:
    pty "pptp IPAddress --nolaunchpppd"
    name domain\username
    remotename servername
    require-mppe-128
    file /etc/ppp/options.pptp
    ippram connectionName
    and when I call pppd call connectionName

    the tail -f /var/log/messages command reveals:
    Code:
    May 29 10:28:36 localhost pppd[3947]: pppd 2.4.5 started by mobile3, uid 0
    May 29 10:28:36 localhost pppd[3947]: Using interface ppp0
    May 29 10:28:36 localhost pppd[3947]: Connect: ppp0 <--> /dev/pts/2
    May 29 10:28:36 localhost NetworkManager[652]: <info> (ppp0): new Generic device (driver: 'unknown' ifindex: 14)
    May 29 10:28:36 localhost NetworkManager[652]: <info> (ppp0): exported as /org/freedesktop/NetworkManager/Devices/13
    May 29 10:28:36 localhost NetworkManager[652]: <info> (ppp0): No existing connection detected.
    May 29 10:28:36 localhost pptp[3948]: anon log[main:pptp.c:333]: The synchronous pptp option is NOT activated
    May 29 10:28:36 localhost pptp[3955]: anon log[ctrlp_rep:pptp_ctrl.c:258]: Sent control packet type is 1 'Start-Control-Connection-Request'
    May 29 10:28:36 localhost pptp[3955]: anon log[ctrlp_disp:pptp_ctrl.c:758]: Received Start Control Connection Reply
    May 29 10:28:36 localhost pptp[3955]: anon log[ctrlp_disp:pptp_ctrl.c:792]: Client connection established.
    May 29 10:28:36 localhost systemd-sysctl: Overwriting earlier assignment of net/ipv4/conf/default/rp_filter in file '/etc/sysctl.d/99-sysctl.conf'.
    May 29 10:28:37 localhost pptp[3955]: anon log[ctrlp_rep:pptp_ctrl.c:258]: Sent control packet type is 7 'Outgoing-Call-Request'
    May 29 10:28:37 localhost pptp[3955]: anon log[ctrlp_disp:pptp_ctrl.c:877]: Received Outgoing Call Reply.
    May 29 10:28:37 localhost pptp[3955]: anon log[ctrlp_disp:pptp_ctrl.c:916]: Outgoing call established (call ID 0, peer's call ID 36707).
    May 29 10:28:37 localhost pptp[3955]: anon log[ctrlp_disp:pptp_ctrl.c:931]: Received Call Clear Request.
    May 29 10:29:08 localhost pptp[3955]: anon log[pptp_read_some:pptp_ctrl.c:563]: read returned zero, peer has closed
    May 29 10:29:08 localhost pptp[3955]: anon log[callmgr_main:pptp_callmgr.c:269]: Closing connection (shutdown)
    May 29 10:29:08 localhost pptp[3955]: anon log[ctrlp_rep:pptp_ctrl.c:258]: Sent control packet type is 12 'Call-Clear-Request'
    May 29 10:29:08 localhost pppd[3947]: Modem hangup
    May 29 10:29:08 localhost pppd[3947]: Connection terminated.
    May 29 10:29:08 localhost avahi-daemon[558]: Withdrawing workstation service for ppp0.
    May 29 10:29:08 localhost pptp[3955]: anon log[pptp_read_some:pptp_ctrl.c:563]: read returned zero, peer has closed
    May 29 10:29:08 localhost pptp[3955]: anon log[call_callback:pptp_callmgr.c:84]: Closing connection (call state)
    May 29 10:29:08 localhost pppd[3947]: Exit.

  2. #2
    Linux Engineer
    Join Date
    Dec 2013
    Posts
    1,298
    The server log might give some insight into the reason for the disconnect.

  3. #3
    Just Joined!
    Join Date
    May 2014
    Posts
    2
    Quote Originally Posted by gregm View Post
    The server log might give some insight into the reason for the disconnect.
    Well windows server is not great for messages, but, I did discover that the username being authenticated was being truncated at the front by a letter so it would be: failed to authenticate sername due to bad username and password. So I thought okay the \ is acting as an escape key so I tried domain\\username and now it wont even log the attempt. ha ha ha...

  4. #4
    Linux Engineer
    Join Date
    Dec 2013
    Posts
    1,298
    I missed that - it is supposed to be Domain\\Username

    If you've changed that and still see a disconnect the answer will be on the server. I'm not familiar with windows so can't help you there but there must be log files somewhere explaining why it's closing the connection.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •