Kleanthis Kremmidas wrote:
Hi to all :)
On /etc/diald.conf and at the parameter connect you MUST use the chat script and not a ppp script. Diald starts pppd by itself. When you put it at connect then diald thinks that this is the chat script and wait for the chat script to finish. pppd doesn't exit and the diald (using alarm system call) thinks that the chat script timed out. Look at the man page also to double check it.
OK, I didn't know this about the chat.
But I changed my diald.conf to this.
mode ppp
connect '/usr/sbin/chat -f /etc/ppp/ppp.chat'
device /dev/ttyS2
speed 115200
modem
lock
crtscts
dynamic
local 192.168.1.1
remote 0.0.0.0
defaultroute
include /usr/lib/diald/standard.filter
and nothing worked any better.
This is what I get in /var/log/messages as soon as
I start diald. Immediately after typing diald -daemon.
Jan 25 17:11:20 crow diald[1679]: keepup parsing error. Got token
'tcp.ssl'. Not a known tcp service port.
Jan 25 17:11:20 crow diald[1679]: parse string: 'tcp 120
tcp.dest=tcp.ssl'
Jan 25 17:11:20 crow diald[1679]: keepup parsing error. Got token
'tcp.ssl'. Not a known tcp service port.
Jan 25 17:11:20 crow diald[1679]: parse string: 'tcp 120
tcp.source=tcp.ssl'
Jan 25 17:11:20 crow modprobe: modprobe: Can't locate module tap0
Jan 25 17:11:20 crow modprobe: modprobe: Can't locate module tap1
Jan 25 17:11:20 crow modprobe: modprobe: Can't locate module tap2
Jan 25 17:11:20 crow modprobe: modprobe: Can't locate module tap3
Jan 25 17:11:20 crow modprobe: modprobe: Can't locate module tap4
Jan 25 17:11:20 crow modprobe: modprobe: Can't locate module tap5
Jan 25 17:11:20 crow modprobe: modprobe: Can't locate module tap6
Jan 25 17:11:20 crow modprobe: modprobe: Can't locate module tap7
Jan 25 17:11:20 crow modprobe: modprobe: Can't locate module tap8
Jan 25 17:11:20 crow modprobe: modprobe: Can't locate module tap9
Jan 25 17:11:20 crow modprobe: modprobe: Can't locate module tap10
Jan 25 17:11:20 crow modprobe: modprobe: Can't locate module tap11
Jan 25 17:11:20 crow modprobe: modprobe: Can't locate module tap12
Jan 25 17:11:20 crow modprobe: modprobe: Can't locate module tap13
Jan 25 17:11:20 crow modprobe: modprobe: Can't locate module tap14
Jan 25 17:11:20 crow modprobe: modprobe: Can't locate module tap15
Jan 25 17:11:20 crow kernel: SLIP: version 0.8.4-NET3.019-NEWTTY-MODULAR
(dynamic channels, max=256) (6 bit encapsulation enabled).
Jan 25 17:11:20 crow kernel: SLIP linefill/keepalive option.
Jan 25 17:11:20 crow diald[1679]: Proxy device established on interface
sl0
Jan 25 17:11:20 crow diald[1679]: running '/sbin/ifconfig sl0
192.168.1.1 pointopoint 0.0.0.0 broadcast 0.0.0.0 netmask
255.255.255.255 metric 0 mtu 1500 up'
Jan 25 17:11:20 crow diald[1679]: start sl0: SIOCSIFMETRIC: Operation
not supported
Jan 25 17:11:20 crow diald[1679]: SIGCHLD[1]: pid 1697 system, status
256
Jan 25 17:11:20 crow diald[1679]: start sl0: Establishing routes for sl0
Jan 25 17:11:20 crow diald[1679]: running '/usr/sbin/ip route add
0.0.0.0 dev sl0 scope link src 192.168.1.1 metric 0 '
Jan 25 17:11:20 crow diald[1679]: SIGCHLD[2]: pid 1698 system, status 0
Jan 25 17:11:20 crow diald[1679]: running '/usr/sbin/ip route add
default dev sl0 scope link src 192.168.1.1 metric 0 '
Jan 25 17:11:20 crow diald[1679]: SIGCHLD[3]: pid 1699 system, status 0
Jan 25 17:11:20 crow diald[1679]: Changed snoop device to sl0
Jan 25 17:11:20 crow diald[1679]: Diald initial setup completed.
Jan 25 17:11:37 crow diald[1679]: SIGINT: Link down request received.
Jan 25 17:11:47 crow last message repeated 9 times
Jan 25 17:11:53 crow diald[1700]: keepup parsing error. Got token
'tcp.ssl'. Not a known tcp service port.
Jan 25 17:11:53 crow diald[1700]: parse string: 'tcp 120
tcp.dest=tcp.ssl'
Jan 25 17:11:53 crow diald[1700]: keepup parsing error. Got token
'tcp.ssl'. Not a known tcp service port.
Jan 25 17:11:53 crow diald[1700]: parse string: 'tcp 120
tcp.source=tcp.ssl'
Jan 25 17:11:53 crow diald[1700]: Unknown option 'stop'
Jan 25 17:11:53 crow diald[1700]: usage: diald [modem-device1]
[modem-device2 ...] [options...] [-- [pppd options...]]
Jan 25 17:11:53 crow diald[1700]: where valid options are:
Jan 25 17:11:53 crow diald[1700]: -f <file>
Jan 25 17:11:53 crow diald[1700]: -file <file>
Jan 25 17:11:53 crow diald[1700]: include <file>
Jan 25 17:11:53 crow diald[1700]: -m
[ppp|slip|cslip|slip6|cslip6|aslip|dev]
Jan 25 17:11:53 crow diald[1700]: mode
[ppp|slip|cslip|slip6|cslip6|aslip|dev]
Jan 25 17:11:53 crow diald[1700]: debug <debugmask>
Jan 25 17:11:53 crow diald[1700]: -daemon
Jan 25 17:11:53 crow diald[1700]: accounting-log <f>
Jan 25 17:11:53 crow diald[1700]: pidfile <f>
Jan 25 17:11:53 crow diald[1700]: fifo <f>
Jan 25 17:11:53 crow diald[1700]: tcpport <n>
Jan 25 17:11:53 crow diald[1700]: demand
Jan 25 17:11:53 crow diald[1700]: -demand
Jan 25 17:11:53 crow diald[1700]: nodemand
Jan 25 17:11:53 crow diald[1700]: blocked
Jan 25 17:11:53 crow diald[1700]: -blocked
Jan 25 17:11:53 crow diald[1700]: block
Jan 25 17:11:53 crow diald[1700]: unblock
Jan 25 17:11:53 crow diald[1700]: blocked-route
Jan 25 17:11:53 crow diald[1700]: -blocked-route
Jan 25 17:11:53 crow diald[1700]: linkname <name>
Jan 25 17:11:53 crow diald[1700]: linkdesc <description>
Jan 25 17:11:53 crow diald[1700]: authsimple <file>
Jan 25 17:11:53 crow diald[1700]: initializer <script>
Jan 25 17:11:53 crow diald[1700]: deinitializer <script>
Jan 25 17:11:53 crow diald[1700]: proxy <interface>
Jan 25 17:11:53 crow diald[1700]: scheduler [fifo|rr|other]
Jan 25 17:11:53 crow diald[1700]: priority <n>
Jan 25 17:11:53 crow diald[1700]: window <n>
Jan 25 17:11:53 crow diald[1700]: mtu <m>
Jan 25 17:11:53 crow diald[1700]: mru <m>
Jan 25 17:11:53 crow diald[1700]: metric <metric>
Jan 25 17:11:53 crow diald[1700]: local <ip-address>
Jan 25 17:11:53 crow diald[1700]: remote <ip-address>
Jan 25 17:11:53 crow diald[1700]: broadcast <ip-address>
Jan 25 17:11:53 crow diald[1700]: netmask <ip-address>
Jan 25 17:11:53 crow diald[1700]: dynamic
Jan 25 17:11:53 crow diald[1700]: sticky
Jan 25 17:11:53 crow diald[1700]: strict-forwarding
Jan 25 17:11:53 crow diald[1700]: dslip-mode <mode>
Jan 25 17:11:53 crow diald[1700]: defaultroute
Jan 25 17:11:53 crow diald[1700]: ifsetup <script>
Jan 25 17:11:53 crow diald[1700]: addroute <script>
Jan 25 17:11:53 crow diald[1700]: delroute <script>
Jan 25 17:11:53 crow diald[1700]: proxyarp
Jan 25 17:11:53 crow diald[1700]: ip-up <script>
Jan 25 17:11:53 crow diald[1700]: ip-down <script>
Jan 25 17:11:53 crow diald[1700]: ip-goingdown <script>
Jan 25 17:11:53 crow diald[1700]: device <device>
Jan 25 17:11:53 crow diald[1700]: connect <script>
Jan 25 17:11:53 crow diald[1700]: disconnect <script>
Jan 25 17:11:53 crow diald[1700]: lock
Jan 25 17:11:53 crow diald[1700]: speed <baudrate>
Jan 25 17:11:53 crow diald[1700]: modem
Jan 25 17:11:53 crow diald[1700]: crtscts
Jan 25 17:11:53 crow diald[1700]: rotate-devices
Jan 25 17:11:53 crow diald[1700]: lock-prefix <path>
Jan 25 17:11:53 crow diald[1700]: pidstring
Jan 25 17:11:53 crow diald[1700]: -pidstring
Jan 25 17:11:53 crow diald[1700]: run-prefix <path>
Jan 25 17:11:53 crow diald[1700]: path-ip <path>
Jan 25 17:11:53 crow diald[1700]: path-route <path>
Jan 25 17:11:53 crow diald[1700]: path-ifconfig <path>
Jan 25 17:11:53 crow diald[1700]: path-bootpc <path>
Jan 25 17:11:53 crow diald[1700]: path-pppd <path>
Jan 25 17:11:53 crow diald[1700]: buffer-packets
Jan 25 17:11:53 crow diald[1700]: -buffer-packets
Jan 25 17:11:53 crow diald[1700]: buffer_size <n>
Jan 25 17:11:53 crow diald[1700]: buffer-fifo-dispose
Jan 25 17:11:53 crow diald[1700]: -buffer-fifo-dispose
Jan 25 17:11:53 crow diald[1700]: buffer-timeout <n>
Jan 25 17:11:53 crow diald[1700]: route-wait
Jan 25 17:11:53 crow diald[1700]: two-way
Jan 25 17:11:53 crow diald[1700]: give-way
Jan 25 17:11:53 crow diald[1700]: connect-timeout <timeout>
Jan 25 17:11:53 crow diald[1700]: disconnect-timeout <timeout>
Jan 25 17:11:53 crow diald[1700]: redial-timeout <timeout>
Jan 25 17:11:53 crow diald[1700]: nodev-retry-timeout <timeout>
Jan 25 17:11:53 crow diald[1700]: stop-dial-timeout <timeout>
Jan 25 17:11:53 crow diald[1700]: kill-timeout <timeout>
Jan 25 17:11:53 crow diald[1700]: start-pppd-timeout <timeout>
Jan 25 17:11:53 crow diald[1700]: stop-pppd-timeout <timeout>
Jan 25 17:11:53 crow diald[1700]: first-packet-timeout <timeout>
Jan 25 17:11:53 crow diald[1700]: retry-count <count>
Jan 25 17:11:53 crow diald[1700]: died-retry-count <count>
Jan 25 17:11:53 crow diald[1700]: redial-backoff-start <count>
Jan 25 17:11:53 crow diald[1700]: redial-backoff-limit <time>
Jan 25 17:11:53 crow diald[1700]: dial-fail-limit <count>
Jan 25 17:11:53 crow diald[1700]: prule <name> <protocol> <spec>
Jan 25 17:11:53 crow diald[1700]: var <name> <spec>
Jan 25 17:11:53 crow diald[1700]: restrict <start-time> <end-time>
<weekday> <day> <month>
Jan 25 17:11:53 crow diald[1700]: or-restrict <start-time>
<end-time> <weekday> <day> <month>
Jan 25 17:11:53 crow diald[1700]: bringup <protocol-rule> <timeout>
<packet-rule>
Jan 25 17:11:53 crow diald[1700]: keepup <protocol-rule> <timeout>
<packet-rule>
Jan 25 17:11:53 crow diald[1700]: accept <protocol-rule> <timeout>
<packet-rule>
Jan 25 17:11:53 crow diald[1700]: ignore <protocol-rule>
<packet-rule>
Jan 25 17:11:53 crow diald[1700]: impulse
[<duration>,<fuzz>|<duration1>,<duration2>,<fuzz>]
Jan 25 17:11:53 crow diald[1700]: up
Jan 25 17:11:53 crow diald[1700]: down
Jan 25 17:11:53 crow diald[1700]: flushfilters
Jan 25 17:11:53 crow diald[1700]: flushprules
Jan 25 17:11:53 crow diald[1700]: flushvars
Jan 25 17:11:56 crow popper[1702]: connect from bljilek@192.168.1.1
Jan 25 17:11:57 crow diald[1679]: SIGINT: Link down request received.
Jan 25 17:12:07 crow last message repeated 5 times
Jan 25 17:12:10 crow diald[1679]: SIGHUP: modem got hung up on.
Jan 25 17:12:31 crow diald[1679]: SIGTERM. Termination request received.
Jan 25 17:12:31 crow diald[1679]: Diald is dieing with code 0
Jan 25 17:12:31 crow diald[1679]: stop sl0: Removing routes for sl0
Jan 25 17:12:31 crow diald[1679]: running '/usr/sbin/ip route del
default dev sl0 scope link src 192.168.1.1 metric 0'
Jan 25 17:12:31 crow diald[1679]: SIGCHLD[4]: pid 1705 system, status 0
Jan 25 17:12:31 crow diald[1679]: running '/sbin/ifconfig sl0 down'
Jan 25 17:12:31 crow diald[1679]: SIGCHLD[5]: pid 1706 system, status 0
Sorry about the length of this.
I'm trying to run diald with diald -daemon to try to see
what's happening but it don't print anything to the terminal.
--
B. L. Jilek