diald never dials the modem automatically after bootup.
I end up killing diald, dialing the motorola isdn modem using wvdial manually.
I then activate ip masquerading manually from the command line using /etc/rc.d/rc.firewall
so I may use the internet.
Is there anything obvious in the files below that would prevent diald to dial out?
**************
/var/log/messages
****************
Nov 12 07:08:16 dec ifup: inet (DARPA Internet) inet6 (IPv6) ax25 (AMPR AX.25)
Nov 12 07:08:22 dec kernel: uhci.c: USB Universal Host Controller Interface driver
Nov 12 07:08:16 dec ifup: netrom (AMPR NET/ROM) ipx (Novell IPX) ddp (Appletalk DDP)
Nov 12 07:08:22 dec kernel: NET4: Linux TCP/IP 1.0 for NET4.0
Nov 12 07:08:16 dec ifup: x25 (CCITT X.25)
Nov 12 07:08:22 dec kernel: IP Protocols: ICMP, UDP, TCP
Nov 12 07:08:16 dec network: Bringing up interface eth0: succeeded
Nov 12 07:08:22 dec kernel: IP: routing cache hash table of 512 buckets, 4Kbytes
Nov 12 07:08:22 dec kernel: TCP: Hash tables configured (established 8192 bind 8192)
Nov 12 07:08:22 dec kernel: ip_conntrack (768 buckets, 6144 max)
Nov 12 07:08:22 dec kernel: ip_tables: (c)2000 Netfilter core team
Nov 12 07:08:22 dec kernel: NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
Nov 12 07:08:22 dec kernel: VFS: Mounted root (ext2 filesystem) readonly.
Nov 12 07:08:22 dec kernel: Freeing unused kernel memory: 200k freed
Nov 12 07:08:22 dec kernel: Adding Swap: 32216k swap-space (priority -1)
Nov 12 07:08:22 dec netfs: Mounting other filesystems: succeeded
Nov 12 07:08:23 dec automount[603]: starting automounter version 3.1.7, path = /misc, maptype = file, mapname = /etc/auto.misc
Nov 12 07:08:23 dec automount[603]: using kernel protocol version 3
Nov 12 07:08:24 dec autofs: autofs startup succeeded
Nov 12 07:08:24 dec atd: atd startup succeeded
Nov 12 07:08:25 dec named: named startup succeeded
Nov 12 07:08:25 dec named[630]: starting BIND 9.1.0 -u named
Nov 12 07:08:25 dec named[630]: using 1 CPU
Nov 12 07:08:25 dec sshd: Starting sshd:
Nov 12 07:08:25 dec named[635]: loading configuration from '/etc/named.conf'
Nov 12 07:08:26 dec named[635]: the default for the 'auth-nxdomain' option is now 'no'
Nov 12 07:08:26 dec named[635]: no IPv6 interfaces found
Nov 12 07:08:26 dec named[635]: listening on IPv4 interface lo, 127.0.0.1#53
Nov 12 07:08:26 dec named[635]: listening on IPv4 interface eth0, 10.0.0.10#53
Nov 12 07:08:26 dec sshd: succeeded
Nov 12 07:08:26 dec sshd:
Nov 12 07:08:26 dec rc: Starting sshd: succeeded
Nov 12 07:08:26 dec named[635]: running
Nov 12 07:08:27 dec xinetd[667]: amanda disabled, removing
Nov 12 07:08:27 dec xinetd[667]: ftp disabled, removing
Nov 12 07:08:27 dec xinetd[667]: time disabled, removing
Nov 12 07:08:27 dec xinetd[667]: time disabled, removing
Nov 12 07:08:27 dec xinetd[667]: telnet disabled, removing
Nov 12 07:08:27 dec xinetd[667]: talk disabled, removing
Nov 12 07:08:27 dec xinetd[667]: rsync disabled, removing
Nov 12 07:08:27 dec xinetd[667]: shell disabled, removing
Nov 12 07:08:27 dec xinetd[667]: login disabled, removing
Nov 12 07:08:27 dec xinetd[667]: exec disabled, removing
Nov 12 07:08:27 dec xinetd[667]: ntalk disabled, removing
Nov 12 07:08:27 dec xinetd[667]: linuxconf disabled, removing
Nov 12 07:08:27 dec xinetd[667]: finger disabled, removing
Nov 12 07:08:27 dec xinetd[667]: echo-udp disabled, removing
Nov 12 07:08:27 dec xinetd[667]: echo disabled, removing
Nov 12 07:08:27 dec xinetd[667]: daytime-udp disabled, removing
Nov 12 07:08:27 dec xinetd[667]: daytime disabled, removing
Nov 12 07:08:27 dec xinetd[667]: chargen-udp disabled, removing
Nov 12 07:08:27 dec xinetd[667]: chargen disabled, removing
Nov 12 07:08:27 dec xinetd[667]: amidxtape disabled, removing
Nov 12 07:08:27 dec xinetd[667]: amandaidx disabled, removing
Nov 12 07:08:27 dec xinetd[667]: xinetd Version 2.1.8.9pre14 started with
Nov 12 07:08:27 dec xinetd[667]: libwrap
Nov 12 07:08:27 dec xinetd[667]: options compiled in.
Nov 12 07:08:27 dec xinetd[667]: Started working: 4 available services
Nov 12 07:08:30 dec xinetd: xinetd startup succeeded
Nov 12 07:08:32 dec gpm: gpm startup succeeded
Nov 12 07:08:33 dec crond: crond startup succeeded
Nov 12 07:08:34 dec xfs: xfs startup succeeded
Nov 12 07:08:35 dec xfs: listening on port 7100
Nov 12 07:08:36 dec smb: smbd startup succeeded
Nov 12 07:08:36 dec smb: nmbd startup succeeded
Nov 12 07:08:36 dec anacron: anacron startup succeeded
Nov 12 07:08:37 dec diald[784]: Using fifo /var/adm/diald/demon
Nov 12 07:08:37 dec diald[784]: Using TCP port 10000
Nov 12 07:08:37 dec diald[802]: Using fifo /var/adm/diald/roan
Nov 12 07:08:37 dec diald[784]: Proxy device established on interface sl0
Nov 12 07:08:38 dec diald[784]: start sl0: SIOCSIFMETRIC: Operation not supported
Nov 12 07:08:38 dec diald[784]: Diald initial setup completed.
Nov 12 07:08:38 dec diald[802]: Proxy device established on interface sl1
Nov 12 07:08:38 dec diald[802]: start sl1: SIOCSIFMETRIC: Operation not supported
Nov 12 07:08:38 dec diald[802]: Diald initial setup completed.
Nov 12 07:08:39 dec /etc/hotplug/net.agent: register event not handled
Nov 12 07:08:39 dec /etc/hotplug/net.agent: register event not handled
Nov 12 07:08:40 dec linuxconf: Running Linuxconf hooks: succeeded
Nov 12 07:08:56 dec gdm[907]: pam_ldap: ldap_start_tls_s Can't contact LDAP server
Nov 12 07:08:56 dec gdm(pam_unix)[907]: session opened for user root by (uid=0)
Nov 12 07:08:56 dec gdm[907]: gdm_slave_session_start: root on :0
Nov 12 07:09:03 dec modprobe: modprobe: Can't locate module char-major-14
Nov 12 07:09:04 dec gnome-name-server[1006]: starting
Nov 12 07:09:04 dec gnome-name-server[1006]: name server starting
***********************
ifconfig
***********************
mode ppp # We will be using a ppp connection
connect "/etc/ppp/ppp-up-wvdial" # This is the chat script to connect to the ISP
# (/usr/sbin/wvdial), (/etc/diald/connect), or
# (/etc/ppp/ppp-up-wvdial)
disconnect "/etc/ppp/ppp-down-wvdial" # to disconnect from the ISP
device /dev/ttyS0 # Serial device your modem is attached to.
speed 115200 # Max speed serial port and modem can use.
modem # Treat the serial device as a modem
crtscts # Specifies hardware handshaking with modem
local 192.168.1.1 # Address of dummy network interface. (192.168.1.1)
remote 192.168.1.2 # Address of dummy gateway. (192.168.1.2)
dynamic # Dynamic local IP address
-buffer-packets # Switch off packet buffering
buffer_size 0 # Really try to switch it off
defaultroute # addroute /etc/rc.d/rc.firewall
# You now allow packets to be forwarded on the real interface
# *with* masquerading. You can do this in your diald addroute
# script, or your ip-up script.
# (per /usr/src/diald-1.0/README.masq)
# Dummy interface will be default route
accounting-log /var/log/diald.log # accounting log of connection start/stop times
fifo /etc/diald/diald.ctl # fifo for communication with diald daemon
include /usr/lib/diald/standard.filter # Packet monitoring specification file
debug 15 # The first four debugging options, listed in diald man
# pages, are turned on. ie (1+2+4+8=15)
# Start of Script
#!/bin/sh
#
# script to start 'wvdial'
#
# file: /etc/ppp/ppp-up-wvdial
#
wvdial hylander@mindspring.com & #<-- isp is the part of the wvdial.conf to use (you may have
#many sections) and '&' starts it in background
#--- end of script ----
Is 'wvdial' not smart enough to background itself once the interface is up? What happens if you take out the '&'? If you still have problems, post an excerpt from /var/log/messages that shows diald trying to bring the interface up. (For example, when the interface is down, start tailing /var/log/messages. Then do (say) "ping sourceforge.net" on another terminal window or virtual console.)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have same issue. Similar config: diald 1.0, redhat 7.1 kernel 2.2.
Have found error in hotplug net.agent script. No exit after ifup call to sl0 give bogus message about register event not handled..... Change script and add exit after call to ifup.
Should diald create a LISTEN on the port specificed for the www services in /etc/services?? I never see that on a netstat. I may be way off base here......
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
using Redhat 7.1
Kernel 2.4.5
diald 1.0
diald never dials the modem automatically after bootup.
I end up killing diald, dialing the motorola isdn modem using wvdial manually.
I then activate ip masquerading manually from the command line using /etc/rc.d/rc.firewall
so I may use the internet.
Is there anything obvious in the files below that would prevent diald to dial out?
**************
/var/log/messages
****************
Nov 12 07:08:16 dec ifup: inet (DARPA Internet) inet6 (IPv6) ax25 (AMPR AX.25)
Nov 12 07:08:22 dec kernel: uhci.c: USB Universal Host Controller Interface driver
Nov 12 07:08:16 dec ifup: netrom (AMPR NET/ROM) ipx (Novell IPX) ddp (Appletalk DDP)
Nov 12 07:08:22 dec kernel: NET4: Linux TCP/IP 1.0 for NET4.0
Nov 12 07:08:16 dec ifup: x25 (CCITT X.25)
Nov 12 07:08:22 dec kernel: IP Protocols: ICMP, UDP, TCP
Nov 12 07:08:16 dec network: Bringing up interface eth0: succeeded
Nov 12 07:08:22 dec kernel: IP: routing cache hash table of 512 buckets, 4Kbytes
Nov 12 07:08:22 dec kernel: TCP: Hash tables configured (established 8192 bind 8192)
Nov 12 07:08:22 dec kernel: ip_conntrack (768 buckets, 6144 max)
Nov 12 07:08:22 dec kernel: ip_tables: (c)2000 Netfilter core team
Nov 12 07:08:22 dec kernel: NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
Nov 12 07:08:22 dec kernel: VFS: Mounted root (ext2 filesystem) readonly.
Nov 12 07:08:22 dec kernel: Freeing unused kernel memory: 200k freed
Nov 12 07:08:22 dec kernel: Adding Swap: 32216k swap-space (priority -1)
Nov 12 07:08:22 dec netfs: Mounting other filesystems: succeeded
Nov 12 07:08:23 dec automount[603]: starting automounter version 3.1.7, path = /misc, maptype = file, mapname = /etc/auto.misc
Nov 12 07:08:23 dec automount[603]: using kernel protocol version 3
Nov 12 07:08:24 dec autofs: autofs startup succeeded
Nov 12 07:08:24 dec atd: atd startup succeeded
Nov 12 07:08:25 dec named: named startup succeeded
Nov 12 07:08:25 dec named[630]: starting BIND 9.1.0 -u named
Nov 12 07:08:25 dec named[630]: using 1 CPU
Nov 12 07:08:25 dec sshd: Starting sshd:
Nov 12 07:08:25 dec named[635]: loading configuration from '/etc/named.conf'
Nov 12 07:08:26 dec named[635]: the default for the 'auth-nxdomain' option is now 'no'
Nov 12 07:08:26 dec named[635]: no IPv6 interfaces found
Nov 12 07:08:26 dec named[635]: listening on IPv4 interface lo, 127.0.0.1#53
Nov 12 07:08:26 dec named[635]: listening on IPv4 interface eth0, 10.0.0.10#53
Nov 12 07:08:26 dec sshd: succeeded
Nov 12 07:08:26 dec sshd:
Nov 12 07:08:26 dec rc: Starting sshd: succeeded
Nov 12 07:08:26 dec named[635]: running
Nov 12 07:08:27 dec xinetd[667]: amanda disabled, removing
Nov 12 07:08:27 dec xinetd[667]: ftp disabled, removing
Nov 12 07:08:27 dec xinetd[667]: time disabled, removing
Nov 12 07:08:27 dec xinetd[667]: time disabled, removing
Nov 12 07:08:27 dec xinetd[667]: telnet disabled, removing
Nov 12 07:08:27 dec xinetd[667]: talk disabled, removing
Nov 12 07:08:27 dec xinetd[667]: rsync disabled, removing
Nov 12 07:08:27 dec xinetd[667]: shell disabled, removing
Nov 12 07:08:27 dec xinetd[667]: login disabled, removing
Nov 12 07:08:27 dec xinetd[667]: exec disabled, removing
Nov 12 07:08:27 dec xinetd[667]: ntalk disabled, removing
Nov 12 07:08:27 dec xinetd[667]: linuxconf disabled, removing
Nov 12 07:08:27 dec xinetd[667]: finger disabled, removing
Nov 12 07:08:27 dec xinetd[667]: echo-udp disabled, removing
Nov 12 07:08:27 dec xinetd[667]: echo disabled, removing
Nov 12 07:08:27 dec xinetd[667]: daytime-udp disabled, removing
Nov 12 07:08:27 dec xinetd[667]: daytime disabled, removing
Nov 12 07:08:27 dec xinetd[667]: chargen-udp disabled, removing
Nov 12 07:08:27 dec xinetd[667]: chargen disabled, removing
Nov 12 07:08:27 dec xinetd[667]: amidxtape disabled, removing
Nov 12 07:08:27 dec xinetd[667]: amandaidx disabled, removing
Nov 12 07:08:27 dec xinetd[667]: xinetd Version 2.1.8.9pre14 started with
Nov 12 07:08:27 dec xinetd[667]: libwrap
Nov 12 07:08:27 dec xinetd[667]: options compiled in.
Nov 12 07:08:27 dec xinetd[667]: Started working: 4 available services
Nov 12 07:08:30 dec xinetd: xinetd startup succeeded
Nov 12 07:08:32 dec gpm: gpm startup succeeded
Nov 12 07:08:33 dec crond: crond startup succeeded
Nov 12 07:08:34 dec xfs: xfs startup succeeded
Nov 12 07:08:35 dec xfs: listening on port 7100
Nov 12 07:08:36 dec smb: smbd startup succeeded
Nov 12 07:08:36 dec smb: nmbd startup succeeded
Nov 12 07:08:36 dec anacron: anacron startup succeeded
Nov 12 07:08:37 dec diald[784]: Using fifo /var/adm/diald/demon
Nov 12 07:08:37 dec diald[784]: Using TCP port 10000
Nov 12 07:08:37 dec diald[802]: Using fifo /var/adm/diald/roan
Nov 12 07:08:37 dec diald[784]: Proxy device established on interface sl0
Nov 12 07:08:38 dec diald[784]: start sl0: SIOCSIFMETRIC: Operation not supported
Nov 12 07:08:38 dec diald[784]: Diald initial setup completed.
Nov 12 07:08:38 dec diald[802]: Proxy device established on interface sl1
Nov 12 07:08:38 dec diald[802]: start sl1: SIOCSIFMETRIC: Operation not supported
Nov 12 07:08:38 dec diald[802]: Diald initial setup completed.
Nov 12 07:08:39 dec /etc/hotplug/net.agent: register event not handled
Nov 12 07:08:39 dec /etc/hotplug/net.agent: register event not handled
Nov 12 07:08:40 dec linuxconf: Running Linuxconf hooks: succeeded
Nov 12 07:08:56 dec gdm[907]: pam_ldap: ldap_start_tls_s Can't contact LDAP server
Nov 12 07:08:56 dec gdm(pam_unix)[907]: session opened for user root by (uid=0)
Nov 12 07:08:56 dec gdm[907]: gdm_slave_session_start: root on :0
Nov 12 07:09:03 dec modprobe: modprobe: Can't locate module char-major-14
Nov 12 07:09:04 dec gnome-name-server[1006]: starting
Nov 12 07:09:04 dec gnome-name-server[1006]: name server starting
***********************
ifconfig
***********************
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
172.16.1.8 0.0.0.0 255.255.255.255 UH 40 0 0 sl1
192.168.0.2 0.0.0.0 255.255.255.255 UH 40 0 0 sl0
10.0.0.0 0.0.0.0 255.255.255.0 U 40 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 40 0 0 lo
0.0.0.0 0.0.0.0 0.0.0.0 U 40 0 0 sl1
*************************
netstat -rn
************************
eth0 Link encap:Ethernet HWaddr 00:00:F8:D8:22:E5
inet addr:10.0.0.10 Bcast:10.0.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:33 errors:0 dropped:0 overruns:0 frame:0
TX packets:69 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:11 Base address:0xec00
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:64 errors:0 dropped:0 overruns:0 frame:0
TX packets:64 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
sl0 Link encap:Serial Line IP
inet addr:192.168.0.1 P-t-P:192.168.0.2 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:10
sl1 Link encap:Serial Line IP
inet addr:172.16.128.1 P-t-P:172.16.1.8 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:10
*************************************
etc/diald.conf
************************************
# START SCRIPT
mode ppp # We will be using a ppp connection
connect "/etc/ppp/ppp-up-wvdial" # This is the chat script to connect to the ISP
# (/usr/sbin/wvdial), (/etc/diald/connect), or
# (/etc/ppp/ppp-up-wvdial)
disconnect "/etc/ppp/ppp-down-wvdial" # to disconnect from the ISP
device /dev/ttyS0 # Serial device your modem is attached to.
speed 115200 # Max speed serial port and modem can use.
modem # Treat the serial device as a modem
crtscts # Specifies hardware handshaking with modem
local 192.168.1.1 # Address of dummy network interface. (192.168.1.1)
remote 192.168.1.2 # Address of dummy gateway. (192.168.1.2)
dynamic # Dynamic local IP address
-buffer-packets # Switch off packet buffering
buffer_size 0 # Really try to switch it off
defaultroute # addroute /etc/rc.d/rc.firewall
# You now allow packets to be forwarded on the real interface
# *with* masquerading. You can do this in your diald addroute
# script, or your ip-up script.
# (per /usr/src/diald-1.0/README.masq)
# Dummy interface will be default route
accounting-log /var/log/diald.log # accounting log of connection start/stop times
fifo /etc/diald/diald.ctl # fifo for communication with diald daemon
include /usr/lib/diald/standard.filter # Packet monitoring specification file
debug 15 # The first four debugging options, listed in diald man
# pages, are turned on. ie (1+2+4+8=15)
#END SCRIPT
*********************************************
etc/ppp/ppp-up-wvdial
**********************************************
# Start of Script
#!/bin/sh
#
# script to start 'wvdial'
#
# file: /etc/ppp/ppp-up-wvdial
#
wvdial hylander@mindspring.com & #<-- isp is the part of the wvdial.conf to use (you may have
#many sections) and '&' starts it in background
#--- end of script ----
*************************************
/etc/ppp/ppp-down-wvdial
************************************
#!/bin/sh
#
# script to kill 'wvdial'
#
# file: /etc/ppp/ppp-down-wvdial
#
killall wvdial
#---end of script---
*********************************
Is 'wvdial' not smart enough to background itself once the interface is up? What happens if you take out the '&'? If you still have problems, post an excerpt from /var/log/messages that shows diald trying to bring the interface up. (For example, when the interface is down, start tailing /var/log/messages. Then do (say) "ping sourceforge.net" on another terminal window or virtual console.)
I have same issue. Similar config: diald 1.0, redhat 7.1 kernel 2.2.
Have found error in hotplug net.agent script. No exit after ifup call to sl0 give bogus message about register event not handled..... Change script and add exit after call to ifup.
Should diald create a LISTEN on the port specificed for the www services in /etc/services?? I never see that on a netstat. I may be way off base here......