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:
- CTHRpptp-1.7.2_s1-i386.pkg (Built and runs on OpenSolaris 2008.5)
- CTHRpptp-1.7.2_s1-sparc.pkg (Built and runs on Solaris 10 11/06)
Patches
Alternatively, you can build Solaris PPTP Client from source:
- 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 -
- Download pptp-1.7.2_s1-solaris.patch here
- Apply the patch:
# cd pptp-1.7.2
# gpatch -p1 < ../pptp-1.7.2_s1-solaris.patch
- Modify makefile for your Solaris system.
- Build:
# make
Hi! How about the pptpd port?
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.
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 !
What exactly doesn’t work? Did you receive any error messages?
Hi,
Great news! Will you contribute this patch back into pptpclient project so that future versions work out of the box?
This patch is already in pptpclient CVS tree!
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
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 ?
[...] патчи для работы pptp-client под Solaris включены в вышедший сегодня [...]
[...] страничке Solaris PPTP Client можно найти обновленные пакеты и патчи для PPTP Client 1.7.2 с [...]
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
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
Will it also work for me?
uname -a
SunOS solaris-devx 5.11 snv_64a i86pc i386 i86pc
Sure!
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
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
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
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
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
Thanks for reply,
i will monitor this bug and wait for solution
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.
# pptp <vpn gateway ip> user <username> password <password> debug nodetach
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
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)
В итоге пишется ошибка вида:
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 просто не подходит, можете пожалуйста помочь с этим?
Покажи:
# grep ppp_ahdl /var/sadm/install/contents
# isainfo -kv
# grep ppp_ahdl /var/sadm/install/contents
# isainfo -kv
64-bit amd64 kernel modules
# grep spppasyn /var/sadm/install/contents