Dear Hassan,
No problem. My responses are inserted below:
Hassan Monzavi wrote:
> Dear David;
>
> Thank you for your e_mail and I am sorry about my late reply.
>
> You asked for some info in your multi part answer.
>
> 2_ No. 'scoter' is not primary DNS server. But it is a cash DNS and
> 'scoter' and 'cowbird' can use it as DNS server.
>
> 3_ I understand that I need a special configuration on both 'scoter' and
> 'cowbird' to deal with both dial in and dial out connections. If you can
> help me with it would be great.
at cowbird:
Do you also have a private ISP you call from cowbird for normal Internet
access, or do you use scoter exclusively? If the latter, the cowbird needs
only the normal single diald setup, but if the former then you need something
like this (do it all VERY CAREFULLY as root):
1: comment out the following entries in /etc/diald.conf:
dynamic
defaultroute
local
remote
pppd-options
connect
fifo
2: add these to /etc/diald.conf (they prevent the ISP diald from blocking
itself out of operation if some process in cowbird tries general IP requests
while cowbird is dialling scoter)
dial-fail-limit 0
nodev-retry-timeout 30
3: create /etc/diald/isp-diald.conf with entries from #1 as you configured
them for normal ISP dial-out (assuming you already had this working)
4: create /etc/diald/scoter-diald.conf with entries:
local 129.128.112.134
remote 129.128.112.62
pppd-options user hassan
connect /etc/diald/scoter-connect
fifo /etc/diald/scoter-diald.ctl
addroute /etc/diald/scoter-up
5: copy /etc/diald/connect (your normal ISP connection script)
to /etc/diald/scoter-connect and edit it so:
a) the telephone number is for calling scoter
b) USER_NAME=""
c) PASSWORD=""
d) PROMPT=""
Make sure it has mode 700.
6: create /etc/diald/scoter-up:
if [ $5 = "1" ]; then
/sbin/route add -net 129.128.112.62 netmask 255.255.255.0 metric $5 dev $1
fi
Make sure it has mode 700.
7: create (or add to) /etc/ppp/ip-up.local:
if [ $5 = "129.128.112.62" ]; then
/sbin/route add -net 0.0.0.0 netmask 0.0.0.0 gw 129.128.112.62 dev ppp0
fi
Make sure it has mode 700.
8: in /etc/inittab
a) remove the uugetty line for dial-in
b) add:
s1:2345:respawn:/sbin/mgetty -D -x 2 /dev/modem
where s1 (COM2) may perhaps need to be s0 (COM1).
Also, /dev/modem is strictly speaking deprecated these
days; if you use it, _all_ configurations that need the modem
must use it or the locks won't work. /dev/ttyS1 is now preferred.
/dev/cua1 is also deprecated.
The -D option makes it data only, not fax. It is supposed to handle fax
calls as well, and in fact I have successfully sent faxes, but I have yet
to get my USR modem to sync up to an incoming call from a regular
fax machine. (anybody out there can help???)
9: edit /etc/mgetty+sendfax/login.conf:
a) find the line with /AutoPPP/ and un-comment it
b) the line should read:
/AutoPPP/ - - /usr/sbin/pppd auth login +pap -chap modem crtscts lock proxyarp
10: add to (or create with) /etc/ppp/pap-secrets:
hassan * <password> 129.128.112.62
assuming hassan is the account on cowbird you want scoter
to use, and <password> is the correct password.
11: add to /etc/rc.d/rc.local:
/usr/sbin/diald -f /etc/diald/isp-diald.conf
/usr/sbin/diald -f /etc/diald/scoter-diald.conf
NB: do _NOT_ use linuxconf to enable diald operation, since
it a) only knows how to start one, and b) does not allow one
to configure arguments to it.
12: you've made enough changes (esp. /etc/inittab) that
you should reboot cowbird.
At scoter:
The instructions are subtly different, since you only have the
one instance of diald to set up.
1: comment out the following entries in /etc/diald.conf:
dynamic
defaultroute
2: edit the entries in /etc/diald.conf:
local 129.128.112.62
remote 129.128.112.134
pppd-options user hassan
Establish the connection out to cowbird from scoter,
then examine /var/log/messages. There should be a line near the
end from pppd saying proxy route established. If not, try adding
proxyarp to the pppd-options line.
3: edit /etc/diald/connect:
a) the telephone number is for calling cowbird
b) USER_NAME=""
c) PASSWORD=""
d) PROMPT=""
Make sure it has mode 700.
4: in /etc/inittab
a) remove the uugetty line for dial-in
b) add:
s1:2345:respawn:/sbin/mgetty -D -x 2 /dev/modem
5: edit /etc/mgetty+sendfax/login.conf:
a) find the line with /AutoPPP/ and un-comment it
b) the line should read:
/AutoPPP/ - - /usr/sbin/pppd auth login +pap -chap modem crtscts lock proxyarp
6: add to (or create with) /etc/ppp/pap-secrets:
hassan * <password> 129.128.112.134
assuming hassan is the account on scoter you want cowbird
to use, and <password> is the correct password.
7: add to /etc/hosts:
129.128.112.134 cowbird
8: since there is only the one instance of diald, you can either
add it to /etc/rc.d/rc.local as for cowbird (no arguments required)
or you can start it with Linuxconf->control panel->control services,
but linuxconf only arranges for it to be started in the next reboot.
9: Again, you have made enough changes that you need to reboot scoter.
>
>
> 4_ Currently I am using the old fashion 'uugetty' on 'scoter' to answer
> the calls from 'cowbird'. I am very interested to start working with
> 'mgetty'.
see above.
>
>
> Regarding to part 1 of your answer if the real connection thru modem still
> not established other computer can not see the 'cowbird'. In other words
> diald on scoter can not trigger the connection if the request come from
> another computer. It's a sad but logical answer.
The only fixes are a) change their routing table or b) allow them to
rsh to scoter and call cowbird from there manually.
>
>
> The reason I asked this question is, once you have a temporary IP address,
> every body can access the domain using that IP address and in this case
> they can introduce themselves as 'cowbird'. I need a way that 'cowbird'
> and it's IP address remains taken even when I am not connected to the LAN.
> Is there anyway to do this?
They also need to be able to satisfy the pap handshaking. I assume you have
acquired the right to use 129.128.112.134 from your sysadmin? That should
at least avoid its being allowed for anyone else at your establishment.
>
>
> Sincerely,
>
> Hassan
>
> On Mon, 21 Jun 1999, David Warman wrote:
>
> > Hassan Monzavi wrote:
> >
> > > Hi again;
> > >
> > > Thank you for your replies to my question. Here more info about the second
> > > case I mentioned before.
> > >
> > > My computer at home (cowbird, 129.128.112.134) is connected to my computer
> > > at office (scoter, 129.128.112.62) thru a a modem using ppp. I am allowed
> > > to change the routing table in these computers, but I can not do that for
> > > others in domain. The routing table for other computers is something like
> > > this.
> > >
> > > Kernel IP routing table
> > > Destination Gateway Genmask Flags Metric Ref Use Iface
> > > 129.128.112.0 * 255.255.255.0 U 0 0 1037 eth0
> > > loopback * 255.0.0.0 U 0 0 404 lo
> > > default 129.128.112.1 0.0.0.0 UG 0 0 1664 eth0
> > >
> > > 129.128.112.0 is our net and 129.128.112.1 is our router.
> > >
> > > Here is the routing table on the scoter after I ran diald on it (Well I
> > > guess):
> > >
> > > Kernel IP routing table
> > > Destination Gateway Genmask Flags Metric Ref Use Iface
> > > 129.128.112.0 * 255.255.255.0 U 0 0 1040 eth0
> > > loopback * 255.0.0.0 U 0 0 406 lo
> > > default 129.128.112.1 0.0.0.0 UG 0 0 1665 eth0
> > > cowbird.pharmac * 255.255.255.255 UH 1 0 0 sl0
> > >
> > > My question is:
> > >
> > > Are these enough to let cowbird receive e_mail from outside or in case
> > > someone say wants to rlogin to cowbird can do that?
> >
> > A multi-part answer:
> >
> > 1: once connected, cowbird will be proxy-arped to the rest of the LAN
> > and other machines will see it, but they will _not_ see it to cause a
> > dial-out if it is not currently connected.
> >
> > 2: referencing cowbird from scoter should cause dial-out. You should
> > have cowbird in your /etc/hosts file. I presume that scoter is not the
> > primary DNS server for the LAN.
> >
> > 3: at home on cowbird, do you also have a regular ISP to dial into?
> > If so, you will need a somewhat more complex diald setup. I have done
> > this, and can help if needed.
> >
> > 4: I presume you have mgetty set up in /etc/inittab to answer the modem
> > on both scoter and cowbird.
> >
> > 5: Once connected, you should be able to get to the same POP server from
> > cowbird that you use from scoter.
> >
> > 6: a route -n from cowbird before, during, and after connection, might be
> > illuminating if you are having problems getting your mail.
> >
> > Good luck!
> >
> >
> > --
> > Dave Warman
> > ====================================================
> > Warman's First Law:
> > Everything that can be configured, must be
> > Corollary:
> > Defaults aren't
--
Dave Warman
====================================================
Warman's First Law:
Everything that can be configured, must be
Corollary:
Defaults aren't
-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]