Subject: recurring modem problems 8-(
To: NetBSD/mac68k Mailing List <port-mac68k@NetBSD.ORG>
From: SamMaEl <rimsky@teleport.com>
List: port-mac68k
Date: 02/22/1998 06:04:07
	Tonight I've been experimenting with getting a dialup shell on my
NetBSD machine (that is, dialing up my NetBSD machine from another
machine), and not only have I had problems with that, but now my modem
does not even respond when I invoke pppd to try to dialup my ISP.

	I used cu to edit the modem settings to get it to answer the calls
like so:

brahms# cu -p port1
atz
at&f1
atq1
ate0
ats0=1
at&w
atz
~.<enter>
brahms#

	My first problem (besides not being able to find my modem manual
to find some of the more obscure init strings), was that cu didn't like
the ~. to exit. When I enterred ~ it added [brahms] right after the ~, and
when I enterred the period, it said cu: not found and then exitted.
Strange... or maybe that's how it is supposed to quit?

	Next... with the dialup shell, I was finally able to get it to
CONNECT to my modem, but then I couldn't get anything but garbage onto my
terminal. I ran getty std.9600, getty std.38400 and getty Auto-baud, and
none were able to do anything more than put a bunch of garbage characters
on the screen (or nothing at all!) I also tried different modem speeds,
client-side... and same results. 

	My first question(s)... what is the best way to go about getting
the modem to answer the call, and getting NetBSD to send a login prompt
over the line after connect? 

	Next, I also tried to get a dialup PPP server going. And, I pretty
much got it to work. Mac TCP Watcher on the MacOS side (the client) was
able to get the client's IP, 192.168.2.1 and its domain name,
ppp0.woo.org, but any other tests, TCP or UDP failed. And, I couldn't
telnet or ftp to brahms, the NetBSD machine. I checked brahms and it had a
routing entry for ppp0, but my guess is it was not creating a route to the
server FROM the client... and since with FreePPP you can't set your router
manually, I'm not sure how to fix that. I DID try the defaultroute option,
which didn't help... I spent about an hour going over every option in the
man page ;-)

	So, does anyone have any ideas or experiences with getting the PPP
dialup server under NetBSD? (I did it with FreeBSD like... a year or two
ago and can't remember a damn thing) I asked about a week ago about
this... and I think it would be a great candidate for a HOW-TO document.
Maybe if I ever figure it out I'll take a crack at it ;-)

	And lastly, now that my modems have gone haywire under NetBSD, how
the heck am I supposed to set them back to their defaults and make it
STAY? I try using cu to reset them, but first I kept getting a Permission
Denied error:

cu: open (/dev/tty00): Permission denied
cu: All matching ports in use

	And then when I was finally able to get cu to edit it, running
pppd again on it set it to recieve a call again, rather than MAKING the
call to my ISP. I had to plug a modem into my MacOS machine and use a
dialup shell account to get to my email!

	Also, there is a bit of a bug in the /dev/MAKEDEV script.... I
remade my tty* devices (to get cu to work with tty00), and got this:

brahms# ./MAKEDEV tty*
mknod: invalid minor number: p0
chown: tty0p0: No such file or directory
mknod: invalid minor number: p1
chown: tty0p1: No such file or directory
mknod: invalid minor number: p2
[etc.... etc....]

brahms# ls -l tty*
crw-------  1 uucp  wheel   0, 12 Feb 22 05:37 tty0
crw-------  1 uucp  wheel  12,  1 Feb 22 05:37 tty001
crw-------  1 root  wheel  11,  0 Feb 22 05:37 ttye0

	No tty, no tty00 or tty01, NO ttyp's at ALL.... and a tty001! ;-)
A lollipop to whoever has enough serial ports to require using 3 digits to
identify them! ;-)

	I don't know how to go about doing a send-pr, so I thought I'd
pass that along... and I hadn't heard anything about it. I'm pretty sure I
have a stock MAKEDEV script... at least, I've not edited it. a ./MAKEDEV
all installed the correct tty* files. Tho, it took considerably longer
than a ./MAKEDEV tty* should ;-)

	Any help is MUCH appreciated, as I have some friends working on a
project with me, which requires them to be able to telnet into my
machine... and until I get my modem to work normally, I can't dialup my
ISP, except under MacOS 8-( And, I've been trying to fix it all night! I
better go to bed though, because it's 6am, and my baseball bat is looking
like it wants to jump in my hands and bash in my monitor... eek!

	Ryan

-----
HELO... my name is rewt... you have SIGKILLed my father... prepare to vi!