I am using Diald with '/usr/bin/wvdial' as my connect script. 
Every time my connection lasts only 60 seconds.
It is always terminated by 'connect script time out'.
I have played with all the settings in standard.filter and it doesn't
seem to be a problem.

Can someone please help? Am I doing something fundamentally wrong by
using wvdial?

I have attached the following files:
standard.filter
/var/log/messages
# restrict 08:00:00 23:00:00 1-5 * *
#  up

# 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 120 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

# SSL connections are usually for secure http so treat them like http.
# NOTE: Your /etc/services may not define the tcp service ssl, 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.
keepup tcp 120 tcp.dest=tcp.ssl
keepup tcp 120 tcp.source=tcp.ssl

# 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 600 udp.dest=udp.domain 
accept udp 600 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 120 any

# restrict 8:00:00 23:00:00 1-5 * *
# up
Dec  8 23:11:46 jaco diald[7482]: start sl0: RTNETLINK answers: File exists 
Dec  8 23:11:50 jaco diald[7482]: Trigger: udp          10.0.0.1/1063        
196.2.16.3/53   
Dec  8 23:11:50 jaco diald[7482]: Calling site 10.0.0.4 
Dec  8 23:11:51 jaco diald[7482]: connector: --> WvDial: Internet dialer version 1.20
Dec  8 23:11:51 jaco diald[7482]: connector: --> Initializing modem.
Dec  8 23:11:51 jaco diald[7482]: connector: --> Sending: ATZ
Dec  8 23:11:52 jaco diald[7482]: connector: ATZ
Dec  8 23:11:52 jaco diald[7482]: connector: OK
Dec  8 23:11:52 jaco diald[7482]: connector: --> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 
S11=55 +FCLASS=0
Dec  8 23:11:52 jaco diald[7482]: connector: ATQ0 V1 E1 S0=0 &C1 &D2 S11=55 +FCLASS=0
Dec  8 23:11:52 jaco diald[7482]: connector: OK
Dec  8 23:11:52 jaco diald[7482]: connector: --> Modem initialized.
Dec  8 23:11:52 jaco diald[7482]: connector: --> Sending: ATDT 4837200
Dec  8 23:11:52 jaco diald[7482]: connector: --> Waiting for carrier.
Dec  8 23:11:52 jaco diald[7482]: connector: ATDT 4837200
Dec  8 23:12:13 jaco diald[7482]: connector: CONNECT 57600
Dec  8 23:12:13 jaco diald[7482]: connector: --> Carrier detected.  Starting ppp.
Dec  8 23:12:13 jaco diald[7482]: connector: --> Starting pppd at Wed Dec  8 23:12:13 
1999
Dec  8 23:12:13 jaco pppd[7512]: pppd 2.3.8 started by root, uid 0
Dec  8 23:12:13 jaco pppd[7512]: Using interface ppp0
Dec  8 23:12:13 jaco pppd[7512]: Connect: ppp0 <--> /dev/ttyS1
Dec  8 23:12:13 jaco pppd[7512]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 
0x819cf1bd> <pcomp> <accomp>]
Dec  8 23:12:16 jaco pppd[7512]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 
0x819cf1bd> <pcomp> <accomp>]
Dec  8 23:12:19 jaco pppd[7512]: rcvd [LCP ConfReq id=0xdc <asyncmap 0xa0000> <auth 
pap> <magic 0x7acb057b> <pcomp> <accomp>]
Dec  8 23:12:19 jaco pppd[7512]: sent [LCP ConfAck id=0xdc <asyncmap 0xa0000> <auth 
pap> <magic 0x7acb057b> <pcomp> <accomp>]
Dec  8 23:12:19 jaco pppd[7512]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 
0x819cf1bd> <pcomp> <accomp>]
Dec  8 23:12:22 jaco pppd[7512]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 
0x819cf1bd> <pcomp> <accomp>]
Dec  8 23:12:22 jaco pppd[7512]: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 
0x819cf1bd> <pcomp> <accomp>]
Dec  8 23:12:22 jaco pppd[7512]: sent [LCP EchoReq id=0x0 magic=0x819cf1bd]
Dec  8 23:12:22 jaco pppd[7512]: sent [PAP AuthReq id=0x1 user="vanstad" 
password="jvs"]
Dec  8 23:12:24 jaco pppd[7512]: rcvd [LCP ConfReq id=0xde <asyncmap 0xa0000> <auth 
pap> <magic 0x7acb1343> <pcomp> <accomp>]
Dec  8 23:12:24 jaco pppd[7512]: sent [LCP ConfReq id=0x2 <asyncmap 0x0> <magic 
0x6a50185c> <pcomp> <accomp>]
Dec  8 23:12:24 jaco pppd[7512]: sent [LCP ConfAck id=0xde <asyncmap 0xa0000> <auth 
pap> <magic 0x7acb1343> <pcomp> <accomp>]
Dec  8 23:12:24 jaco pppd[7512]: rcvd [LCP ConfAck id=0x2 <asyncmap 0x0> <magic 
0x6a50185c> <pcomp> <accomp>]
Dec  8 23:12:24 jaco pppd[7512]: sent [LCP EchoReq id=0x0 magic=0x6a50185c]
Dec  8 23:12:24 jaco pppd[7512]: sent [PAP AuthReq id=0x2 user="vanstad" 
password="jvs"]
Dec  8 23:12:25 jaco pppd[7512]: rcvd [LCP EchoRep id=0x0 magic=0x7acb1343]
Dec  8 23:12:25 jaco pppd[7512]: rcvd [PAP AuthAck id=0x2 ""]
Dec  8 23:12:25 jaco pppd[7512]: Remote message: M-K^SC
Dec  8 23:12:25 jaco pppd[7512]: sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <compress VJ 
0f 01> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
Dec  8 23:12:25 jaco pppd[7512]: sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 
15> <bsd v1 15>]
Dec  8 23:12:25 jaco pppd[7512]: rcvd [IPCP ConfReq id=0x67 <addr 196.2.20.3>]
Dec  8 23:12:25 jaco pppd[7512]: sent [IPCP ConfAck id=0x67 <addr 196.2.20.3>]
Dec  8 23:12:25 jaco pppd[7512]: rcvd [IPCP ConfRej id=0x1 <compress VJ 0f 01>]
Dec  8 23:12:25 jaco pppd[7512]: sent [IPCP ConfReq id=0x2 <addr 0.0.0.0> <ms-dns1 
0.0.0.0> <ms-dns3 0.0.0.0>]
Dec  8 23:12:25 jaco pppd[7512]: rcvd [LCP ProtRej id=0xdf 80 fd 01 01 00 0f 1a 04 78 
00 18 04 78 00 15 03 2f]
Dec  8 23:12:25 jaco pppd[7512]: rcvd [IPCP ConfNak id=0x2 <addr 196.2.21.166> 
<ms-dns1 196.2.16.3> <ms-dns3 196.2.48.227>]
Dec  8 23:12:25 jaco pppd[7512]: sent [IPCP ConfReq id=0x3 <addr 196.2.21.166> 
<ms-dns1 196.2.16.3> <ms-dns3 196.2.48.227>]
Dec  8 23:12:25 jaco pppd[7512]: rcvd [IPCP ConfAck id=0x3 <addr 196.2.21.166> 
<ms-dns1 196.2.16.3> <ms-dns3 196.2.48.227>]
Dec  8 23:12:25 jaco pppd[7512]: Cannot determine ethernet address for proxy ARP
Dec  8 23:12:25 jaco pppd[7512]: local  IP address 196.2.21.166
Dec  8 23:12:25 jaco pppd[7512]: remote IP address 196.2.20.3
Dec  8 23:12:25 jaco pppd[7512]: primary   DNS address 196.2.16.3
Dec  8 23:12:25 jaco pppd[7512]: secondary DNS address 196.2.48.227
Dec  8 23:12:25 jaco pppd[7512]: Script /etc/ppp/ip-up started (pid 7522)
Dec  8 23:12:26 jaco ip-up: Modified /etc/resolv.conf for DNS at ppp0 
Dec  8 23:12:26 jaco pppd[7512]: Script /etc/ppp/ip-up finished (pid 7522), status = 
0x0
Dec  8 23:12:50 jaco diald[7482]: Connect script timed out. Killing script.
Dec  8 23:12:50 jaco diald[7482]: Sending SIGINT to (dis)connect process 7503
Dec  8 23:12:50 jaco pppd[7512]: Terminating on signal 15.
Dec  8 23:12:50 jaco pppd[7512]: Script /etc/ppp/ip-down started (pid 7555)
Dec  8 23:12:50 jaco pppd[7512]: sent [LCP TermReq id=0x3 "User request"]
Dec  8 23:12:50 jaco pppd[7512]: rcvd [LCP ProtRej id=0xe0 00 43 61 75 67 68 74 20 73 
69 67 6e 61 6c 20 23 32 21 20 20 41 74 74 65 6d 70 74 69 6e 67 20 74 6f 20 65 78 69 74 
20 67 72 61 63 65 66 75 6c 6c 79 2e 2e 2e 0a]
Dec  8 23:12:50 jaco pppd[7512]: rcvd [LCP TermAck id=0x3]
Dec  8 23:12:50 jaco pppd[7512]: Connection terminated.
Dec  8 23:12:50 jaco pppd[7512]: Connect time 0.7 minutes.
Dec  8 23:12:50 jaco pppd[7512]: Sent 584 bytes, received 885 bytes.
Dec  8 23:12:50 jaco pppd[7512]: Waiting for 1 child processes...
Dec  8 23:12:50 jaco pppd[7512]:   script /etc/ppp/ip-down, pid 7555
Dec  8 23:12:50 jaco ip-down: Restored original /etc/resolv.conf 
Dec  8 23:12:51 jaco pppd[7512]: Script /etc/ppp/ip-down finished (pid 7555), status = 
0x0
Dec  8 23:12:51 jaco pppd[7512]: Exit.
Dec  8 23:12:51 jaco diald[7482]: connector: --> Disconnecting at Wed Dec  8 23:12:51 
1999
Dec  8 23:12:52 jaco diald[7482]: Delaying 30 seconds before clear to dial.

Reply via email to