From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxim Yakubenko Subject: pptp-linux and diald Date: Wed, 13 Nov 2002 00:36:48 +0300 Sender: linux-diald-owner@vger.kernel.org Message-ID: <3DD17470.60904@lanoffice.ru> References: <20021112221200Z266996-32597+21257@vger.kernel.org> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: linux-diald@vger.kernel.org Good day! I'm trying to use diald for automatic control the pptp connection to my provider. I can establish connection by issueing the command: pon tunnel This starts pppd and brings up interface ppp0 which is a pptp tunnel through eth0. The key pppd option allowed to do this is "pty" But diald insists to have some interface ti talk to (ttyS0) How could I solve this problem? Is this possible (to control pptp interface by diald)? Best regards, Maxim Yakubenko P.S.: diald-0.99.4 Debian GNU/Linux 3.0 Logs from diald: Nov 13 01:08:04 localhost diald[547]: Using fifo /var/run/diald.fifo Nov 13 01:08:04 localhost diald[547]: Proxy device established on interface tap0 Nov 13 01:08:04 localhost diald[547]: start tap0: SIOCSIFMETRIC: Operation not s upported Nov 13 01:08:04 localhost diald[547]: Diald initial setup completed. Nov 13 01:09:12 localhost diald[547]: Trigger: icmp 172.16.101.5/257 10.1.1.1/257 Nov 13 01:09:12 localhost diald[547]: Calling site 172.16.101.1 Nov 13 01:09:12 localhost diald[547]: No devices free to call out on. Nov 13 01:09:12 localhost diald[547]: Connect script failed. Nov 13 01:09:12 localhost diald[547]: Delaying 1 seconds before clear to dial. Nov 13 01:09:13 localhost diald[547]: Calling site 172.16.101.1 Nov 13 01:09:13 localhost diald[547]: No devices free to call out on. Nov 13 01:09:13 localhost diald[547]: Connect script failed. Nov 13 01:09:13 localhost diald[547]: Delaying 1 seconds before clear to dial. Nov 13 01:09:16 localhost diald[547]: Calling site 172.16.101.1 Nov 13 01:09:16 localhost diald[547]: No devices free to call out on. Nov 13 01:09:17 localhost diald[547]: Connect script failed. Nov 13 01:09:17 localhost diald[547]: Delaying 1 seconds before clear to dial. Nov 13 01:09:20 localhost diald[547]: Calling site 172.16.101.1 Nov 13 01:09:20 localhost diald[547]: No devices free to call out on. Nov 13 01:09:21 localhost diald[547]: Connect script failed. ..... and so on. Another logs of the same process: Nov 13 01:08:04 localhost diald[546]: Unable to open options file /etc/diald/dia ld.options: No such file or directory Nov 13 01:08:04 localhost diald[546]: Unknown option 'reroute' Nov 13 01:08:04 localhost diald[547]: Using fifo /var/run/diald.fifo Nov 13 01:08:04 localhost diald[547]: Proxy device established on interface tap0 Nov 13 01:08:04 localhost diald[547]: running '/sbin/ifconfig tap0 172.16.101.5 pointopoint 172.16.101.1 broadcast 0.0.0.0 netmask 255.255.255.255 metric 1 mtu 1500 up' Nov 13 01:08:04 localhost diald[547]: start tap0: SIOCSIFMETRIC: Operation not s upported Nov 13 01:08:04 localhost diald[547]: SIGCHLD[1]: pid 548 system, status 256 Nov 13 01:08:04 localhost diald[547]: start tap0: Establishing routes for tap0 Nov 13 01:08:04 localhost diald[547]: running '/sbin/route add 172.16.101.1 metr ic 1 dev tap0' Nov 13 01:08:04 localhost diald[547]: SIGCHLD[2]: pid 549 system, status 0 Nov 13 01:08:04 localhost diald[547]: running '/sbin/route del 172.16.101.1 metr ic 0 dev tap0' Nov 13 01:08:04 localhost diald[547]: SIGCHLD[3]: pid 550 system, status 0 Nov 13 01:08:04 localhost diald[547]: running '/sbin/route add default metric 1 netmask 0.0.0.0 dev tap0' Nov 13 01:08:04 localhost diald[547]: SIGCHLD[4]: pid 551 system, status 0 Nov 13 01:08:04 localhost diald[547]: Changed snoop device to tap0 Nov 13 01:08:04 localhost diald[547]: Diald initial setup completed. Nov 13 01:08:05 localhost diald[547]: --- tick --- state 0 block 0 state_timeout -1 Nov 13 01:08:36 localhost last message repeated 31 times Nov 13 01:09:12 localhost last message repeated 36 times Nov 13 01:09:12 localhost diald[547]: filter accepted rule 39 proto 134624096 le n 84 packet 172.16.101.5,0 => 10.1.1.1,0 Nov 13 01:09:12 localhost diald[547]: Trigger: icmp 172.16.101.5/257 10.1.1.1/257 Nov 13 01:09:12 localhost diald[547]: Adding connection 0x80628c8 @ 1037138952 - timeout 30 Nov 13 01:09:12 localhost diald[547]: new state CONNECT action 0x8051200 timeout 90 Nov 13 01:09:12 localhost diald[547]: Calling site 172.16.101.1 Nov 13 01:09:12 localhost diald[547]: No devices free to call out on. Nov 13 01:09:12 localhost diald[547]: Connect script failed. Nov 13 01:09:12 localhost diald[547]: new state CLOSE action 0x8051a2c timeout - 1 Nov 13 01:09:12 localhost diald[547]: Delaying 1 seconds before clear to dial. Nov 13 01:09:13 localhost diald[547]: --- tick --- state 9 block 0 state_timeout 0 Nov 13 01:09:13 localhost diald[547]: new state RETRY action 0x8051bd8 timeout - 1 Nov 13 01:09:13 localhost diald[547]: filter accepted rule 39 proto 134624096 le n 84 packet 172.16.101.5,0 => 10.1.1.1,0 Nov 13 01:09:13 localhost diald[547]: Adding connection 0x80628c8 @ 1037138953 - timeout 30 Nov 13 01:09:13 localhost diald[547]: new state DOWN action 0x8051138 timeout -1 Nov 13 01:09:13 localhost diald[547]: new state CONNECT action 0x8051200 timeout 90 Nov 13 01:09:13 localhost diald[547]: Calling site 172.16.101.1 Nov 13 01:09:13 localhost diald[547]: No devices free to call out on. Nov 13 01:09:13 localhost diald[547]: Connect script failed. Nov 13 01:09:13 localhost diald[547]: new state CLOSE action 0x8051a2c timeout - 1 Nov 13 01:09:13 localhost diald[547]: Delaying 1 seconds before clear to dial. Nov 13 01:09:14 localhost diald[547]: --- tick --- state 9 block 0 state_timeout 0 Nov 13 01:09:14 localhost diald[547]: new state RETRY action 0x8051bd8 timeout - 1 Nov 13 01:09:15 localhost diald[547]: --- tick --- state 10 block 0 state_timeou t -1 Nov 13 01:09:15 localhost diald[547]: new state DOWN action 0x8051138 timeout -1 Nov 13 01:09:16 localhost diald[547]: --- tick --- state 0 block 0 state_timeout ................ and so on.