From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rod Subject: Re: How calls diald the pppd? Date: Thu, 29 Aug 2002 14:05:01 -0400 Sender: linux-diald-owner@vger.kernel.org Message-ID: <20020829180501.GA1368@pike.home> References: <3D6E4E50.EF8B32F9@ba228.pppool.de> Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: <3D6E4E50.EF8B32F9@ba228.pppool.de> List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-diald@vger.kernel.org On Thu, Aug 29, 2002 at 06:39:44PM +0200, Juergen Kosel wrote: > Hallo, > I have a problem to establish a ppp conection to my ISP using diald > (using : > exec /usr/sbin/pppd /dev/ttyS0 115200 \ > $LOCAL_IP:$REMOTE_IP \ > connect $DIALER_SCRIPT \ > usepeerdns \ > name juergen.kosel > > in a script works) > > As the pppd debug output shows, the remote adress is considered as > illegal by pppd: > > Aug 28 21:23:13 ba228 pppd[4509]: pppd 2.3.11 started by dialout, uid 0 > Aug 28 21:23:13 ba228 pppd[4509]: Using interface ppp0 > Aug 28 21:23:13 ba228 pppd[4509]: Connect: ppp0 <--> /dev/ttyS0 > Aug 28 21:23:13 ba228 pppd[4509]: sent [LCP ConfReq id=0x1 0x0> ] > Aug 28 21:23:13 ba228 pppd[4509]: rcvd [LCP ConfReq id=0x75 0xa0000> ] > Aug 28 21:23:13 ba228 pppd[4509]: sent [LCP ConfAck id=0x75 0xa0000> ] > Aug 28 21:23:13 ba228 pppd[4509]: rcvd [LCP ConfAck id=0x1 0x0> ] > Aug 28 21:23:13 ba228 pppd[4509]: sent [PAP AuthReq id=0x1 > user="juergen.kosel" password="juergen"] > Aug 28 21:23:14 ba228 pppd[4509]: rcvd [PAP AuthAck id=0x1 ""] > Aug 28 21:23:14 ba228 pppd[4509]: sent [IPCP ConfReq id=0x1 0.0.0.0> ] > Aug 28 21:23:14 ba228 pppd[4509]: sent [CCP ConfReq id=0x1 > ] > Aug 28 21:23:14 ba228 pppd[4509]: rcvd [IPCP ConfReq id=0x9a 62.104.216.42>] > Aug 28 21:23:14 ba228 pppd[4509]: sent [IPCP ConfAck id=0x9a 62.104.216.42>] > Aug 28 21:23:14 ba228 pppd[4509]: rcvd [IPCP ConfRej id=0x1 0f 01>] > Aug 28 21:23:14 ba228 pppd[4509]: sent [IPCP ConfReq id=0x2 0.0.0.0> ] > Aug 28 21:23:14 ba228 pppd[4509]: rcvd [LCP ProtRej id=0xd5 80 fd 01 01 > 00 0f 1a 04 18 00 18 04 18 00 15 03 29] > Aug 28 21:23:14 ba228 pppd[4509]: rcvd [IPCP ConfNak id=0x2 213.7.161.139> ] > Aug 28 21:23:14 ba228 pppd[4509]: sent [IPCP ConfReq id=0x3 213.7.161.139> ] > Aug 28 21:23:14 ba228 pppd[4509]: rcvd [IPCP ConfAck id=0x3 213.7.161.139> ] > Aug 28 21:23:14 ba228 pppd[4509]: Peer is not authorized to use remote > address 62.104.216.42 > Aug 28 21:23:14 ba228 pppd[4509]: sent [IPCP TermReq id=0x4 > "Unauthorized remote IP address"] > Aug 28 21:23:14 ba228 pppd[4509]: rcvd [IPCP TermAck id=0x4] > Aug 28 21:23:14 ba228 pppd[4509]: sent [LCP TermReq id=0x2 "No network > protocols running"] > Aug 28 21:23:14 ba228 pppd[4509]: rcvd [LCP TermAck id=0x2] > Aug 28 21:23:14 ba228 pppd[4509]: Connection terminated. > Aug 28 21:23:14 ba228 pppd[4509]: Connect time 0.1 minutes. > Aug 28 21:23:14 ba228 pppd[4509]: Sent 248 bytes, received 233 bytes. > Aug 28 21:23:14 ba228 pppd[4509]: Exit. > > > How could I configure diald, that it calls pppd in a way in which it > accepts the remote address? > I attach also my diald.conf (the time I set remote 62.104.216.42 the > other side had ...39 :-( ). > > > > Juergen > -- > Homepage: http://people.freenet.de/Juergen-Kosel/ > PGP-Key : > http://wwwkeys.de.pgp.net:11371/pks/lookup?op=get&search=0x68F9F7CF > mode ppp > pppd-options usepeerdns name juergen.kosel noipdefault ipcp-accept-local ipcp-accept-remote > path-pppd /usr/sbin/pppd > device /dev/ttyS0 > connect /etc/ppp/dial-freenet > #connect /usr/local/lib/diald/connect > speed 115200 > modem > lock > crtscts > local 192.168.2.1 > #remote 62.104.216.42 Pick a local and remote address that are unique and not the address of any machines in your network. As an example if the diald server in my network has an IP address of 192.168.2.1 my diald.conf has the following local 192.168.2.2 remote 192.168.2.3 Hope that helps. Cheers, Rod > dynamic > defaultroute > proxyarp > ip-up /etc/ppp/ip-up > ip-down /etc/ppp/ip-down > two-way > > include /usr/local/lib/diald/standard.filter