problem with ppp

problem with ppp

Post by Andrej Dobrot » Thu, 04 Oct 2001 18:27:06




Subject: Problem with ppp
Date: Tuesday, October 02, 2001 6:57 PM

Hi to All

I need to setup my linux (Red Hat 6.2) like ppp server, so I can connect to
it with windows ppp client.
My /etc/ppp/options.ttyS1 file look like

    -detach
    modem
    crtscts
    lock
    record /var/log/ppp.record
    require-pap
    refuse-chap
    login
    proxyarp
    220.1.1.1:220.1.1.101
    ms-dns 220.1.1.1

After I try to connect, I got error message on my windows:
    Error 718: The computer you're dialing in to cannot establish a Dial-Up
Networking connection.
    Check your password, and try again.

Part of file /var/log/message on linux look like this:

    Oct 2 17:15:33 andrej PAM_pwdb[1331]: (login) session opened for user
andppp by (uid=0)
    Oct 2 17:15:33 andrej pppd[1332]: pppd 2.3.11 started by andppp, uid 502
    Oct 2 17:15:33 andrej pppd[1332]: Using interface ppp0
    Oct 2 17:15:33 andrej pppd[1333]: Couldn't create record file
/var/log/ppp.record: Permission denied
    Oct 2 17:15:33 andrej pppd[1332]: Connect: ppp0 <--> /dev/pts/1
    Oct 2 17:15:40 andrej PAM_pwdb[1332]: (ppp) session opened for user
andppp by andppp(uid=502)
    Oct 2 17:15:40 andrej pppd[1332]: user andppp logged in
    Oct 2 17:15:41 andrej pppd[1332]: LCP terminated by peer
    Oct 2 17:15:44 andrej PAM_pwdb[1332]: (ppp) session closed for user
andppp
    Oct 2 17:15:44 andrej pppd[1332]: Connection terminated.
    Oct 2 17:15:44 andrej pppd[1332]: Connect time 0.2 minutes.
    Oct 2 17:15:44 andrej pppd[1332]: Sent 293 bytes, received 300 bytes.
    Oct 2 17:15:44 andrej pppd[1332]: Exit.
    Oct 2 17:15:44 andrej PAM_pwdb[1331]: (login) session closed for user
andppp

Obviously problem is LCP terminated by peer. Can somebody help me.

Ante

 
 
 

problem with ppp

Post by Dean Thompso » Thu, 04 Oct 2001 20:19:08


Hi!,

Quote:> I need to setup my linux (Red Hat 6.2) like ppp server, so I can connect to
> it with windows ppp client.
> My /etc/ppp/options.ttyS1 file look like

>     -detach
>     modem
>     crtscts
>     lock
>     record /var/log/ppp.record
>     require-pap
>     refuse-chap
>     login
>     proxyarp
>     220.1.1.1:220.1.1.101
>     ms-dns 220.1.1.1

> After I try to connect, I got error message on my windows:
>     Error 718: The computer you're dialing in to cannot establish a Dial-Up
> Networking connection.
>     Check your password, and try again.

> Part of file /var/log/message on linux look like this:

>     Oct 2 17:15:33 andrej PAM_pwdb[1331]: (login) session opened for user
> andppp by (uid=0)
>     Oct 2 17:15:33 andrej pppd[1332]: pppd 2.3.11 started by andppp, uid 502
>     Oct 2 17:15:33 andrej pppd[1332]: Using interface ppp0
>     Oct 2 17:15:33 andrej pppd[1333]: Couldn't create record file
> /var/log/ppp.record: Permission denied
>     Oct 2 17:15:33 andrej pppd[1332]: Connect: ppp0 <--> /dev/pts/1
>     Oct 2 17:15:40 andrej PAM_pwdb[1332]: (ppp) session opened for user
> andppp by andppp(uid=502)
>     Oct 2 17:15:40 andrej pppd[1332]: user andppp logged in
>     Oct 2 17:15:41 andrej pppd[1332]: LCP terminated by peer
>     Oct 2 17:15:44 andrej PAM_pwdb[1332]: (ppp) session closed for user
> andppp
>     Oct 2 17:15:44 andrej pppd[1332]: Connection terminated.
>     Oct 2 17:15:44 andrej pppd[1332]: Connect time 0.2 minutes.
>     Oct 2 17:15:44 andrej pppd[1332]: Sent 293 bytes, received 300 bytes.
>     Oct 2 17:15:44 andrej pppd[1332]: Exit.
>     Oct 2 17:15:44 andrej PAM_pwdb[1331]: (login) session closed for user
> andppp

> Obviously problem is LCP terminated by peer. Can somebody help me.

I suspect your problem might be a permission one on the pppd program.  What
are the permissions on pppd ?

You may also want to take a look at the ISP-Setup-RedHat HOWTO located at the
http://www.linuxdoc.org to find some steps to follow.

See ya

Dean Thompson

--
+____________________________+____________________________________________+

| Bach. Computing (Hons)     | ICQ     - 45191180                         |
| PhD Student                | Office  - <Off-Campus>                     |
| School Comp.Sci & Soft.Eng | Phone   - +61 3 9903 2787 (Gen. Office)    |
| MONASH (Caulfield Campus)  | Fax     - +61 3 9903 1077                  |
| Melbourne, Australia       |                                            |
+----------------------------+--------------------------------------------+

 
 
 

problem with ppp

Post by Clifford Kit » Fri, 05 Oct 2001 00:01:38



