Subject: Re: MacOS -> NetBSD on null modem?
To: Bruce Anderson <brucea@spacestar.net>
From: Andy Finnell <andyf@vei.net>
List: port-mac68k
Date: 08/17/1999 17:34:17
Bruce Anderson wrote:
> 
> On Mon, Aug 16, 1999 7:53 PM, Andy Finnell <mailto:andyf@vei.net> wrote:
> >First, I got my ISP connection going on my netbsd box so it does have a
> >connection to the internet.  Next, I used tcpdump to monitor packets
> >going to and from my netbsd box on the ppp0 interface ( from the netbsd
> >box to my ISP) and on the ppp1 interface ( between my mac and netbsd box
> >).  Using my *very* limited knowledge of tcpdump, I was able to figure
> >out that packets would go from my Mac to my netbsd box, out to my ISP,
> >back to my netbsd box, and then stop.  Any ideas why it stops when it
> >gets back to my netbsd box?  If you need to see any of my config files,
> >I can post 'em.  Or if you need to see a tcpdump, I can post that too.
> >
> >Thanks in advance,
> >
> >       -andy
> >
> 
> Andy,
> It sounds like your very close to a working setup.
> 
> What release of NetBSD are you running??
> 
> sysctl -a

kern.ostype = NetBSD
kern.osrelease = 1.4
kern.osrevision = 199905
kern.version = NetBSD 1.4 (GENERICSBC) #0: Sat May  8 20:55:03 PDT 1999
    root2@c610:/usr/src/sys/arch/mac68k/compile/GENERICSBC

kern.maxvnodes = 490
kern.maxproc = 276
kern.maxfiles = 956
kern.argmax = 262144
kern.securelevel = -1
kern.hostname = liltike.wireco.net
kern.hostid = 0
kern.clockrate: tick = 16666, tickadj = 66, hz = 60, profhz = 60, stathz
= 60
kern.posix1version = 199009
kern.ngroups = 16
kern.job_control = 1
kern.saved_ids = 0
kern.boottime = Tue Aug 17 07:45:25 1999

kern.domainname = 
kern.maxpartitions = 8
kern.rawpartition = 2
kern.autonicetime = 600
kern.autoniceval = 4
kern.rtc_offset = 0
kern.root_device = sd0
kern.msgbufsize = 4080
kern.fsync = 1
kern.sysvmsg = 1
kern.sysvsem = 1
kern.sysvshm = 1
kern.shortcorename = 0
kern.synchronized_io = 1
kern.iov_max = 1024
vm.loadavg: 0.08 0.09 0.08
vfs.generic.maxtypenum = 20
vfs.ffs.doclusterread = 1
vfs.ffs.doclusterwrite = 1
vfs.ffs.doreallocblks = 0
vfs.ffs.doasyncfree = 1
net.inet.ip.forwarding = 1
net.inet.ip.redirect = 1
net.inet.ip.ttl = 64
net.inet.ip.forwsrcrt = 1
net.inet.ip.directed-broadcast = 0
net.inet.ip.allowsrcrt = 1
net.inet.ip.subnetsarelocal = 1
net.inet.ip.mtudisc = 0
net.inet.ip.anonportmin = 49152
net.inet.ip.anonportmax = 65535
net.inet.ip.mtudisctimeout = 600
net.inet.ip.maxflows = 256
net.inet.icmp.maskrepl = 0
net.inet.tcp.rfc1323 = 1
net.inet.tcp.sendspace = 16384
net.inet.tcp.recvspace = 16384
net.inet.tcp.mssdflt = 512
net.inet.tcp.syn_cache_limit = 10255
net.inet.tcp.syn_bucket_limit = 105
net.inet.tcp.syn_cache_interval = 1
net.inet.tcp.init_win = 1
net.inet.tcp.mss_ifmtu = 0
net.inet.tcp.sack = 1
net.inet.tcp.win_scale = 1
net.inet.tcp.timestamps = 1
net.inet.tcp.compat_42 = 0
net.inet.tcp.cwm = 0
net.inet.tcp.cwm_burstsize = 4
net.inet.tcp.ack_on_push = 0
net.inet.tcp.keepidle = 14400
net.inet.tcp.keepintvl = 150
net.inet.tcp.keepcnt = 8
net.inet.tcp.slowhz = 2
net.inet.tcp.newreno = 0
net.inet.udp.checksum = 1
net.inet.udp.sendspace = 9216
net.inet.udp.recvspace = 41600
hw.machine = mac68k
hw.model = Apple Macintosh IIci  (68030)
hw.ncpu = 1
hw.byteorder = 4321
hw.physmem = 67108864
hw.usermem = 66813952
hw.pagesize = 4096
hw.machine_arch = m68k
machdep.console_device = ttye0
user.cs_path = /usr/bin:/bin:/usr/sbin:/sbin:/usr/pkg/bin:/usr/pkg/sbin:/usr/local/bin:/usr/local/sbin
user.bc_base_max = 2147483647
user.bc_dim_max = 65535
user.bc_scale_max = 2147483647
user.bc_string_max = 2147483647
user.coll_weights_max = 2
user.expr_nest_max = 32
user.line_max = 2048
user.re_dup_max = 255
user.posix2_version = 199212
user.posix2_c_bind = 0
user.posix2_c_dev = 0
user.posix2_char_term = 0
user.posix2_fort_dev = 0
user.posix2_fort_run = 0
user.posix2_localedef = 0
user.posix2_sw_dev = 0
user.posix2_upe = 0
user.stream_max = 20
user.tzname_max = 255
ddb.radix = 16
ddb.maxoff = 268435456
ddb.maxwidth = 80
ddb.lines = 24
ddb.tabstops = 8
ddb.onpanic = 1
ddb.fromconsole = 1


> list your ipnat
> ipnat -l



List of active MAP/Redirect filters:
map ppp0 10.0.0.0/24  -> 0.0.0.0/32  portmap tcp/udp 10000:65000
map ppp0 10.0.0.0/24  -> 0.0.0.0/32 
map ppp1 10.0.0.0/24  -> 0.0.0.0/32  portmap tcp/udp 10000:65000
map ppp1 10.0.0.0/24  -> 0.0.0.0/32 

List of active sessions:

> and
> 
> ifconfig -a
> 
> while connected with ppp that should be informative.

lo0: flags=8009<UP,LOOPBACK,MULTICAST> mtu 32976
        inet 127.0.0.1 netmask 0xff000000 
ppp0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
        inet 10.0.0.1 --> 10.0.0.2 netmask 0xffffffff 
ppp1: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
        inet 206.107.119.86 --> 206.107.119.8 netmask 0xffffff00 
sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 296
sl1: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 296
tun0: flags=10<POINTOPOINT> mtu 1500
tun1: flags=10<POINTOPOINT> mtu 1500
eon0: flags=3<UP,BROADCAST> mtu 1500


Thanks,

	-andy