Subject: Re: MacOS -> NetBSD on null modem?
To: NetBSD/mac68k <port-mac68k@netbsd.org>
From: Bruce Anderson <brucea@spacestar.net>
List: port-mac68k
Date: 08/10/1999 22:24:00
--Cyberdog-MixedBoundary-00129DE4
Content-Type: text/enriched; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
<SMALLER><FIXED>Once apon a time. . . .
I use ppp with NiftyTelnet to talk to my headless IIci server (cougar)
like this: Take a look at my set up for in bound null-modem
connections
from my Mac Classic II OS 7.1 (lynx), to the NetBSD machine
Out bound connections are done by using a /etc/ppp/peers/<<XX> file.
Start pppd from /etc/ttys
On my server cougar: (NetBSD 1.3.2 pppd 2.3.1)
#comment out old tty00
% grep tty01 /etc/ttys
#tty00 "/usr/libexec/getty std.19200" vt102 on secure
#This will run ppp0 on tty00 and wait for a connection.
tty00 "/usr/sbin/pppd" unknown on secure
$ grep "lynx" /etc/hosts
192.168.1.121 lynx.myspace.org lynx #
% cat /etc/ppp/options.tty00
38400
0.0.0.0:lynx # 0.0.0.0 is shorhand for this host
# lynx needs to be in /etc/hosts
passive
-detach
local # do not use hardware flow control
lock
netmask 255.255.255.255
#proxyarp # I have a ethernet card in my server
lcp-echo-interval 15 # ping the remote every 15 seconds
lcp-echo-failure 20 # declare link down after 20 pings fail
/etc/ppp/options
# empty file
/etc/ppp/options.tty01
# empty file. All options are now in /etc/ppp/peers/<<file>
/etc/ppp/chap-secrets -> /etc/ppp/pap-secrets
% cat /etc/ppp/pap-secrets
# has a line at the end in it for the remote users
Bruce * ""
All out bound connections use the 'call' syntax /etc/ppp/peers/<<file
name>
% pppd call 603
where 603 is /etc/ppp/peers/603
% cat /etc/ppp/peers/603
# outbound connection to ISP
tty01 57600 # modem port and speed
#connect '/etc/ppp/chat-script "603-XXXX <<acct name>" ' # connect
script
connect '/etc/ppp/chat-script "603-XXXX" ' # connect script
ipparam "Your-ISP.com XXX.XXX.XXX.XXX,XXX.XXX.XXX.XXX
Your-ISP.com,Your.com"
disconnect /etc/ppp/ppp-down
lock # lock the modem port on connect
modem # use full modem control
passive # wait for remote to come up
cdtrcts # use hardware flow control
defaultroute # add default routing when link comes
up
noipdefault # no local defaults for IP addresses
ipcp-accept-local # allow remote to specify our IP
address
ipcp-accept-remote # allow remote to specify his IP
address
lcp-echo-interval 15 # ping the remote every 15 seconds
lcp-echo-failure 20 # declare link down after 20 pings
fail
netmask 255.255.255.0 # netmask for our assigned IP address
domain <<MY-ISP.NET> # domain name we're connecting into
user <<acct-name> # account name to use to log onto
remote
And /etc/ipnat.conf needs some adjusting
cat /etc/ipnat.conf
map ppp0 192.168.1.0/24 -> 0.0.0.0/32 portmap tcp/udp 10000:65000
map ppp0 192.168.1.0/24 -> 0.0.0.0/32
map ppp1 192.168.1.0/24 -> 0.0.0.0/32 portmap tcp/udp 10000:65000
map ppp1 192.168.1.0/24 -> 0.0.0.0/32
On Tue, Aug 10, 1999 6:46 PM, </FIXED></SMALLER>
--Cyberdog-MixedBoundary-00129DE4
Content-Type: application/X-url
Content-Transfer-Encoding: base64
Content-Description: Andy Finnell
bWFpbHRvOmFuZHlmQHZlaS5uZXQ=
--Cyberdog-MixedBoundary-00129DE4
Content-Type: text/enriched; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
<SMALLER><FIXED> wrote:</FIXED></SMALLER><SMALLER><FIXED>
</FIXED></SMALLER><SMALLER><FIXED>>I have a MacOS machine and my
NetBSD machine next to each other
>connected via a null modem. I have them connected via PPP, and can
ping
>one from the other. However, I can't get any TCP applications
(telnet,
>ftp, http ) to work. On the MacOS machine I"m told the host isn't
>responding. However I can see by the status lights that it doesn't
even
>check. On the NetBSD side, telnetting will get as far "Trying
>10.0.0.2..." and just hang there.
>
>The NetBSD machine has IPNAT configured on it. I can post any config
>files you might need to see. Any ideas what's wrong?
>
>Thanks,
>
> -andy
></FIXED></SMALLER><SMALLER><FIXED>
</FIXED></SMALLER><SMALLER><FIXED>
" Stamp out root login's . . . . su "
--Bruce Anderson Student DCTC
</FIXED></SMALLER>
--Cyberdog-MixedBoundary-00129DE4--