Skip to contentSkip to conversation

How calls diald the pppd?

DISCUSSION Juergen Kosel 3 participants 8 messages Aug 29, 2002 – Sep 16, 2002

lore
Share & tools
lore
#0 lore raw

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 <asyncmap
0x0> <magic 0xf48c9e9f> <pcomp> <accomp>]
Aug 28 21:23:13 ba228 pppd[4509]: rcvd [LCP ConfReq id=0x75 <asyncmap
0xa0000> <auth pap> <magic 0xc3d2aaaf> <pcomp> <accomp>]
Aug 28 21:23:13 ba228 pppd[4509]: sent [LCP ConfAck id=0x75 <asyncmap
0xa0000> <auth pap> <magic 0xc3d2aaaf> <pcomp> <accomp>]
Aug 28 21:23:13 ba228 pppd[4509]: rcvd [LCP ConfAck id=0x1 <asyncmap
0x0> <magic 0xf48c9e9f> <pcomp> <accomp>]
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 <addr
0.0.0.0> <compress VJ 0f 01> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
Aug 28 21:23:14 ba228 pppd[4509]: sent [CCP ConfReq id=0x1 <deflate 9>
<deflate(old#) 9> <bsd v1 9>]
Aug 28 21:23:14 ba228 pppd[4509]: rcvd [IPCP ConfReq id=0x9a <addr
62.104.216.42>]
Aug 28 21:23:14 ba228 pppd[4509]: sent [IPCP ConfAck id=0x9a <addr
62.104.216.42>]
Aug 28 21:23:14 ba228 pppd[4509]: rcvd [IPCP ConfRej id=0x1 <compress VJ
0f 01>]
Aug 28 21:23:14 ba228 pppd[4509]: sent [IPCP ConfReq id=0x2 <addr
0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 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 <addr
213.7.161.139> <ms-dns1 62.104.191.241> <ms-dns3 62.104.196.134>]
Aug 28 21:23:14 ba228 pppd[4509]: sent [IPCP ConfReq id=0x3 <addr
213.7.161.139> <ms-dns1 62.104.191.241> <ms-dns3 62.104.196.134>]
Aug 28 21:23:14 ba228 pppd[4509]: rcvd [IPCP ConfAck id=0x3 <addr
213.7.161.139> <ms-dns1 62.104.191.241> <ms-dns3 62.104.196.134>]
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

Signature · 3 lines
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
dynamic
defaultroute
proxyarp
ip-up /etc/ppp/ip-up
ip-down /etc/ppp/ip-down
two-way

include /usr/local/lib/diald/standard.filter

#1 lore raw
Quoted 62 lines · Juergen Kosel

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 <asyncmap
0x0> <magic 0xf48c9e9f> <pcomp> <accomp>]
Aug 28 21:23:13 ba228 pppd[4509]: rcvd [LCP ConfReq id=0x75 <asyncmap
0xa0000> <auth pap> <magic 0xc3d2aaaf> <pcomp> <accomp>]
Aug 28 21:23:13 ba228 pppd[4509]: sent [LCP ConfAck id=0x75 <asyncmap
0xa0000> <auth pap> <magic 0xc3d2aaaf> <pcomp> <accomp>]
Aug 28 21:23:13 ba228 pppd[4509]: rcvd [LCP ConfAck id=0x1 <asyncmap
0x0> <magic 0xf48c9e9f> <pcomp> <accomp>]
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 <addr
0.0.0.0> <compress VJ 0f 01> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
Aug 28 21:23:14 ba228 pppd[4509]: sent [CCP ConfReq id=0x1 <deflate 9>
<deflate(old#) 9> <bsd v1 9>]
Aug 28 21:23:14 ba228 pppd[4509]: rcvd [IPCP ConfReq id=0x9a <addr
62.104.216.42>]
Aug 28 21:23:14 ba228 pppd[4509]: sent [IPCP ConfAck id=0x9a <addr
62.104.216.42>]
Aug 28 21:23:14 ba228 pppd[4509]: rcvd [IPCP ConfRej id=0x1 <compress VJ
0f 01>]
Aug 28 21:23:14 ba228 pppd[4509]: sent [IPCP ConfReq id=0x2 <addr
0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 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 <addr
213.7.161.139> <ms-dns1 62.104.191.241> <ms-dns3 62.104.196.134>]
Aug 28 21:23:14 ba228 pppd[4509]: sent [IPCP ConfReq id=0x3 <addr
213.7.161.139> <ms-dns1 62.104.191.241> <ms-dns3 62.104.196.134>]
Aug 28 21:23:14 ba228 pppd[4509]: rcvd [IPCP ConfAck id=0x3 <addr
213.7.161.139> <ms-dns1 62.104.191.241> <ms-dns3 62.104.196.134>]
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.
Quoted 24 lines

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

Signature · 15 lines
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

Quoted 8 lines

dynamic
defaultroute
proxyarp
ip-up /etc/ppp/ip-up
ip-down /etc/ppp/ip-down
two-way

include /usr/local/lib/diald/standard.filter

#2 lore raw
Quoted 14 lines · Rod
Quoted 13 lines

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

Quoted 6 lines

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

My machine is standalone (unless conecting to ISP) So the IP adresses are uniqe!

And in pap secrets the remote and local adress field has an '*' as entry (match any) for the choosen name.
So I have no idea why the ppp options ipcp-accept-local ipcp-accept-remote have no effect.
And I allready tried 0.0.0.0:0.0.0.0 in the ppp options.

Juergen

#3 lore raw
Quoted 15 lines · Juergen Kosel
Quoted 14 lines · Rod
Quoted 13 lines

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

Quoted 7 lines
Quoted 6 lines

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

Hallo Juergen,

Quoted 2 lines

My machine is standalone (unless conecting to ISP) So the IP adresses are uniqe!

OK but in your diald.conf you have commented out the "remote" command. Perhaps you need to look at "man diald" and the references to "dynamic", "remote", and "local". "remote" and "local" should be unique and NOT the address of your machine. Also if you look at the info on the use of "dynamic" it says that you must specify both a "local" and "remote" address.

Quoted 5 lines

And in pap secrets the remote and local adress field has an '*' as entry (match any) for the choosen name.
So I have no idea why the ppp options ipcp-accept-local ipcp-accept-remote have no effect.

I don't use ipcp-accept-local and ipcp-accept-remote so I'm not sure why you are using them. I don't use pppd-options in my diald.conf at all. I specify my pppd options in /etc/ppp/options.
Is there a reason why you are specifying pppd-options? What does your /etc/ppp/options file look like?

Have you been able to get pppd up and running without diald?

What I did was debug pppd first, get that working and then use the same connection script for diald. I have a test-script as follows.

/usr/sbin/pppd /dev/modem 38400 modem crtscts noipdefault \
defaultroute connect "/usr/sbin/chat -v -f /etc/ppp/chat-script"

Once I was able to get pppd working manually, it was a simple matter to get diald to launch it.

Hope that is helpful.

Cheers,
Rod

Quoted 8 lines

And I allready tried 0.0.0.0:0.0.0.0 in the ppp options.

Juergen
-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#4 lore raw
Quoted 9 lines · Rod

On Thu, Aug 29, 2002 at 10:48:51PM +0200, Juergen Kosel wrote:

Hallo Juergen,

Quoted 2 lines

My machine is standalone (unless conecting to ISP) So the IP adresses are uniqe!

OK but in your diald.conf you have commented out the "remote" command.

This was a temporary attemp.
Now I have inserted "remote 192.168.20.1" and "local 192.168.20.100"

Quoted 5 lines

Perhaps you need to look at "man diald" and the references to "dynamic", "remote", and "local". "remote" and "local" should be unique and NOT the address of your machine. Also if you look at the info on the use of "dynamic" it says that you must specify both a "local" and "remote" address.

I specified both -> it doesn't work. Then I had omitted one/both -> it doesn't work...

Quoted 9 lines
Quoted 6 lines

And in pap secrets the remote and local adress field has an '*' as entry (match any) for the choosen name.
So I have no idea why the ppp options ipcp-accept-local ipcp-accept-remote have no effect.

I don't use ipcp-accept-local and ipcp-accept-remote so I'm not sure why you are using them.

Because the pppd manual says with this option all remote/local adresses should be accepted.

Quoted 3 lines

I don't use pppd-options in my diald.conf at all. I specify my pppd options in /etc/ppp/options. Is there a reason why you are specifying pppd-options?

I still want to use different ppp options for dialout an dialin (with mgetty)

Quoted 1 line

What does your /etc/ppp/options file look like?

lock
crtscts
modem
defaultroute
asyncmap 0
debug
deflate 9,9
bsdcomp 9,9
show-password

Quoted 2 lines

Have you been able to get pppd up and running without diald?

Yes with the above options.

Quoted 6 lines

What I did was debug pppd first, get that working and then use the same connection script for diald. I have a test-script as follows.

/usr/sbin/pppd /dev/modem 38400 modem crtscts noipdefault \
defaultroute connect "/usr/sbin/chat -v -f /etc/ppp/chat-script"

I don't have "noipdefault" in my option. But if I understand the manual right, this is for the local adress.
I don't recommend 38400 as serial line speed. Use 115200 instead. Because if your modem establishes a V.34 connect with 33600 bit/second and 42bis compression, the serial line becomes the bottleneck otherwise! (Not to speek of a V.90 connect with 48000 bit/s)

Juergen

#5 lore raw
Quoted 56 lines · Juergen Kosel
Quoted 9 lines · Rod

On Thu, Aug 29, 2002 at 10:48:51PM +0200, Juergen Kosel wrote:

Hallo Juergen,

Quoted 2 lines

My machine is standalone (unless conecting to ISP) So the IP adresses are uniqe!

OK but in your diald.conf you have commented out the "remote" command.

This was a temporary attemp.
Now I have inserted "remote 192.168.20.1" and "local 192.168.20.100"

Quoted 5 lines

Perhaps you need to look at "man diald" and the references to "dynamic", "remote", and "local". "remote" and "local" should be unique and NOT the address of your machine. Also if you look at the info on the use of "dynamic" it says that you must specify both a "local" and "remote" address.

I specified both -> it doesn't work. Then I had omitted one/both -> it doesn't work...

Quoted 9 lines
Quoted 6 lines

And in pap secrets the remote and local adress field has an '*' as entry (match any) for the choosen name.
So I have no idea why the ppp options ipcp-accept-local ipcp-accept-remote have no effect.

I don't use ipcp-accept-local and ipcp-accept-remote so I'm not sure why you are using them.

Because the pppd manual says with this option all remote/local adresses should be accepted.

Quoted 3 lines

I don't use pppd-options in my diald.conf at all. I specify my pppd options in /etc/ppp/options. Is there a reason why you are specifying pppd-options?

I still want to use different ppp options for dialout an dialin (with mgetty)

Quoted 1 line

What does your /etc/ppp/options file look like?

lock
crtscts
modem
defaultroute
asyncmap 0
debug
deflate 9,9
bsdcomp 9,9
show-password

Quoted 1 line
Quoted 3 lines
Quoted 1 line

Have you been able to get pppd up and running without diald?

Yes with the above options.

What does the script for starting pppd running look like?

Quoted 23 lines
Quoted 7 lines

What I did was debug pppd first, get that working and then use the same connection script for diald. I have a test-script as follows.

/usr/sbin/pppd /dev/modem 38400 modem crtscts noipdefault \
defaultroute connect "/usr/sbin/chat -v -f /etc/ppp/chat-script"

I don't have "noipdefault" in my option. But if I understand the manual right, this is for the local adress.
I don't recommend 38400 as serial line speed. Use 115200 instead. Because if your modem establishes a V.34 connect with 33600 bit/second and 42bis compression, the serial line becomes the bottleneck otherwise! (Not to speek of a V.90 connect with 48000 bit/s)

Juergen
-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#6 lore raw
In reply to Juergen Kosel
Quoted 13 lines · Juergen Kosel
Quoted 2 lines

What does your /etc/ppp/options file look like?

lock
crtscts
modem
defaultroute
asyncmap 0
debug
deflate 9,9
bsdcomp 9,9
show-password

I added the option "noauth"
and now it works!

Juergen

#7 lore raw
Quoted 15 lines · Juergen Kosel
Quoted 13 lines · Juergen Kosel
Quoted 2 lines

What does your /etc/ppp/options file look like?

lock
crtscts
modem
defaultroute
asyncmap 0
debug
deflate 9,9
bsdcomp 9,9
show-password

Quoted 2 lines

I added the option "noauth"
and now it works!

Ausgezeichnet!! :)

Prost!
Rod