Subject: Troubles with pppd for dialin with mgetty since ugrade to 1.6.1
To: None <netbsd-help@netbsd.org>
From: Gan Uesli Starling <alias@starling.us>
List: netbsd-help
Date: 05/07/2003 15:04:54
I now have a problem with pppd, apparently after yesterday's
upgrade to NetBSD 1.6.1. I run mgetty as/per my own howto
at...

http://starling.us/gus_netbsd/gus_netbsd_mgetty_dialin.html

...and it had worked fine until the upgrade. I have already
done 'make deinstall reinstall' in mgetty+sendfax in hope
it would just disappear. But that did not help. The symptoms
are thus...

I dial-in from a NetBSD 1.6 laptop (just like before) and
mgetty on NetBSD 1.6.1 answers fine. I get auth via PAP
just fine. I can ping back and forth on the PPP link. But
I can't get any throughput out to the LAN where the upgraded
NetBSD 1.6.1 resides.

I don't get any /etc/ppp/resolv.conf file created either,
even tough I am using 'usepeerdns' in the peer file. I do
get resolv.conf when I dial out on same box to an ISP. So
it is not the laptop.

It is not just DNS, I also can't ping by dotted quads beyond
the NetBSD 1.6.1 box. I can ping beyond the PPP IP addr to
the NetBSD 1.6.1 box's ethernet IP.

And netstat reports that I do have a default route to the
far PPP IP addr when the the PPP is up. Nor does
/var/log/messages tell anything bad.

On the tower running Mgetty which answers
dial-in I have these configs...

# /etc/ipnat.conf
map ppp0 192.168.0.0/24 -> 0/32 proxy port ftp ftp/tcp
map ppp0 192.168.0.0/24 -> 0/32 portmap tcp/udp 40000:60000
map ppp0 192.168.0.0/24 -> 0/32
# EOF

# /etc/ipf.conf
pass in from any to any
pass out from any to any
# EOF

#!/sbin/sysctl -f
# /etc/sysctl.conf
net.inet.ip.forwarding=1
net.inet6.ip6.v6only=0
# EOF

On the laptop which dials in I have these...

#!/bin/sh
# /etc/ppp/ppp-up
MODEM=tty03
POP="$1"
if [ -f /var/spool/lock/LCK..$MODEM ]; then
   echo PPP is already running
else
   pppd call $POP
# EOF

# /etc/ppp/peers/foo
#
/dev/tty03
usepeerdns
defaultroute
noipdefault
debug
connect '/usr/sbin/chat -v -f /etc/ppp/peers/foo.chat'
# EOF

# /etc/ppp/peers/foo.chat
#
ABORT "BUSY"
ABORT "NO CARRIER"
ABORT "NO DIALTONE"
'' ATDT5555555
CONNECT ''
# EOF

Thanks,

Gan

-- 

  Mistera Sturno - Rarest Extinct Bird

  <(+)__       Gan Uesli Starling
   ((__/)=-    Kalamazoo, MI, USA
    `||`
     ++        http://starling.us