Subject: Re: MacOS -> NetBSD on null modem?
To: Bruce Anderson <brucea@spacestar.net>
From: Andy Finnell <andyf@vei.net>
List: port-mac68k
Date: 08/11/1999 17:38:07
I setup my machine like you describe below.  I didn't have to change
much seeing I basically already had that.  However, the same thing still
happens: they can ping each other, but TCP stuff doesn't work.  How did
you configure your Mac?  I once tried this before and got it to work if
both machines were Un*x boxes, but never if one was Un*x and one was
MacOS.  Thanks,

	-andy

Bruce Anderson wrote:
> 
> 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