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 <asyncmap 0x0> <auth pap> <magic 0xb5e0fd41> <pcomp> <accomp>] Jul 18 10:25:04 admin pppd[27446]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0xb5e0fd41> <pcomp> <accomp>] Jul 18 10:25:04 admin pppd[27446]: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <auth pap> <magic 0xb5e0fd41> <pcomp> <accomp>] Jul 18 10:25:05 admin pppd[27446]: rcvd [LCP ConfReq id=0x2 <asyncmap 0xa0000> <magic 0x222df> <pcomp> <accomp> <callback CBCP>] Jul 18 10:25:05 admin pppd[27446]: sent [LCP ConfAck id=0x2 <asyncmap 0xa0000> <magic 0x222df> <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
Oops! - forgot to send it to the list :0) Kevin, The list below shows what I did to a SuSE 8.0 machine to get it to function as a dial-in server for Win98 clients. I welcome comments because I know some parts aren`t really needed. This works with an external Motorola 28.8K modem on com1. In addition to the minimum installation I also added mgetty, autoppp and samba (and maybe more..) Added a getty line in /etc/inittab: S0:12345:respawn:/usr/sbin/mgetty -x 5 -a -C auto -n 1 ttyS0 Just the following line uncommented in /etc/mgetty+sendfax/login.conf: /AutoPPP/ - - /usr/sbin/pppd file /etc/ppp/options.server Created /etc/ppp/options.server containing: -detach asyncmap 0 modem crtscts lock # Select auth type require-pap refuse-chap # Allow client to specify IP address: noauth # Authenticate against /etc/passwd: login # Add client ARP entry to server table: proxyarp # Tell client the DNS settings to use: ms-dns 10.20.30.40 ms-dns 20.30.40.50 # Name this host as WINS server (use samba) ms-wins 30.40.50.60 # Specify local & remote IP adresses: 192.168.1.200:192.168.1.201 Allow just following line in /etc/ppp/pap-secrets: * * "" Enabled IP forwarding by changing to following in /etc/sysconfig/sysctl: IP_FORWARD=yes then run SuSEconfig Set client laptop to dial-in server type "winNT/98" You may be able to modify this to integrate it into your own setup. Good Luck. Damian -- Damian O'Hara using: SuSE Linux 8.0 9:12am up 83 days, 19:44, 18 users, load average: 0.00, 0.02, 0.14
participants (2)
-
Damian Ohara
-
KEVIN ZEMBOWER