Subject: Re: dialup server (pppd)
To: Frederick Bruckman <fb@enteract.com>
From: Chan Yiu Wah <c5666305@hkstar.com>
List: current-users
Date: 02/16/2000 17:53:08
On Wed, 16 Feb 2000, Frederick Bruckman wrote:
> On Wed, 16 Feb 2000, Chan Yiu Wah wrote:
>
> > Feb 16 22:43:21 lts159 pppd[1797]: Couldn't delete default route: No such
> > process
>
> The server should have "nodefault" in one of the options files.
>
> > Feb 16 22:43:21 lts159 pppd[1797]: Remote IP address changed to
> > 202.66.33.78
> > Feb 16 22:43:21 lts159 pppd[1797]: IPCP terminated by peer (Unauthorized
> > remote IP address)
>
> If the server is to set the ip addresses (as is natural), use
> "ipcp-accept-local" and "ipcp-accept-remote" on the client.
I had already included this options and I rearrange the sequence of
options in the peers file. The messages log of server is as followings:-
===========================
Feb 16 17:02:30 pc77 pppd[1013]: pppd 2.3.9 started by root, uid 0
Feb 16 17:02:30 pc77 pppd[1013]: Using interface ppp0
Feb 16 17:02:30 pc77 pppd[1013]: Connect: ppp0 <--> /dev/tty00
Feb 16 17:02:34 pc77 pppd[1013]: Deflate (15) compression enabled
Feb 16 17:02:34 pc77 pppd[1013]: Peer is not authorized to use remote
address 202.66.33.159
Feb 16 17:02:34 pc77 pppd[1013]: Connection terminated.
Feb 16 17:02:34 pc77 pppd[1013]: Connect time 0.1 minutes.
Feb 16 17:02:34 pc77 pppd[1013]: Sent 232 bytes, received 243 bytes.
Feb 16 17:02:34 pc77 pppd[1013]: Exit.
===========================
====== peers config file =======
/dev/modem 115200 # modem port and speed
connect '/etc/ppp/chat-script "26872100"' # connect script
welcome '/sbin/route delete default' # delete any current default routes first
#ipparam "hkstar.com 202.82.1.1,202.82.1.2"
passive # wait for remote to come up
crtscts # use hardware flow control
defaultroute # add default routing when link comes up
lock # lock the modem port on connect
modem # use full modem control
noipdefault # no local defaults for IP addresses
lcp-echo-interval 30 # ping the remote every 30 seconds
lcp-echo-failure 10 # declare link down after 10 pings fail
ipcp-accept-local # allow remote to specify our IP address
noauth
# conditions for disconnecting
idle 6000 # = 60 minutes
#
# demand dailing additions
demand
holdoff 10
202.66.33.77:202.36.50.159
active-filter-in "udp or (tcp and not tcp port ntp)"
ipcp-accept-remote # allow remote to specify his IP address
netmask 255.255.255.0 # netmask for our assigned IP address
#domain hkstar.com # domain name we're connecting into
user ppp # account name to use to log onto remote
mtu 1500 # maximum transmission size for link
==============================
Any idea ?
Clarence
>
> > Feb 16 22:43:21 lts159 pppd[1797]: LCP terminated by peer (No network
> > protocols running)
> > Feb 16 22:43:25 lts159 pppd[1797]: Connection terminated.
> > Feb 16 22:43:25 lts159 pppd[1797]: Connect time 0.1 minutes.
>
>
>