Hi,
I am 1'st time user of diald and need help.
Basicaly I need it for modem, but when I found - it's not running, I decided to
test it on direct line between two linux boxes (RH 6.1) - with the same result.
Here is shortly written what I was doing:
1. step: I made prefectly runing ppp connection without diald, started from
following script (see included syslog):
/usr/sbin/pppd debug /dev/ttyS1 115200 lock local crtscts connect
"/usr/sbin/chat 'TIMEOUT' '30' '' '' 'gin:--gin:' 'pppuser' 'sword:' 'pas' 'S1'
''"
2. step: I instaled diald-0.99.1-2.rpm and rewrote above script to
/etc/diald.conf like this:
include /usr/lib/diald/standard.filter
mode ppp
connect /etc/diald/connect
redial-timeout 5
device /dev/ttyS1
speed 115200
lock
crtscts
dynamic
local 192.168.1.1
remote 192.168.2.2
defaultroute
debug 0x0088
pppd-options debug
3. step: Starting diald
- proxy device sl0 established ok,
- defaultroute to proxy iface established ok,
- everything seems to be ok
4. step: let's try ping -c 5 123.123.123.123
- ifconfig sl0 is showing TX packets: 10 ok,
- looking to "syslog" on my tty10, chat is passing ok,
- pppd is started by diald - BOOOM
Alhough I am not running any masquearading/firewall I still receive a message:
"The remote system is required to authenticate itself but I couldn't find any
secret (password) which would let it use an IP address"
- this message I do not understand - what for authentication is needed ???
I have a feeling like pppd is started for some other terminal / not ttyS1,
as it should be ...
Thanke You for Your prompt answer Noro
Additional config files:
/etc/host.conf:
order hosts,bind
multi on
/etc/resolv.conf: empty
/etc/ppp/options: debug
/etc/hosts: exept of localhost empty
Here follows "syslog":
1.step after starting ppp script as root:
Dec 10 15:29:32 iva modprobe: can't locate module char-major-108
Dec 10 15:29:32 iva pppd[1475]: pppd 2.3.10 started by root, uid 0
Dec 10 15:29:33 iva pppd[1475]: Serial connection established.
Dec 10 15:29:33 iva pppd[1475]: Using interface ppp0
Dec 10 15:29:33 iva pppd[1475]: Connect: ppp0 <--> /dev/ttyS1
Dec 10 15:29:34 iva pppd[1475]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic
0x9496b5b3> <pcomp> <accomp>]
Dec 10 15:29:34 iva pppd[1475]: rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <magic
0xddaaedaf> <pcomp> <accomp>]
Dec 10 15:29:34 iva pppd[1475]: sent [LCP ConfAck id=0x1 <asyncmap 0x0> <magic
0xddaaedaf> <pcomp> <accomp>]
Dec 10 15:29:34 iva pppd[1475]: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic
0x9496b5b3> <pcomp> <accomp>]
Dec 10 15:29:34 iva pppd[1475]: sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <compress VJ
0f 01>]
Dec 10 15:29:34 iva pppd[1475]: sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#)
15> <bsd v1 15>]
Dec 10 15:29:34 iva pppd[1475]: rcvd [IPCP ConfNak id=0x1 <addr 10.20.30.2>]
Dec 10 15:29:34 iva pppd[1475]: sent [IPCP ConfReq id=0x2 <addr 10.20.30.2> <compress
VJ 0f 01>]
Dec 10 15:29:34 iva pppd[1475]: rcvd [CCP ConfAck id=0x1 <deflate 15> <deflate(old#)
15> <bsd v1 15>]
Dec 10 15:29:34 iva pppd[1475]: rcvd [IPCP ConfAck id=0x2 <addr 10.20.30.2> <compress
VJ 0f 01>]
Dec 10 15:29:37 iva pppd[1475]: rcvd [IPCP ConfReq id=0x1 <addr 10.20.30.1> <compress
VJ 0f 01>]
Dec 10 15:29:37 iva pppd[1475]: sent [IPCP ConfAck id=0x1 <addr 10.20.30.1> <compress
VJ 0f 01>]
Dec 10 15:29:37 iva pppd[1475]: local IP address 10.20.30.2
Dec 10 15:29:37 iva pppd[1475]: remote IP address 10.20.30.1
Dec 10 15:29:37 iva pppd[1475]: Script /etc/ppp/ip-up started (pid 1477)
3.step - after starting diald (no arguments) from shell prompt as root...
Dec 10 15:43:58 iva diald[1527]: keepup parsing error. Got token 'tcp.ssl'. Not a
known tcp service port.
Dec 10 15:43:58 iva diald[1527]: parse string: 'tcp 120 tcp.dest=tcp.ssl'
Dec 10 15:43:58 iva diald[1527]: keepup parsing error. Got token 'tcp.ssl'. Not a
known tcp service port.
Dec 10 15:43:58 iva diald[1527]: parse string: 'tcp 120 tcp.source=tcp.ssl'
Dec 10 15:43:58 iva modprobe: can't locate module tap0
...
Dec 10 15:43:58 iva modprobe: can't locate module tap1
Dec 10 15:43:58 iva kernel: CSLIP: code copyright 1989 Regents of the University of
California
Dec 10 15:43:58 iva kernel: SLIP: version 0.8.4-NET3.019-NEWTTY-MODULAR (dynamic
channels, max=256) (6 bit encapsulation enabled).
Dec 10 15:43:58 iva kernel: SLIP linefill/keepalive option.
Dec 10 15:43:58 iva diald[1528]: Proxy device established on interface sl0
Dec 10 15:43:58 iva diald[1528]: running '/sbin/ifconfig sl0 192.168.1.1 pointopoint
192.168.2.2 broadcast 0.0.0.0 netmask 255.255.255.255 mtu 1500 up'
Dec 10 15:43:58 iva diald[1528]: SIGCHLD[1]: pid 1548 system, status 0
Dec 10 15:43:58 iva diald[1528]: start sl0: Establishing routes for sl0
Dec 10 15:43:58 iva diald[1528]: running '/sbin/route add default metric 1 netmask
0.0.0.0 dev sl0'
Dec 10 15:43:58 iva diald[1528]: SIGCHLD[2]: pid 1549 system, status 0
Dec 10 15:43:58 iva diald[1528]: Changed snoop device to sl0
Dec 10 15:43:58 iva diald[1528]: Diald initial setup completed.
ifconfig sl0:
sl0 Link encap:Serial Line IP
inet addr:192.168.1.1 P-t-P:192.168.2.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
route -rn:
Dec 10 15:45:55 iva last message repeated 3 times
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.2 * 255.255.255.255 UH 0 0 0 sl0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default * 0.0.0.0 U 1 0 0 sl0
4.step - after ping -c 10 123.123.123.123
Dec 10 15:48:50 iva diald[1528]: Trigger: icmp 192.168.1.1/257
123.123.123.123/257
Dec 10 15:48:50 iva diald[1528]: Calling site 192.168.2.2
Dec 10 15:48:51 iva diald[1528]: running '/etc/diald/connect'
Dec 10 15:48:52 iva diald[1528]: SIGCHLD[3]: pid 1558 dial, status 0
Dec 10 15:48:52 iva diald[1528]: Connected to site 192.168.2.2
Dec 10 15:48:52 iva diald[1560]: Running pppd: /usr/sbin/pppd -defaultroute -detach
crtscts mtu 1500 mru 1500 debug
Dec 10 15:48:52 iva diald[1528]: Running pppd (pid = 1560).
Dec 10 15:48:52 iva modprobe: can't locate module char-major-108
Dec 10 15:48:52 iva kernel: PPP: version 2.3.7 (demand dialling)
Dec 10 15:48:52 iva kernel: PPP line discipline registered.
Dec 10 15:48:52 iva kernel: registered device ppp0
Dec 10 15:48:52 iva pppd[1560]: The remote system is required to authenticate itself
but I
Dec 10 15:48:52 iva pppd[1560]: couldn't find any secret (password) which would let it
use an IP address.