| 1 |
Static IP addresses support with mgetty/autoPPP |
| 2 |
----------------------------------------------- |
| 3 |
|
| 4 |
Debian PPP package includes a variant of ppp-2.3.0-static.diff, a patch to |
| 5 |
ppp-2.3.0 to support using static IP addresses with Mgetty and AutoPPP. It |
| 6 |
does not affect normal dynamic assignments. There is no need to re-compile |
| 7 |
the kernel. |
| 8 |
|
| 9 |
You should update the pap-secrets file to contain the entries of those users |
| 10 |
you want to have static IP addresses. Typical entry might look like: |
| 11 |
|
| 12 |
#client server secret IP addresses |
| 13 |
jdoe * realpswd 207.69.189.15 |
| 14 |
* * "" * |
| 15 |
|
| 16 |
Also, inform your static IP users to include their IP when |
| 17 |
connecting. E.g. run `pppd 207.69.189.15:` |
| 18 |
Or for Windows folks, check the "Specify an IP address" option and |
| 19 |
type in the IP. |
| 20 |
|
| 21 |
Note: The second line is what most folks will use to authenticate |
| 22 |
users who will be dynamically assigned their addresses by |
| 23 |
/dev/ttyXX. This along with the login option allows users to be PAP |
| 24 |
authenticated against the /etc/passwd or /etc/shadow. If you enter each and |
| 25 |
every user into your pap-secrets file and do not have the last line, |
| 26 |
(wildcards line) you MUST place a "*" at the end of each users line. |
| 27 |
Without it, the authentication will fail. For example: |
| 28 |
|
| 29 |
#client server secret IP addresses |
| 30 |
jdoe * passwd 207.69.189.15 * |
| 31 |
|
| 32 |
This "*" at the end allows the patches to work properly without changing |
| 33 |
the normal process. The IP address is normally assigned via the |
| 34 |
/etc/ppp/options.ttyXX file. The patches do not interfere with this process |
| 35 |
at all. The only thing different is when the user tells pppd he has his own |
| 36 |
address, pppd will allow him to use it, if he and his address are |
| 37 |
authenticated via the pap-secrets file. The only thing to remember, is tell |
| 38 |
your static IP users to set the "correct" IP or they will be assigned the |
| 39 |
normal dynamic address. (And of course that's not what we want :>) If you |
| 40 |
have any questions.... |
| 41 |
|
| 42 |
While I tested this as many ways as our systems would allow, no warranty |
| 43 |
is implied. They work well for us. |
| 44 |
|
| 45 |
Author: Jeff Myers <[email protected]> |