[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

dilad still not working



Well I have been following everyone advice and I am pretty close to
getting diald to work. What happens now is it dials, gets connected,
sits there for about 30 seconds then disconnects.

I can connect to the Internet if diald is not loaded by using pon.

I have attached my /etc/diald/diald.options /etc/diald/standard.filter
/etc/chatscripts/provider files and the last couple of entries in the
/var/log/ppp.log and /var/log/diald.log files. 

I didn't have a standard.filter file after installing the Debian package
for diald so I copied the standard.filter file from my other Debian 1.3
box. I am running Debian 2.0 kernel 2.0.34. 

-- 
Thanks,
Keith
http://www.naples.net/~nfn11988
Debian GNU/Linux
# /etc/diald/diald.options
#
#	$Id: diald.options,v 1.8 1996/12/08 20:33:01 gv Exp $	
#
# Sample diald.options -- works for PPP links and fixed IP
#
# Edit to match your set up.
#

# This is the port the modem is connected to.
# *** MODIFY to match your set up ***
# See the file /usr/doc/diald/debian.device.gz for discussion about
# the use of /dev/ttyS? instead of /dev/cua?.
device /dev/ttyS0

# diald log file: do not change.
accounting-log /var/log/diald.log

# diald monitoring pipe: do not change.
fifo /var/run/diald.fifo

# This turns on full debugging.
#debug 31
debug 77

# We have PPP
mode ppp

# Specifies dynamic IP address assignment
dynamic

# IP number for deselby.xs4all.nl
local 172.16.1.1
# IP number for the provider's machine. This is different each time we connect.
# This is not a problem, but it'll make the routine table look funny.
remote 172.16.1.4

# If the connection gets broken from the ISP, redial only
# if there's outgoing traffic from our side.
#two-way

# When the link's up, change routes to point to the real link
# instead of the proxy.
#reroute

# diald should set a default route to the proxy SLIP link.
defaultroute

# These two scripts must be executable.
ip-up /etc/diald/ip-up
ip-down /etc/diald/ip-down

# Scripts used to bring up/shut down the serial line.
connect "/usr/sbin/chat -v -f /etc/chatscripts/provider"
disconnect "/etc/ppp/ppp-disconnect"

# Do UUCP locking.
lock

# We connect through a modem.
modem
crtscts

# Local tweaking
#connect-timeout 90
#dial-fail-limit 2
#died-retry-count 0

# Dutch PTT timetable: same charge for 2.5 (peak) 5 (night) minutes.
impulse 330,30 
restrict * * * * *
#impulse 130,20

include /etc/diald/standard.filter

ABORT BUSY
ABORT "NO CARRIER"
ABORT VOICE
ABORT "NO DIALTONE" 
ABORT "NO ANSWER"
"" ATZ
OK ATDT4359240
CONNECT \d\c
# This is a pretty complicated set of filter rules.
# (These are the rules I use myself.)
#
# I've divided the rules up into four sections.
# TCP packets, UDP packets, ICMP packets and a general catch all rule
# at the end.


#------------------------------------------------------------------------------
# Rules for TCP packets.
#------------------------------------------------------------------------------
# General comments on the rule set:
#
# In general we would like to treat only data on a TCP link as signficant
# for timeouts. Therefore, we try to ignore packets with no data.
# Since the shortest possible set of headers in a TCP/IP packet is 40 bytes.
# Any packet with length 40 must have no data riding in it.
# We may miss some empty packets this way (optional routing information
# and other extras may be present in the IP header), but we should get
# most of them. Note that we don't want to filter out packets with
# tcp.live clear, since we use them later to speedup disconnects
# on some TCP links.
#
# We also want to make sure WWW packets live even if the TCP socket
# is shut down. We do this because WWW doesn't keep connections open
# once the data has been transfered, and it would be annoying to have the link
# keep bouncing up and down every time you get a document.
#
# Outside of WWW the most common use of TCP is for long lived connections,
# that once they are gone mean we no longer need the network connection.
# We don't neccessarily want to wait 10 minutes for the connection
# to go down when we don't have any telnet's or rlogin's running,
# so we want to speed up the timeout on TCP connections that have
# shutdown. We do this by catching packets that do not have the live flag set.

# --- start of rule set proper ---

# When initiating a connection we only give the link 15 seconds initially.
# The idea here is to deal with possibility that the network on the opposite
# end of the connection is unreachable. In this case you don't really
# want to give the link 10 minutes up time. With the rule below
# we only give the link 15 seconds initially. If the network is reachable
# then we will normally get a response that actually contains some
# data within 15 seconds. If this causes problems because you have a slow
# response time at some site you want to regularly access, you can either
# increase the timeout or remove this rule.
accept tcp 15 tcp.syn

# Keep named xfers from holding the link up
ignore tcp tcp.dest=tcp.domain
ignore tcp tcp.source=tcp.domain

# (Ack! SCO telnet starts by sending empty SYNs and only opens the
# connection if it gets a response. Sheesh..)
accept tcp 5 ip.tot_len=40,tcp.syn

# keep empty packets from holding the link up (other than empty SYN packets)
ignore tcp ip.tot_len=40,tcp.live

# make sure http transfers hold the link for 2 minutes, even after they end.
# NOTE: Your /etc/services may not define the tcp service www, in which
# case you should comment out the following two lines or get a more
# up to date /etc/services file. See the FAQ for information on obtaining
# a new /etc/services file.
accept tcp 120 tcp.dest=tcp.www
accept tcp 120 tcp.source=tcp.www

# Once the link is no longer live, we try to shut down the connection
# quickly. Note that if the link is already down, a state change
# will not bring it back up.
keepup tcp 5 !tcp.live
ignore tcp !tcp.live

# an ftp-data or ftp connection can be expected to show reasonably frequent
# traffic.
accept tcp 120 tcp.dest=tcp.ftp
accept tcp 120 tcp.source=tcp.ftp

#NOTE: ftp-data is not defined in the /etc/services file provided with
# the latest versions of NETKIT, so I've got this commented out here.
# If you want to define it add the following line to your /etc/services:
# ftp-data        20/tcp
# and uncomment the following two rules.
#accept tcp 120 tcp.dest=tcp.ftp-data
#accept tcp 120 tcp.source=tcp.ftp-data

# If we don't catch it above, give the link 10 minutes up time.
accept tcp 600 any

# Rules for UDP packets
#
# We time out domain requests right away, we just want them to bring
# the link up, not keep it around for very long.
# This is because the network will usually come up on a call
# from the resolver library (unless you have all your commonly
# used addresses in /etc/hosts, in which case you will discover
# other problems.)
# Note that you should not make the timeout shorter than the time you
# might expect your DNS server to take to respond. Otherwise
# when the initial link gets established there might be a delay
# greater than this between the initial series of packets before
# any packets that keep the link up longer pass over the link.

# Don't bring the link up for rwho.
ignore udp udp.dest=udp.who
ignore udp udp.source=udp.who
# Don't bring the link up for RIP.
ignore udp udp.dest=udp.route
ignore udp udp.source=udp.route
# Don't bring the link up for NTP or timed.
ignore udp udp.dest=udp.ntp
ignore udp udp.source=udp.ntp
ignore udp udp.dest=udp.timed
ignore udp udp.source=udp.timed
# Don't bring up on domain name requests between two running nameds.
ignore udp udp.dest=udp.domain,udp.source=udp.domain
# Bring up the network whenever we make a domain request from someplace
# other than named.
accept udp 30 udp.dest=udp.domain 
accept udp 30 udp.source=udp.domain
# Do the same for netbios-ns broadcasts
# NOTE: your /etc/services file may not define the netbios-ns service
# in which case you should comment out the next three lines.
ignore udp udp.source=udp.netbios-ns,udp.dest=udp.netbios-ns
accept udp 30 udp.dest=udp.netbios-ns
accept udp 30 udp.source=udp.netbios-ns
# keep routed and gated transfers from holding the link up
ignore udp tcp.dest=udp.route
ignore udp tcp.source=udp.route
# Anything else gest 2 minutes.
accept udp 120 any

# Catch any packets that we didn't catch above and give the connection
# 30 seconds of live time.
accept any 30 any
Tue Sep 15 14:12:35 1998 EDT: Calling site 172.16.1.4.
Tue Sep 15 14:13:21 1998 EDT: Disconnected. Call duration 46 seconds.
      IP transmitted 840 bytes and received 0 bytes.
Tue Sep 15 14:16:25 1998 EDT: Calling site 172.16.1.4.
Tue Sep 15 14:16:26 1998 EDT: Disconnected. Call duration 1 seconds.
      IP transmitted 84 bytes and received 0 bytes.
Tue Sep 15 14:16:58 1998 EDT: Calling site 172.16.1.4.
Tue Sep 15 14:16:59 1998 EDT: Disconnected. Call duration 1 seconds.
      IP transmitted 0 bytes and received 0 bytes.
Tue Sep 15 14:17:30 1998 EDT: Calling site 172.16.1.4.
Tue Sep 15 14:17:31 1998 EDT: Disconnected. Call duration 1 seconds.
      IP transmitted 84 bytes and received 0 bytes.
Tue Sep 15 14:18:03 1998 EDT: Calling site 172.16.1.4.
Tue Sep 15 14:18:04 1998 EDT: Disconnected. Call duration 1 seconds.
      IP transmitted 0 bytes and received 0 bytes.

Sep 15 14:17:30 monster1 chat[184]: abort on (BUSY)
Sep 15 14:17:30 monster1 chat[184]: abort on (NO CARRIER)
Sep 15 14:17:30 monster1 chat[184]: abort on (VOICE)
Sep 15 14:17:30 monster1 chat[184]: abort on (NO DIALTONE)
Sep 15 14:17:30 monster1 chat[184]: abort on (NO ANSWER)
Sep 15 14:17:30 monster1 chat[184]: send (ATZ^M)
Sep 15 14:17:30 monster1 chat[184]: expect (OK)
Sep 15 14:17:30 monster1 chat[184]: ATZ^M^M
Sep 15 14:17:30 monster1 chat[184]: OK
Sep 15 14:17:30 monster1 chat[184]:  -- got it 
Sep 15 14:17:30 monster1 chat[184]: send (ATDT4359240^M)
Sep 15 14:17:30 monster1 diald[126]: filter accepted rule 31 proto 1 len 84 packet 172.16.1.1,0 => 199.233.75.16,0
Sep 15 14:17:30 monster1 diald[126]: Adding connection 0x805e2f8 @ 905883450 - timeout 30
Sep 15 14:17:30 monster1 chat[184]: expect (CONNECT)
Sep 15 14:17:31 monster1 diald[126]: Running connect (pid = 185).
Sep 15 14:17:31 monster1 diald[126]: filter accepted rule 31 proto 1 len 84 packet 172.16.1.1,0 => 199.233.75.16,0
Sep 15 14:17:31 monster1 diald[126]: Adding connection 0x805e2f8 @ 905883451 - timeout 30
Sep 15 14:17:31 monster1 diald[126]: SIGCHLD[6]: pid 185 dial, status 32512
Sep 15 14:17:31 monster1 diald[126]: Connect script failed.
Sep 15 14:17:31 monster1 diald[126]: Closing modem line.
Sep 15 14:17:32 monster1 chat[184]: 359240^M^M
Sep 15 14:17:32 monster1 chat[184]: NO CARRIER
Sep 15 14:17:32 monster1 chat[184]:  -- failed
Sep 15 14:17:32 monster1 chat[184]: Failed (NO CARRIER)
Sep 15 14:17:32 monster1 pppd[183]: Connect script failed
Sep 15 14:17:32 monster1 diald[126]: Delaying 30 seconds before clear to dial.
Sep 15 14:17:32 monster1 diald[126]: filter accepted rule 31 proto 1 len 84 packet 172.16.1.1,0 => 199.233.75.16,0
Sep 15 14:17:32 monster1 diald[126]: Adding connection 0x805e2f8 @ 905883452 - timeout 30
Sep 15 14:17:33 monster1 pppd[183]: Exit.
Sep 15 14:17:33 monster1 diald[126]: filter accepted rule 31 proto 1 len 84 packet 172.16.1.1,0 => 199.233.75.16,0
Sep 15 14:17:33 monster1 diald[126]: Adding connection 0x805e2f8 @ 905883453 - timeout 30
Sep 15 14:17:35 monster1 diald[126]: filter accepted rule 31 proto 1 len 84 packet 172.16.1.1,0 => 199.233.75.16,0
Sep 15 14:17:35 monster1 diald[126]: Adding connection 0x805e2f8 @ 905883455 - timeout 30
Sep 15 14:17:36 monster1 diald[126]: filter accepted rule 31 proto 1 len 84 packet 172.16.1.1,0 => 199.233.75.16,0
Sep 15 14:17:36 monster1 diald[126]: Adding connection 0x805e2f8 @ 905883456 - timeout 30
Sep 15 14:17:37 monster1 diald[126]: filter accepted rule 31 proto 1 len 84 packet 172.16.1.1,0 => 199.233.75.16,0
Sep 15 14:17:37 monster1 diald[126]: Adding connection 0x805e2f8 @ 905883457 - timeout 30
Sep 15 14:17:39 monster1 diald[126]: filter accepted rule 31 proto 1 len 84 packet 172.16.1.1,0 => 199.233.75.16,0
Sep 15 14:17:39 monster1 diald[126]: Adding connection 0x805e2f8 @ 905883459 - timeout 30
Sep 15 14:17:40 monster1 diald[126]: filter accepted rule 31 proto 1 len 84 packet 172.16.1.1,0 => 199.233.75.16,0
Sep 15 14:17:40 monster1 diald[126]: Adding connection 0x805e2f8 @ 905883460 - timeout 30
Sep 15 14:17:41 monster1 diald[126]: filter accepted rule 31 proto 1 len 84 packet 172.16.1.1,0 => 199.233.75.16,0
Sep 15 14:17:41 monster1 diald[126]: Adding connection 0x805e2f8 @ 905883461 - timeout 30
Sep 15 14:17:42 monster1 diald[126]: filter accepted rule 31 proto 1 len 84 packet 172.16.1.1,0 => 199.233.75.16,0
Sep 15 14:17:42 monster1 diald[126]: Adding connection 0x805e2f8 @ 905883462 - timeout 30
Sep 15 14:17:43 monster1 diald[126]: filter accepted rule 31 proto 1 len 84 packet 172.16.1.1,0 => 199.233.75.16,0
Sep 15 14:17:43 monster1 diald[126]: Adding connection 0x805e2f8 @ 905883463 - timeout 30
Sep 15 14:17:44 monster1 diald[126]: filter accepted rule 31 proto 1 len 84 packet 172.16.1.1,0 => 199.233.75.16,0
Sep 15 14:17:44 monster1 diald[126]: Adding connection 0x805e2f8 @ 905883464 - timeout 30
Sep 15 14:17:45 monster1 diald[126]: filter accepted rule 31 proto 1 len 84 packet 172.16.1.1,0 => 199.233.75.16,0
Sep 15 14:17:45 monster1 diald[126]: Adding connection 0x805e2f8 @ 905883465 - timeout 30
Sep 15 14:17:46 monster1 diald[126]: filter accepted rule 31 proto 1 len 84 packet 172.16.1.1,0 => 199.233.75.16,0
Sep 15 14:17:46 monster1 diald[126]: Adding connection 0x805e2f8 @ 905883466 - timeout 30
Sep 15 14:17:47 monster1 diald[126]: filter accepted rule 31 proto 1 len 84 packet 172.16.1.1,0 => 199.233.75.16,0
Sep 15 14:17:47 monster1 diald[126]: Adding connection 0x805e2f8 @ 905883467 - timeout 30
Sep 15 14:17:48 monster1 diald[126]: filter accepted rule 31 proto 1 len 84 packet 172.16.1.1,0 => 199.233.75.16,0
Sep 15 14:17:48 monster1 diald[126]: Adding connection 0x805e2f8 @ 905883468 - timeout 30
Sep 15 14:18:03 monster1 diald[126]: filter accepted rule 31 proto 1 len 84 packet 172.16.1.1,0 => 199.233.75.16,0
Sep 15 14:18:03 monster1 diald[126]: Adding connection 0x805e2f8 @ 905883483 - timeout 30
Sep 15 14:18:04 monster1 diald[126]: Running connect (pid = 190).
Sep 15 14:18:04 monster1 diald[126]: SIGCHLD[7]: pid 190 dial, status 32512
Sep 15 14:18:04 monster1 diald[126]: Connect script failed.
Sep 15 14:18:04 monster1 diald[126]: Closing modem line.
Sep 15 14:18:05 monster1 diald[126]: Delaying 30 seconds before clear to dial.
Sep 15 14:18:05 monster1 diald[126]: filter accepted rule 31 proto 1 len 84 packet 172.16.1.1,0 => 199.233.75.16,0
Sep 15 14:18:05 monster1 diald[126]: Adding connection 0x805e2f8 @ 905883485 - timeout 30
Sep 15 14:18:05 monster1 diald[126]: filter accepted rule 31 proto 1 len 84 packet 172.16.1.1,0 => 199.233.75.16,0
Sep 15 14:18:05 monster1 diald[126]: Adding connection 0x805e2f8 @ 905883485 - timeout 30
Sep 15 14:18:06 monster1 diald[126]: filter accepted rule 31 proto 1 len 84 packet 172.16.1.1,0 => 199.233.75.16,0
Sep 15 14:18:06 monster1 diald[126]: Adding connection 0x805e2f8 @ 905883486 - timeout 30
Sep 15 14:18:36 monster1 diald[126]: Deleting connection 0x805e2f8 @ 905883516













Reply to: