cannot start service pptp

General support questions
wassimdarwich
Posts: 3
Joined: 2017/12/07 23:35:09

cannot start service pptp

Postby wassimdarwich » 2017/12/07 23:38:28

hi
i installed pptp by yum , and tried to start service by using : #systemctl pptpd start
it giving me error unit not found , how can i start pptpd service , cause as i see its not started when i type ifconfig ppp0 device is not found , many thanks in advance

User avatar
TrevorH
Forum Moderator
Posts: 21208
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: cannot start service pptp

Postby TrevorH » 2017/12/08 01:14:30

Sounds like you installed pptp not pptpd. The pptp package is the client, pptpd is the server and comes with a file /usr/lib/systemd/system/pptpd.service
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

wassimdarwich
Posts: 3
Joined: 2017/12/07 23:35:09

Re: cannot start service pptp

Postby wassimdarwich » 2017/12/08 14:32:46

yes i need to use pptp as client and not server ,
i used pptp , and ive tried to do connection by #pppd call myVPN ,connection is termianted after 4 or 5 trys , this what i have found in var/logs

Dec 8 16:22:10 localhost pppd[3983]: pppd 2.4.5 started by roo, uid 0
Dec 8 16:22:10 localhost pppd[3983]: Using interface ppp0
Dec 8 16:22:10 localhost pppd[3983]: Connect: ppp0 <--> /dev/pts/1
Dec 8 16:22:10 localhost pptp[3984]: anon log[main:pptp.c:333]: The synchronous pptp option is NOT activated
Dec 8 16:22:10 localhost NetworkManager[811]: <info> [1512742930.4344] manager: (ppp0): new Generic device (/org/freedesktop/NetworkManager/Devices/10)
Dec 8 16:22:10 localhost pptp[3994]: anon log[ctrlp_rep:pptp_ctrl.c:254]: Sent control packet type is 1 'Start-Control-Connection-Request'
Dec 8 16:22:41 localhost pppd[3983]: LCP: timeout sending Config-Requests
Dec 8 16:22:41 localhost pppd[3983]: Connection terminated.
Dec 8 16:22:41 localhost avahi-daemon[764]: Withdrawing workstation service for ppp0.
Dec 8 16:22:41 localhost pppd[3983]: Modem hangup
Dec 8 16:22:41 localhost journal: JS LOG: Removing a network device that was not added
Dec 8 16:22:46 localhost pppd[3983]: Exit.
Dec 8 16:23:10 localhost pptp[3994]: anon log[pptp_conn_close:pptp_ctrl.c:434]: Closing PPTP connection
Dec 8 16:23:10 localhost pptp[3994]: anon log[ctrlp_rep:pptp_ctrl.c:254]: Sent control packet type is 3 'Stop-Control-Connection-Request'
Dec 8 16:24:10 localhost pptp[3994]: anon log[pptp_read_some:pptp_ctrl.c:566]: read error: Bad file descriptor
Dec 8 16:26:35 localhost NetworkManager[811]: <info> [1512743195.0583] device (wlp5s0): set-hw-addr: set MAC address to 56:A6:32:C4:BE:D2 (scanning)

User avatar
TrevorH
Forum Moderator
Posts: 21208
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: cannot start service pptp

Postby TrevorH » 2017/12/08 15:27:18

Since you appear to be using NetworkManager I suspect you should be installing and using NetworkManager-pptp and/or NetworkManager-pptp-gnome (if you have a GUI) to use this. They're both from EPEL.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

wassimdarwich
Posts: 3
Joined: 2017/12/07 23:35:09

Re: cannot start service pptp

Postby wassimdarwich » 2017/12/08 16:10:54

yes i have gui , and all pptp rpm's are installed ,but yet pptp plugin is not showing up in network manager :
[root@192 ppp]# rpm -qa | grep pptp
NetworkManager-pptp-1.1.0-3.20150428git695d4f2.el7.x86_64
NetworkManager-pptp-gnome-1.1.0-3.20150428git695d4f2.el7.x86_64
pptp-1.7.2-22.el7.x86_64

User avatar
TrevorH
Forum Moderator
Posts: 21208
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: cannot start service pptp

Postby TrevorH » 2017/12/08 16:48:45

But you don't appear to be using NM to start the connection.

You're using pptp the client, not pptpd the server so there is no systemd unit file for it as it's not run that way.

You need to use NM - either nmtui, nmcli or nm-connection-editor - to create the connection for you. Then you need to use the same tools to start the connection - e.g. nmcli conn up $nameofconnection or left click the nm-applet icon in your taskbar and select VPN Connections -> $nameofconnection
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke