(fwd) problemi con diald
Micky Del Favero
micky@mesina.net
Mar 30 Dic 2003 16:17:03 CET
Qualcuno sa aiutarlo? (legge la ML, a quanto pare).
------- start of forwarded message -------
From: DeßßØ
Date: Wed, 24 Dec 2003 14:31:04 +0100
Subject: problemi con diald
Salve mi chiamo Maurizio siccome l' email =E8 lunga la invio a lei per =
evitare di intasare la mailing list. (decida lei cosa pubblicare).
Sto cercando di configurare diald-1.0-1 su Red Hat 7.3 per fare una =
connessione on demand a Libero Infostrada.
L'installazione del pacchetto rpm =E8 andata a buon fine.
Leggendo il "man" e cercando su internet ho trovato e sperimentato =
qualcosa ma con scarsi risultati.
Ecco la configurazione del mio pc:
ip 192.168.0.1
subnetmask 255.255.255.0
named, dhcpd, httpd, webmin, smb, swat, wu-ftpd attivi configurati e =
funzionanti.
Altri servizi attivi: anacron, atd, autofs, crond, gpm, keytable, kudzu, =
lpd, netfs, network, portmap, random, sgi_fam, syslog, xinetd.
Iptables cos=EC configurato:
iptables -A POSTROUTING -t nat -o ppp0 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -A INPUT -p tcp --destination-port telnet -i ppp0 -j DROP
iptables -A INPUT -p tcp --destination-port ftp -i ppp0 -j DROP
Se mi collego manualmente a internet dai clients riesco a navigare senza =
problemi.
riporto di seguito i passaggi fatti:
creato il file fifo con:
cd /etc
mkdir diald
chmod 777 diald
mknod /etc/diald/diald.ctl p
chmod 664 /etc/diald/diald.ctl
chown root.users /etc/diald/diald.ctl
creato lo script /etc/ppp/connect
#!/bin/sh
/usr/sbin/chat "" ATDT7027020000 CONNECT "" ogin:miologin@libero.it =
word:miapassword
cambiato i permessi per /etc/ppp/connect con
chown root.root /etc/ppp/connect
chmod 700 /etc/ppp/connect
creato il file di configurazione /etc/diald.conf:
connect /etc/ppp/connect
disconnect /bin/true
device /dev/ttyS1
speed 115200
dynamic
mode ppp
modem
crtscts
defaultroute
lock
mtu 576
local 192.168.0.1
remote 151.6.140.42 (Gateway di infostrada)
netmask 255.255.255.0
fifo /etc/diald/diald.ctl
accounting-log /var/log/diald
path-route /sbin/route
path-ifconfig /sbin/ifconfig
path-pppd /usr/sbin/pppd
path-bootpc /sbin/bootpc
accept any 600 any
creati i 16 (ether)tap di /dev e aggiunto a /etc/modules.conf:
alias tap0 ethertap
options tap0 -o tap0 unit=3D0
alias tap1 ethertap
options tap1 -o tap1 unit=3D1
alias tap2 ethertap
options tap2 -o tap2 unit=3D2
alias tap3 ethertap
options tap3 -o tap3 unit=3D3
alias tap4 ethertap
options tap4 -o tap4 unit=3D4
alias tap5 ethertap
options tap5 -o tap5 unit=3D5
alias tap6 ethertap
options tap6 -o tap6 unit=3D6
alias tap7 ethertap
options tap7 -o tap7 unit=3D7
alias tap8 ethertap
options tap8 -o tap8 unit=3D8
alias tap9 ethertap
options tap9 -o tap9 unit=3D9
alias tap10 ethertap
options tap10 -o tap10 unit=3D10
alias tap11 ethertap
options tap11 -o tap11 unit=3D11
alias tap12 ethertap
options tap12 -o tap12 unit=3D12
alias tap13 ethertap
options tap13 -o tap13 unit=3D13
alias tap14 ethertap
options tap14 -o tap14 unit=3D14
alias tap15 ethertap
options tap15 -o tap15 unit=3D15
questo =E8 /var/log/messages:
Dec 24 12:05:34 server syslogd 1.4.1: restart.
Dec 24 12:05:35 server kernel: Device not ready. Make sure there is a =
disc in the drive.
Dec 24 12:06:08 server last message repeated 16 times
Dec 24 12:07:09 server last message repeated 31 times
dic 24 12:07:10 server su(pam_unix)[1879]: session opened for user news =
by (uid=3D0)
dic 24 12:07:11 server su(pam_unix)[1879]: session closed for user news
Dec 24 12:07:12 server kernel: Device not ready. Make sure there is a =
disc in the drive.
Dec 24 12:07:43 server last message repeated 16 times
Dec 24 12:08:44 server last message repeated 30 times
Dec 24 12:09:46 server last message repeated 31 times
Dec 24 12:10:48 server last message repeated 31 times
Dec 24 12:11:49 server last message repeated 30 times
Dec 24 12:12:51 server last message repeated 31 times
Dec 24 12:13:53 server last message repeated 31 times
Dec 24 12:14:54 server last message repeated 30 times
Dec 24 12:15:56 server last message repeated 31 times
Dec 24 12:16:58 server last message repeated 31 times
Dec 24 12:17:59 server last message repeated 30 times
Dec 24 12:19:01 server last message repeated 31 times
Dec 24 12:20:03 server last message repeated 31 times
Dec 24 12:21:05 server last message repeated 31 times
Dec 24 12:22:06 server last message repeated 30 times
Dec 24 12:23:08 server last message repeated 31 times
Dec 24 12:24:10 server last message repeated 31 times
Dec 24 12:25:11 server last message repeated 30 times
Dec 24 12:26:13 server last message repeated 31 times
Dec 24 12:27:15 server last message repeated 31 times
Dec 24 12:28:16 server last message repeated 30 times
Dec 24 12:29:18 server last message repeated 31 times
Dec 24 12:30:20 server last message repeated 31 times
Dec 24 12:31:21 server last message repeated 30 times
Dec 24 12:32:23 server last message repeated 31 times
Dec 24 12:33:25 server last message repeated 31 times
Dec 24 12:34:27 server last message repeated 31 times
Dec 24 12:35:28 server last message repeated 30 times
Dec 24 12:36:30 server last message repeated 31 times
Dec 24 12:37:32 server last message repeated 31 times
Dec 24 12:38:33 server last message repeated 30 times
Dec 24 12:39:35 server last message repeated 31 times
Dec 24 12:40:37 server last message repeated 31 times
Dec 24 12:41:38 server last message repeated 30 times
Dec 24 12:42:40 server last message repeated 31 times
Dec 24 12:43:42 server last message repeated 31 times
Dec 24 12:44:44 server last message repeated 31 times
Dec 24 12:45:45 server last message repeated 30 times
Dec 24 12:46:47 server last message repeated 31 times
Dec 24 12:47:49 server last message repeated 31 times
Dec 24 12:48:50 server last message repeated 30 times
Dec 24 12:49:52 server last message repeated 31 times
Dec 24 12:50:53 server last message repeated 31 times
Dec 24 12:51:55 server last message repeated 31 times
Dec 24 12:52:57 server last message repeated 31 times
Dec 24 12:53:59 server last message repeated 31 times
Dec 24 12:55:00 server last message repeated 30 times
Dec 24 12:56:02 server last message repeated 32 times
Dec 24 12:57:04 server last message repeated 31 times
Dec 24 12:58:05 server last message repeated 30 times
Dec 24 12:59:07 server last message repeated 31 times
Dec 24 13:00:09 server last message repeated 31 times
Dec 24 13:00:55 server last message repeated 23 times
Dec 24 13:00:57 server kernel: (scsi0:A:4:0): Locking max tag count at =
64
Dec 24 13:00:58 server kernel: Device not ready. Make sure there is a =
disc in the drive.
Dec 24 13:01:30 server last message repeated 16 times
Dec 24 13:02:32 server last message repeated 31 times
Dec 24 13:03:34 server last message repeated 31 times
Dec 24 13:04:35 server last message repeated 30 times
Dec 24 13:04:59 server last message repeated 12 times
Dec 24 13:04:59 server diald[15737]: Device tap0 is locked by pid 1441
Dec 24 13:04:59 server diald[15737]: start tap1: SIOCSIFMETRIC: =
Operation not supported=20
Dec 24 13:04:59 server diald[15737]: start tap1: RTNETLINK answers: No =
such process=20
Dec 24 13:04:59 server /etc/hotplug/net.agent: invoke ifup tap1
Dec 24 13:05:01 server kernel: Device not ready. Make sure there is a =
disc in the drive.
Dec 24 13:05:33 server last message repeated 16 times
Dec 24 13:06:35 server last message repeated 31 times
Dec 24 13:07:37 server last message repeated 31 times
Dec 24 13:08:04 server last message repeated 13 times
Dec 24 13:08:04 server diald[1441]: FIFO: termination request
Dec 24 13:08:04 server diald[1441]: Diald is dieing with code 0
Dec 24 13:08:04 server diald[1441]: stop tap0: RTNETLINK answers: No =
such process=20
Dec 24 13:08:04 server diald[1441]: stop tap0: RTNETLINK answers: No =
such process=20
Dec 24 13:08:06 server kernel: Device not ready. Make sure there is a =
disc in the drive.
Dec 24 13:08:12 server last message repeated 3 times
Dec 24 13:08:12 server diald[15737]: FIFO: link up request
Dec 24 13:08:12 server diald[15737]: Calling site 151.6.140.42=20
Dec 24 13:08:14 server kernel: Device not ready. Make sure there is a =
disc in the drive.
Dec 24 13:08:46 server last message repeated 16 times
Dec 24 13:09:06 server last message repeated 10 times
Dec 24 13:09:07 server diald[15737]: Connect script failed.
Dec 24 13:09:08 server diald[15737]: Delaying 30 seconds before clear to =
dial.
Dec 24 13:09:08 server kernel: Device not ready. Make sure there is a =
disc in the drive.
Dec 24 13:09:10 server kernel: Device not ready. Make sure there is a =
disc in the drive.
Dec 24 13:09:11 server diald[15737]: FIFO: link down request
Dec 24 13:09:12 server kernel: Device not ready. Make sure there is a =
disc in the drive.
Dec 24 13:09:24 server last message repeated 6 times
Dec 24 13:09:26 server diald[15737]: FIFO: reset request received - =
re-reading configuration
Dec 24 13:09:26 server kernel: Device not ready. Make sure there is a =
disc in the drive.
ho trovato che dovrei avere il supporto Ethernet Tap abilitato nel =
Kernel ma non so dove andare a vedere.
La connessione automatica dopo aver lanciato dalla shell, diald, non va. =
(provando con ping www.yahoo.com)
Se forzo con echo "UP">/etc/diald/diald.ctl fa la chiamata, colloquia un =
p=F2 e si sconnette.
Scusate il lungo messaggio ma se qualcuno mi pu=F2 aiutare lo ringrazio =
di cuore.
------- end of forwarded message -------
Ciao, Micky
--
Micky Del Favero micky@mesina.net micky@linux.it
Linux Registered User #78384 http://counter.li.org
Maggiori informazioni sulla lista
blug