mgetty and win98

"Stephen A. Lee" (ironman@kscable.com)
Sat, 14 Aug 1999 03:14:30 GMT


Stefan Theurer wrote:

> > The problem I am having, is I can't seem to connect to my Redhat 6.0
> > linux server with a win98 machine by simply plugging in the user name
> > and password, and phone number of course.
>
> First: If you want to login as regular user to your linux machine you have
> to use pap.
> But: be warned, there is no password encryption. And, This is not very
> handsome.
> RedHat6.0: /usr/doc/ppp-2.3.7/sample/pap-secrets:
> # INBOUND CONNECTIONS
> #client         hostname        <password>      192.168.1.1
> # If you add "auth login -chap +pap" to /etc/mgetty+sendfax/login.config,
> # all users in /etc/passwd can use their password for pap-authentication.
> #
> # Every regular user can use PPP and has to use passwords from /etc/passwd
> #*      hostname        ""
>
> Second: Here is a solution that works. It uses chap. You don't have to chmod
> your pppd.
> You don't have to manipulate passwd and /etc/ppp/options. You don't have
> to compile anything. RedHat 6.0 binarys work.
> Here is my configuration (it's out from the german magazine c't 25/98
> p.218):
>
> change login.config:
> /AutoPPP/ -    a_ppp   /usr/sbin/pppd file /etc/ppp/dialin
>
> make a new file /etc/ppp/dialin:
> # /etc/ppp/dialin
> # wait for caller to begin ppp Handshake
> silent
> # caller must authenticate himself
> auth
> # authentification with chap
> +chap
> # no ipx-protocol
> #-ipx-protocol
> # give first and secondary Nameserver to caller
> #dns-addr 192.168.1.1
> #dns-addr 192.168.1.1
> ms-dns 192.168.1.1
> ms-wins 192.168.1.1
> # caller is given following IP
> :192.168.1.15
> # this Linux-machine shouldn't do his default IP-Traffic
> # over dialin-connection
> -defaultroute
> # IP from caller should be known in local ethernet
> proxyarp
>
> /etc/ppp/chap-secrets
> # Secrets for authentication using CHAP
> # client        server  secret                  IP addresses
> pppuser         *       password                *
> PPPUSER         *       password                *
>
> Remeber: the login name and the password is just for the ppp connection.
> If you want to have samba-access for example, your login name from the win98
> machine
> is important. If samba gives share access to this login name you will see it
> in the network
> window on you win98 machine. This works fine!
>
> Settings for Windows:
> Only activate TCP/IP and NetBIOS (if you want samba access).
> You can use the win98 default settings for the TCP/IP protocol.
>
> For debugging: See /var/log/messages
> Here is a logfile of a successful connection:
> mgetty: data dev=modem, pid=4242, caller='XXXX',
> conn='9600/V.22b/2400/MNP5', name='', cmd='/usr/sbin/pppd', user='/AutoPPP/'
> pppd: pppd 2.3.7 started by root, uid 0
> pppd: Using interface ppp0
> pppd: Connect: ppp0 <--> /dev/ttyS1
> pppd: CHAP peer authentication succeeded for pppuser
> pppd: found interface eth0 for proxy arp
> pppd: local  IP address 192.168.1.1
> pppd: remote IP address 192.168.1.15
>
> Hope this helps...
>        Stefan
>
> email: theurer@studbox.uni-stuttgart.de

Stefan,
    I appreciate your suggestions, I have printed this, and I will look over
everything you have suggested.  My current configuration has +pap and -chap.

Thanks,
Steve