Discussion Locked

Modem config for freeBSD

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

How to configure a modem for dial in (to allow connectins to my PC) if my OS is freeBSD.I have 2 modems installed, one is for connecting to my ISP and the other to allow someone to connect to me.
10x

6 replies

by aviko

The folowing is my configuration. It is work fine for a year with FreeBSD 3.3-RELEASE.
Now should de moved to 4.2-RELEAS.

1. I have MOXA C-104 multiport card.
2. My modems is ZyXEL U-1496E+ and U-336E - 2 pieces of each model. They all connected to
MOXA. Tty names are /dev/ttyd[4567].
Additional U-336E on standard COM2 - my way
to the Internet. :)

Parameters for all RS-232 lines: speed 38400,
no parity, 2 stop bits, RTS/CTS flow control.

3. System setup:

/etc/ttys:

ttyd4 "/usr/libexec/getty std.38400" dialup on secure
ttyd5 "/usr/libexec/getty std.38400" dialup on secure
ttyd6 "/usr/libexec/getty std.38400" dialup on secure
ttyd7 "/usr/libexec/getty std.38400" dialup on secure

/etc/gettytab:

default: :cb:ce:ck:er=^H:lc:fd#1000: :im=\rFreeNet (%t)\r\n\r\n:

std.38400: :np:hw:sp#38400:

4. Modem setup - I use 'cu', you may not :)
(Use appropriate cuaa[4567] lines!)

ZyXEL U-1496E+ and U-336E have the same
command set ( U-336E have more registers ).

No matter which modem you have, you need
to set up it to:
- disable echo ( e0 );
- use CD signal ( &c1 );
- DTR drop -> reset modem ( &d3 );
- enable autoanswer ( s0=1 );
- disable Escape sequence ( s2=128 );
- disable result codes ( q1 );
(also in ZyXEL I prefer q2 - it disables
result codes only in answer mode);

Save this settings to profile 0 and
make it activate on power-on and reset.

To activate changes in /etc/ttys, send
SIGHUP to init:

kill -1 1

If all Ok, you can see as DTR LEDs on your
modems activated. You're on-line! (I think...)

Hope this will helpfull to you.
Any questions?

by aviko

P.S.
1. In /etc/ttys:

"secure" may be changed to "insecure" if you
do not want to allow direct root-logon from
modem.

2. For Dial-Up IP I use login accounts
with simple shell ( sh script ) which start
pppd with several arguments depending on
user name.

by alexbes

try use mgetty+sendfax from FreeBSD ports
collection

it have step-by-step configureation notes

/usr/ports/comms/mgetty+sendfax/

ftp://alpha.greenie.net/pub/mgetty/source/1.1/

This discussion is closed to new replies.