Michael Mustun wrote: > > Hello! > > I ask you if you know an answer of the problem about routing with diald. > * I have a running ppp connection. It works, and set the default route automatically >right. > I can start the ppp connection manually by call "pon sunrise-script"; shutdown by >type in "poff". > * So, next step is, to config dilad > Ok, all seems to work. > I can try a ping to www.sunrise.ch...the diald makes the connection to my provider >with > the "pon sunrise-script"...and I am connected...but the default route is not set. > pppd always says: > pppd[2152]: not replacing existing default route to sl0 [0.0.0.0] > pppd can't replace the existing default route which cames from diald by > starting /etc/init.d/diald. > > When I manually replace the default route (route del -net 0.0.0.0) after starting > diald, it works fine. > But then, when diald disonnect, no default route exist to sl0... > > * Program versions I use (on a Debian system): > ii ppp 2.3.5-2 Point-to-Point Protocol (PPP) daemon. > ii diald 0.16.5-2 dial on demand daemon for PPP and SLIP. > > What's wrong?! > > ppp.log > - - - > Feb 26 18:52:13 flag diald[2134]: Starting diald version 0.16.5 > Feb 26 18:52:13 flag diald[2134]: Proxy device established on interface sl0 > Feb 26 18:52:13 flag diald[2134]: running '/sbin/ifconfig sl0 192.168.0.101 >pointopoint 192.168.0.102 netmask > 255.255.255.0 mtu 1500 up' > Feb 26 18:52:13 flag diald[2134]: SIGCHLD[1]: pid 2135 system, status 0 > Feb 26 18:52:13 flag diald[2134]: Setting pointopoint route for sl0 > Feb 26 18:52:13 flag diald[2134]: running '/sbin/route add 192.168.0.102 metric 1 >dev sl0' > Feb 26 18:52:13 flag diald[2134]: SIGCHLD[2]: pid 2138 system, status 0 > Feb 26 18:52:13 flag diald[2134]: Establishing routes for sl0 > Feb 26 18:52:13 flag diald[2134]: running '/sbin/route add default metric 1 net >mask 0.0.0.0 dev sl0' > Feb 26 18:52:13 flag diald[2134]: SIGCHLD[3]: pid 2139 system, status 0 > Feb 26 18:52:13 flag diald[2134]: proxy arp: scanning 4 interfaces for IP >192.168.0.102 > Feb 26 18:52:13 flag diald[2134]: proxy arp: examining interface lo > Feb 26 18:52:13 flag diald[2134]: proxy arp: examining interface eth0 > Feb 26 18:52:13 flag diald[2134]: proxy arp: interface addr 192.168.0.21 mask >ffffff00 > Feb 26 18:52:13 flag diald[2134]: found interface eth0 for proxy arp > Feb 26 18:52:13 flag diald[2134]: proxy arp: found hwaddr 00:00:b4:34:25:34:00:00 > Feb 26 18:52:13 flag diald[2134]: Changed snoop device to sl0 > Feb 26 18:52:13 flag diald[2134]: Diald initial setup completed. > Feb 26 18:54:01 flag diald[2134]: filter accepted rule 24 proto 17 len 60 packet >192.168.0.101,1024 => 194.158.230.53,53 > Feb 26 18:54:01 flag diald[2134]: new state CONNECT action 0x804f750 timeout 90 > Feb 26 18:54:02 flag diald[2134]: Running connect (pid = 2151). > Feb 26 18:54:02 flag pppd[2152]: pppd 2.3.5 started by root, uid 0 > Feb 26 18:54:02 flag chat[2153]: abort on (BUSY) > Feb 26 18:54:02 flag chat[2153]: abort on (NO CARRIER) > Feb 26 18:54:02 flag chat[2153]: abort on (VOICE) > Feb 26 18:54:02 flag chat[2153]: abort on (NO DIALTONE) > Feb 26 18:54:02 flag chat[2153]: abort on (NO ANSWER) > Feb 26 18:54:02 flag chat[2153]: send (ATZ^M) > Feb 26 18:54:02 flag chat[2153]: expect (OK) > Feb 26 18:54:02 flag chat[2153]: ATZ^M^M > Feb 26 18:54:02 flag chat[2153]: OK > Feb 26 18:54:02 flag chat[2153]: -- got it > Feb 26 18:54:02 flag chat[2153]: send (ATDT015553055^M) > Feb 26 18:54:02 flag chat[2153]: expect (CONNECT) > Feb 26 18:54:02 flag chat[2153]: ^M > Feb 26 18:54:13 flag chat[2153]: ATDT015553055^M^M > Feb 26 18:54:13 flag chat[2153]: CONNECT > Feb 26 18:54:13 flag chat[2153]: -- got it > Feb 26 18:54:13 flag chat[2153]: send (^M) > Feb 26 18:54:13 flag chat[2153]: expect (name:) > Feb 26 18:54:13 flag chat[2153]: 14400/ARQ/V32/LAPM/V42BIS^M > Feb 26 18:54:15 flag chat[2153]: Welcome to spectraWEB^M > Feb 26 18:54:15 flag chat[2153]: ^M > Feb 26 18:54:15 flag chat[2153]: You are on node POP-ZH-2^M > Feb 26 18:54:15 flag chat[2153]: ^M > Feb 26 18:54:15 flag chat[2153]: Username: > Feb 26 18:54:15 flag chat[2153]: -- got it > Feb 26 18:54:15 flag chat[2153]: send (??????) > Feb 26 18:54:16 flag chat[2153]: expect (word:) > Feb 26 18:54:17 flag chat[2153]: mustunm^M > Feb 26 18:54:17 flag chat[2153]: Password: > Feb 26 18:54:17 flag chat[2153]: -- got it > Feb 26 18:54:17 flag chat[2153]: send (??????) > Feb 26 18:54:17 flag chat[2153]: send (\d) > Feb 26 18:54:18 flag pppd[2152]: Serial connection established. > Feb 26 18:54:19 flag pppd[2152]: Using interface ppp0 > Feb 26 18:54:19 flag pppd[2152]: Connect: ppp0 <--> /dev/ttyS0 > Feb 26 18:54:19 flag pppd[2152]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic > . . . > Feb 26 18:54:21 flag pppd[2152]: not replacing existing default route to sl0 >[0.0.0.0] // <--- (!) > Feb 26 18:54:21 flag pppd[2152]: Cannot determine ethernet address for proxy ARP > Feb 26 18:54:21 flag pppd[2152]: local IP address 194.230.4.52 > Feb 26 18:54:21 flag pppd[2152]: remote IP address 194.230.2.140 > - - - > > DIALD > ----- > > /etc/diald/dial.options > - - - > device /dev/ttyS0 > accounting-log /var/log/diald.log > fifo /var/run/diald.fifo > debug 31 > mode ppp > local 192.168.0.101 > remote 192.168.0.102 > netmask 255.255.255.0 > dynamic > two-way > reroute > defaultroute > connect "/usr/sbin/chat -f /etc/chatscripts/sunrise-script" > disconnect "/usr/bin/poff" > lock > modem > crtscts > connect-timeout 90 > dial-fail-limit 2 > died-retry-count 0 > include /etc/diald/standard.filter > - - - > > I maked also tests with ip-up and ip-down options...but with no effect... > ip-up /etc/diald/ip-up > #ip-down /etc/diald/ip-down > > Can or should I put > /sbin/route del -net 0.0.0.0 > /sbin/route add default gw $remoteip dev $iface > in ip-up? I think no! > > Also I put temporarly added a > "/sbin/route del -net 0.0.0.0;" > before the chat command in > /etc/ppp/peers/sunrise-script > connect "/sbin/route del -net 0.0.0.0; /usr/sbin/chat -v -f >/etc/chatscripts/sunrise-script" > > And it worked! (For login)...but the default route to sl0 is not there if the >connection > goes down... > And I think it should be able to do this automatically?! > > PPP > --- > /etc/ppp/peers/sunrise-script > - - - > # This file was generated by pppconfig. You can edit the following lines > # but please do not delete lines or the change the comments or you will > # confuse pppconfig. > noauth #pppconfig_noauth > # connect "/sbin/route del -net 0.0.0.0; /usr/sbin/chat -v -f >/etc/chatscripts/sunrise-script" #pppconfig_connect > connect "/usr/sbin/chat -v -f /etc/chatscripts/sunrise-script" #pppconfig_connect > debug #pppconfig_debug > /dev/ttyS0 #pppconfig_dev > 38400 #pppconfig_speed > defaultroute #pppconfig_route > noipdefault #pppconfig_ipdefault > user mustunm #pppconfig_user > # End of pppconfig controlled lines. You can add lines below here without > # confusing pppconfig. > - - - > > I also tried out with defaultroute commented out in "sunrise-script"...then ppp > does not set the default route...but it still does not work (does not > set the default route automatically). > > Thanks in advance. > > -- > __________________________________ > Michael Mustun <[EMAIL PROTECTED]> > http://www.spectraweb.ch/~mustunm It still does _NOT_ work.... And now, I get a Mar 6 14:08:42 flag pppd[1378]: peer refused to authenticate . I downloaded the src and compile...but it still does _NOT_ work!!! -- __________________________________ Michael Mustun <[EMAIL PROTECTED]> http://www.spectraweb.ch/~mustunm
Hello! I ask you if you know an answer of the problem about routing with diald. * I have a running ppp connection. It works, and set the default route automatically right. I can start the ppp connection manually by call "pon sunrise-script"; shutdown by type in "poff". * So, next step is, to config dilad Ok, all seems to work. I can try a ping to www.sunrise.ch...the diald makes the connection to my provider with the "pon sunrise-script"...and I am connected...but the default route is not set. pppd always says: pppd[2152]: not replacing existing default route to sl0 [0.0.0.0] pppd can't replace the existing default route which cames from diald by starting /etc/init.d/diald. When I manually replace the default route (route del -net 0.0.0.0) after starting diald, it works fine. But then, when diald disonnect, no default route exist to sl0... * Program versions I use (on a Debian system): ii ppp 2.3.5-2 Point-to-Point Protocol (PPP) daemon. ii diald 0.16.5-2 dial on demand daemon for PPP and SLIP. What's wrong?! ppp.log - - - Feb 26 18:52:13 flag diald[2134]: Starting diald version 0.16.5 Feb 26 18:52:13 flag diald[2134]: Proxy device established on interface sl0 Feb 26 18:52:13 flag diald[2134]: running '/sbin/ifconfig sl0 192.168.0.101 pointopoint 192.168.0.102 netmask 255.255.255.0 mtu 1500 up' Feb 26 18:52:13 flag diald[2134]: SIGCHLD[1]: pid 2135 system, status 0 Feb 26 18:52:13 flag diald[2134]: Setting pointopoint route for sl0 Feb 26 18:52:13 flag diald[2134]: running '/sbin/route add 192.168.0.102 metric 1 dev sl0' Feb 26 18:52:13 flag diald[2134]: SIGCHLD[2]: pid 2138 system, status 0 Feb 26 18:52:13 flag diald[2134]: Establishing routes for sl0 Feb 26 18:52:13 flag diald[2134]: running '/sbin/route add default metric 1 net mask 0.0.0.0 dev sl0' Feb 26 18:52:13 flag diald[2134]: SIGCHLD[3]: pid 2139 system, status 0 Feb 26 18:52:13 flag diald[2134]: proxy arp: scanning 4 interfaces for IP 192.168.0.102 Feb 26 18:52:13 flag diald[2134]: proxy arp: examining interface lo Feb 26 18:52:13 flag diald[2134]: proxy arp: examining interface eth0 Feb 26 18:52:13 flag diald[2134]: proxy arp: interface addr 192.168.0.21 mask ffffff00 Feb 26 18:52:13 flag diald[2134]: found interface eth0 for proxy arp Feb 26 18:52:13 flag diald[2134]: proxy arp: found hwaddr 00:00:b4:34:25:34:00:00 Feb 26 18:52:13 flag diald[2134]: Changed snoop device to sl0 Feb 26 18:52:13 flag diald[2134]: Diald initial setup completed. Feb 26 18:54:01 flag diald[2134]: filter accepted rule 24 proto 17 len 60 packet 192.168.0.101,1024 => 194.158.230.53,53 Feb 26 18:54:01 flag diald[2134]: new state CONNECT action 0x804f750 timeout 90 Feb 26 18:54:02 flag diald[2134]: Running connect (pid = 2151). Feb 26 18:54:02 flag pppd[2152]: pppd 2.3.5 started by root, uid 0 Feb 26 18:54:02 flag chat[2153]: abort on (BUSY) Feb 26 18:54:02 flag chat[2153]: abort on (NO CARRIER) Feb 26 18:54:02 flag chat[2153]: abort on (VOICE) Feb 26 18:54:02 flag chat[2153]: abort on (NO DIALTONE) Feb 26 18:54:02 flag chat[2153]: abort on (NO ANSWER) Feb 26 18:54:02 flag chat[2153]: send (ATZ^M) Feb 26 18:54:02 flag chat[2153]: expect (OK) Feb 26 18:54:02 flag chat[2153]: ATZ^M^M Feb 26 18:54:02 flag chat[2153]: OK Feb 26 18:54:02 flag chat[2153]: -- got it Feb 26 18:54:02 flag chat[2153]: send (ATDT015553055^M) Feb 26 18:54:02 flag chat[2153]: expect (CONNECT) Feb 26 18:54:02 flag chat[2153]: ^M Feb 26 18:54:13 flag chat[2153]: ATDT015553055^M^M Feb 26 18:54:13 flag chat[2153]: CONNECT Feb 26 18:54:13 flag chat[2153]: -- got it Feb 26 18:54:13 flag chat[2153]: send (^M) Feb 26 18:54:13 flag chat[2153]: expect (name:) Feb 26 18:54:13 flag chat[2153]: 14400/ARQ/V32/LAPM/V42BIS^M Feb 26 18:54:15 flag chat[2153]: Welcome to spectraWEB^M Feb 26 18:54:15 flag chat[2153]: ^M Feb 26 18:54:15 flag chat[2153]: You are on node POP-ZH-2^M Feb 26 18:54:15 flag chat[2153]: ^M Feb 26 18:54:15 flag chat[2153]: Username: Feb 26 18:54:15 flag chat[2153]: -- got it Feb 26 18:54:15 flag chat[2153]: send (??????) Feb 26 18:54:16 flag chat[2153]: expect (word:) Feb 26 18:54:17 flag chat[2153]: mustunm^M Feb 26 18:54:17 flag chat[2153]: Password: Feb 26 18:54:17 flag chat[2153]: -- got it Feb 26 18:54:17 flag chat[2153]: send (??????) Feb 26 18:54:17 flag chat[2153]: send (\d) Feb 26 18:54:18 flag pppd[2152]: Serial connection established. Feb 26 18:54:19 flag pppd[2152]: Using interface ppp0 Feb 26 18:54:19 flag pppd[2152]: Connect: ppp0 <--> /dev/ttyS0 Feb 26 18:54:19 flag pppd[2152]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic . . . Feb 26 18:54:21 flag pppd[2152]: not replacing existing default route to sl0 [0.0.0.0] // <--- (!) Feb 26 18:54:21 flag pppd[2152]: Cannot determine ethernet address for proxy ARP Feb 26 18:54:21 flag pppd[2152]: local IP address 194.230.4.52 Feb 26 18:54:21 flag pppd[2152]: remote IP address 194.230.2.140 - - - DIALD ----- /etc/diald/dial.options - - - device /dev/ttyS0 accounting-log /var/log/diald.log fifo /var/run/diald.fifo debug 31 mode ppp local 192.168.0.101 remote 192.168.0.102 netmask 255.255.255.0 dynamic two-way reroute defaultroute connect "/usr/sbin/chat -f /etc/chatscripts/sunrise-script" disconnect "/usr/bin/poff" lock modem crtscts connect-timeout 90 dial-fail-limit 2 died-retry-count 0 include /etc/diald/standard.filter - - - I maked also tests with ip-up and ip-down options...but with no effect... ip-up /etc/diald/ip-up #ip-down /etc/diald/ip-down Can or should I put /sbin/route del -net 0.0.0.0 /sbin/route add default gw $remoteip dev $iface in ip-up? I think no! Also I put temporarly added a "/sbin/route del -net 0.0.0.0;" before the chat command in /etc/ppp/peers/sunrise-script connect "/sbin/route del -net 0.0.0.0; /usr/sbin/chat -v -f /etc/chatscripts/sunrise-script" And it worked! (For login)...but the default route to sl0 is not there if the connection goes down... And I think it should be able to do this automatically?! PPP --- /etc/ppp/peers/sunrise-script - - - # This file was generated by pppconfig. You can edit the following lines # but please do not delete lines or the change the comments or you will # confuse pppconfig. noauth #pppconfig_noauth # connect "/sbin/route del -net 0.0.0.0; /usr/sbin/chat -v -f /etc/chatscripts/sunrise-script" #pppconfig_connect connect "/usr/sbin/chat -v -f /etc/chatscripts/sunrise-script" #pppconfig_connect debug #pppconfig_debug /dev/ttyS0 #pppconfig_dev 38400 #pppconfig_speed defaultroute #pppconfig_route noipdefault #pppconfig_ipdefault user mustunm #pppconfig_user # End of pppconfig controlled lines. You can add lines below here without # confusing pppconfig. - - - I also tried out with defaultroute commented out in "sunrise-script"...then ppp does not set the default route...but it still does not work (does not set the default route automatically). Thanks in advance. -- __________________________________ Michael Mustun <[EMAIL PROTECTED]> http://www.spectraweb.ch/~mustunm
