I've now come a bit further with my problem in getting diald 0.99.4 to work
on a RH 6.2 system (kernel 2.2.14) and pppd 2.3.11 (in part thanks to 
Mark Johson).

The problem seems to be that when I start up diald with a defaultroute
(which is what I need in order to get the autodial to my ISP to work),
a line is added to the route table like this:

0.0.0.0   0.0.0.0  0.0.0.0   U   0 0  0 tap0

When pppd gets the real connection up, it calls an internal routine to check
whether the assigned IP address is allowed (auth_ip_addr, from pppd/ipcp.c
in line 1408). This routine, on linux, runs through all routes, and if
it finds a match with the newly assigned IP address rejects the connection
with the error

   "Peer is not authorized to use remote address 195.47.148.121"

It does, unfortunately, recognise the default gw set up by diald as such a
match. In fact, it does so with any manually set up gateway in the net --
so the problem seems to be with pppd rather than with diald!

I've "fixed" it be specifically rejecting a match on 0.0.0.0 in the part
of pppd that checks this (have_route_to, pppd/sys-linux.c line 1269).

Anyone else have seen this problem -- or have a comment to my findings
in general?


BTW -- two more issues: I get a double line in my routing table; apparently
both pppd and diald inserts a line for the ppp0 connection... and I keep 
getting errors about SIOCSIFMETRIC not supported on my tap0 and ppp0 sockets. 
Any hints to this also greatly appreciated.


-- Per.


[ part of original mail enclosed ]
> If I call up pppd with the same command line as diald uses, just "by
> hand", everything seems fine as long as diald is not running. If, however,
> I start up diald, and then either let diald initiate the call to pppd --
> or simply if I just call pppd again "by hand" -- it doesn't work.
> 
> The message I get from pppd is as follows:
> 
>    "Peer is not authorized to use remote address 195.47.148.121"
> 
> (or whatever the remote address is).


-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]

Reply via email to