here is what i have and it works with windows and linux clients /etc/ppp/options.server -detach # detach from ppp session (ie, run in background) asyncmap 0 modem crtscts lock require-pap # use pap authentication refuse-chap # dont use chap authentication #login proxyarp ms-dns 10.1.1.5 # sets the local dns server ms-dns 10.1.1.1 10.1.1.10:10.1.1.50 # sets the gateway and ip address for dial-in /etc/mgetty+sendfax/login.config /AutoPPP/ - a_ppp /usr/sbin/pppd file /etc/ppp/options.server and from /etc/inittab mo:23:respawn:/usr/sbin/mgetty -n 5 -s 57600 -D ttyS0 on both windows and linux i just setup a standard dial-up networking connection. On Thursday 18 July 2002 02:50 pm, you wrote:
I don't believe that authentication is my problem, as shown by these lines in /var/log/messages: Jul 18 15:36:58 admin pppd[29827]: rcvd [PAP AuthReq id=0x1 user="kevinz" password=<hidden>] Jul 18 15:36:58 admin pppd[29827]: user kevinz logged in Jul 18 15:37:01 admin pppd[29827]: LCP terminated by peer
However, just to be thorough, I put in the username and password explicitly in pap-secrets. There was no change in the failure, or in the log entries.
I think my problem is in the way I have the client set up. None of the documentation I can find says what settings to make in the Windows configuration screens which would work with the way I have the ppp server set up..
Thanks, again, for your questions and suggestions.
-Kevin
Jonathan Cowherd
07/18/02 03:13PM I remember running into something like this a while ago. I think the login must be set in /etc/passwd and in /etc/ppp/pap-secrets . The pap-secrets entry must be plaintext for the username and the password. See if that doesn't do it for you.
Jonathan Paul Cowherd Linux and Java Administrator Genscape, Inc. Email: jonathan.cowherd@genscape.com Office: (502) 583-3730
-----Original Message----- From: KEVIN ZEMBOWER [mailto:KZEMBOWER@jhuccp.org] Sent: Thursday, July 18, 2002 2:58 PM To: suse-linux-e@suse.com Subject: RE: [SLE] Setting up ppp server for Win and Linux
Jonathan, thank for writing.
I did have this line in /etc/mgetty+sendfax/login.config, which is what I think invokes pppd in this situation. /AutoPPP/ - a_ppp /usr/sbin/pppd auth login I've just tried this again, and there was no change in the failure, or either of the log files.
Then, I left that change alone, and added "+pap -chap" to /etc/ppp/options: admin:/etc/ppp # grep -v ^# /etc/ppp/options | grep -v ^$
<snip> lock modem proxyarp login auth +pap -chap
When I tried this, again it failed with the same entries in both logs.
Thanks, again for your thoughts and suggestions.
-Kevin
Jonathan Cowherd
07/18/02 02:21PM Windows uses pap authentication to connect to a ppp server. I don't see where you have pap turn on in your options file or your parameters for pppd.
Jonathan Paul Cowherd Linux and Java Administrator Genscape, Inc. Email: jonathan.cowherd@genscape.com Office: (502) 583-3730
-----Original Message----- From: KEVIN ZEMBOWER [mailto:KZEMBOWER@jhuccp.org] Sent: Thursday, July 18, 2002 1:07 PM To: suse-linux-e@suse.com Subject: [SLE] Setting up ppp server for Win and Linux
I'm trying to set up a ppp server which can be dialed into from either Linux or Windows PCs. I'm building this on a SuSE 7.2. host. I'm hoping to use the normal authentication (regular login) for the users in /etc/passwd, as opposed to setting up separate passwords in /etc/ppp/pap-secrets and chap-secrets. Right now, Linux users can dial in, using wvdial, just fine, with no problems.
When Windows users log in, they immediately disconnect after validating their user name and password. The error is something like "not able to negotiate a common protocol; make changes in Server-Types of Networking control panel." I'm trying to use a static IP on the client, but wouldn't mind using a dynamic one if that's easier.
In /var/log/messages, when a Windows client dials in, I get: Jul 18 10:25:02 admin pppd[27446]: pppd 2.4.0 started by root, uid 0 Jul 18 10:25:02 admin pppd[27446]: Perms of /dev/ttyS1 are ok, no 'mesg n' neccesary. Jul 18 10:25:02 admin pppd[27446]: using channel 26 Jul 18 10:25:02 admin pppd[27446]: Using interface ppp0 Jul 18 10:25:02 admin pppd[27446]: Connect: ppp0 <--> /dev/ttyS1 Jul 18 10:25:02 admin pppd[27446]: sent [LCP ConfReq id=0x1
<auth pap> <pcomp> <accomp>] Jul 18 10:25:04 admin pppd[27446]: sent [LCP ConfReq id=0x1 <auth pap> <pcomp> <accomp>] Jul 18 10:25:04 admin pppd[27446]: rcvd [LCP ConfAck id=0x1 <auth pap> <pcomp> <accomp>] Jul 18 10:25:05 admin pppd[27446]: rcvd [LCP ConfReq id=0x2 <pcomp> <accomp> <callback CBCP>] Jul 18 10:25:05 admin pppd[27446]: sent [LCP ConfAck id=0x2 <pcomp> <accomp> <callback CBCP>] Jul 18 10:25:05 admin pppd[27446]: sent [LCP EchoReq id=0x0 magic=0xb5e0fd41] Jul 18 10:25:05 admin pppd[27446]: cbcp_lowerup Jul 18 10:25:05 admin pppd[27446]: want: 2 Jul 18 10:25:05 admin pppd[27446]: rcvd [PAP AuthReq id=0x1 user="kevinz" password=<hidden>] Jul 18 10:25:05 admin pppd[27446]: user kevinz logged in Jul 18 10:25:09 admin pppd[27446]: LCP terminated by peer Jul 18 10:25:09 admin pppd[27446]: Hangup (SIGHUP) Jul 18 10:25:09 admin pppd[27446]: Modem hangup Jul 18 10:25:09 admin pppd[27446]: Connection terminated. Jul 18 10:25:09 admin pppd[27446]: Connect time 0.2 minutes. Jul 18 10:25:09 admin pppd[27446]: Sent 117 bytes, received 96 bytes. Jul 18 10:25:09 admin pppd[27446]: Exit. This is the log file for the modem on the Windows client when it calls in: 07-18-2002 13:34:58.63 - Linksys EtherFast 10&100 + 56K PC Card (PCMLM56) (Modem) in use. 07-18-2002 13:34:58.63 - Modem type: Linksys EtherFast 10&100 + 56K PC Card (PCMLM56) (Modem) 07-18-2002 13:34:58.63 - Modem inf path: MDMLM.INF 07-18-2002 13:34:58.63 - Modem inf section: Modem1 07-18-2002 13:34:58.90 - 115200,N,8,1 07-18-2002 13:34:58.90 - 115200,N,8,1 07-18-2002 13:34:58.90 - WARNING: Unable to load the 'Compression_On' string. 07-18-2002 13:34:58.90 - Initializing modem. 07-18-2002 13:34:58.90 - Send: AT&F W2 <cr> 07-18-2002 13:34:58.97 - Recv: AT&F W2 <cr> 07-18-2002 13:34:58.97 - Recv: <cr><lf>OK<cr><lf> 07-18-2002 13:34:58.97 - Interpreted response: Ok 07-18-2002 13:34:58.97 - Send: AT<cr> 07-18-2002 13:34:58.97 - Recv: AT<cr> 07-18-2002 13:34:58.97 - Recv: <cr><lf>OK<cr><lf> 07-18-2002 13:34:58.97 - Interpreted response: Ok 07-18-2002 13:34:58.97 - Send: AT<cr> 07-18-2002 13:34:58.97 - Recv: AT<cr> 07-18-2002 13:34:58.97 - Recv: <cr><lf>OK<cr><lf> 07-18-2002 13:34:58.97 - Interpreted response: Ok 07-18-2002 13:34:58.97 - Send: ATS7=60S30=0L0M1\N3&K3B0 N1X4<cr> 07-18-2002 13:34:58.98 - Recv: ATS7=60S30=0L0M1\N3&K3B0 N1X4<cr> 07-18-2002 13:34:58.98 - Recv: <cr><lf>OK<cr><lf> 07-18-2002 13:34:58.98 - Interpreted response: Ok 07-18-2002 13:34:58.98 - Dialing. 07-18-2002 13:34:58.98 - Send: ATDT####<cr> 07-18-2002 13:34:59.03 - Recv: ATDTxxxx<cr> 07-18-2002 13:35:16.67 - Recv: <cr><lf>CONNECT 33600 V42bis<cr><lf> 07-18-2002 13:35:16.67 - Interpreted response: Connect 07-18-2002 13:35:16.67 - Connection established at 33600bps. 07-18-2002 13:35:16.67 - Error-control on. 07-18-2002 13:35:16.67 - Data compression on. 07-18-2002 13:35:24.25 - Hanging up the modem. 07-18-2002 13:35:24.25 - Hardware hangup by lowering DTR. 07-18-2002 13:35:25.44 - WARNING: The modem did not respond to lowering DTR. Trying software hangup... 07-18-2002 13:35:25.44 - Send: +++ 07-18-2002 13:35:25.59 - Recv: <cr><lf>OK<cr><lf> 07-18-2002 13:35:25.59 - Interpreted response: Ok 07-18-2002 13:35:25.59 - Send: ATH<cr> 07-18-2002 13:35:25.62 - Recv: ATH<cr> 07-18-2002 13:35:25.62 - Recv: <cr><lf>OK<cr><lf> 07-18-2002 13:35:25.62 - Interpreted response: Ok 07-18-2002 13:35:25.62 - 115200,N,8,1 07-18-2002 13:35:25.62 - Session Statistics: 07-18-2002 13:35:25.62 - Reads : 579 bytes 07-18-2002 13:35:25.62 - Writes: 460 bytes 07-18-2002 13:35:25.62 - Linksys EtherFast 10&100 + 56K PC Card (PCMLM56) (Modem) closed.
Here are the settings in the various configuration and option files which I think are involved: admin:/etc/ppp # grep -v ^# /etc/ppp/pap-secrets | grep -v ^$ * admin.jhuccp.org "" admin:/etc/ppp # grep -v ^# /etc/ppp/options | grep -v ^$ name admin.jhuccp.org debug crtscts lock modem asyncmap 0 netmask 255.255.0.0 nodetach lcp-echo-interval 30 lcp-echo-failure 4 lcp-max-configure 60 lcp-restart 2 idle 600 noipx proxyarp login auth admin:/etc/ppp # grep -v ^# /etc/mgetty+sendfax/login.config | grep -v ^$ /AutoPPP/ - a_ppp /usr/sbin/pppd auth login * - - /bin/login @ admin:/etc/ppp #
Can anyone tell me if anything's wrong with the setup on the server? Do I need to change anything on the Windows client? Any way to get any further information on the error or any diagnostics to run?
Thanks very much for your thoughts and suggestions.
-Kevin Zembower
----- E. Kevin Zembower Unix Administrator Johns Hopkins University/Center for Communications Programs 111 Market Place, Suite 310 Baltimore, MD 21202 410-659-6139
-- Chad Whitten Network/Systems Administrator neXband Communications cwhitten@nexband.com