>     Oct 2 17:15:33 andrej PAM_pwdb[1331]: (login) session opened for user
> andppp by (uid=0)
>     Oct 2 17:15:33 andrej pppd[1332]: pppd 2.3.11 started by andppp, uid 502
>     Oct 2 17:15:33 andrej pppd[1332]: Using interface ppp0
>     Oct 2 17:15:33 andrej pppd[1333]: Couldn't create record file
> /var/log/ppp.record: Permission denied

This "Permission denied" *might* be cured by setting pppd for root
privileges.

Quote:>     Oct 2 17:15:33 andrej pppd[1332]: Connect: ppp0 <--> /dev/pts/1
>     Oct 2 17:15:40 andrej PAM_pwdb[1332]: (ppp) session opened for user
> andppp by andppp(uid=502)
>     Oct 2 17:15:40 andrej pppd[1332]: user andppp logged in
>     Oct 2 17:15:41 andrej pppd[1332]: LCP terminated by peer

Add the pppd "debug" option to see what is happening in the LCP
negotiations.  Post an exact copy of the resulting log messages
for more help (these may be in /var/log/debug but depends on the
configuration of /etc/syslog.conf).

It looks like you are launching pppd from the /etc/passwd file at
login.  In that case the pppd "require-pap" option may be the problem.

--

 
 
 

problem with ppp

Post by Bill Unr » Fri, 05 Oct 2001 01:59:13



]I need to setup my linux (Red Hat 6.2) like ppp server, so I can connect to
]it with windows ppp client.
]My /etc/ppp/options.ttyS1 file look like

Make sure you are using pppd 2.4.1, not 2.4.0 which is buggy and does not read the
options.ttyS1 files properly.

]    -detach
]    modem
]    crtscts
]    lock
]    record /var/log/ppp.record
]    require-pap
]    refuse-chap
]    login

Don't use login until you are sure things are working. Put the password into
/etc/ppp/pap-secrets.

]    proxyarp
]    220.1.1.1:220.1.1.101
]    ms-dns 220.1.1.1

You need to switch on pppd debugging ( put debug into /etc/ppp/options and set up
syslog.conf to direct daemon stuff to whatever file you want)

]    Oct 2 17:15:33 andrej PAM_pwdb[1331]: (login) session opened for user
]andppp by (uid=0)
]    Oct 2 17:15:33 andrej pppd[1332]: pppd 2.3.11 started by andppp, uid 502
]    Oct 2 17:15:33 andrej pppd[1332]: Using interface ppp0
]    Oct 2 17:15:33 andrej pppd[1333]: Couldn't create record file
]/var/log/ppp.record: Permission denied

Sounds like you are running pppd as user, not s root. It should be suid root.
chmod +s /usr/sbin/pppd

]    Oct 2 17:15:33 andrej pppd[1332]: Connect: ppp0 <--> /dev/pts/1
]    Oct 2 17:15:40 andrej PAM_pwdb[1332]: (ppp) session opened for user
]andppp by andppp(uid=502)
]    Oct 2 17:15:40 andrej pppd[1332]: user andppp logged in

Looks like  pap worked. You need more dbugging info!
]    Oct 2 17:15:41 andrej pppd[1332]: LCP terminated by peer
]    Oct 2 17:15:44 andrej PAM_pwdb[1332]: (ppp) session closed for user
]andppp

 
 
 

1. Problems with PPP Programs: gnome-ppp, usernet, ifup, etc...

Hello everyone,

I'm having some difficulty in getting the ppp programs gnome-ppp and
usernet to function.  My main problem is that I can't get the programs
to connect to my ISP when I execute them as a non-root user.  I've read
pages of usenet postings from people who have had the same problems,
attempted the proposed solutions, but have had no luck so far.

What really bothers me is that I had usernet connecting properly about
a week ago.  I thought I would run through a brief description of what
I did before and after the problem arised in hope that someone might
catch what I did wrong.

- Running RH5.2 using usernet to active ppp0 as a non-root user.
- Upgraded to RH6.0; no problems.

- Run sndconfig to detect soundcard in hopes that it will autoconfigure.
- Reboot and noticed a bunch of hardware address conflicts.
- Modem and sound cards (both ISA) not being controlled by OS because
  of hardware address confilicts.
- Remove the lines in isapnp.conf pertaining to the modem and reboot.

- Modem IO address conflict resolved, can dial as root using gnome-ppp
- Run usernet as non-root user, modem dials and connects then abruptly
  disconnects (similarly with /sbin/ifup ppp0)
- Change permissions for /usr/sbin/pppd and /dev/ttyS0 to the following:

lrwxrwxrwx   1 root     root            5 Aug 21 11:17 /dev/modem ->
ttyS0
crw-rw----   1 root     pppusers   4,  64 Aug 24 18:36 /dev/ttyS0
-rwsr-xr--   1 root     pppusers   120020 Apr  9 23:33 /usr/sbin/pppd

- add myself to the pppusers group, try again, no luck.

Currently when I run gnome-ppp as a non-root user, pppd starts, gnome-
ppp reports it and then attempts to dial.  gnome-ppp then hangs without
dialing.  The error reported in /var/log/messages states that the
connect script failed.

I'm out of ideas.  Can someone spot my error?

Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

2. Which frame buffer will work for X11R6 under Solaris-2.3.x

3. ppp problems using ppp-2.2.0f

4. Sound modules anywhere?

5. problem using ppp with ppp.linkup

6. Download Slackware per Alpha

7. PPP: under cron I have problems bringing ppp down.

8. Reinstall Blues

9. Problem with PPP disconnecting and problems with 1.3.6

10. need help on problems with ppp session negotiation

11. DNS Problem with PPP connecting to AT&T World or IBM Net under Linux

12. Compile Problems with PPP 2.3.5 in Linux 2.0.33

13. Problems with PPP and ARP