summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorYASUOKA Masahiko <yasuoka@cvs.openbsd.org>2010-09-20 03:51:32 +0000
committerYASUOKA Masahiko <yasuoka@cvs.openbsd.org>2010-09-20 03:51:32 +0000
commit340e8f61d07f63c64df3a56dfd9d1762ed08772a (patch)
treea4646fbb10dd7f17675bfb1ff00914fb2c0d8c35 /usr.sbin
parent42e642d4aa8891f7e40cf39c69c8634bc45688b4 (diff)
Update instructions for testing npppd and pipex. The instructions was
out-of-date-ed after my privilege separation work at n2k10.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/npppd/HOWTO_PIPEX_NPPPD.txt44
1 files changed, 32 insertions, 12 deletions
diff --git a/usr.sbin/npppd/HOWTO_PIPEX_NPPPD.txt b/usr.sbin/npppd/HOWTO_PIPEX_NPPPD.txt
index f2dd952c302..645eda3cb91 100644
--- a/usr.sbin/npppd/HOWTO_PIPEX_NPPPD.txt
+++ b/usr.sbin/npppd/HOWTO_PIPEX_NPPPD.txt
@@ -1,4 +1,4 @@
-$Id: HOWTO_PIPEX_NPPPD.txt,v 1.1 2010/01/31 13:27:36 yasuoka Exp $
+$Id: HOWTO_PIPEX_NPPPD.txt,v 1.2 2010/09/20 03:51:31 yasuoka Exp $
How to test npppd and pipex
---------------------------
@@ -8,19 +8,39 @@ How to test npppd and pipex
on server
- 1. create user '_npppd'
- 2. update your source tree
+ 1. update your source tree
+
+ 2. enable PIPEX on your kernel and reboot with the kernel
+ Add bellow line to your kernel configuration file
+
+ option PIPEX # Pppac IP EXtension, for npppd
+
3. build and update kernel
+
4. build npppd
- % cd usr.sbin/npppd
- % make
- 5. copy npppd.conf and npppd-user.csv to /tmp/
- - npppd.conf and npppd-users.csv are attached below.
- - if you are using 10.0.0.0/24, edit npppd.conf.
+
+ % cd /usr/src/usr.sbin/npppd
+ % make
+ % sudo make install
+
+ 5. install npppd.conf and npppd-users.csv to /etc/npppd/
+
+ sample npppd.conf and npppd-user.csv attached below on this file.
+
+ % sudo mkdir 0755 /etc/npppd
+ % sudo cp npppd.conf /etc/npppd/
+ % sudo cp npppd-users.csv /etc/npppd/
+
+ 6. create user '_npppd'
+
+ % sudo groupadd _npppd
+ % sudo useradd -d /var/empty -s /sbin/nologin -g _npppd _npppd
+
6. set net.inet.gre.allow=1
- % sudo sysctl net.inet.gre.allow=1
+ % sudo sysctl net.inet.gre.allow=1
+
7. run npppd
- % sudo usr.sbin/npppd/npppd/npppd -dc /tmp/npppd.conf
+ % sudo /usr/sbin/npppd/npppd -d
on client
@@ -68,7 +88,7 @@ How to test L2TP/IPsec
#
# Simplest npppd.conf sample
#
-# $Id: HOWTO_PIPEX_NPPPD.txt,v 1.1 2010/01/31 13:27:36 yasuoka Exp $
+# $Id: HOWTO_PIPEX_NPPPD.txt,v 1.2 2010/09/20 03:51:31 yasuoka Exp $
interface_list: tun0
interface.tun0.ip4addr: 10.0.0.1
@@ -79,7 +99,7 @@ pool.pool: 10.0.0.128/25
# Authentication
auth.local.realm_list: local
-auth.local.realm.acctlist: /tmp/npppd-users.csv
+auth.local.realm.acctlist: /etc/npppd/npppd-users.csv
realm.local.concentrate: tun0
lcp.mru: 1400