473 lines
21 KiB
HTML
473 lines
21 KiB
HTML
<!-- MHonArc v2.5.0b2 -->
|
||
<!--X-Subject: new_document -->
|
||
<!--X-From-R13: Fbz [pYryyvcf <gyzNpbzchgrpuabybtl.pbz> -->
|
||
<!--X-Date: Sun, 8 Oct 2000 15:48:12 -0400 (EDT) -->
|
||
<!--X-Message-Id: 39E0C9B0.6F09@cpty.net -->
|
||
<!--X-Content-Type: multipart/mixed -->
|
||
<!--X-Head-End-->
|
||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML//EN">
|
||
<html>
|
||
<head>
|
||
<title>new_document</title>
|
||
<link rev="made" href="mailto:tlm@computechnology.com">
|
||
</head>
|
||
<body>
|
||
<!--X-Body-Begin-->
|
||
<!--X-User-Header-->
|
||
<!--X-User-Header-End-->
|
||
<!--X-TopPNI-->
|
||
<hr>
|
||
[<a href="msg03971.html">Date Prev</a>][<a href="msg03973.html">Date Next</a>][<a href="msg03970.html">Thread Prev</a>][<a href="msg04194.html">Thread Next</a>][<a href="maillist.html#03972">Date Index</a>][<a href="threads.html#03972">Thread Index</a>]
|
||
<!--X-TopPNI-End-->
|
||
<!--X-MsgBody-->
|
||
<!--X-Subject-Header-Begin-->
|
||
<h1>new_document</h1>
|
||
<hr>
|
||
<!--X-Subject-Header-End-->
|
||
<!--X-Head-of-Message-->
|
||
<ul>
|
||
<li><em>To</em>: <A HREF="mailto:ldp-discuss@lists.linuxdoc.org">ldp-discuss@lists.linuxdoc.org</A></li>
|
||
<li><em>Subject</em>: new_document</li>
|
||
<li><em>From</em>: Tom McKellips <<A HREF="mailto:tlm@computechnology.com">tlm@computechnology.com</A>></li>
|
||
<li><em>Date</em>: Sun, 08 Oct 2000 15:23:28 -0400</li>
|
||
<li><em>Reply-to</em>: <A HREF="mailto:tlm@computechnology.com">tlm@computechnology.com</A></li>
|
||
<li><em>Resent-date</em>: Sun, 8 Oct 2000 15:48:12 -0400 (EDT)</li>
|
||
<li><em>Resent-from</em>: <A HREF="mailto:ldp-discuss@lists.debian.org">ldp-discuss@lists.debian.org</A></li>
|
||
<li><em>Resent-message-id</em>: <mbmNHC.A.J7E.3_M45@murphy></li>
|
||
<li><em>Resent-sender</em>: <A HREF="mailto:ldp-discuss-request@lists.debian.org">ldp-discuss-request@lists.debian.org</A></li>
|
||
</ul>
|
||
<!--X-Head-of-Message-End-->
|
||
<!--X-Head-Body-Sep-Begin-->
|
||
<hr>
|
||
<!--X-Head-Body-Sep-End-->
|
||
<!--X-Body-of-Message-->
|
||
<pre>
|
||
I have recently be fighting with Portslave. In doing this I have wrote a
|
||
small how to for others that may be having the same troubles as I I hope
|
||
you find this doc usefull enough to post.
|
||
Thanks
|
||
Tom
|
||
</pre>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<P STYLE="margin-bottom: 0in">PortSlave How-To using the Linux Router by Tom McKellips tom@computechnology.com. Share this with all sell it to no one.
|
||
Project</P>
|
||
<P STYLE="margin-bottom: 0in"><BR>
|
||
</P>
|
||
<P STYLE="margin-bottom: 0in">Errors found when trying to configure
|
||
portslave.</P>
|
||
<P STYLE="margin-bottom: 0in">Fatal Signal 11</P>
|
||
<P STYLE="margin-bottom: 0in">PAP Secrets Login Failed</P>
|
||
<P STYLE="margin-bottom: 0in">Can not authenticate client.</P>
|
||
<P STYLE="margin-bottom: 0in"><BR>
|
||
</P>
|
||
<P STYLE="margin-bottom: 0in"><BR>
|
||
</P>
|
||
<P STYLE="margin-bottom: 0in">First I just want to thank all the
|
||
Linux programmers out there your contributions have made a
|
||
difference. I hope this small contribution is usefull to the Linux
|
||
users out there.</P>
|
||
<P STYLE="margin-bottom: 0in"><BR>
|
||
</P>
|
||
<P STYLE="margin-bottom: 0in">I write this how to as a beginning only
|
||
for using Portslave with Linux router project. It seems that
|
||
Portslave is a widely used program with no documentation. Since I
|
||
just dove into using Portslave I am sure this document can be
|
||
improved by others over time. After several days of fighting
|
||
Portslave I figured out how incredibly easy to use it really is.
|
||
</P>
|
||
<P STYLE="margin-bottom: 0in">The trouble I ran into most of the time
|
||
was PAP Authentication failure. This was really tough thing to work
|
||
out (I thought). I also had a few other errors but if you follow this
|
||
How To it should at least get you started or start you to the insane
|
||
asylum.</P>
|
||
<P STYLE="margin-bottom: 0in"><BR>
|
||
</P>
|
||
<P STYLE="margin-bottom: 0in">First you need a running version of LRP
|
||
either build the disk your self or you can grab an image of mine at
|
||
<A HREF="http://www.computechnology.com/pslave1440.img">http://www.computechnology.com/pslave1440.img</A>.
|
||
This is a copy of my working disk and you can directly write an image
|
||
of it to your disk. It will get you going and all you will have to do
|
||
then is change to the appropriate IP numbers and network card
|
||
drivers. I won't get into building and lrp disk here because there
|
||
seemed to be fairly good documentation on that around.</P>
|
||
<P STYLE="margin-bottom: 0in"><BR>
|
||
</P>
|
||
<P STYLE="margin-bottom: 0in">Assuming you have your disk built and
|
||
you computer running here is what we need to do to configure your
|
||
disk.</P>
|
||
<P STYLE="margin-bottom: 0in"><BR>
|
||
</P>
|
||
<P STYLE="margin-bottom: 0in">First and DELETE yes I said DELETE all
|
||
options.tty?? files and the options file and and pap-secrets files
|
||
located under /etc/ppp-radius and /etc/ppp ( if you have and /etc/ppp
|
||
you probably installed the ppp.lrp also remove the ppp.lrp from your
|
||
disk and the /etc/ppp will go away.). Next go to /etc/portslave and
|
||
adjust the pslave.conf file accordingly. I will now take you through
|
||
that file line by line. I don't know what all of it means but I made
|
||
it work so you can to.</P>
|
||
<P STYLE="margin-bottom: 0in"><BR>
|
||
</P>
|
||
<P STYLE="margin-bottom: 0in"> #</P>
|
||
<P STYLE="margin-bottom: 0in"># pslave.conf Here is the sample server
|
||
configuration file.</P>
|
||
<P STYLE="margin-bottom: 0in">#</P>
|
||
<P STYLE="margin-bottom: 0in"># Version: 1.17 03-Nov-1998
|
||
</P>
|
||
<P STYLE="margin-bottom: 0in">#</P>
|
||
<P STYLE="margin-bottom: 0in"><BR>
|
||
</P>
|
||
<P STYLE="margin-bottom: 0in">#</P>
|
||
<P STYLE="margin-bottom: 0in"># Hostname of the system.</P>
|
||
<P STYLE="margin-bottom: 0in"># This is my routers name. Your routers
|
||
name will be different</P>
|
||
<P STYLE="margin-bottom: 0in">conf.hostname hma2.cpty.net</P>
|
||
<P STYLE="margin-bottom: 0in">#</P>
|
||
<P STYLE="margin-bottom: 0in"># IP address - if left empty, uses the
|
||
IP address of the system (hostname).</P>
|
||
<P STYLE="margin-bottom: 0in"># This is used as the "local"
|
||
address for SLIP and PPP connections.</P>
|
||
<P STYLE="margin-bottom: 0in"># This is my routers IP address yours
|
||
will be different use your routers IP number here</P>
|
||
<P STYLE="margin-bottom: 0in">conf.ipno 10.0.0.4</P>
|
||
<P STYLE="margin-bottom: 0in">#</P>
|
||
<P STYLE="margin-bottom: 0in"># Lock directory - on FSSTND compliant
|
||
systems it's /var/lock.</P>
|
||
<P STYLE="margin-bottom: 0in"># No need to change this</P>
|
||
<P STYLE="margin-bottom: 0in">conf.lockdir /var/lock</P>
|
||
<P STYLE="margin-bottom: 0in">#</P>
|
||
<P STYLE="margin-bottom: 0in"># Where to find the rlogin binary that
|
||
accepts the "-i" flag.</P>
|
||
<P STYLE="margin-bottom: 0in">#No need to change this</P>
|
||
<P STYLE="margin-bottom: 0in">conf.rlogin /usr/bin/rlogin-radius</P>
|
||
<P STYLE="margin-bottom: 0in">#</P>
|
||
<P STYLE="margin-bottom: 0in"># Where to find our patched pppd that
|
||
has radius linked in.</P>
|
||
<P STYLE="margin-bottom: 0in"># No need to change this
|
||
</P>
|
||
<P STYLE="margin-bottom: 0in">conf.pppd /usr/sbin/pppd-radius</P>
|
||
<P STYLE="margin-bottom: 0in">#</P>
|
||
<P STYLE="margin-bottom: 0in"># Where to find telnet. This can just
|
||
be the system telnet.</P>
|
||
<P STYLE="margin-bottom: 0in"># This can stay or go
|
||
</P>
|
||
<P STYLE="margin-bottom: 0in">conf.telnet /usr/bin/telnet</P>
|
||
<P STYLE="margin-bottom: 0in">#</P>
|
||
<P STYLE="margin-bottom: 0in"># If you set this to "1", you
|
||
can always login locally by putting a '!'</P>
|
||
<P STYLE="margin-bottom: 0in"># before your loginname. Useful for
|
||
emergencies when the RADIUS server is down.</P>
|
||
<P STYLE="margin-bottom: 0in"># Make this either 0 or 1 as mentioned
|
||
above</P>
|
||
<P STYLE="margin-bottom: 0in">conf.locallogins 1</P>
|
||
<P STYLE="margin-bottom: 0in">#</P>
|
||
<P STYLE="margin-bottom: 0in"># Logging stuff - this program can use
|
||
a remote syslog daemon if needed.</P>
|
||
<P STYLE="margin-bottom: 0in"># If you want to log locally leave the
|
||
"syslog" field empty. The facility</P>
|
||
<P STYLE="margin-bottom: 0in"># field is an integer between 0 and 7
|
||
and sets the syslog facility to</P>
|
||
<P STYLE="margin-bottom: 0in"># local0-local7.</P>
|
||
<P STYLE="margin-bottom: 0in"># For now I log local to my router that
|
||
is why I do not have anything after syslog</P>
|
||
<P STYLE="margin-bottom: 0in">conf.syslog </P>
|
||
<P STYLE="margin-bottom: 0in">conf.facility 6</P>
|
||
<P STYLE="margin-bottom: 0in">#</P>
|
||
<P STYLE="margin-bottom: 0in"># Stripnames - if you set this to "1",
|
||
leading "P", "S", "C", "L" or
|
||
"!"</P>
|
||
<P STYLE="margin-bottom: 0in"># characters and trailing ".slip",
|
||
".cslip" and ".ppp" strings will be</P>
|
||
<P STYLE="margin-bottom: 0in"># stripped from the username before it
|
||
is recorded in the system</P>
|
||
<P STYLE="margin-bottom: 0in"># utmp and wtmp files (if sysutmp or
|
||
syswtmp are turned on ofcourse)</P>
|
||
<P STYLE="margin-bottom: 0in"># No need to change this</P>
|
||
<P STYLE="margin-bottom: 0in">conf.stripnames 0</P>
|
||
<P STYLE="margin-bottom: 0in"><BR>
|
||
</P>
|
||
<P STYLE="margin-bottom: 0in"><BR>
|
||
</P>
|
||
<P STYLE="margin-bottom: 0in">##</P>
|
||
<P STYLE="margin-bottom: 0in">## The all entry is used as a template
|
||
for all others. This means that</P>
|
||
<P STYLE="margin-bottom: 0in">## setting all.debug to 0, you set
|
||
s0.debug, s1.debug, s2.debug etc.</P>
|
||
<P STYLE="margin-bottom: 0in">## to 0. It also means that all these
|
||
settings can be overridden on a</P>
|
||
<P STYLE="margin-bottom: 0in">## per-port basis below.</P>
|
||
<P STYLE="margin-bottom: 0in">## The all. Stuf is the default for
|
||
everything unless you specifically override it. I'll show # #you that
|
||
at the end of this.</P>
|
||
<P STYLE="margin-bottom: 0in"><BR>
|
||
</P>
|
||
<P STYLE="margin-bottom: 0in">#</P>
|
||
<P STYLE="margin-bottom: 0in"># Debugging output to syslog. Set to 0
|
||
or 1. "1" is pretty verbose.</P>
|
||
<P STYLE="margin-bottom: 0in"># This can be 0 or 1 I like 1 because
|
||
it gives lots of info</P>
|
||
<P STYLE="margin-bottom: 0in">all.debug 1</P>
|
||
<P STYLE="margin-bottom: 0in"><BR>
|
||
</P>
|
||
<P STYLE="margin-bottom: 0in">#</P>
|
||
<P STYLE="margin-bottom: 0in"># Authentication type - either "radius"
|
||
or "none".</P>
|
||
<P STYLE="margin-bottom: 0in"># Leave this as it is</P>
|
||
<P STYLE="margin-bottom: 0in">all.authtype radius</P>
|
||
<P STYLE="margin-bottom: 0in"><BR>
|
||
</P>
|
||
<P STYLE="margin-bottom: 0in">#</P>
|
||
<P STYLE="margin-bottom: 0in"># Authentication host and accounting
|
||
host. We can have 2 of both. The</P>
|
||
<P STYLE="margin-bottom: 0in"># first one is always tried three times
|
||
before switching to the second one.</P>
|
||
<P STYLE="margin-bottom: 0in"># They are alternately tried after
|
||
that, up to maximum 10 times in total.</P>
|
||
<P STYLE="margin-bottom: 0in"># Timeout is 5 seconds per query.</P>
|
||
<P STYLE="margin-bottom: 0in"># These are the names of my RADIUS
|
||
servers name your RADIUS servers here</P>
|
||
<P STYLE="margin-bottom: 0in">all.authhost1 cody.cpty.net</P>
|
||
<P STYLE="margin-bottom: 0in">all.accthost1 cody.cpty.net</P>
|
||
<P STYLE="margin-bottom: 0in">#all.authhost2 backuphost.someisp.com</P>
|
||
<P STYLE="margin-bottom: 0in">#all.accthost2 backuphost.someisp.com</P>
|
||
<P STYLE="margin-bottom: 0in">#</P>
|
||
<P STYLE="margin-bottom: 0in">#</P>
|
||
<P STYLE="margin-bottom: 0in"># The shared secret for RADIUS.</P>
|
||
<P STYLE="margin-bottom: 0in">#Put your shared secret here, this must
|
||
match the shared secret in your RADIUS servers #clients file for the
|
||
IP number or name of this router.</P>
|
||
<P STYLE="margin-bottom: 0in">all.secret superagentman</P>
|
||
<P STYLE="margin-bottom: 0in">#</P>
|
||
<P STYLE="margin-bottom: 0in"># Default protocol and host. This is
|
||
for rlogin sessions.</P>
|
||
<P STYLE="margin-bottom: 0in"># Just change the all.host to the IP
|
||
number of your router this should match what you have #at the top of
|
||
this file</P>
|
||
<P STYLE="margin-bottom: 0in">all.protocol rlogin</P>
|
||
<P STYLE="margin-bottom: 0in">all.host 10.0.0.4</P>
|
||
<P STYLE="margin-bottom: 0in">#</P>
|
||
<P STYLE="margin-bottom: 0in"># Default IP stuff. If you end the
|
||
"ipno" with a "+", the portnumber will</P>
|
||
<P STYLE="margin-bottom: 0in"># be added to the IP number. The IP
|
||
number of a port is used when the RADIUS</P>
|
||
<P STYLE="margin-bottom: 0in"># server doesn't send an IP number, or
|
||
if it tells us to use a dynamic ipno.</P>
|
||
<P STYLE="margin-bottom: 0in">#</P>
|
||
<P STYLE="margin-bottom: 0in"># Leave the netmask at 255.255.255.255,
|
||
unless your really know what</P>
|
||
<P STYLE="margin-bottom: 0in"># you're doing.</P>
|
||
<P STYLE="margin-bottom: 0in"># This seemed a little confusing but
|
||
since I went with static IP numbers this was easy. I #do not have "+"
|
||
after my IP number because I directly assign the IP number to a
|
||
#MODEM at the end of this file</P>
|
||
<P STYLE="margin-bottom: 0in"># I modified the netmask to match that
|
||
of my network. And I left MTU alone</P>
|
||
<P STYLE="margin-bottom: 0in">all.ipno 10.0.0.4</P>
|
||
<P STYLE="margin-bottom: 0in">all.netmask 255.255.255.0</P>
|
||
<P STYLE="margin-bottom: 0in">all.mtu 1500</P>
|
||
<P STYLE="margin-bottom: 0in">#</P>
|
||
<P STYLE="margin-bottom: 0in"># Standard message that is issued on
|
||
connect.</P>
|
||
<P STYLE="margin-bottom: 0in"># No need to change this</P>
|
||
<P STYLE="margin-bottom: 0in">all.issue \n\</P>
|
||
<P STYLE="margin-bottom: 0in"> Cistron Internet Services \n\</P>
|
||
<P STYLE="margin-bottom: 0in"> POP Alphen aan den Rijn \n\</P>
|
||
<P STYLE="margin-bottom: 0in"> Welcome to terminal server %h port
|
||
S%p\n</P>
|
||
<P STYLE="margin-bottom: 0in">#
|
||
</P>
|
||
<P STYLE="margin-bottom: 0in"># Login prompt.</P>
|
||
<P STYLE="margin-bottom: 0in"># No Need to change this</P>
|
||
<P STYLE="margin-bottom: 0in">all.prompt Cistron login:
|
||
</P>
|
||
<P STYLE="margin-bottom: 0in">#</P>
|
||
<P STYLE="margin-bottom: 0in"># Terminal type, for rlogin/telnet
|
||
sessions.</P>
|
||
<P STYLE="margin-bottom: 0in"># No need to change this</P>
|
||
<P STYLE="margin-bottom: 0in">all.term vt100</P>
|
||
<P STYLE="margin-bottom: 0in">#</P>
|
||
<P STYLE="margin-bottom: 0in"># If you want portslave to update the
|
||
utmp and/or wtmp files just</P>
|
||
<P STYLE="margin-bottom: 0in"># like a regular getty/login, set these
|
||
to 1.</P>
|
||
<P STYLE="margin-bottom: 0in"># I set both of these to 1 you can do
|
||
what you want here</P>
|
||
<P STYLE="margin-bottom: 0in">all.sysutmp 1</P>
|
||
<P STYLE="margin-bottom: 0in">all.syswtmp 1</P>
|
||
<P STYLE="margin-bottom: 0in"><BR>
|
||
</P>
|
||
<P STYLE="margin-bottom: 0in">##</P>
|
||
<P STYLE="margin-bottom: 0in">## Options for the serial port.</P>
|
||
<P STYLE="margin-bottom: 0in">##</P>
|
||
<P STYLE="margin-bottom: 0in"><BR>
|
||
</P>
|
||
<P STYLE="margin-bottom: 0in">#</P>
|
||
<P STYLE="margin-bottom: 0in"># Porttype (passed to Radius for
|
||
logging).</P>
|
||
<P STYLE="margin-bottom: 0in"># 0 = async, 1 = sync, 2 = ISDN, 3 =
|
||
ISDN-V120, 4 = ISDN-V110</P>
|
||
<P STYLE="margin-bottom: 0in"># Use 0 if its a modem</P>
|
||
<P STYLE="margin-bottom: 0in">all.porttype 0</P>
|
||
<P STYLE="margin-bottom: 0in">#</P>
|
||
<P STYLE="margin-bottom: 0in"># Speed. All ports are set to 8N1.</P>
|
||
<P STYLE="margin-bottom: 0in"># Set this to just beyond your max
|
||
modem speed</P>
|
||
<P STYLE="margin-bottom: 0in">all.speed 115200</P>
|
||
<P STYLE="margin-bottom: 0in">#</P>
|
||
<P STYLE="margin-bottom: 0in"># Use this to initialize the modem.</P>
|
||
<P STYLE="margin-bottom: 0in"># I had to make this AT&F to reset
|
||
the modem to it's defaults each time ATZ did not work form if you are
|
||
not familiar with scripting then some of this wont make sense to you
|
||
, thetas ok I didn't get it either till I played with it.</P>
|
||
<P STYLE="margin-bottom: 0in">all.initchat "" \d\dAT&F
|
||
OK\r\n-AT&F-OK\r\n</P>
|
||
<P STYLE="margin-bottom: 0in">#</P>
|
||
<P STYLE="margin-bottom: 0in"># You can use either waitfor or aa.</P>
|
||
<P STYLE="margin-bottom: 0in"># No need to change this</P>
|
||
<P STYLE="margin-bottom: 0in">all.waitfor RING</P>
|
||
<P STYLE="margin-bottom: 0in">#</P>
|
||
<P STYLE="margin-bottom: 0in"># Chat string to get the modem to
|
||
connect after waitfor.</P>
|
||
<P STYLE="margin-bottom: 0in"># The @ sign matches (.*)[\r\n] in
|
||
regexp code, the match is logged</P>
|
||
<P STYLE="margin-bottom: 0in"># to Radius as Connection-Info.</P>
|
||
<P STYLE="margin-bottom: 0in"># No need to change this</P>
|
||
<P STYLE="margin-bottom: 0in">all.answer "" ATA CONNECT@</P>
|
||
<P STYLE="margin-bottom: 0in">#</P>
|
||
<P STYLE="margin-bottom: 0in"># Auto answer - if you set this to "1",
|
||
the system will just wait for</P>
|
||
<P STYLE="margin-bottom: 0in"># the DCD line to get high (this is not
|
||
well tested). You won't get</P>
|
||
<P STYLE="margin-bottom: 0in"># the connection info either.</P>
|
||
<P STYLE="margin-bottom: 0in"># No need to change this</P>
|
||
<P STYLE="margin-bottom: 0in">all.aa 0</P>
|
||
<P STYLE="margin-bottom: 0in">#</P>
|
||
<P STYLE="margin-bottom: 0in"># You can use this chatstring to
|
||
regulary check if the modem is still alive.</P>
|
||
<P STYLE="margin-bottom: 0in"># NOT IMPLEMENTED YET.</P>
|
||
<P STYLE="margin-bottom: 0in"># I don't know if this line works or
|
||
not. Let me know if you find anything out about it. # #Just leave it
|
||
the same and portslave will work</P>
|
||
<P STYLE="margin-bottom: 0in">all.checktime 60</P>
|
||
<P STYLE="margin-bottom: 0in">all.checkchat "" AT OK\r\n</P>
|
||
<P STYLE="margin-bottom: 0in">#</P>
|
||
<P STYLE="margin-bottom: 0in"># Flow control on this serial port:</P>
|
||
<P STYLE="margin-bottom: 0in"># hard - hardware, rts/cts</P>
|
||
<P STYLE="margin-bottom: 0in"># soft - software, CTRL-S / CTRL-Q</P>
|
||
<P STYLE="margin-bottom: 0in"># none.</P>
|
||
<P STYLE="margin-bottom: 0in"># No need to change this</P>
|
||
<P STYLE="margin-bottom: 0in">all.flow hard</P>
|
||
<P STYLE="margin-bottom: 0in">#</P>
|
||
<P STYLE="margin-bottom: 0in"># Use the DCD line or not (this sets
|
||
CLOCAL if on). This means that the session</P>
|
||
<P STYLE="margin-bottom: 0in"># will get hung up if the modem hangs
|
||
up. Can be set to 0 or 1.</P>
|
||
<P STYLE="margin-bottom: 0in"># No need to change this</P>
|
||
<P STYLE="margin-bottom: 0in">all.dcd 1</P>
|
||
<P STYLE="margin-bottom: 0in">#</P>
|
||
<P STYLE="margin-bottom: 0in"># PPP options - used if we autodetect a
|
||
PPP session.</P>
|
||
<P STYLE="margin-bottom: 0in"># Note that we set mru and mtu both to
|
||
the MTU setting.</P>
|
||
<P STYLE="margin-bottom: 0in"># Look at these lines close this is
|
||
what worked for me. These parameters are sent to the ppp daemon when
|
||
it is called. I think the autoppp is called first then after you are
|
||
authenticated I think the second ppp one is called. I dont know for
|
||
sure that this is houw it wokred but it appears that way to me</P>
|
||
<P STYLE="margin-bottom: 0in"><BR>
|
||
</P>
|
||
<P STYLE="margin-bottom: 0in">all.autoppp proxyarp modem asyncmap 0
|
||
%i: \</P>
|
||
<P STYLE="margin-bottom: 0in"> noipx noccp login auth +pap -chap \</P>
|
||
<P STYLE="margin-bottom: 0in"> mtu %t mru %t \</P>
|
||
<P STYLE="margin-bottom: 0in"> ms-dns 208.206.143.35 ms-dns
|
||
208.206.143.36 \</P>
|
||
<P STYLE="margin-bottom: 0in"> uselib /usr/lib/libpsr.so</P>
|
||
<P STYLE="margin-bottom: 0in"><BR>
|
||
</P>
|
||
<P STYLE="margin-bottom: 0in">#</P>
|
||
<P STYLE="margin-bottom: 0in"># PPP options - User already
|
||
authenticated and service type is PPP.</P>
|
||
<P STYLE="margin-bottom: 0in">#</P>
|
||
<P STYLE="margin-bottom: 0in"><BR>
|
||
</P>
|
||
<P STYLE="margin-bottom: 0in">all.pppopt proxyarp modem asyncmap 0
|
||
%i:%j \</P>
|
||
<P STYLE="margin-bottom: 0in"> noipx noccp \</P>
|
||
<P STYLE="margin-bottom: 0in"> mtu %t mru %t netmask %m idle %I \</P>
|
||
<P STYLE="margin-bottom: 0in"> ms-dns 208.206.143.35 ms-dns
|
||
208.206.143.36 \</P>
|
||
<P STYLE="margin-bottom: 0in"> uselib /usr/lib/libpsr.so</P>
|
||
<P STYLE="margin-bottom: 0in"><BR>
|
||
</P>
|
||
<P STYLE="margin-bottom: 0in">##</P>
|
||
<P STYLE="margin-bottom: 0in">## Tty names are s0...s63. For every
|
||
port we need to define a tty port, and</P>
|
||
<P STYLE="margin-bottom: 0in">## an IP number for when radius tells
|
||
us to pick one ourself. Unless you</P>
|
||
<P STYLE="margin-bottom: 0in">## use the IP pool option mentioned
|
||
above (IP number with "+" appended).</P>
|
||
<P STYLE="margin-bottom: 0in">##</P>
|
||
<P STYLE="margin-bottom: 0in">## Note that you can change _all_ of
|
||
the above settings that start</P>
|
||
<P STYLE="margin-bottom: 0in">## with all.xxxx on a per-port basis,
|
||
such as issue, prompt etc.</P>
|
||
<P STYLE="margin-bottom: 0in">## This is where you can set options to
|
||
a specific modem. sX.tty is for portslaves use you #assign it to a
|
||
real tty device. In the /etc/inittab you will see the lines portlsave
|
||
0 or 1 etc.. #this 0 or 1 is the tty device number portslave already
|
||
knows it is tty something so all it #requires is the last digits.
|
||
</P>
|
||
<P STYLE="margin-bottom: 0in">#Since my modem is on COM 4 (DOS) that
|
||
means s3.tty is ttyS3</P>
|
||
<P STYLE="margin-bottom: 0in">s3.tty ttyS3</P>
|
||
<P STYLE="margin-bottom: 0in">#Now I can set options for that modem</P>
|
||
<P STYLE="margin-bottom: 0in">#Here is it's IP number statically
|
||
assigned</P>
|
||
<P STYLE="margin-bottom: 0in">s3.ipno 10.0.0.202</P>
|
||
<P STYLE="margin-bottom: 0in">#here is the protocol to use on that
|
||
modem. PAY CLOSE ATTENTION HERE. This is #the line that finally made
|
||
portslave work perfectly for me. You must tie the ppp protocol #to
|
||
your modem. Simple huh?</P>
|
||
<P STYLE="margin-bottom: 0in">s3.protocol ppp</P>
|
||
|
||
|
||
<!--X-Body-of-Message-End-->
|
||
<!--X-MsgBody-End-->
|
||
<!--X-Follow-Ups-->
|
||
<hr>
|
||
<!--X-Follow-Ups-End-->
|
||
<!--X-References-->
|
||
<!--X-References-End-->
|
||
<!--X-BotPNI-->
|
||
<ul>
|
||
<li>Prev by Date:
|
||
<strong><a href="msg03971.html">Re: Thinking strategically</a></strong>
|
||
</li>
|
||
<li>Next by Date:
|
||
<strong><a href="msg03973.html">Re: Style Guide (was Re: I'm a sucker)</a></strong>
|
||
</li>
|
||
<li>Previous by thread:
|
||
<strong><a href="msg03970.html">DNAP - EMERGING BIOTHECH COMPANY - 2 NEWS RELEASES!</a></strong>
|
||
</li>
|
||
<li>Next by thread:
|
||
<strong><a href="msg04194.html">new_document</a></strong>
|
||
</li>
|
||
<li>Index(es):
|
||
<ul>
|
||
<li><a href="maillist.html#03972"><strong>Date</strong></a></li>
|
||
<li><a href="threads.html#03972"><strong>Thread</strong></a></li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
|
||
<!--X-BotPNI-End-->
|
||
<!--X-User-Footer-->
|
||
<!--X-User-Footer-End-->
|
||
</body>
|
||
</html>
|