Newbies Questions Continued

Ben Smithurst ben at scientia.demon.co.uk
Tue Jul 18 22:26:14 BST 2000


--vH3HHxf962mwD/qo
Content-Type: multipart/mixed; boundary="8RJ6MkOGpKElHlfH"
Content-Disposition: inline


--8RJ6MkOGpKElHlfH
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

george.russell at clara.net wrote:

> Can someone send me a vanilla ppp.conf file? Chainsaw=20
> configuration happened to mine.

please see <http://www.FreeBSD.org/cgi/cvsweb.cgi>.  From there you can
download any version of any file which was ever in FreeBSD.  You'll want
src/etc/ppp/ppp.conf I guess.  Did you look in /usr/share/examples/ppp
though?  I think there are some useful samples in there.  I've attached
the default ppp.conf anyway, just remember cvsweb for next time. :-)

> "put '/usr/sbin/ppp -auto papchap' in my /etc/rc.local to start on=20
> bootup" The auto means what? It'll sit in the bg, and at the first=20
> sign of attempting to reach the net will dial out?

Yes.

> Is there a way to=20
> (ok there is, but what ;-)) to need to explicitly dial out? I don't want=
=20
> to start ICQ and have it open a connection automatically, or when I=20
> misconfigure wwwoffle for it to dial spontaneously.

My kludge is to do:

 set filter dial 0 deny 0 0

in ppp.conf, then use pppctl to dial.  e.g.,

# pppctl /var/run/ppp dial

Assuming your PPP server socket is /var/run/ppp.  Or you could just
not run PPP from /etc/rc.local and just run "ppp -background yourisp"
whenever you want to go online.  I use -auto mode with a filter rule to
make it not-really-auto mode, which is probably a bit silly. :-)

> How do I stop system messages scribbling on consoles where I=20
> have say, links, or vi open on i.e. whenever I login as root to=20
> another terminal a line appears saying that root just logged in
>=20
> (yes, I do have a user account. Just configuring so much I haven't=20
> been in it more then, oh, twice)

Check /etc/syslog.conf and it's manual page, syslog.conf(5).  But you
should probably leave it as it is -- you should never log in as "root"
anyway, use your normal account and use su(8) to become root.

--=20
Ben Smithurst / ben at scientia.demon.co.uk / PGP: 0x99392F7D

--8RJ6MkOGpKElHlfH
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="ppp.conf"

#################################################################
# PPP  Sample Configuration File
# Originally written by Toshiharu OHNO
# Simplified 5/14/1999 by wself at cdrom.com
#
# $FreeBSD: src/etc/ppp/ppp.conf,v 1.2 1999/08/27 23:24:08 peter Exp $
#################################################################

default:

 #
 # Make sure that "device" references the correct serial port
 # for your modem. (cuaa0 = COM1, cuaa1 = COM2)
 #

 set device /dev/cuaa1

 set log Phase Chat LCP IPCP CCP tun command
 set speed 115200
 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT"

 set timeout 120
 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
 add default HISADDR
 enable dns

papchap:

 #
 # edit the next three lines and replace the items in caps with
 # the values which have been assigned by your ISP.
 #

 set phone PHONE_NUM
 set authname USERNAME
 set authkey PASSWORD

--8RJ6MkOGpKElHlfH--

--vH3HHxf962mwD/qo
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
MessageID: XwausgpGnHqv8pq8kRvJf48nD8lO2sc9

iQCVAwUBOXTLdSsPVtiZOS99AQHHdAQAn1V4DzaYMe5pbLpjKzAT/uANOwIbNz5e
+D/FSxJZyUib3clTZj4UOU/q5JyD5Ji/jWRi6kObJaGPfr+8NjnMYW9DLpk0as1F
y0RlgI8Mm5KeYQ3Gx+C3N7ysQW3UArQzkeCnMyePBDYUt/NY7YjujniVmCu1aM4U
btfprWbWA9w=
=NHCe
-----END PGP SIGNATURE-----

--vH3HHxf962mwD/qo--




More information about the Ukfreebsd mailing list