Colegas,

            Eu tenho uma solução de dialbox na minha casa, ou seja, ela é o
gateway dos computadores da minha casa, esta roda em redhat 5.2 com kernel
2.0.38 + firewall ipfwadm, porém quiz atualizar a solução colocando redhat
6.2 com kernel 2.2.17 + ipchain e samba, porém o diald que usava no 5.2 era
o diald 0.16 e vi que existe outro o diald 0.99, instalei o bicho porém deu
muito problema que mostro abaixo,

            Por favor me deem idéias pois to meio perdido. segue o log do
problema, o connect e o diald.conf

Valeu gente
Alexandre

log

Jan  5 20:30:15 firewall diald[438]: start sl0: SIOCSIFMETRIC: Operation not
supported
Jan  5 20:30:25 firewall diald[438]: Trigger: tcp       192.168.0.5/1025
200.202.248.17/23
Jan  5 20:30:25 firewall diald[438]: Calling site 192.168.0.6
Jan  5 20:30:25 firewall diald[438]: Removed stale lock on ttyS0 (pid 419)
Jan  5 20:30:26 firewall connect: Initializing Modem
Jan  5 20:30:26 firewall chat[445]: timeout set to 5 seconds
Jan  5 20:30:26 firewall chat[445]: send (ATZ&C1&D2%C0^M)
Jan  5 20:30:26 firewall chat[445]: timeout set to 45 seconds
Jan  5 20:30:26 firewall chat[445]: expect (OK)
Jan  5 20:30:26 firewall chat[445]: ATZ&C1&D2%C0^M^M
Jan  5 20:30:26 firewall chat[445]: OK
Jan  5 20:30:26 firewall chat[445]:  -- got it
Jan  5 20:30:26 firewall chat[445]: send (^M)
Jan  5 20:30:26 firewall connect: Dialing system
Jan  5 20:30:26 firewall chat[447]: timeout set to 45 seconds
Jan  5 20:30:26 firewall chat[447]: abort on (NO CARRIER)
Jan  5 20:30:26 firewall chat[447]: abort on (BUSY)
Jan  5 20:30:26 firewall chat[447]: abort on (NO DIAL TONE)
Jan  5 20:30:26 firewall chat[447]: abort on (ERROR)
Jan  5 20:30:26 firewall chat[447]: send (ATS6=5X1DT123-45678^M)
Jan  5 20:30:27 firewall chat[447]: expect (CONNECT)
Jan  5 20:30:27 firewall chat[447]: ^M
Jan  5 20:30:49 firewall chat[447]: ^MATS6=5X1DT123-45678^M^M
Jan  5 20:30:49 firewall chat[447]: CONNECT
Jan  5 20:30:49 firewall chat[447]:  -- got it
Jan  5 20:30:49 firewall chat[447]: send (\d^M)
Jan  5 20:30:50 firewall connect: Connected
Jan  5 20:30:51 firewall connect: Loggin in
Jan  5 20:30:51 firewall chat[451]: timeout set to 5 seconds
Jan  5 20:30:51 firewall chat[451]: expect (name:)
Jan  5 20:30:51 firewall chat[451]:  31200/ARQ/V34/LAPM/V42BIS^M
Jan  5 20:30:51 firewall chat[451]: C^M
Jan  5 20:30:51 firewall chat[451]: #### BEM VINDO ####^M
Jan  5 20:30:51 firewall chat[451]: ^M
Jan  5 20:30:51 firewall chat[451]: Username:
Jan  5 20:30:51 firewall chat[451]:  -- got it
Jan  5 20:30:51 firewall chat[451]: send (??????)
Jan  5 20:30:51 firewall chat[451]: timeout set to 5 seconds
Jan  5 20:30:51 firewall chat[451]: expect (word:)
Jan  5 20:30:51 firewall chat[451]:  minhaconta^M
Jan  5 20:30:51 firewall chat[451]: Password:
Jan  5 20:30:51 firewall chat[451]:  -- got it
Jan  5 20:30:51 firewall chat[451]: send (minhasenha^M)
Jan  5 20:30:51 firewall connect: Starting Comm Protocol
Jan  5 20:30:51 firewall chat[453]: timeout set to 15 seconds
Jan  5 20:30:51 firewall chat[453]: expect (orion3>)
Jan  5 20:30:51 firewall chat[453]:  ^M
Jan  5 20:30:51 firewall chat[453]: orion3>
Jan  5 20:30:51 firewall chat[453]:  -- got it
Jan  5 20:30:51 firewall chat[453]: send (ppp^M)
Jan  5 20:30:52 firewall chat[454]: timeout set to 30 seconds
Jan  5 20:30:52 firewall chat[454]: expect (ppp)
Jan  5 20:30:52 firewall chat[454]: ppp
Jan  5 20:30:52 firewall chat[454]:  -- got it
Jan  5 20:30:52 firewall chat[454]: send (^M)
Jan  5 20:30:52 firewall connect: Protocol started
Jan  5 20:30:52 firewall diald[438]: Connected to site 192.168.0.6
Jan  5 20:30:52 firewall diald[438]: Running pppd (pid = 456).
Jan  5 20:30:52 firewall diald[456]: Running pppd:
/usr/sbin/pppd -defaultroute -detach modem crtscts mtu 1500 mru 1500 debug
Jan  5 20:30:52 firewall kernel: registered device ppp0
Jan  5 20:30:52 firewall pppd[456]: pppd 2.3.11 started by root, uid 0
Jan  5 20:30:52 firewall pppd[456]: Using interface ppp0
Jan  5 20:30:52 firewall pppd[456]: Connect: ppp0 <--> /dev/ttyS0
Jan  5 20:30:52 firewall pppd[456]: sent [LCP ConfReq id=0x1 <asyncmap 0x0>
<magic 0xff48a13b> <pcomp> <accomp>]
Jan  5 20:30:54 firewall pppd[456]: rcvd [LCP ConfReq id=0xc3 <asyncmap
0xa0000> <magic 0x13233326> <pcomp> <accomp>]
Jan  5 20:30:54 firewall pppd[456]: sent [LCP ConfAck id=0xc3 <asyncmap
0xa0000> <magic 0x13233326> <pcomp> <accomp>]
Jan  5 20:30:55 firewall pppd[456]: sent [LCP ConfReq id=0x1 <asyncmap 0x0>
<magic 0xff48a13b> <pcomp> <accomp>]
Jan  5 20:30:55 firewall pppd[456]: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0>
<magic 0xff48a13b> <pcomp> <accomp>]
Jan  5 20:30:55 firewall pppd[456]: sent [IPCP ConfReq id=0x1 <addr 0.0.0.0>
<compress VJ 0f 01>]
Jan  5 20:30:55 firewall pppd[456]: rcvd [IPCP ConfNak id=0x1 <addr
200.255.172.39>]
Jan  5 20:30:55 firewall pppd[456]: sent [IPCP ConfReq id=0x2 <addr
200.255.172.39> <compress VJ 0f 01>]
Jan  5 20:30:55 firewall pppd[456]: rcvd [IPCP ConfAck id=0x2 <addr
200.255.172.39> <compress VJ 0f 01>]
Jan  5 20:30:58 firewall pppd[456]: rcvd [IPCP ConfReq id=0x73 <compress VJ
0f 00> <addr 200.255.172.244>]
Jan  5 20:30:58 firewall pppd[456]: sent [IPCP ConfAck id=0x73 <compress VJ
0f 00> <addr 200.255.172.244>]

                                    ==================> Olha o problema

Jan  5 20:30:58 firewall pppd[456]: Peer is not authorized to use remote
address 200.255.172.244
Jan  5 20:30:58 firewall pppd[456]: sent [IPCP TermReq id=0x3 "Unauthorized
remote IP address"]
Jan  5 20:30:58 firewall pppd[456]: rcvd [IPCP TermAck id=0x3]
Jan  5 20:30:58 firewall pppd[456]: sent [LCP TermReq id=0x2 "No network
protocols running"]
Jan  5 20:30:58 firewall pppd[456]: rcvd [LCP TermAck id=0x2]
Jan  5 20:30:58 firewall pppd[456]: Connection terminated.
Jan  5 20:30:58 firewall pppd[456]: Connect time 0.1 minutes.
Jan  5 20:30:58 firewall pppd[456]: Sent 201 bytes, received 181 bytes.
Jan  5 20:30:58 firewall pppd[456]: Exit.

                                        ===============> Olha o Problema

Jan  5 20:30:58 firewall diald[438]: start sl0: SIOCSIFMETRIC: Operation not
supported
Jan  5 20:30:59 firewall diald[438]: start sl0: SIOCADDRT: File exists
Jan  5 20:30:59 firewall diald[438]: start sl0: SIOCADDRT: File exists
Jan  5 20:30:59 firewall diald[438]: stop ppp0: SIOCDELRT: No such process

Jan  5 20:30:59 firewall kernel: ppp: ppp0 not active
Jan  5 20:30:59 firewall diald[438]: stop ppp0: SIOCSIFFLAGS: Device not
configured
Jan  5 20:30:59 firewall diald[438]: Disconnected. Call duration 7 seconds.
Jan  5 20:30:59 firewall diald[438]: IP transmitted 180 bytes and received 0
bytes.
Jan  5 20:31:00 firewall diald[438]: Delaying 2 seconds before clear to
dial.
Jan  5 20:31:33 firewall kernel: VFS: Disk change detected on device fd(2,0)


connect

#!/bin/sh
# Copyright (c) 1996, Eric Schenk.
#
# This script is intended to give an example of a connection script that
# uses the "message" facility of diald to communicate progress through
# the dialing process to a diald monitoring program such as dctrl or
diald-top.
# It also reports progress to the system logs. This can be useful if you
# are seeing failed attempts to connect and you want to know when and why
# they are failing.
#
# This script requires the use of chat-1.9 or greater for full
# functionality. It should work with older versions of chat,
# but it will not be able to report the reason for a connection failure.

# Configuration parameters

#Chat time-outs
TO_DIAL=45
TO_LOGIN_NAME=5
TO_LOGIN_PASS=5
TO_PROMPT=15

WAIT_POST_CONNECT=1

#Chat options
CHAT_OPT="-v"

# The initialization string for your modem

MODEM_INIT="ATZ&C1&D2%C0"
#MODEM_INIT="ATZ"

# The phone number to dial
PHONE_NUMBER="123-45678"

# The chat sequence to recognize that the remote system
# is asking for your user name.
USER_CHAT_SEQ="name:--name:--name:--name:--name:--name:--name:"

# The string to send in response to the request for your user name.
USER_NAME="minhaconta"

# The chat sequence to recongnize that the remote system
# is asking for your password.
PASSWD_CHAT_SEQ="word:--word:--word:--word"

# The string to send in response to the request for your password.
PASSWORD="minhasenha"

# The prompt the remote system will give once you are logged in
# If you do not define this then the script will assume that
# there is no command to be issued to start up the remote protocol.
#PROMPT="annex:"
PROMPT="orion3>"

# The command to issue to start up the remote protocol
PROTOCOL_START="ppp"

# The string to wait for to see that the protocol on the remote
# end started OK. If this is empty then no check will be performed.
START_ACK="ppp"

# Pass a message on to diald and the system logs.
function message () {
[ $FIFO ] && echo "message $*" >$FIFO
logger -p local2.info -t connect "$*"
}

# Initialize the modem. Usually this just resets it.
message "Initializing Modem"
chat $CHAT_OPT TIMEOUT 5 "" $MODEM_INIT TIMEOUT 45 OK ""
if [ $? != 0 ]; then
    message "Failed to initialize modem"
    exit 1
fi

# Dial the remote system.

message "Dialing system"
# "" ATDT$PHONE_NUMBER \
chat $CHAT_OPT \
 TIMEOUT $TO_DIAL \
 ABORT "NO CARRIER" \
 ABORT BUSY \
 ABORT "NO DIAL TONE" \
 ABORT ERROR \
 "" ATS6=5X1DT$PHONE_NUMBER \
 CONNECT "\d"
case $? in
   0) message Connected;;
   1) message "Chat Error"; exit 1;;
   2) message "Chat Script Error"; exit 1;;
   3) message "Chat Timeout"; exit 1;;
   4) message "No Carrier"; exit 1;;
   5) message "Busy"; exit 1;;
   6) message "No DialTone"; exit 1;;
   7) message "Modem Error"; exit 1;;
   *)
esac

sleep $WAIT_POST_CONNECT;

# We're connected try to log in.
message "Loggin in"
chat $CHAT_OPT \
 TIMEOUT $TO_LOGIN_NAME \
 $USER_CHAT_SEQ \\q$USER_NAME \
 TIMEOUT $TO_LOGIN_PASS \
 $PASSWD_CHAT_SEQ $PASSWORD
if [ $? != 0 ]; then
    message "Failed to log in"
    exit 1
fi

# We logged in, try to start up the protocol (provided that the
# user has specified how to do this)

#if [ $PROMPT ]; then
    message "Starting Comm Protocol"
    chat $CHAT_OPT TIMEOUT $TO_PROMPT $PROMPT $PROTOCOL_START
    if [ $? != 0 ]; then
        message "Prompt not received"
        exit 1
    fi
#fi

if [ $START_ACK ]; then
    chat $CHAT_OPT TIMEOUT 30 $START_ACK ""
    if [ $? != 0 ]; then
 message "Failed to start Protocol"
 exit 1
    fi
fi

# Success!
message "Protocol started"


diald.conf

accounting-log /var/log/diald.log
fifo /var/run/diald.ctl
connect /usr/lib/diald/connect
device /dev/ttyS0
speed 115200
modem
lock
crtscts
dynamic
local 192.168.0.5
remote 192.168.0.6
mode ppp
defaultroute
include /usr/lib/diald/standard.filter
redial-timeout 2
#redial-backoff-start 3
redial-backoff-start 100
redial-backoff-limit 30
pppd-options debug





Assinantes em 15/04/2001: 2217
Mensagens recebidas desde 07/01/1999: 109199
Historico e [des]cadastramento: http://linux-br.conectiva.com.br
Assuntos administrativos e problemas com a lista: 
            mailto:[EMAIL PROTECTED]

Responder a