Personal tools
You are here: Home technotes pppd-2.3.x with Solaris 2.x
Document Actions

pppd-2.3.x with Solaris 2.x

by MIYACHI Yasuhiko last modified 2006-06-21 16:48

Solaris 2.5.1 : ppp-2.3.10 によるDialup Serverの設定

 Solaris 2.5.1附属のaspppdよりも
導入が簡単
機能が豊富
安定稼動
です。

私は、お勧め!!

--------------------------------------------------------------------------------

私の質問

 /etc/ppp/optionsにloginオプションを付け、/etc/ppp/pap-secretの
secretを""にすると/etc/shadowの設定を利用して認証するはずですが、
Solaris 2.5.1 + ppp-2.3.10では、できません。
 FreeBSD-3.3R with DES + ppp-2.3.5の場合は、OKです。

 ご存知の方、ご一報を!!

----------------------------------------------------------------

1999/12/16に発見!!

svr4/Makedefsの一部を
CC = gcc
COPTS = -O2 -DHAS_SHADOW
^^^^^^^^^^^^
とすれば、OKなようです。

参考:http://www.stokely.com/unix.serial.port.resources/ppp.slip.html

--------------------------------------------------------------------------------

Make, Install

 svr4/Makedefsを上記のように変更します。

 READ.Sol2に従って、

%./configure
...
%make
...
#make install

とすれば簡単です。

--------------------------------------------------------------------------------

IP Forwardingの設定

 IP Forwarding(IP転送)を有効にしないと、PPP PacketはServerから
お外にお散歩できません。

%cat /etc/rc3.d/S99ip_forwarding
#!/bin/sh

echo "Turn on ip_forwarding"

/usr/sbin/ndd -set /dev/ip ip_forwarding 1

--------------------------------------------------------------------------------

EEPROM の設定

 色々な文献には、EEPROMのtty関係を設定する旨、記述がありますが、
はっきり言って、いりません!!
 この設定は、/dev/ttya, /dev/ttybにConsoleを接続してBootさせるときに
必要な設定のようです。(未確定情報)
 よって設定は、

%eeprom | grep tty
ttyb-rts-dtr-off=false
ttyb-ignore-cd=true
ttya-rts-dtr-off=false
ttya-ignore-cd=true
ttyb-mode=9600,8,n,1,-
ttya-mode=9600,8,n,1,-

と、初期値でOKです。


--------------------------------------------------------------------------------

/etc/syslog.confの設定

%cat /etc/syslog.conf
...
daemon.info /var/log/daemon.info
daemon.debug /var/log/daemon.debug
...

 man pppd等には、local2.*にLogが出力されるとされているが、どうも違うようだ...

--------------------------------------------------------------------------------

Serial Portの設定

 Admintool, pmadmで設定します。

%cat /etc/saf/zsmon/_pmtab
# VERSION=1
ttya:...
ttyb:u:root:reserved:reserved:reserved:/dev/term/b:bc::\
/usr/local/bin/pppd:120:38400:ldterm,ttcompat:\
ttyb login\: ::tvi925:n:#Modem - Bidirectional

--------------------------------------------------------------------------------

設定ファイル

#cat /etc/ppp/options
auth
fuga: <- local IP address
#debug or hostname
#kdebug 1
ms-dns xxx.xxx.xxx.xxx
#ms-wins
nodetach
proxyarp

#/cat /eyc/ppp/options.term.b
:ppp01 <- remote IP address
or hostname

#cat /etc/ppp/pap-secrets
# Secrets for authentication using PAP
# client server secret IP addresses
hogehoge * foobar *

PAP Username : hogehoge
PAP Password : foobar

--------------------------------------------------------------------------------

モデムの設定

# 必要ないかもしれない...

# tip cuaa0b
connected
at&f <- モデムの工場出荷時への設定
ate0 <- コマンド状態でエコーを返さない
atq1 <- 応答コードを返さない
at&w0 <- 不揮発性メモリへの書き込み
[Shift]+~

以上


Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: