Greetings,

I have an unusual problem with diald. Our team has setup a system whereby
engineers may dial directly into a customer's server to support it. We utilize
Win98 and NT 4.0 clients running a VB program that calls scripts via rsh to
create a connection via diald on our
Linux dialout server, which contains kernel 2.2, Red Hat 5.2, Diald 0.16, and,
Chat 1.17.

All customers have identical NT servers, with identical setups.

We currently support 50+ sites and diald has proven to be an excellent piece of
software for gaining access to a customer's server. I was hoping for some
feedback concerning the following specific behavior:

Three sites that we connect to, all with identical configuration/script files
as any other site we support (except the IP addressess and secrets of course)
have the ppp daemon returning our Linux dialout server gateway address, rather
than the supplied local IP address after a connection has been established. I
have tried sleeps at various points throughout the scripts, adding the keyword
'dynamic' to the site's diald config files, as well as, pausing the VB program
to allow scripts to complete their runs.

I have also tried substituting the local IP addresses of these three sites with
another site's local IP that returns the correct local IP after a connection.
The ppp daemon returns that a connection has been made and that the host local
IP is correct. Once I use the correct local IP address, our local gateway is
returned (?).

I have consulted the man pages and read some rfc to try and understand this
behavior to no avail. I'm just at the 'comfortable' stage with Linux and am by
no means a pro with this OS...  ok, ok, I'm in the wannabe stage - so teach me!
<g>

All the IP addressess are class III, and below I have listed samples of
scripts. Any help you may have on this would be greatly appreciated!

Thanks in advance,
-Brady

Brady C. Flax
GE Industrial Systems
Salem Va
757.378.3378
[EMAIL PROTECTED]


-------------------------------------------------------------------------------
----------
Configuration file used by my VB program for users to dial remote sites.
Users click site they want and underlying call to rshell runs appropriate
script
-------------------------------------------------------------------------------
----------
#Each site has an associate diald file using the File <Name> below for a
reference
#File    Phone Number        Primary IP    Display Name Server

"Site_1","9,1,800,5551212","255.0.0.0","Steel and Stuff","DIALOUTSERVER" 
"Site_2","9,1,888,1234567","255.255.0.0","Plastics-r-us","DIALOUTSERVER"      
"Site_3","9,1,900,9998888","255.255.255.0","CustomerMoneyBags","DIALOUTSERVER"


-------------------------------------------------------------------------------
----------
Chap-Secrets file - Nothing special here; customer sites have matching secrets.
(Handshakes work perfectly - all sites are configured identically)
-------------------------------------------------------------------------------
----------
# client        server          secret   
DIALOUTSERVER  Site_1_Server  Secret_1   
DIALOUTSERVER  Site_2_Server  Secret_2         
DIALOUTSERVER  Site_3_Server  Secret_3


-------------------------------------------------------------------------------
----------
Chat file - again, pretty simple, just assign the applicable environment
variables.
(Chat never errors out - sites connect, but IP address returned is our gateway,
not the local IP address we need to thread through a customers network).
-------------------------------------------------------------------------------
----------
#!/bin/sh                    
# PPP connection script for Steel and Stuff                         
PHONE_NUMBER="9,1,800,5551212"
SITE_NAME="Site_1"
. /etc/diald/chat.dialer.ppp 


-------------------------------------------------------------------------------
----------
chat.dialer.ppp script - The VB user program also uses the report for last
connect time and connect speed or a site.
-------------------------------------------------------------------------------
----------
# -r == report using stderr
chat -r /var/log/diald.$SITE_NAME.connect


-------------------------------------------------------------------------------
----------
conf.Site_1 - This works fine for all but three of 50+ sites we dial directly
into...
-------------------------------------------------------------------------------
----------
mode ppp                                 
lock                                     
device /dev/ttyR0                        
device /dev/ttyR1                        
device /dev/ttyR2                        
device /dev/ttyR3                        
device /dev/ttyR4                        
device /dev/ttyR5                        
device /dev/ttyR6                        
device /dev/ttyR7                        
accounting-log /var/log/diald/diald.Site_1 
fifo /var/adm/diald.Site_1          
connect /etc/diald/chat.Site_1             
speed 115200                             
modem                                    
crtscts                                  
reroute                                  
# The following local IP is what's not being returned by pppd - instead it
returns our
# dialout server's gateway address... (???)
local 255.255.255.250                       
remote 255.255.255.251 
# added dynamic to no avail - still returns gateway address...
dynamic
# standard.filter contains only one line: 'ignore any any'
include /usr/lib/diald/standard.filter  


-------------------------------------------------------------------------------
----------
Last but not least, here's a 'ps x' screen dump. Of course, all IP's have been
changed to protect the innocent <g>. All the FIFOs have been established, and
dialing out works great except for three sites. The server is very clean, only
the bare necessities loaded.
-------------------------------------------------------------------------------
----------

PID TTY STAT TIME COMMAND                                                      
    1  ?  S    0:03 init [3]

    2  ?  SW   0:00 (kflushd)

    3  ?  SW<  0:00 (kswapd)

    4  ?  SW   0:00 (nfsiod)

    5  ?  SW   0:00 (nfsiod)

    6  ?  SW   0:00 (nfsiod)

    7  ?  SW   0:00 (nfsiod)

   33  ?  S    0:01 /sbin/kerneld

  231  ?  S    0:00 crond

  243  ?  S    0:00 inetd

  255  ?  S    0:00 lpd

  269  ?  S    0:00 sendmail: accepting connections on port 25

  307  ?  S    0:00 smbd -D

  316  ?  S    0:26 nmbd -D

  342  ?  S    0:00 /usr/local/sbin/ms_proxy -L 0.0.0.0 -M 255.255.252.0       
 1047   1 S    0:00 /sbin/mingetty tty1

 1048   2 S    0:00 /sbin/mingetty tty2

 1049   3 S    0:00 /sbin/mingetty tty3

 1050   4 S    0:00 /sbin/mingetty tty4

 1051   5 S    0:00 /sbin/mingetty tty5

 1052   6 S    0:00 /sbin/mingetty tty6

 1054  ?  S    0:00 update (bdflush)

 6237  ?  S    0:02 syslogd

 6246  ?  S    0:00 klogd

10490  ?  S    0:00 /usr/sbin/pppd -detach modem crtscts mtu 1500 mru 1500
remot 
11215  ?  S    0:00 /etc/commstatussvr/commstatussvr1.1

11281  s2 R    0:00 ps x

11282  s2 R    0:00 -bash

11985  ?  S    0:00 /usr/sbin/diald -f /etc/diald/conf.servr -- remotename
servr 
11996  ?  S    0:00 /usr/sbin/diald -f /etc/diald/conf.jlusdb -- remotename
jlus 
12007  ?  S    0:00 /usr/sbin/diald -f /etc/diald/conf.himmi2 -- remotename
himm 



-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]

Reply via email to