Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Jul 2001 15:44:47 +1000 (EST)
From:      =?iso-8859-1?q?Keith=20Spencer?= <bsd2000au@yahoo.com.au>
To:        paulh@logicsquad.net, fbsd <freebsd-questions@freebsd.org>
Subject:   Cant get it to allow dialins !
Message-ID:  <20010723054447.1103.qmail@web12007.mail.yahoo.com>
In-Reply-To: <3675.10.0.0.3.995529386.squirrel@grover.logicsquad.net>

next in thread | previous in thread | raw e-mail | index | archive | help
> Hi Keith,
> 
> Weren't you trying to get this up about a month ago?

Hi Paul & all,
I am finally getting somewhere, I am just not sure
where! Mind looking over my setups?
The modem answers and a terminal screen pops up on my
win* dialing pc. The terminal window on PC displays
control rubbish when a key is pressed. I pressed enter
many times but no negotiation seems to occur.
Watching the server when I am dialing in (a win*
laptop in the same room) no errors are reported...in
fact nothing reported.
As far as I know I have done this to setup on the
server:
a) checked gettytab for an entry
b) opened up ttys entry
c) edited ppp.conf 
d) created a user to dial in with
e) put 2 empty (nearly..3 bytes) .hushlogin and
another (cant recall name)
f) edited ppp.linkup & ppp.secret & ppp-shell
g) hooked up...damn! No worky
All files (or snips are below)
Many thanks
Keith



Here's some gettytab snips. I am using the std.115200
by your advice.
++++++++++gettytab++++++++++++++++++++++
default:\
	:cb:ce:ck:lc:fd#1000:im=\r\n%s/%m (%h)
(%t)\r\n\r\n:sp#1200:\
	:if=/etc/issue:

  SNIP SNIP 8< ----------------

std.57600|57600-baud:\
	:np:sp#57600:
std.115200|115200-baud:\
	:np:sp#115200:
std.230400|230400-baud:\
	:np:sp#230400:
++++++++++++++++++++++++++++++++++++++++++++++++

Now for the ttys file entry
++++++++++++++++ttys+++++++++++++++++++++++++++
        SNIP SNIP 8< ----------------
ttyd0	"/usr/libexec/getty std.19200"	dialup	on 

        SNIP SNIP 8< ----------------
+++++++++++++++++++++++++++++++++++++++++++++++

I found this file! I can't recall creating it?? What's
it do?
++++++++++options.ttyd0+++++++++++++++
domain smmc.qld.edu.au
crtscts
modem
passive
proxyarp
203.56.180.1:203.56.180.220
++++++++++++++++++++++++++++++++++++++


+++++++++++ppp.conf+++++++++++++++++++
default: # or name_of_service_provider
 set device PPPoE:fxp0 # replace xl1 with your
ethernet device
 set speed sync
 set mru 1492
 set mtu 1492
# now a patch to fix errant mtu sizes from windoze
machines
 enable tcpmssfixup
# some handshake stuff
 set ctsrts off
 enable lqr
 set authname password
 set authkey username
 set log Phase tun command # you can add more detailed
logging if you wish
 add default HISADDR
 enable dns

# Now some stuff for the dialin line    
 set debug phase lcp chat
 set timeout 0

papchap:
 set authname username
 set authkey passwd

# The dialin line dynamic address allocation
# the ns machines are listed separated by space...at
the moment only one here

ttyd0:
 accept dns
 set dns 203.56.180.1 
 set ifaddr 203.56.180.150 203.56.180.17
255.255.255.255
 enable proxy
++++++++++++++++++++++++++++++++++++++



+++++++++++ppp.secret+++++++++++++++++
dialinuser		password
++++++++++++++++++++++++++++++++++++++



Here is the ppp.linkup file
+++++++++++ppp.linkup+++++++++++++++++
MYADDR:
 delete 0
 add 0 0 HISADDR
ttyd0:
 add 203.56.180.17 netmask 255.255.255.255 HISADDR
++++++++++++++++++++++++++++++++++++++


Looks like I do have something to fire up PPP?(see
below)
Mind you, I don't understand how this ppp-shell file
gets triggered!
++++++++++ppp-shell+++++++++++++++++++++
#!/bin/sh -
# Keith edited June 2001
IDENT=`echo $0 | sed -e 's/^.*-\(.*\)$/\1/'`
echo IDENT is now $IDENT
CALLEDAS="$IDENT"
TTY=`tty`

if [ x$IDENT = xdialup ]; then
    IDENT=`basename $TTY`
fi

echo "PPP for $CALLEDAS on $TTY"
echo "Starting PPP for $IDENT"
echo "~~~~~~~~~~~~~~~~~~~~~~~~~"

exec /usr/sbin/ppp -direct $IDENT
+++++++++++++++++++++++++++++++++++++++


_____________________________________________________________________________
http://messenger.yahoo.com.au - Yahoo! Messenger
- Voice chat, mail alerts, stock quotes and favourite news and lots more!

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010723054447.1103.qmail>