Date: Sat, 6 Apr 1996 09:56:40 -0800 (PST) From: Scott Blachowicz <scott@statsci.com> To: Jason T Glick <jason@cs.cs.miami.edu> Cc: questions@freebsd.org, korty@physics.purdue.edu Subject: Re: FreeBSD PPP & Slirp/PPP Message-ID: <Pine.BSF.3.92.960406094051.3492A-100000@one.sabami.seaslug.org> In-Reply-To: <31621FA3.5443@cs.miami.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
With a couple recent queries about FreeBSD PPP & Slirp/PPP I figured I'd
post my configuration (which is a 2.1.0R FreeBSD box at home dialing into
SunOS 4.x boxes at work).
Here is part of my /etc/ppp/ppp.conf file (replace the *'s around login,
password with real stuff and the phone number(s) and "PROMPT%" with your
shell account prompt and use appropriate IP addresses...):
#
# Default setup. Executed always when PPP is invoked.
#
default:
set device /dev/cuaa1
set speed 57600
set debug Chat
set escape 0
disable lqr
deny lqr
set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATE1%C1%M3&Q5S46=138S48=7S37=11 OK-AT-OK \\dATDT\\T TIMEOUT 50 CONNECT"
sabslirp0:
set phone *******
set dial "TIMEOUT 10 \"\" ATE0%C1%M3&Q5S46=138S48=7S37=11 OK-AT-OK \\dATDT\\T TIMEOUT 50 CONNECT-ATDT*******-CONNECT-ATDT*******-CONNECT"
set login "TIMEOUT 30 login:-\\r-login: ******** word: ******** PROMPT%
exec\\sslirp"
set timeout 600
deny pred1
disable pred1
set ifaddr 10.0.2.15 198.145.127.9/22
add 0 255.255.255.0 198.145.127.9
....and this is from the /etc/ppp/ppp.linkup file:
# If we are invked with an argument ``iij-demand'', then
# delete existing route entry and add peer as default gateway.
#
iij-demand:
delete ALL
add 0 0 HISADDR
#
# Otherwide, simply add peer as default gateway.
#
MYADDR:
add 0 0 HISADDR
....and in my /etc/sysconfig I have this:
network_interfaces="ed1 lo0 tun0"
ifconfig_ed1="inet 10.0.0.1 netmask 0xffffff00"
ifconfig_lo0="inet 127.0.0.1"
ifconfig_tun0="" # use /etc/start_if.tun0
....and this is my /etc/start_if.tun0 script:
#! /bin/sh
#
# Script to start ppp daemon in autodialer mode.
#
echo "Starting auto-PPP link to StatSci on tun0:" > /dev/console
ppp -auto sabslirp0
....and this is my ~/.slirprc file on the SunOS box at work:
-vj
ppp
baudrate 19200
mtu 552
mru 552
asyncmap 0
#debugppp
initiate-options
#ipcp-accept-remote
redir X start 5
....then there's DNS setup...in /etc/named.boot:
directory /etc/namedb
; type domain source host/file backup file
cache . db.cache
primary 0.0.127.IN-ADDR.ARPA db.127.0.0
primary 0.IN-ADDR.ARPA db.0
primary 10.IN-ADDR.ARPA db.10
primary 255.IN-ADDR.ARPA db.255
; not a "real" domain here vvvv
primary sabami.seaslug.org db.sabami
; Forward to slirp DNS address
forwarders 10.0.2.3
....Hope that's enough to help some of y'all...I don't claim that it's
optimal, but it does appear to work so I haven't messed with it too much.
Scott Blachowicz Scott.Blachowicz@seaslug.org
scott@statsci.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.92.960406094051.3492A-100000>
