[Linux PPTP] Ubuntu PPTP Client Guild

Even
2 min readJun 2, 2021

--

  • Install PPTP
sudo apt-get install pptpd pptp-linux  network-manager-pptp
  • Setup PPTP Config
sudo pptpsetup --create myvpn --server [IPADDRESS] --username USERNAME
  • Enter Password
  • Start PPTP process
sudo pppd call myvpn
  • Check PPTP log
sudo cat /var/log/syslogJun  2 09:09:46 MARS-even pppd[4360]: CHAP authentication succeeded
Jun 2 09:09:46 MARS-even pppd[4360]: LCP terminated by peer (MPPE required but cannot negotiate MPPE key length)
Jun 2 09:09:48 MARS-even pptp[4404]: anon log[pptp_read_some:pptp_ctrl.c:586]: read returned zero, peer has closed
Jun 2 09:09:48 MARS-even pptp[4404]: anon log[callmgr_main:pptp_callmgr.c:269]: Closing connection (shutdown)
Jun 2 09:09:48 MARS-even pptp[4404]: anon log[ctrlp_rep:pptp_ctrl.c:259]: Sent control packet type is 12 'Call-Clear-Request'
Jun 2 09:09:48 MARS-even pptp[4404]: anon log[pptp_read_some:pptp_ctrl.c:586]: read returned zero, peer has closed
Jun 2 09:09:48 MARS-even pptp[4404]: anon log[call_callback:pptp_callmgr.c:84]: Closing connection (call state)
Jun 2 09:09:48 MARS-even pppd[4360]: Modem hangup
Jun 2 09:09:48 MARS-even pppd[4360]: Connection terminated.
Jun 2 09:09:48 MARS-even pppd[4360]: Exit.
  • Modify pptp config file to add MPPE
# written by pptpsetup
pty "pptp 210.63.221.150 --nolaunchpppd"
lock
noauth
nobsdcomp
nodeflate
name even_zhang
remotename myvpn
ipparam myvpn
require-mppe-128
  • Check Password
sudo vim /etc/ppp/chap-secrets
  • Run again (sudo pppd call myvpn) and check log
Jun  2 09:14:17 MARS-even pppd[5008]: pppd 2.4.7 started by mars, uid 0
Jun 2 09:14:17 MARS-even pppd[5008]: Using interface ppp0
Jun 2 09:14:17 MARS-even pppd[5008]: Connect: ppp0 <--> /dev/pts/1
Jun 2 09:14:17 MARS-even pptp[5011]: anon log[main:pptp.c:350]: The synchronous pptp option is NOT activated
Jun 2 09:14:17 MARS-even pptp[5069]: anon log[ctrlp_rep:pptp_ctrl.c:259]: Sent control packet type is 1 'Start-Control-Connection-Request'
Jun 2 09:14:17 MARS-even pptp[5069]: anon log[ctrlp_disp:pptp_ctrl.c:781]: Received Start Control Connection Reply
Jun 2 09:14:17 MARS-even pptp[5069]: anon log[ctrlp_disp:pptp_ctrl.c:815]: Client connection established.
Jun 2 09:14:18 MARS-even pptp[5069]: anon log[ctrlp_rep:pptp_ctrl.c:259]: Sent control packet type is 7 'Outgoing-Call-Request'
Jun 2 09:14:18 MARS-even pptp[5069]: anon log[ctrlp_disp:pptp_ctrl.c:900]: Received Outgoing Call Reply.
Jun 2 09:14:18 MARS-even pptp[5069]: anon log[ctrlp_disp:pptp_ctrl.c:939]: Outgoing call established (call ID 56096, peer's call ID 3805).
Jun 2 09:14:18 MARS-even pppd[5008]: CHAP authentication succeeded
Jun 2 09:14:18 MARS-even pppd[5008]:
MPPE 128-bit stateless compression enabled
Jun 2 09:14:18 MARS-even pppd[5008]: local IP address 192.168.4.145
Jun 2 09:14:18 MARS-even pppd[5008]: remote IP address 192.168.3.1
  • show interface to check PPTP has connected.
ppp0      Link encap:Point-to-Point Protocol
inet addr:192.168.4.145 P-t-P:192.168.3.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1336 Metric:1
RX packets:1864 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:148264 (148.2 KB) TX bytes:66 (66.0 B)
  • Disconnect PPTP from server
sudo killall pppd

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response