Solaris PPTP Client

Description

This page contains my patches for PPTP Client for Solaris 10 and Solaris Nevada.

Pre-built packages

You can download pre-built package for Solaris 10 and Nevada:

Patches

Alternatively, you can build Solaris PPTP Client from source:

  1. Download PPTP Client 1.7.2 tarball from http://pptpclient.sourceforge.net/ and unpack it:

    # gunzip -c pptp-1.7.2.tar.gz | tar xf -
  2. Download pptp-1.7.2_s1-solaris.patch here
  3. Apply the patch:

    # cd pptp-1.7.2
    # gpatch -p1 < ../pptp-1.7.2_s1-solaris.patch
  4. Modify makefile for your Solaris system.
  5. Build:

    # make

Reader's Comments »

  1. By Dmitry Ursegov on January 27, 2008 at 4:03 pm

    Hi! How about the pptpd port?

  2. By Ilya Voronin on January 27, 2008 at 4:51 pm

    Poptop project webpage claims that pptpd was ported to Solaris 2.6, and i was able to build it fine on Nevada with small makefile fixes (excluded bcrelay). I never checked if it works at all.

  3. By zjxjs on February 16, 2008 at 7:03 pm

    Hi,i downloaded pptp-1.7.1.tar.gz , and use your patch file to patch , and build it ,
    but when i try use pptp to connect my vpn server , it don’t work .
    so , can you tell me how about to make it work ?
    thanks !

  4. By Ilya Voronin on February 16, 2008 at 7:09 pm

    What exactly doesn’t work? Did you receive any error messages?

  5. By Douglas Atique on March 28, 2008 at 9:51 pm

    Hi,
    Great news! Will you contribute this patch back into pptpclient project so that future versions work out of the box?

  6. By Ilya Voronin on March 30, 2008 at 10:27 am

    This patch is already in pptpclient CVS tree!

  7. By azunk on May 6, 2008 at 1:07 am

    I’ve build “make” like U’r tutorial
    should I necessary do “make install” ?
    how do I connect with pptp server ?

    sorry I’m still newbie

    thx

  8. By azunk on May 6, 2008 at 1:35 am

    IN OPEN SOLARIS FORUM
    ######
    I really need this, so I decided to give it a try. I have just built it from sources and installed it at /opt/pptp-1.7.1. Now I would like to set it up such that connection is as simple as:

    set up connection:
    svccfg -s network/pptp:MyInstance setprop host=
    svccfg -s network/pptp:MyInstance setprop user=
    svccfg -s network/pptp:MyInstance setprop passwd=

    connect:
    svcadm enable network/pptp:MyInstance

    disconnect:
    svcadm disable network/pptp:MyInstance

    #####
    how does he install in /opt as svc ?

  9. [...] патчи для работы pptp-client под Solaris включены в вышедший сегодня [...]

  10. [...] страничке Solaris PPTP Client можно найти обновленные пакеты и патчи для PPTP Client 1.7.2 с [...]

  11. By Marc Lobelle on September 23, 2008 at 12:32 am

    Thanks for preparing this info. pptp was easy to compile; in order to install it I had to replace “install” by /opt/sfw/bin/install in the Makefile; the default version of install did not work.

    I would like to use thts with a cisco VPN3000 server. Do you know the right command line and/or other configuration for this ?

    Thanks

    Marc

  12. By Jaya Krishna on September 27, 2008 at 9:11 pm

    I downloaded and installed the Open Solaris version of the pptp client. However, it seems that mschap is not supported. Following is the log output:

    Using interface sppp0
    Connect: sppp0 /dev/pts/3
    sent [LCP ConfReq id=0xd0 ]
    rcvd [LCP ConfRej id=0xd0 ]
    sent [LCP Ident id=0xd1 magic=0x0 "ppp-2.4.0b1 (Sun Microsystems, Inc.)"]
    sent [LCP ConfReq id=0xd2 ]
    rcvd [LCP ConfAck id=0xd2 ]
    rcvd [LCP ConfReq id=0x1 ]
    sent [LCP Ident id=0xd3 magic=0x0 "ppp-2.4.0b1 (Sun Microsystems, Inc.)"]
    sent [LCP ConfRej id=0x1 ]
    rcvd [LCP ConfReq id=0x2]
    sent [LCP ConfAck id=0x2]
    sent [LCP Ident id=0xd4 magic=0xfe1c15a5 "ppp-2.4.0b1 (Sun Microsystems, Inc.)"]
    sent [IPCP ConfReq id=0xef ]
    sent [CCP ConfReq id=0x79 ]
    rcvd [LCP TermReq id=0x3]
    LCP terminated by peer
    sent [LCP TermAck id=0x3]
    We rejected the peer’s demand for 0xc223 (Challenge Handshake Authentication Protocol)
    Connection terminated.
    unable to set DTR line OFF: Invalid argument

  13. By Morten Gulbrandsen on October 11, 2008 at 3:46 am

    Will it also work for me?

    uname -a
    SunOS solaris-devx 5.11 snv_64a i86pc i386 i86pc

  14. By Ilya Voronin on October 11, 2008 at 12:16 pm

    Sure!

  15. By Alexander Golikov on February 5, 2009 at 3:16 am

    hello

    I’m trying to connect to my workplace over internet VPN with this program, but it’s fails. MS Chap v2 success, but then the connection terminates.
    I collected debug logs:

    Feb 5 01:19:54 intel10.ru pppd[2516]: [ID 702911 daemon.debug] sent [LCP Ident id=0x51 magic=0x9681cc28 "ppp-2.4.0b1 (Sun Microsystems, Inc.)"]
    Feb 5 01:19:54 intel10.ru pppd[2516]: [ID 702911 daemon.debug] Authenticating to peer with MS-CHAPv2
    Feb 5 01:19:54 intel10.ru pptp[2517]: [ID 702911 daemon.notice] anon log[decaps_gre:pptp_gre.c:398]: accepting packet 4
    Feb 5 01:19:54 intel10.ru pppd[2516]: [ID 702911 daemon.debug] rcvd [CHAP Challenge id=0x0 , name = "VPN"]
    Feb 5 01:19:54 intel10.ru pppd[2516]: [ID 702911 daemon.debug] CHAP: Peer gave no name; using ‘VPN’ as remote name
    Feb 5 01:19:54 intel10.ru pppd[2516]: [ID 702911 daemon.debug] sent [CHAP Response id=0x0 , name = "username"]
    Feb 5 01:19:54 intel10.ru pptp[2517]: [ID 702911 daemon.notice] anon log[decaps_gre:pptp_gre.c:398]: accepting packet 5
    Feb 5 01:19:54 intel10.ru pppd[2516]: [ID 702911 daemon.debug] rcvd [CHAP Success id=0x0 "S=AB78D1D4D0F7F66E7329D2EC8A594812BF38CD90"]
    Feb 5 01:19:54 intel10.ru pppd[2516]: [ID 702911 daemon.info] Remote message: S=AB78D1D4D0F7F66E7329D2EC8A594812BF38CD90
    Feb 5 01:19:54 intel10.ru pppd[2516]: [ID 702911 daemon.debug] sent [IPCP ConfReq id=0x6f ]
    Feb 5 01:19:54 intel10.ru pppd[2516]: [ID 702911 daemon.debug] rcvd [CCP ConfReq id=0x4 ]
    Feb 5 01:19:54 intel10.ru pppd[2516]: [ID 702911 daemon.debug] sent [CCP ConfReq id=0x70]
    Feb 5 01:19:54 intel10.ru pppd[2516]: [ID 702911 daemon.debug] sent [CCP ConfRej id=0x4 ]
    Feb 5 01:19:54 intel10.ru pppd[2516]: [ID 702911 daemon.debug] rcvd [IPCP ConfReq id=0x5 ]
    Feb 5 01:19:54 intel10.ru pppd[2516]: [ID 702911 daemon.debug] sent [IPCP ConfAck id=0x5 ]
    Feb 5 01:19:54 intel10.ru pppd[2516]: [ID 702911 daemon.debug] rcvd [IPCP ConfRej id=0x6f ]

    my client requests vpn server after success ms chap v2 auth compression method VJ 0f 01, but server Rejects it.
    server requests my client compression method MPPC+MPPE, but my client Rejects it.

    May by MPPC+MPPE compression is not supported by this version of pppd?
    But why this command
    strings `which pppd`|grep -i mppe|wc -c
    returns 30 fires?

    There is nothing in man about mppe or mppc support.

    Have anything ideas?

    ps. my OS is opensolaris.2008.11

  16. By Alexander Golikov on February 5, 2009 at 3:35 am

    sorry, html eats all less and greater symbols in my previous post. I tried to hide them with code tag

    hello

    I’m trying to connect to my workplace over internet VPN with this program, but it’s fails. MS Chap v2 success, but then the connection terminates.
    I collected debug logs:

    Feb 5 01:19:54 intel10.ru pppd[2516]: [ID 702911 daemon.debug] sent [LCP Ident id=0x51 magic=0x9681cc28 "ppp-2.4.0b1 (Sun Microsystems, Inc.)"]
    Feb 5 01:19:54 intel10.ru pppd[2516]: [ID 702911 daemon.debug] Authenticating to peer with MS-CHAPv2
    Feb 5 01:19:54 intel10.ru pptp[2517]: [ID 702911 daemon.notice] anon log[decaps_gre:pptp_gre.c:398]: accepting packet 4
    Feb 5 01:19:54 intel10.ru pppd[2516]: [ID 702911 daemon.debug] rcvd [CHAP Challenge id=0x0 , name = "VPN"]
    Feb 5 01:19:54 intel10.ru pppd[2516]: [ID 702911 daemon.debug] CHAP: Peer gave no name; using ‘VPN’ as remote name
    Feb 5 01:19:54 intel10.ru pppd[2516]: [ID 702911 daemon.debug] sent [CHAP Response id=0x0 , name = "username"]
    Feb 5 01:19:54 intel10.ru pptp[2517]: [ID 702911 daemon.notice] anon log[decaps_gre:pptp_gre.c:398]: accepting packet 5
    Feb 5 01:19:54 intel10.ru pppd[2516]: [ID 702911 daemon.debug] rcvd [CHAP Success id=0x0 "S=AB78D1D4D0F7F66E7329D2EC8A594812BF38CD90"]
    Feb 5 01:19:54 intel10.ru pppd[2516]: [ID 702911 daemon.info] Remote message: S=AB78D1D4D0F7F66E7329D2EC8A594812BF38CD90
    Feb 5 01:19:54 intel10.ru pppd[2516]: [ID 702911 daemon.debug] sent [IPCP ConfReq id=0x6f ]
    Feb 5 01:19:54 intel10.ru pppd[2516]: [ID 702911 daemon.debug] rcvd [CCP ConfReq id=0x4 ]
    Feb 5 01:19:54 intel10.ru pppd[2516]: [ID 702911 daemon.debug] sent [CCP ConfReq id=0x70]
    Feb 5 01:19:54 intel10.ru pppd[2516]: [ID 702911 daemon.debug] sent [CCP ConfRej id=0x4 ]
    Feb 5 01:19:54 intel10.ru pppd[2516]: [ID 702911 daemon.debug] rcvd [IPCP ConfReq id=0x5 ]
    Feb 5 01:19:54 intel10.ru pppd[2516]: [ID 702911 daemon.debug] sent [IPCP ConfAck id=0x5 ]
    Feb 5 01:19:54 intel10.ru pppd[2516]: [ID 702911 daemon.debug] rcvd [IPCP ConfRej id=0x6f ]

    my client requests vpn server after success ms chap v2 auth compression method VJ 0f 01, but server Rejects it.
    server requests my client compression method MPPC+MPPE, but my client Rejects it.

    May by MPPC+MPPE compression is not supported by this version of pppd?
    But why this command
    strings `which pppd`|grep -i mppe|wc -c
    returns 30 fires?

    There is nothing in man about mppe or mppc support.

    Have anything ideas?

    ps. my OS is opensolaris.2008.11

  17. By Alexander Golikov on February 5, 2009 at 3:42 am

    sorry, html eats all less and greater symbols in my previous post and all info in them.
    the main idea in log that
    Feb 5 01:19:54 intel10.ru pppd[2516]: [ID 702911 daemon.debug] sent IPCP ConfReq id=0×6f addr 0.0.0.0 compress VJ 0f 01 ms-dns1 0.0.0.0 ms-dns2 0.0.0.0
    Feb 5 01:19:54 intel10.ru pppd[2516]: [ID 702911 daemon.debug] rcvd CCP ConfReq id=0×4 MPPC+MPPE length 6
    Feb 5 01:19:54 intel10.ru pppd[2516]: [ID 702911 daemon.debug] sent CCP ConfRej id=0×4 MPPC+MPPE length 6
    Feb 5 01:19:54 intel10.ru pppd[2516]: [ID 702911 daemon.debug] rcvd IPCP ConfRej id=0×6f compress VJ 0f 01

  18. By Alexander Golikov - on February 5, 2009 at 3:45 am

    sorry, html eats all less and greater symbols in my previous post and all info in them.

    the main idea in log that
    Feb 5 01:19:54 intel10.ru pppd[2516]: [ID 702911 daemon.debug] sent IPCP ConfReq id=0×6f addr 0.0.0.0 compress VJ 0f 01 ms-dns1 0.0.0.0 ms-dns2 0.0.0.0
    Feb 5 01:19:54 intel10.ru pppd[2516]: [ID 702911 daemon.debug] rcvd CCP ConfReq id=0×4 MPPC+MPPE length 6
    Feb 5 01:19:54 intel10.ru pppd[2516]: [ID 702911 daemon.debug] sent CCP ConfRej id=0×4 MPPC+MPPE length 6
    Feb 5 01:19:54 intel10.ru pppd[2516]: [ID 702911 daemon.debug] rcvd IPCP ConfRej id=0×6f compress VJ 0f 01

    all other messages are not necessary i think

  19. By Ilya Voronin on February 5, 2009 at 12:45 pm

    Alexander, this is a known issue, see http://bugs.opensolaris.org/view_bug.do?bug_id=6371262
    Solaris doesn’t support MPPE/MPPC encryption/compression

  20. By Alexander Golikov on February 5, 2009 at 4:08 pm

    Thanks for reply,
    i will monitor this bug and wait for solution

  21. By Sarah Kho on February 17, 2009 at 4:37 pm

    Hi
    Can you please explain how we can setup the connection?
    I installed the package but I can not understand how I can setup a connection.
    I looked in the http://pptpclient.sourceforge.net/ and it has some instructions which need a command named ‘pon’ to activate the connection but this command is not present in opensolaris 2008.11.

    Your help is appreciated.

  22. By Ilya Voronin on February 17, 2009 at 4:42 pm

    # pptp <vpn gateway ip> user <username> password <password> debug nodetach

  23. By stevens on June 14, 2009 at 12:57 pm

    I have installed CTHRpptp-1.7.2_s1-i386.pkg on solaris 10 u7(05/09) x64.When running pptp ,it reported that
    ld.so.1: pptp: fatal: libnsl.so.1: version `SUNW_1.10′ not found (required by file /usr/bin/pptp)
    ld.so.1: pptp: fatal: libnsl.so.1: open failed: No such file or directory
    Killed
    bash-3.00$ ldd /usr/bin/pptp
    libnsl.so.1 => /usr/lib/libnsl.so.1
    libnsl.so.1 (SUNW_1.10) => (version not found)
    libsocket.so.1 => /usr/lib/libsocket.so.1
    libc.so.1 => /usr/lib/libc.so.1
    libmp.so.2 => /usr/lib/libmp.so.2
    libmd.so.1 => /usr/lib/libmd.so.1
    libscf.so.1 => /usr/lib/libscf.so.1
    libdoor.so.1 => /usr/lib/libdoor.so.1
    libuutil.so.1 => /usr/lib/libuutil.so.1
    libgen.so.1 => /usr/lib/libgen.so.1
    libm.so.2 => /usr/lib/libm.so.2

    bash-3.00$ file /usr/lib/libnsl.so.1
    /usr/lib/libnsl.so.1: ELF 32-bit LSB dynamic lib 80386 Version 1, dynamically linked, not stripped, no debugging information available
    bash-3.00$ file /usr/lib/amd64/libnsl.so.1
    /usr/lib/amd64/libnsl.so.1: ELF 64-bit LSB dynamic lib AMD64 Version 1, dynamically linked, not stripped, no debugging information available
    bash-3.00$ uname -a
    SunOS S10 5.10 Generic_139556-08 i86pc i386 i86pc

  24. By Serg on July 6, 2009 at 2:37 pm

    CTHRpptp-1.7.2_s1-sparc.pkg (Built and runs on Solaris 10 11/06)
    Я скачал это файл и устновил.

    # uname -a
    SunOS unknown 5.10 Generic_139556-08 i86pc i386 i86pc(Solaris 10 5/09)

  25. By Serg on July 6, 2009 at 2:37 pm

    В итоге пишется ошибка вида:
    Jul 5 15:43:37 unknown pppd[1279]: [ID 860527 daemon.notice] pppd 2.4.0b1 (Sun Microsystems, Inc.) started by root, uid 0
    Jul 5 15:43:37 unknown pppd[1279]: [ID 702911 daemon.error] Couldn’t push PPP async HDLC module: No such device or address
    Jul 5 15:49:03 unknown pppd[1295]: [ID 860527 daemon.notice] pppd 2.4.0b1 (Sun Microsystems, Inc.) started by root, uid 0
    Jul 5 15:49:03 unknown pppd[1295]: [ID 702911 daemon.error] Couldn’t push PPP async HDLC module: No such device or address
    Я предполагаю что пакет с патчем для этой версии Solaris просто не подходит, можете пожалуйста помочь с этим?

  26. By Ilya Voronin on July 6, 2009 at 2:43 pm

    Покажи:
    # grep ppp_ahdl /var/sadm/install/contents
    # isainfo -kv

  27. By Serg on July 6, 2009 at 3:25 pm

    # grep ppp_ahdl /var/sadm/install/contents
    # isainfo -kv
    64-bit amd64 kernel modules

  28. By Ilya Voronin on July 6, 2009 at 3:54 pm

    # grep spppasyn /var/sadm/install/contents

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>