pppd - PPP (Point to Point Protocol) ???????????ǡ?????
pppd [ tty_name ] [ speed ] [ options ]
Point-to-Point ?ץ??ȥ??? (PPP)
?ϡ????ꥢ?????????˳?Ω???줿 Point-to-Point
?????𤷤??ǡ?????????????????ˡ?????ޤ???
PPP
?ϡ??ǡ??????????Υ??ץ??벽????????ĥ??ǽ?ʥ??????????ץ??ȥ???
(LCP)??
?????ưۤʤ??ͥåȥ???إץ??ȥ?????????????³?γ?Ω???Ԥ?
?췲?Υͥåȥ???????ץ??ȥ???
(NCP) ?? 3 ?Ĥ???ʬ???鹽???????Ƥ??ޤ???
???ץ??벽?ηϤϡ??????ͥ????Υɥ饤?Х????ɤˤ????????Ƥ??ޤ???
pppd ?ϡ?????Ū?? LCP
??ǽ??ǧ?ڵ?ǽ???????ƥ????ͥåȥץ??ȥ???
(IP) ??³?γ?Ω?????????Ԥ? NCP (IP
?????ץ??ȥ??? (IPCP)
?ȸƤФ??Ƥ??ޤ?)
?????ޤ???
- <tty_name>
- ???ꤷ???ǥХ??????𤷤??̿????ޤ???
?⤷ɬ?פǤ????С????? "/dev/"
ʸ???????ɲä????ޤ???
?ǥХ???̾?????ꤵ???Ƥ??ʤ???????
ɸ?????Ϥ???³???줿ü????̾????Ϳ?????줿?????ˤϡ?
pppd ?Ϥ???ü???????Ѥ???
?Хå????饦???ɼ¹ԤΤ????? fork
???Ԥ??ޤ????? noauth
???ץ??????Ѥ??줿???硢
???Υ??ץ????????ø????ץ??????Ȥʤ??ޤ???
- <speed>
- ?ܡ??졼?Ȥ? <speed> ?????ꤷ?ޤ? (10
?ʿ?)?? 4.4BSD ?? NetBSD
?Ȥ??ä??????ƥ??Ǥϡ?
???ꥢ???ǥХ????ɥ饤?Ф????ݡ??Ȥ???Ǥ?դ?®?٤???????ǽ?Ǥ???
????¾?Υ????ƥ? (SunOS, Linux ??)
?Ǥϰ??????Ȥ߹??碌?Τߤ???????ǽ?Ǥ???
- active-filter filter-expression
- ?ǡ????ѥ??åȤ?Ŭ?Ѥ??????ѥ??åȥե??륿?Ǥ??ꡢ
?ɤΥѥ??åȤ????????ƥ??ӥƥ??Ȥߤʤ????????ꤹ???ѥ??åȥե??륿??
???ꤷ?ޤ???
???????ƥ??ӥƥ??Ȥߤʤ??????ȡ??????ɥ륿???ޤ??ꥻ?åȤ????뤫??
?ǥޥ??ɥ????????⡼?ɻ??ˤϥ??????åפ????ޤ???
(?㤨?з?ϩ?????ѥ??å???)
????Ū?˥????ǥѥ??å??????????Ԥ??졢
¾????ˡ?Ǥϥ????????ɥ??Ǥ????ȤϤߤʤ????ʤ??????ˡ?
???Υ??ץ??????? idle
???ץ??????ȤȤ??˻??Ѥ??????????Ǥ???
filter-expression ??ʸˡ?? tcpdump(1)
??Ʊ???Ǥ????? ?????Ҥ? PPP
?Ǥ???Ŭ???Ǥ??Τǡ?ether ??
arp ?ϻ??ѤǤ??ޤ?????
????Ū?ˤϡ??ե??륿???륯?????Ȥdz??äơ?
?????ζ????????˲??ᤵ???뤳?Ȥ????٤??Ǥ???
?????ͥ??ڤ? pppd ?? PPP_FILTER
?????????ƥ????ѥ??뤵?줿?????Τߡ?
???Υ??ץ??????????Ѳ?ǽ?Ǥ???
- asyncmap <map>
- ??Ʊ??ʸ???ޥåפ? <map>
?????ꤷ?ޤ???
???Υޥåפϡ????ꥢ??????????ͳ?????Ȥɤ?????ʸ???μ?????
???ޤ??????ʤ??ʤ뤫?Ҥ??????ΤǤ???
pppd ?ϡ?????????ʸ???? 2
?Х??ȤΥ????????ץ??????Ȥ????????????褦??
????¦?˰??ꤷ?ޤ??? ?????? 32
?ӥåȤ? 16
?ʿ??Ǥ??ꡢ?ƥӥåȤ??????????פ??٤?ʸ????
ɽ???Ƥ??ޤ??? ?ӥå? 0 (00000001)
??ʸ?? 0x00 ??ɽ???? ?ӥå? 31 (80000000)
?ϡ?ʸ?? 0x1f ?Ĥޤ? '^_'
??ɽ???Ƥ??ޤ??? ʣ???? asyncmap
???ץ???????Ϳ?????줿???硢?????????ͤ??????¤?
???Ѥ????ޤ??? asyncmap
???ץ???????Ϳ???????ʤ??ä??????ˤϡ????Υۥ??Ȥ?????¦?Ȥʤ?
??Ʊ??ʸ???ޥåפ????ꤵ???ޤ?????
????¦?????٤Ƥ?????ʸ?????????פ??????????ޤ???
????ʸ?????????פ????ˤϡ?escape
???ץ??????????Ѥ??ޤ???
- auth
- ?ͥåȥ???ѥ??åȤ????????????Ĥ??????ˡ?????¦?˼?ʬ??????
?Ԥ??褦?ᤷ?ޤ???
- call name
- ?ե????? /etc/ppp/peers/name
???饪?ץ????????ɤߤޤ??? pppd ?? root
?ʳ??ˤ??äƵ?ư???줿?????ˤ????Ƥ⡢
???Υե??????? noauth
?Τ褦???ø????ץ????????ޤ??Ǥ⤫?ޤ??ޤ?????
ʸ???? name ?? /
?dz??Ϥ??ƤϤʤ??ޤ???
?ѥ?̾?ΰ????? ..
???ޤ??ǤϤʤ??ޤ?????
???ץ??????ե??????Υե????ޥåȤϸ??Ҥ??ޤ???
- connect script
- script
?ǻ??ꤵ?줿?¹Բ?ǽ???ޥ??ɤޤ??ϥ????륳?ޥ??ɤ????Ѥ??ơ?
???ꥢ???????Υ??åȥ??åפ??Ԥ??ޤ???
?ۤȤ??ɤξ??硢?????ǻ??ꤵ???륹?????ץȤˤ?
chat(8) ?ץ????????????Ѥ???
???ǥ??˥??????륳?ޥ??ɤ????ä??ꡢ???⡼??
ppp ???å??????Ϥ????ꤷ?ޤ???
noauth ???ץ??????Ѥ??줿???硢
???Υ??ץ????????ø????ץ??????Ȥʤ??ޤ???
- connect-max-attempts <n>
- ???ꤷ?????? (?ǥե????ȤǤ? 1)
???ۤ??ƥ??⡼?ȥ????ƥ??Ȥ?
??????????³???ݻ????ޤ???????³???Ǥ??ʤ??????ϡ?
pppd ?Ͻ?λ???ޤ??? persist
?????ꤹ?뤳?Ȥ??ᤵ???ޤ???
- crtscts
- ???ꥢ???ݡ??ȤΥե????????˥ϡ??ɥ??????ե???????
(RTS/CTS) ???Ѥ??ޤ??? crtscts ?? nocrtscts
??ξ???Υ??ץ???????Ϳ???????ʤ?????
???ꥢ???ݡ??ȤΥϡ??ɥ??????ե????????????????ѹ????줺??
???Τޤޤˤʤ??ޤ???
- defaultroute
- IPCP
?ͥ????????????????????????ȡ?????¦???ȥ??????Ȥ???
?ǥե????ȷ?ϩ???ƥ??η?ϩ?ơ??֥????ɲä??ޤ???
???Υ??ץ??????ˤ????ɲä??줿?ǥե????ȷ?ϩ?????ȥ??ϡ?
PPP ??³?????Ǥ??줿?ݤ˺????????ޤ???
nodefaultroute
???ץ??????ꤵ?줿?????ˤϡ?
???Υ??ץ????????ø????ץ??????Ȥʤ??ޤ???
- disconnect script
- pppd ????³???ڤä????? script
?ǻ??ꤷ???¹Բ?ǽ???ޥ??ɤޤ???
?????륳?ޥ??ɤ??¹Ԥ??ޤ???
???Υ??????ץȤǡ??㤨?Хϡ??ɥ????????ǥ????濮??
(DTR) ???Ȥ??ʤ???????
???ǥ????ϥ??åפ??뤳?Ȥ??Ǥ??ޤ???
???ǥब???˥ϥ??åפ??Ƥ????????ˤϡ????????ǥ??????ץȤϼ¹Ԥ????ޤ?????
noauth
???ץ??????Ѥ??줿?????ˤϡ?
???Υ??ץ????????ø????ץ??????Ǥ???
- escape xx,yy,...
- ž?????˥????????פ??Ԥ??٤?ʸ???????ꤷ?ޤ?
(????¦??
??Ʊ??ʸ???ޥåפǥ????????פ??ᤷ?Ƥ??뤫?ɤ????ˤϱƶ??????ޤ???)??
?????????פ?????ʸ???ϡ??????ޤǶ??ڤ??줿
16 ?ʿ??ǻ??ꤷ?ޤ???
????ʸ???????????Ǥ??ʤ? asyncmap
???ץ????? ?Ȥϰۤʤꡢescape
???ץ??????ǤϤɤ???ʸ???Ǥ??????Ǥ???
???Ȥ????դ??Ƥ????????? ?????? 16 ??ɽ???? 0x20
???? 0x3f ?ޤǤ? 0x5e ??ʸ????
?????????פ??ƤϤʤ??ޤ?????
- file name
- ???ץ????????ե????? name
?????ɤ߹??ߤޤ?
(?ե????ޥåȤϸ??Ҥ??ޤ?)??
???Υե??????ϡ?pppd
????ư?????桼?????ɤळ?Ȥ???ǽ?Ǥ???ɬ?פ??????ޤ???
- lock
- ???ꥢ???ǥХ??????Ф?????¾???????????μ¤˹Ԥ??????ˡ?
UUCP ?????Υ??å??ե????????????????褦 pppd
?˻ؼ????ޤ???
- mru n
- ?ͥ????????????????? MRU [????????ñ??; Maximum Receive Unit]
?ͤ? n ?????ꤷ?ޤ??? pppd
?ϡ??̿??????? n
?Х??Ȥ?Ķ?????ѥ??åȤ????????ʤ??褦?ᤷ?ޤ???
?Ǿ??? MRU ?ͤϡ?128 ?Ǥ???
?ǥե????Ȥ? MRU ?ͤ? 1500
?Ǥ?????®?Υ??Ǥ? 296
???侩???ޤ? (TCP/IP ?إå? 40 ?Х??? +
?ǡ??? 256 ?Х???)??
- mtu n
- MTU [????ž??ñ??; Maximum Transmit Unit] ?ͤ? n
?????ꤷ?ޤ??? ???꤬ MRU
?ͥ????????????????̤??Ƥ??????꾮?????ͤ??ᤷ?Ƥ??ʤ??¤ꡢ
PPP
?ͥåȥ?????ե????????̤???
n ?Х??Ȥ?
?ۤ??ʤ??ǡ????ѥ??åȤ????뤳?Ȥ???
pppd
?ϥ????ͥ??Υͥåȥ???????ɤ??ᤷ?ޤ???
- passive
- LCP ?? "passive"
???ץ???????ͭ???ˤ??ޤ??????Υ??ץ??????????ꤷ???????ˤϡ?
??³?Ϥ??褦?Ȥ??Ƥ????꤫???????????ʤ????硢
pppd ?????꤫??ͭ???? LCP
?ѥ??åȤ????夹???Τ???ưŪ???Ԥ?³???ޤ???
???Υ??ץ??????????ꤷ?ʤ????С????꤫???????????ʤ???????
pppd ?ϼ¹Ԥ????Ǥ??ޤ???
- <local_IP_address>:<remote_IP_address>
- ???????륤?ե??????ȥ??⡼?ȥ??ե???????
IP ???ɥ쥹?????ꤷ?ޤ???
?ɤ??餫????????ά???뤳?Ȥ???ǽ?Ǥ???IP
???ɥ쥹?ϡ??ۥ???̾?⤷???? 10
?ʿ??ɥå?ɽ?? (??: 150.234.56.78)
?Τɤ????Ǥ???????ǽ?Ǥ???
?ǥե????ȤΥ??????륢?ɥ쥹?ϡ????Υ????ƥ???
(?ǽ???) IP ???ɥ쥹?? ?ʤ??ޤ???(??????
noipdefault
???ץ??????ꤵ?줿???????????ޤ???)
???⡼?ȥ??ɥ쥹?ϡ?
???ץ??????ǻ??ꤵ???Ƥ??ʤ??????ˤ?????¦?????????????ޤ???
?Ǥ????顢???äȤ?ñ???ʻ??????Ԥ??????ˤϡ????Υ??ץ?????????ɬ?פǤ???
?????????ޤ??ϥ??⡼?Ȥ? IP
???ɥ쥹?????Υ??ץ??????ǻ??ꤵ???Ƥ????????ˤϡ?
IPCP
?ͥ???????????????????¦?????λ????Ȱۤʤ륢?ɥ쥹?????ä??褿???硢
pppd ?Ϥ????????ݤ??ޤ???????????
ipcp-accept-local ?? ipcp-accept-remote
?????ꤵ???Ƥ????????ˤϤ??θ¤??ǤϤ????ޤ?????
- bsdcomp nr,nt
- ??³?????ˡ?BSD-Compress
???????Ȥä????л??Υѥ??åȰ??̤??ᤷ?ޤ???
?????Ǥκ??祳???ɥ??????? nr
?ӥåȤǤ???
????¦???????ѥ??åȤκ??????礭???ϡ?
nt ?ӥåȤǤ??? nt
?????ꤵ???ʤ????ϡ??ǥե????Ȥ?
nr ???Ȥ????ޤ??? 9 ???? 15
???ϰϤ??ͤ??? nr ?? nt
?ǻȤ????ޤ???
?????礭???ͤϡ??????褤???̤Ȥʤ??ޤ????????̼????Τ????ˤ???¿????
?????ͥ????????????ޤ???nr ?? nt
???Ф??ơ??? 0 ??
???ꤹ???ȡ????ꤷ???????ˤϰ??̤??Ԥ??ޤ?????
BSD-Compress
???̤???????̵???ˤ??뤿???ˤϡ?
nobsdcomp ?? bsdcomp 0 ?????ꤷ?Ƥ?????????
- callback phone_number
- phone_number
?˥??????Хå????ᤷ?ޤ???
?????????꤬ Call Back Configuration Protocol (CBCP)
???ä??????ˤΤ? ??ǽ???ޤ??? ???? CBCP
?ݡ??Ȥ??ʤ??????Ф???³???뤳?Ȥ??????Τʤ顢
???פʥ??ץ??????ե??????ˤϡ????????ޤ??ʤ??Dz???????
- chap-interval n
- ???Υ??ץ??????ꤵ?줿???硢 pppd ??
n ?ä????˺ƥ????????ޤ???
- chap-max-challenge n
- CHAP ???????κ????????????? n
?????ꤷ?ޤ? (?ǥե??????ͤ? 10)??
- chap-restart n
- (???????κ????Υ????ॢ???Ȥˤ???)
CHAP ?Ƴ??δֳ֤? n
?ä????ꤷ?ޤ? (?ǥե??????ͤ?
3)??
- debug
- ??³?ΥǥХå???ǽ??ͭ???ˤ??ޤ???
???Υ??ץ??????????ꤷ?????硢pppd ????????????
???٤Ƥ??????ѥ??åȤ????Ƥ????ɷ????ǥ??????ޤ???
?ѥ??åȤ? syslog ????ͳ???ơ?daemon
?ե??????ƥ??? debug
???٥??Ȥ??Ƶ?Ͽ?????ޤ???
?ܾ????ϡ?/etc/syslog.conf
??Ŭ?ڤ˵??Ҥ??뤳?Ȥ?
?ե??????˵?Ͽ???뤳?Ȥ??Ǥ??ޤ?
(syslog.conf(5) ????)??
- default-asyncmap
- asyncmap ?ͥ???????????????̵???ˤ???
??????ξ?????ˤ???????ʸ?????????פ????ޤ???
- default-mru
- MRU [????????ñ??; Maximum Receive Unit]
?ͥ???????????????̵???ˤ??ޤ???
???Υ??ץ??????????ꤹ???ȡ???????ξ?????ˤ????ơ?
pppd ?ϥǥե????Ȥ? MRU ?? 1500
?Х??Ȥ????Ѥ??ޤ???
- deflate nr,nt
- ??³?????ˡ?Deflate
???????Ȥä????л??Υѥ??åȰ??̤??ᤷ?ޤ???
?????Ǻ????Υ??????ɥ????????? 2**nr
?Х??ȤǤ???
?ޤ??????????????ѥ??åȤ????祦?????ɥ???????
2**nt ?Х??Ȥˤư???
???뤳?Ȥ????դ??ޤ??? nt
?????ꤵ???ʤ??ȡ??ǥե????Ȥ?
nr ???ͤȤʤ??ޤ??? nr ?? nt
?ˤ? 8 ???? 15
?ޤǤ??ϰϤ??ͤ????????ޤ???
?????礭???ͤϡ??????褤???̤Ȥʤ??ޤ????????̼????Τ????ˤ???¿????
?????ͥ????????????ޤ??? nr ?? nt
???Ф??ơ??? 0 ??
???ꤹ???ȡ????ꤷ???????ˤϰ??̤??Ԥ??ޤ?????
Deflate
???̤???????̵???ˤ??뤿???ˤϡ?
nodeflate ?? deflate 0 ?????ꤷ?Ƥ????????? (??:
???꤬ξ???Ȥ???ǽ?ʾ????ˤϡ?
pppd ?? BSD-Compress ?????? Deflate
???̤????ᤷ?ޤ???)
- demand
- ???γ??Ϥ??????Τߡ??Ĥޤ??ǡ????ȥ??ե??å???¸?ߤ??????Τ߹Ԥ??ޤ???
???Υ??ץ??????????ꤹ?????硢???⡼?? IP
???ɥ쥹????
?桼???????ޥ??ɥ饤???ǻ??ꤹ?뤫?????ץ??????ե????????˴ޤ?ɬ?פ??????ޤ???
pppd ?ϡ?????????³???뤳?Ȥʤ???
?ޤ????ե??????????ꤷ?? IP
?ȥ??ե??å????????ޤ???
?ȥ??ե??å??????????ȡ?pppd
??????????³????
?ͥ???????????????ǧ?ڤʤɤ??Ԥ??ޤ???
???줬??λ?????ȡ?pppd
?ϥ????𤷤ƥǡ????ѥ??å?
(???ʤ??? IP ?ѥ??å?)
?μ????Ϥ??ޤ???
demand ???ץ??????ϰ???Ū??
persist ???ץ??????????ꤷ?ޤ???
????ư?˾?ޤ????ʤ????硢demand
???ץ??????θ??? nopersist
???ץ??????????Ѥ??Ƥ????????? idle ??????
holdoff ?Υ??ץ????????ޤ??? demand
???ץ??????ȤȤ??˻??Ѥ??????????Ǥ???
- domain d
- ǧ?ڤΤ????˻??Ѥ????????????ۥ???̾?˥ɥᥤ??̾
d ???ղä??ޤ???
?㤨?С??????ʷ??ǤΥɥᥤ??̾
(FQDN) ?? porsche.Quotron.COM ?Ǥ??äơ? gethostname()
?? porsche ?Ȥ???̾?????֤??????ˤϡ?
???Υ??ץ????????Ѥ??ƥɥᥤ??̾??
Quotron.COM ?Ȼ??ꤷ?ޤ??? ?????????ȡ?pppd
?? porsche.Quotron.COM ??
??̩?????ե?????????????̩??????Ĵ?٤뤿???˻??Ѥ????ꡢ
???????Ф??Ƽ??ʾ??????뤿?????????ǥե????Ȥ?̾???Ȥ??ƻ??Ѥ??ޤ???
???Υ??ץ????????ø????ץ??????Ǥ???
- holdoff n
- ?????????Ǥ????ƽ??????ޤDz????ԤĤ??????ꤷ?ޤ???
persist ?ޤ??? demand
???ץ????????ѻ??ˤΤߡ?
???Υ??ץ???????ͭ???Ǥ???
?????ɥ??Ǥ??ä??????˥??????Ǥ??줿?????ϡ?
?????ߴ??֤?Ŭ?Ѥ????ޤ?????
- idle n
- ???? n
?å????ɥ????ä?????????³???ڤ??褦??
pppd ?˻??ꤷ?ޤ??? ?ǡ????ѥ??å?
(?Ĥޤ? IP
?ѥ??å?)?????????????ʤ????ˡ?
???ϥ????ɥ????Ȥߤʤ????ޤ???
??: demand ???ץ??????????Ѥ????? persist
???ץ??????????Ѥ????????ˡ????Υ??ץ????????Ȥ????Ȥ??ޤ???
active-filter ???ץ???????Ϳ?????????ȡ?
???ꤷ???????ƥ??ӥƥ??ե??륿?????????ʤ??ä??ǡ????ѥ??åȤ??ޤ???
?????????ɥ??Ǥ????Ȥߤʤ??оݤȤ??ޤ???
- ipcp-accept-local
- ???Υ??ץ??????ꤵ?줿?????ˤϡ?
?̤Υ??ץ??????ˤ??äƥ??????? IP
???ɥ쥹?λ??꤬?Ԥ????Ƥ????????Ǥ⡢
pppd ?????꤫???Υ??????? IP
???ɥ쥹?λ??????????????ޤ???
- ipcp-accept-remote
- ???Υ??ץ??????ꤵ?줿?????ˤϡ?
?̤Υ??ץ??????ˤ??äƥ??⡼?? IP
???ɥ쥹?λ??꤬?Ԥ????Ƥ????????Ǥ⡢
pppd ?????꤫???Υ??⡼?? IP
???ɥ쥹?λ??????????????ޤ???
- ipcp-max-configure n
- IPCP configure-request ?κ????????????? n
???????ꤷ?ޤ? (?ǥե??????ͤ? 10)??
- ipcp-max-failure n
- IPCP configure-Reject ?????????Ϥ????ޤǤ? IPCP
configure-NAK ?κ????????????? n ???????ꤷ?ޤ?
(?ǥե??????ͤ? 10)??
- ipcp-max-terminate n
- IPCP terminate-request ?κ????????????? n
???????ꤷ?ޤ? (?ǥե??????ͤ? 3)??
- ipcp-restart <n>
- (?????Υ????ॢ???Ȥˤ???) IPCP
?Ƴ??δֳ֤? n
?ä????ꤷ?ޤ??? (?ǥե??????ͤ?
3)??
- ipparam string
- ip-up ?? ip-down
???????ץ??Ѥ?;ʬ?Υѥ?????????ꤷ?ޤ???
???Υ??ץ???????Ϳ?????줿???硢 string
?? 6 ???ܤΥѥ??????
???ơ????????Υ??????ץȤ?Ϳ???????ޤ???
- ipx
- IPXCP ?????? IPX ?ץ??ȥ?????ͭ???ˤ??ޤ???
???Υ??ץ??????ϸ??? Linux ?ǤΤߡ?
IPX
???ݡ??Ȥ??ޤ??ƥ????ͥ????????????????Τߥ??ݡ??Ȥ????Ƥ??ޤ???
- ipx-network n
- IPXCP ???????ե졼?????? IPX
?ͥåȥ???ֹ??? n
?????ꤷ?ޤ??? 16 ?ʿ? (??Ƭ?? 0x ????????)
?????ꤷ?ޤ???
?????ʥǥե??????ͤϤ????ޤ?????
???Υ??ץ??????ꤵ???ʤ??ȡ??ͥåȥ???ֹ??????꤫?????????ޤ???
???꤬?ͥåȥ???ֹ??????äƤ??ʤ??????ϡ?IPX
?ץ??ȥ????ϳ??Ϥ????ޤ?????
- ipx-node n:m
- IPX ?Ρ????ֹ??????ꤷ?ޤ??? 2
?ĤΥΡ????ֹ??????Ƕ??ڤ??ޤ???
?ǽ????ֹ? n
?ϥ????????ΥΡ????ֹ??Ǥ??? ?????ֹ?
m ???????ΥΡ????ֹ??Ǥ???
?ɤ????ΥΡ????ֹ??? 16
?ʿ??Ǥ??ꡢ???? 10 ???Ǥ??? ipx-network
?ΥΡ????ֹ??ϰ??դǤ???ɬ?פ??????ޤ???
?????ʥǥե??????ͤϤ????ޤ?????
???Υ??ץ??????ꤵ???ʤ??ȡ??Ρ????ֹ??????꤫?????????ޤ???
- ipx-router-name <string>
- ?롼??̾?????ꤷ?ޤ???
??????ʸ?????Ǥ??ꡢ?????ǡ????Ȥ????????????????ޤ???
- ipx-routing n
- ??????????ϩ?ץ??ȥ????Υ??ץ??????ǻ??ꤷ?ޤ???
ʣ???? ipx-routing
????????????ǽ?Ǥ???'none'
???ץ????? (0) ?Τߡ?ipx-routing
?????Ȥ??ƻ?????ǽ?Ǥ???
?ͤϡ?0 ?? NONE ?ˡ?2 ??
RIP/SAP ?ˡ? 4 ?? NLSP
???б????ޤ???
- ipxcp-accept-local
- ipx-node
???ץ??????ǻ??ꤷ???Ρ????ֹ????Ф??롢??????
NAK ???????դ??ޤ??? ?? 0
?ΥΡ????ֹ椬???ꤵ?줿???硢
?????ͤλ??Ѥ???ĥ???뤳?Ȥ??ǥե????ȤǤ???
???Υ??ץ??????????ꤹ???ȡ?
???꤬?Ρ????ֹ??Υ????ȥ????????뤳?Ȥ??????ޤ???
- ipxcp-accept-network
- ipx-network
???ץ??????ǻ??ꤷ???ͥåȥ???ֹ????Ф??롢
?????? NAK ???????դ??ޤ??? ?? 0
?ΥΡ????ֹ椬???ꤵ?줿???硢
?????ͤλ??Ѥ???ĥ???뤳?Ȥ??ǥե????ȤǤ???
???Υ??ץ??????????ꤹ???ȡ?
???꤬?Ρ????ֹ??Υ????ȥ????????뤳?Ȥ??????ޤ???
- ipxcp-accept-remote
- ???????ե졼?????˻??ꤵ?????????Υͥåȥ???ֹ??????Ѥ??ޤ???
?????ΥΡ????ֹ??????ꤷ??
???Ĥ??Υ??ץ??????????ꤷ?ʤ??ä??????ϡ?
?????Ϥ??ʤ??????ꤷ???ͤ????Ѥ??뤳?Ȥ??????????ޤ???
- ipxcp-max-configure n
- ?????ƥब???????? IPXCP
???????ե졼?????κ????ͤ? n
?????ꤷ?ޤ??? ?ǥե??????ͤ? 10
?Ǥ???
- ipxcp-max-failure n
- ???????륷???ƥब???ץ??????????ݤ??????ˡ?
???????륷???ƥब???????? IPXCP NAK
?ե졼??????
?????ͤ????ꤷ?ޤ????ǥե??????ͤ? 3
?Ǥ???
- ipxcp-max-terminate n
- ???꤬ʹ???Ƥ??ʤ??Ȥ???Ƚ?Ǥ????????륷???ƥब???????ˡ?
???????륷???ƥब???????? IPCP
???????ե졼?????κ????ͤ????ꤷ?ޤ????ǥե??????ͤ?
3 ?Ǥ???
- kdebug n
- ?????ͥ????٥??? PPP
?ɥ饤?ФΥǥХå??????ɤ?ͭ???ˤ??ޤ???
???? n
?Ȥ??ơ??ʲ??ο??ͤΤ???ɬ?פʤ??Τι??פ????ꤷ?ޤ???
1
?ϰ???Ū?ʥǥХå????å????????Ϥ?ͭ???ˤ??ޤ???
2
?ϼ????????ѥ??åȤ????Ƥν??Ϥ??ᤷ?ޤ???
4
???????????ѥ??åȤ????Ƥν??Ϥ??ᤷ?ޤ???
?ۤȤ??ɤΥ????ƥ??Ǥϡ??????ͥ뤬ɽ?????????å??????ϡ?
/etc/syslog.conf
?????ե??????˻ؼ????????褦?ˡ? syslog(1)
???ե??????˥??????ޤ???
- lcp-echo-failure n
- ???Υ??ץ??????ꤵ?줿???硢 LCP
echo-request ?? n ?????????Ƥ? ???꤫??ͭ???? LCP
echo-reply ?????äƤ??ʤ????С?pppd ??
???꤬?????Ƥ??????Τȿ?¬???ޤ??????Τ褦?ʾ??硢pppd
??
??³?????Ǥ??ޤ??????Υ??ץ??????????Ѥ????ݤˤϡ?
lcp-echo-interval ?Υѥ?????Ȥ??? 0
?ʳ??ο??ͤ????ꤷ?Ƥ?????????
???Υ??ץ??????ϡ??ϡ??ɥ????????ǥ???????
(DSR) ?????ѤǤ??ʤ??????ǡ?
(???ǥब?ϥ??åפ????ʤ?)
ʪ??Ū????³?????Ǥ??줿???? pppd
????λ???뤿?????Ѥ??????ޤ???
- lcp-echo-interval <n>
- ???Υ??ץ??????????ꤹ???ȡ?pppd ?? LCP
echo-request ?ե졼???? n
??????????¦?????????ޤ??? ?̾????¦??
echo-request ???????????? echo-reply ???????֤??????????ޤ???
???Υ??ץ??????ϡ?????¦?Ȥ???³???ڤ줿???ȤФ??뤿????
lcp-echo-failure
???ץ??????ȤȤ??˻??Ѥ????ޤ???
- lcp-max-configure n
- LCP configure-request ?κ????????????? n
???????ꤷ?ޤ? (?ǥե??????ͤ? 10)??
- lcp-max-failure n
- LCP configure-Reject ?????????Ϥ????ޤǤ? LCP
configure-NAK ?κ????????????? n ???????ꤷ?ޤ?
(?ǥե??????ͤ? 10)??
- lcp-max-terminate n
- LCP terminate-request ?κ????????????? n
???????ꤷ?ޤ? (?ǥե??????ͤ? 3)??
- lcp-restart n
- (?????Υ????ॢ???Ȥˤ???) LCP
?Ƴ??δֳ֤? n
?ä????ꤷ?ޤ? (?ǥե??????ͤ?
3)??
- local
- ???ǥ????????????Ѥ??ޤ????Υ??ץ??????????ꤹ???ȡ?
pppd ?ϡ????ǥफ???? CD (Carrier Detect)
?????ξ??֤?̵?뤷?? DTR (Data Terminal Ready)
?????ξ??֤??Ѳ??????ޤ?????
- login
- PAP
???Ѥ?????????ǧ?ڤˡ??????ƥ??ѥ???ɥǡ????١??????Ѥ???
?桼?????ƥ??? wtmp
?ե??????˵?Ͽ???ޤ???
?????????????????뤿???ˤϡ? /etc/ppp/pap-secrets
?ե??????ȥ????ƥ??ѥ???ɥǡ????١?????ξ???ˡ?
?????Υ????ȥ꤬¸?ߤ???ɬ?פ??????ޤ???
- maxconnect n
- ?ͥåȥ???ȥ??ե??å??λ??ѳ??Ϥ???
n ?ø?????³?????Ǥ??ޤ?
(?????ϡ??ǽ??Υͥåȥ???????ץ??ȥ??뤬???Ƥ???
n ?äˤʤ??ޤ?)??
- modem
- ???ǥ????????????Ѥ??ޤ??????Υ??ץ??????ϥǥե????ȤǤ???
???Υ??ץ??????????ꤹ???ȡ?pppd ??
(??³???????ץȤ????ꤷ?Ƥ??ʤ?????)
???ǥफ???? CD (Carrier Detect)
?????Υ??????Ȥ??ԤäƤ???
???ꥢ???ǥХ??????ץ???³??λ????
DTR (Data Terminal Ready) ??????û?????????Ȥ??Ƥ???
??³???????ץȤ??¹Ԥ??ޤ??? Ultrix
?Ǥϡ????Υ??ץ??????ϥϡ??ɥ??????ե??????桢
???ʤ??? crtscts
???ץ???????????Ū?˻??ꤷ?ޤ???
- ms-dns <addr>
- pppd ?? Microsoft Windows
???饤?????ȤΥ????ФȤ???ư??Ƥ??????硢
???Υ??ץ??????? pppd ?? 1 ?ޤ??? 2 ?? DNS (Domain Name
Server) ???ɥ쥹??
???饤?????Ȥ????뤳?Ȥ??????ޤ???
???Υ??ץ??????κǽ??Υ????ϥץ饤?ޥ?
DNS ???ɥ쥹??Ϳ???ޤ???
???Υ????? (?⤷Ϳ??????????)
?????????? DNS ???ɥ쥹??Ϳ???ޤ???
(???Υ??ץ??????ϡ? ?Ť??С????????? pppd
?Ǥ? dns-addr ?Ȥ???̾???Ǥ?????)
- ms-wins <addr>
- pppd ?? Microsoft Windows ???饤?????Ȥޤ???
"Samba" ???饤?????Ȥ?
?????ФȤ???ư??Ƥ??????硢???Υ??ץ???????
pppd ?? 1 ?ޤ??? 2 ?? WINS (Windows Internet Name Services)
?????Х??ɥ쥹?饤?????Ȥ?????
???뤳?Ȥ??????ޤ???
???Υ??ץ??????κǽ??Υ????ϥץ饤?ޥ?
WINS ???ɥ쥹??Ϳ???ޤ???
???Υ????? (?⤷Ϳ??????????)
?????????? WINS ???ɥ쥹??Ϳ???ޤ???
- name name
- ǧ?ڤ???Ū???Ѥ??????????????륷???ƥ???̾????
name ?????ꤷ?ޤ???
???Υ??ץ????????ø????ץ??????Ǥ???
???Υ??ץ??????????ꤹ???ȡ?pppd
????̩?????ե????????? 2 ?ե??????ɤ? name
?Ǥ????Ԥ????Ѥ?????̩??????õ??????????ǧ?ڤ??ޤ???
?????ˡ?user
???ץ??????Ǿ????ʤ??????ϡ?
???????Ф??ƥ??????륷???ƥ??ʾ???????????????̾???Ȥ???
name ?????Ѥ??ޤ??? (pppd
?ϥɥᥤ??̾?? name
???ղä??ʤ????Ȥ????դ??Ƥ?????????)
- netmask n
- ???ե??????Υͥåȥޥ?????
n ?????ꤷ?ޤ??? 32
?ӥåȤΥͥåȥޥ???????10
?ʿ??ɥåȡ?ɽ???ǻ??ꤷ?ޤ?
(??: 255.255.255.0)??
???Υ??ץ???????Ϳ?????????ȡ??ǥե????ȤΥͥåȥޥ????Ȼ??ꤷ???ͥåȥޥ???
?Ȥ??????¤??ͤȤʤ??ޤ????ǥե????ȤΥͥåȥޥ????ϥͥ????????Ȥ?????
???⡼?Ȥ? IP
???ɥ쥹?˰?¸???ޤ??? ???⡼?? IP
???ɥ쥹?Υ??饹??Ŭ?ڤʥͥåȥޥ????ȡ?
Ʊ???ͥåȥ???奷???ƥ?????
point-to-point
?ͥåȥ?????ե?????
?Υͥåȥޥ????Ȥ??????¤Ȥʤ??ޤ???
- noaccomp
- Address/Control ???̤??????? (??????)
??̵???ˤ??ޤ???
- noauth
- ???꤬???ʾ??????뤳?Ȥ??ᤷ?ޤ?????
auth ???ץ??????? /etc/ppp/options
?˻??ꤵ???Ƥ??????硢
???Υ??ץ????????ø????ץ??????Ǥ???
- nobsdcomp
- BSD-Compress ???̤?̵???ˤ??ޤ??? BSD-Compress
?????????Ѥ????ѥ??åȰ??̤? pppd
?????Ʊ?⤷?ޤ?????
- noccp
- CCP (?????????ץ??ȥ???; Compression Control Protocol)
?ͥ??????????????? ̵???ˤ??ޤ???
?????˥Х??????뤿???ˡ? CCP
?ͥ??????????????Τ????? pppd
?????????˺??𤷤Ƥ??ޤ??????ˤΤߡ?
???Υ??ץ???????ɬ?פǤ???
- nocrtscts
- ???ꥢ???ݡ??Ȥ˥ϡ??ɥ??????ե???????
(?Ĥޤ? RTS/CTS) ?????Ѥ??ޤ????? crtscts
?? nocrtscts
??ξ???Υ??ץ???????Ϳ???????ʤ?????
???ꥢ???ݡ??ȤΥϡ??ɥ??????ե????????????????ѹ????줺??
???Τޤޤˤʤ??ޤ???
- nodefaultroute
- defaultroute ???ץ???????̵???ˤ??ޤ???
pppd
???ȤäƤ????桼???˥ǥե????ȷ?ϩ???????????????ʤ?
?????ƥ??????Ԥϡ????Υ??ץ???????
/etc/ppp/options ?ե???????
???Ҥ??뤳?Ȥ??Ǥ??ޤ???
- nodeflate
- Deflate ???̤?̵???ˤ??ޤ??? pppd ?? Deflate
?????????Ѥ??????̥ѥ??åȤ??ᤷ?ޤ?????Ʊ?⤷?ޤ?????
- nodetach
- ????ü???????ڤ?Υ???ޤ????Υ??ץ??????????ꤷ?ʤ??ȡ?
ɸ?????Ϥ?????ü???ʳ??Υ??ꥢ???ǥХ????????ꤵ?줿?????ϡ?
pppd ?? fork
???ƥХå????饦???ɥץ??????ˤʤ??ޤ???
- noip
- IPCP ?ͥ??????????????? IP
?̿???̵???ˤ??ޤ???
?????˥Х??????뤿???ˡ? IPCP
?ͥ??????????????Τ????? pppd
?????????˺??𤷤Ƥ??ޤ??????ˤΤߡ?
???Υ??ץ???????ɬ?פǤ???
- noipdefault
- ???????? IP
???ɥ쥹?????ꤵ???ʤ??????˥ǥե????ȤǹԤ????롢
?ۥ???̾???? IP ???ɥ쥹??
(??ǽ?Ǥ?????)
???ꤹ??ư????̵???ˤ??ޤ???
???Υ??ץ??????????ꤷ???????ˤϡ?IPCP
?ͥ????????????????? ????¦???????????? IP
???ɥ쥹?????ꤹ??ɬ?פ??????ޤ?
(????Ū?˥??ޥ??ɥ饤???ǻ??ꤵ???Ƥ??뤫??
???ץ??????ե??????ǻ??ꤵ???Ƥ??????????????ޤ?)??
- noipx
- IPXCP ?????? IPX ?ץ??ȥ?????̵???ˤ??ޤ???
?????˥Х??????뤿???ˡ? IPXCP
?ͥ??????????????Τ????? pppd
?????????˺??𤷤Ƥ??ޤ??????ˤΤߡ?
???Υ??ץ???????ɬ?פǤ???
- nomagic
- magic number
?ͥ???????????????̵???ˤ??ޤ??????Υ??ץ??????????ꤷ???????ˤϡ?
pppd
?ϥ롼?ץХå??????Ф??뤳?Ȥ??Ǥ??ޤ?????
?????˥Х????????????ˤΤ?ɬ?פȤʤ??ޤ???
- nopcomp
- ???????????Ȥ⡢?ץ??ȥ????ե??????ɰ??̥ͥ???????????????̵???ˤ??ޤ???
- nopersist
- ??³?γ?Ω?????ǤΤ??Ӥ˽?λ???ޤ???
persist ?ޤ??? demand
?Υ??ץ??????ꤵ???ʤ????硢
???Υ??ץ??????ϥǥե????ȤǤ???
- nopredictor1
- Predictor-1
???̤??????դ??ޤ?????Ʊ?⤷?ޤ?????
- noproxyarp
- proxyarp ???ץ???????̵???ˤ??ޤ???pppd
?Υ桼???? proxy ARP
?????ȥ????????????????ʤ??????ƥ??????Ԥϡ????Υ??ץ???????
/etc/ppp/options
?ե??????˵??Ҥ??뤳?ȤǤ??Τ褦?ˤǤ??ޤ???
- novj
- Van Jacobson ?????? TCP/IP
?إå????̤????????????ˤ?????̵???ˤ??ޤ?
- novjccomp
- Van Jacobson ?????? TCP/IP
?إå????̤ˤ????ơ? connection-ID
???̤?̵???ˤ??ޤ???
???Υ??ץ??????????ꤹ???ȡ? pppd ?? Van Jacobson
???̤??줿 TCP/IP ?إå????? connection-ID
?Х??Ȥ???ά???ʤ??ʤ??ޤ?????
?????ˤ????ꤷ?ޤ?????
- papcrypt
- ??????Ʊ??????Ĵ?٤뤿???˻Ȥ?????
/etc/ppp/pap-secrets
?ե????????????Ƥ???̩???????Ź沽???뤳?Ȥ?
?ؼ????ޤ???pppd ?ϡ??Ź沽????
/etc/ppp/pap-secrets
?ե????뤫??????̩?????????????ѥ???ɤ??????????ޤ?????
- pap-max-authreq n
- PAP authenticate-request ?κ????????????? n
???????ꤷ?ޤ? (?ǥե??????ͤ? 10)??
- pap-restart n
- (?????Υ????ॢ???Ȥˤ???) PAP
?Ƴ??δֳ֤? n
?ä????ꤷ?ޤ? (?ǥե??????ͤ?
3)??
- pap-timeout n
- PAP ?ˤ???????³?褬???ʾ????????ޤ? pppd
???Ե????????????֤???n ?ä?
???ꤷ?ޤ? (0
?????¤??ߤ??ʤ????Ȥ???̣???ޤ?)??
- pass-filter filter-expression
- ?????????????ǡ????ѥ??åȤ?Ŭ?Ѥ??????ե??륿?ǡ?
?̲????????????ѥ??åȤ????ꤹ???ե??륿?????ꤷ?ޤ???
?ե??륿?????ݤ????ѥ??åȤ??ۤäƼΤƤ????ޤ???
?????Υͥåȥ???ǡ????? (?㤨??
routed) ??
???Х????????Ȥ??ڤ뤳?Ȥ??ɤ????ꡢ
????Ū?ʥե????????????뵡ǽ?????뤿???ˡ????Υ??ץ????????ޤ???
filter-expression ??ʸˡ?? tcpdump(1)
??Ʊ???Ǥ????? ?????Ҥ? PPP
???Ǥ???Ŭ???Ǥ??Τǡ? ether
?? arp ?ϻ??ѤǤ??ޤ?????
????Ū?ˤϡ??ե??륿???륯?????Ȥdz??äơ?
?????ζ????????˲??ᤵ???뤳?Ȥ????٤??Ǥ???
inbound ?? outbound
?θ????Ҥ??դ??뤳?Ȥˤ??ꡢ
?????ϤΥѥ??åȤ˰ۤʤä???????Ŭ?Ѳ?ǽ?Ǥ???
???Υ??ץ??????ϸ??? NetBSD
?ǤΤ????Ѳ?ǽ?Ǥ??ꡢ
?????ͥ??ڤ? pppd ?? PPP_FILTER
?????????ƥ????ѥ??뤵?줿?????Τߡ?
???Υ??ץ??????????Ѳ?ǽ?Ǥ???
- persist
- ??³?????Ǥ??줿???ǽ?λ???ޤ????????????˺???³???褦?Ȥ??ޤ???
- predictor1
- ???꤬???Ф????ե졼???? Predictor-1
???̤????Ѥ????褦?ᤷ??
?ᤵ?줿???? Predictor-1
?????Хե졼???̤??뤳?Ȥ˻?Ʊ???ޤ???
?????ͥ??ɥ饤?Ф? Predictor-1
???̤ݡ??Ȥ??ʤ??????ˤϡ?
???Υ??ץ??????ϱƶ??????ޤ?????
- proxyarp
- ???????ƥ??? ARP [???ɥ쥹?????ץ??ȥ???;
Address Resolution Protocol] ?ơ??֥????????? IP
???ɥ쥹
?ȼ??????ƥ??Υ??????ͥåȥ??ɥ쥹???ɲä??ޤ???
¾?Υ????ƥ????Ф??ơ?
???꤬???????륤?????ͥåȾ??ˤ????褦?˸????뤳?Ȥˤʤ??ޤ???
- remotename name
- ???⡼?ȥ????ƥ???̾???? name
?Ȥߤʤ???ǧ?ڤ??Ԥ??ޤ???
- refuse-chap
- ???Υ??ץ??????????ꤹ???ȡ? pppd
?????????Ф??Ƽ??ʾ????????ˤ????? CHAP
?λ??Ѥ˻?Ʊ???ޤ?????
- refuse-pap
- ???Υ??ץ??????????ꤹ???ȡ? pppd
?????????Ф??Ƽ??ʾ????????ˤ????? PAP
?λ??Ѥ˻?Ʊ???ޤ?????
- require-chap
- CHAP
[???????ϥ??ɥ???????ǧ?ڥץ??ȥ???;
Challenge Handshake Authentication Protocol] ???Ѥ???
???ʾ??????Ԥ????Ȥ????????ᤷ?ޤ???
- require-pap
- PAP [?ѥ????ǧ?ڥץ??ȥ???; Password
Authentication Protocol] ???Ѥ???
???ʾ??????Ԥ????Ȥ????????ᤷ?ޤ???
- silent
- ???Υ??ץ??????????ꤷ?????硢 pppd
?????꤫??ͭ???? LCP
?ѥ??åȤ??????????ޤǡ?
??³?Ϥ??뤿???? LCP
?ѥ??åȤ????????????Ԥ??ޤ?
(???С????????? pppd ?? 'passive'
???ץ??????????ꤷ????????Ʊ??ư???Ǥ?)??
- usehostname
- ǧ?ڻ??˥ۥ???̾?????????륷???ƥ???̾???Ȥ??ƻ??Ѥ??뤳?Ȥ????????ޤ?
(?ɥᥤ??̾??Ϳ???????????ղä????ޤ?)??
(???Υ??ץ??????? name
???ץ???????ͥ?褷?ޤ???)
- user name
- ???Υޥ????????????Ф??Ƽ??ʾ????????ݤ??Ѥ????桼??̾??
name ?????ꤷ?ޤ???
- vj-max-slots n
- Van Jacobson ?? TCP/IP
?إå?????/??Ĺ?˻??Ѥ?????³?????åȿ???
n ?????ꤷ?ޤ??? 2 ???? 16
(ξü???ޤ?)
???ϰϤˤ???ɬ?פ??????ޤ???
- welcome script
- PPP ?ͥ??????????????????ġ?(?⤷??????)
??³???????ץȤδ?λ???ˡ?
script
?ǻ??ꤵ?????¹ԥ??ޥ??ɤ⤷???ϥ????륳?ޥ??ɤ??¹Ԥ??ޤ???
noauth
???ץ??????Ѥ??줿?????ˤϡ?
???Υ??ץ????????ø????ץ??????Ȥʤ??ޤ???
- xonxoff
- ???եȥ??????ե??????? (?Ĥޤ? XON/XOFF)
?????Ѥ??ƥ??ꥢ???ݡ??Ⱦ???
?ǡ????ե????????椷?ޤ???
???ץ??????ϡ????ޥ??ɥ饤??Ϳ?????????Τ?Ʊ?ͤˡ?
?ե??????˵??Ҥ??줿???Τ??Ѥ??뤳?Ȥ???ǽ?Ǥ???
pppd
?ϡ????ޥ??ɥ饤???Υ??ץ???????
?ɤ߹??????? /etc/ppp/options, ~/.ppprc,
/etc/ppp/options.ttyname ???? (???ν???)
???ץ????????ɤ߹??ߤޤ???
(?ºݤˤϡ?ü??̾?????뤿???˥??ޥ??ɥ饤?ץ????ޤ??????????Ƥ??顢
options.ttyname ?ե????뤬?ɤޤ??ޤ???)
options.ttyname ?ե?????̾?????ˤ????ꡢ
?ޤ? /dev/ ??ü??̾?????????졢?Ĥä? /
ʸ?????ɥåȤ??ִ??????ޤ???
???ץ??????ե??????????Ƥϡ?
????ʸ?????ǥ??ߥ??Ȥ???ñ?????¤ӤȤ??Ʋ??ᤵ???ޤ???
????ʸ?????ޤ?ʸ?????ϥ??֥륯??????
(") ?ǰϤ????Ȥ? 1
?Ĥ?ʸ?????Ȥ??Ʋ??ᤵ?????褦?ˤʤ??ޤ???
?Хå??????å??? (\) ?ϡ?ľ???? 1
ʸ???????Ȥ??ޤ??? ?ϥå???ʸ??
(#)
?ϥ??????ȤλϤޤ??Ȥ??Ʋ??ᤵ?졢
???ԤޤǤ????ȤȤߤʤ??ޤ???
???ץ??????ե????????Ǥ? file ?????? call
?Υ??ץ??????? ???????¤Ϥ????ޤ?????
pppd
?ϡ??????ʥ桼?????Ф??륵???Хޥ????ؤ?
PPP ?????????????Ĥġ?
?????м??Ȥ䤽?Υ????Ф?¸?ߤ????ͥåȥ???Υ????????ƥ?????????
???餹???ۤΤʤ?????ʬ?ʥ??????????????ƥ??????Ԥ????ޤ???
???Υ????????????ΰ????ϡ? /etc/ppp/options
?ե??????ˤ????????ޤ???
???Υե??????ǥ????ƥ??????Ԥ? pppd
?λ??????¤????ꤹ?뤳?Ȥ??Ǥ??ޤ???
?ޤ??????ϡ?PAP ?? CHAP
????̩?????ե??????ˤ????????ޤ???
???Υե??????Ǹġ??Υ桼???????Ѥ???
IP ???ɥ쥹???Ȥ?
?????Ԥ????¤??뤳?Ȥ??Ǥ??ޤ???
?̾??? pppd ?????Ӥˤ????Ƥϡ?
auth ???ץ??????? /etc/ppp/options
?ե??????????ꤹ?٤??Ǥ???
(?????Υ?????ˤ????ƥǥե????Ȥˤʤ뤫?⤷???ޤ?????)
?桼???? pppd
?????Ѥ????????˥??????륢???Ȥ??????????ǡ?
???꤬???ʾ??????뤳?Ȥ????ݤ???????
(?????ͥåȥ????ӥ??ץ??Х????ʤ?)??
?????ƥ??????Ԥ? /etc/ppp/peers
???˥??ץ??????ե??????????????? ?????? noauth
???ץ??????ȡ????Ѥ??륷?ꥢ???ݡ???̾?ȡ?
(ɬ?פʤ?) connect
???ץ??????ȡ?????¾Ŭ?ڤʥ??ץ?????????Ǽ???ޤ???
???Τ褦?ˤ??뤳?Ȥǡ?
???ø??桼?????????ط??Τ????????Ȥδ֤?ǧ?ڤ????ʤ???³?????֤??Ȥ???ǽ
?Ȥ??ޤ???
???ҤΤ褦?ˡ??????????ƥ??˱ƶ????륪?ץ????????ø????ץ??????Ǥ??ꡢ
?̾??????ø??桼???? setuid-root ???줿 pppd
?Ǥϻ??ѤǤ??ޤ?????
?????ϡ????ޥ??ɥ饤???Ǥ⡢?桼????
~/.ppprc ?ե??????Ǥ⡢ file
???ץ??????????Ѥ????ɤޤ??륪?ץ??????ե??????Ǥ??????뤳?ȤǤ???
/etc/ppp/options ?ե??????桢 ?⤷???? call
???ץ??????????Ѥ????ɤޤ??륪?ץ??????ե????????Ǥϡ?
?ø????ץ??????λ??Ѥϵ??????ޤ??? pppd
?? root
?桼???ˤ??굯ư???줿???硢?ø????ץ??????λ??Ѥ?̵???¤Ǥ???
ǧ?ڤȤϡ???????¾???˼??ʤ?ǧ?ᤵ?????????Τ??Ȥ??????ޤ???
?????ϡ??????????ʤ?̾????¾?????????ݡ?
????̾???Υ??????饤?????줿??ʪ?λ??ѼԤΤߤ??????ޤ???
??????????̩??????ȼ?????Ȥ?ɬ?פȤ??ޤ???
???Τ褦?ʸˤ????ơ??ǽ??ΰ??????֥??饤?????ȡפȸƤӡ?
¾?????֥????СפȸƤӤޤ???
???饤?????Ȥϼ??ʤ??Ф˼??̤????뤿????̾??????????
?????Ф??ޤ????ʤ饤?????Ȥ˼??̤????뤿????̾?????????ޤ???
????Ū????ʪ?Υ??饤?????Ȥ???̩????
(?ޤ??ϥѥ????)
???Фȶ?ͭ????
???ʤ??????????ˤ????ꤽ????̩???????ΤäƤ??????????ޤ???
ǧ?ڤ˻??Ѥ?????̾?????????Υ????ͥåȥۥ???̾???б????뤳?Ȥ?¿???Ǥ?????
???????ܼ?Ū?ʤ??ȤǤϤ????ޤ?????
???? pppd ?? 2
?Ĥ?ǧ?ڥץ??ȥ????ݡ??Ȥ??ޤ?:
???줾?졢?ѥ????ǧ?ڥץ??ȥ???
(Password Authentication Protocol; PAP) ??
???????ϥ??ɥ???????ǧ?ڥץ??ȥ???
(Challenge Handshake Authentication Protocol; CHAP) ?Ǥ??? PAP
?ξ??硢???饤?????Ȥϼ??ʾ????Τ????ˡ?
???ʤ?̾???ȥ??ꥢ?ƥ????ȥѥ???ɤ??Ф?????ɬ?פ??????ޤ???
?????Ȥ??о?Ū?ˡ?CHAP
ǧ?ڸϥ????Ф????Ϥ???
???????饤?????Ȥ??????ޤ?
(???????ѥ??åȤˤϥ?????̾???ޤޤ??ޤ?)??
???饤?????ȤϤ?????????????ɬ?פ????ꡢ
?ֻ??????˼??ʤ?̾???˲ä??ƶ?ͭ??̩?????ȥ??????????????????ϥå????ͤ?
?ޤᡢ???ʤ???̩???????ΤäƤ???????????ɬ?פ??????ޤ???
PPP
?ץ??ȥ??????о?Ū?Ǥ????顢
ξ?Ԥ?¾?????Ф??Ƽ??ʾ??????Ԥ??褦???᤹?뤳?Ȥ??????ޤ???
???ξ??硢2
?Ĥ??̡???????Ω????ǧ?ڸ?ȯ?????ޤ???
2
?Ĥθˤ????Ƥ??̤?ǧ?ڥץ??ȥ????????ѤǤ??ޤ?????
??§Ū?ˤϰ㤦̾???????Ѳ?ǽ?Ǥ???
pppd
?Υǥե????Ȥε?ư?ϡ??⤷ǧ?ڤ???????Ф????????????졢
????¦?ˤ?ǧ?ڤ??ᤷ?ʤ??Ȥ??????ΤǤ???
???????? pppd
??????ǧ?ڤ??Ԥʤ??Τ?ɬ?פ???̩?????????äƤ??ʤ?
?????Υץ??ȥ????ˤ???ǧ?ڤϵ??ݤ??ޤ???
pppd
??ǧ?ڤ˻??Ѥ?????̩????????̩?????ե?????
(PAP ?ξ??? /etc/ppp/pap-secrets?? CHAP ?ξ???
/etc/ppp/chap-secrets) ?˳?Ǽ???ޤ???
?ɤ???????̩?????ե???????Ʊ???ե????ޥåȤǤ???
??̩?????ե??????ˤϡ? pppd
??¾?Υ????ƥ????Ф??Ƽ??ʾ??????뤿??????̩????????Ǽ????
???Ȥ??Ǥ??ޤ?????
¾?Υ????ƥ???ǧ?ڤ??Ԥ?????????̩????????Ǽ???뤳?Ȥ???ǽ?Ǥ???
??̩?????ե????????γƹԤ? 1
?Ĥ???̩????????Ǽ???ޤ???
????????̩?????Ϥ??륯?饤?????Ȥȥ????Ф??Ȥ߹??碌???Ф?????ͭ?Ǥ?
-
???Υ??饤?????Ȥ????Υ????Ф??Ф??Ƽ??ʾ??????뤳?ȤˤΤ??Ѥ????ޤ???
??̩?????ե??????γƹԤϡ????ʤ??Ȥ?
3 ?ĤΥե??????ɤ????ʤ??ޤ?:
???줾?졢???饤??????̾????????̾????̩?????Ǥ???
???ꤷ???????Ф˻??ꤷ?????饤?????Ȥ???³???????˻??Ѥ???
IP
???ɥ쥹?ꥹ?Ȥ??????Υե??????ɤθ???³???뤳?Ȥ??Ǥ??ޤ???
??̩?????ե??????ϥ??ץ??????ե???????Ʊ???褦??ñ?????¤ӤȤ???
???ᤵ???ޤ??Τǡ????饤??????̾????????̾????̩?????γƥե??????ɤ?
1 ???Ǥ???ɬ?פ????ꡢ
?????˴ޤޤ???????ʸ?????ü?ʸ????
???????Ȥ⤷???ϥ????????פ???ɬ?פ??????ޤ???
Ʊ???ԤλĤ??θ??ϡ????饤?????Ȥ˵???????
IP ???ɥ쥹?Υꥹ?ȤȤ????뤫??
(?磻???ɥ????ɤǤ??ʤ????Ǥ??ʤ?)
?????Υ??饤??????̾???ޤ??Ԥ? ??????
"local:remote" ???ɥ쥹
(???ޥ??ɥ饤???⤷???ϥ??ץ??????ե??????Ƕ??̥ե????ޥå?)
??ͥ?褷?ޤ??? ?Ԥ? 3
?줷??̵???????⤷???Ϻǽ??θ줬
"-" ?Ǥ??????硢 ???Ƥ? IP
???ɥ쥹???Ե??ĤȤʤ??ޤ???
?????ɥ쥹?????Ĥ????ˤ? "*"
?????Ѥ??ޤ??? ?ޤ? "!"
?????Ϥޤ????ϡ????ꤷ?????ɥ쥹???????դ??ʤ????Ȥ??ޤ???
???ɥ쥹?θ??ˤ? "/" ?ȿ??? n
??³???뤳?Ȥ???ǽ?Ǥ??ꡢ
???ΤΥ??֥ͥåȤ??ޤ???
?Ĥޤꡢ???ƤΥ??ɥ쥹?ξ???
n
?ӥåȤ?Ʊ???ͤȤʤ??ޤ???
???饤??????̾????????̾????̩?????ˤ????Ƥ???ʸ????ʸ???ζ??̤Ͻ??פǤ???
??̩?????? `@'
?????Ϥޤ????硢??³???????Τϥե?????̾?Ǥ??ꡢ
??????????̩???????ɤ߹??????ΤȤ????ޤ???
???饤??????̾?⤷???ϥ??饤??????̾??ñ????
"*" ?????Ѥ????ȡ?
?????ʤ?̾???ˤ??ޥå????ޤ???
??̩??????????????pppd
?ϥ٥??ȥޥå???
???ʤ????磻???ɥ????ɤ??Ǿ??Ȥʤ??ޥå??????Ѥ??ޤ???
??̩?????ե??????ˤϡ?¾?Υۥ??Ȥ?ǧ?ڤ??뤿??????̩?????˲ä???
¾?Υۥ??Ȥ??Ф??Ƽ??ʾ??????뤿??????̩????????Ǽ???ޤ???
pppd ????????ǧ??
(???꤬?????Ǥ??뤳?Ȥ???ǧ) ????????
??̩?????θ????ˤ????ꡢ
??????̾?????ǽ??Υե??????ɤˤ??????????륷???ƥ???̾????
2 ???ܤΥե???????
?ˤ??????Τ????Ӥޤ???
???????륷???ƥ?̾?Υǥե????Ȥϥۥ???̾?Ǥ??ꡢ
domain
???ץ????????ѻ??ˤϥɥᥤ??̾???ղä????ޤ???
???Υǥե????Ȥˤ? name
???ץ???????ͥ?褷?ޤ????? usehostname
???ץ??????Ѥ????Ƥ??????????㳰?Ǥ???
pppd
?????????Ф??뼫?ʾ????Τ???????̩?????????ֻ??ˤϡ?
?ޤ??ɤ?̾???????Ѥ??????????Ф??Ƽ??ʼ??̤??뤫???????ޤ???
????̾???ϥ桼???? user
???ץ??????ǻ?????ǽ?Ǥ???
???Υ??ץ??????Ѥ????Ƥ??ʤ????硢
̾???ϥǥե????ȤΥ??????륷???ƥ?̾?Ȥʤꡢ
?????????Ǽ??????褦?˷??ꤵ???ޤ??? ????????
pppd ????̩?????θ????ˤ????ꡢ
????̾?????ǽ??Υե??????ɤˤ?????????̾????
2 ???ܤΥե???????
?ˤ??????Τ????Ӥޤ??? CHAP
ǧ?ڤ????Ѥ????????硢
?????ϥ??????ѥ??å???????????̾?????ޤ??ޤ????顢
pppd
????????̾?????Τ뤳?Ȥˤʤ??ޤ???
????????PAP ?????Ѥ????????硢
?桼???????ꤷ?????ץ??????? pppd
????????̾???????ꤷ?ޤ???
?桼??????????̾????ľ?? remotename
?ǻ?????ǽ?Ǥ???
?????ǤϤʤ??????ǡ????⡼?? IP
???ɥ쥹?? (???ͷ????Ǥʤ?)
̾???ǻ??ꤵ?줿???硢????̾??????????̾???Ȥ??ƻ??Ѥ??ޤ???
?????˼??Ԥ????ȡ?pppd
????????̾???˶?ʸ?????????Ѥ??ޤ???
????¦?? PAP
??ǧ?ڤ????ݤˡ????????ѥ???ɤϤޤ???̩?????ե???????
??̩?????????Ӥ????ޤ???
?⤷?ѥ???ɤ???̩?????ȥޥå????ʤ????С?
?ѥ???ɤ? crypt()
?????Ѥ??ưŹ沽???졢?Ƥ???̩?????????Ӥ????ޤ???
???Τ???????¦??ǧ?ڤ˻??Ѥ?????̩??????
?Ź沽???줿?????ǵ?Ͽ???뤳?Ȥ??Ǥ??ޤ???
papcrypt
???ץ???????Ϳ?????줿???硢?????褤?????????ƥ??Τ???
?ǽ??? (?Ź沽?????Ƥ??ʤ?)
?????оݤϽ????????ޤ???
???ˤ⤷ login
???ץ??????ꤵ???Ƥ????С??桼??̾?ȥѥ???ɤ?
?????ƥ??ѥ???ɥǡ????١????ǥ????å??????ޤ???
???Τ?????ƥ??????Ԥ??????Υ桼????????
PPP ??????????
???Ĥ????ġ??Υ桼???????ѤǤ??? IP
???ɥ쥹???Ȥ? ???¤????褦 pap-secrets
?ե??????????ꤹ?뤳?Ȥ??Ǥ??ޤ???
ŵ??Ū?ˤϡ?login
???ץ????????Ȥ????ˡ? /etc/ppp/pap-secrets
??????̩?????? "" ?Ȥ??뤳?Ȥǡ?
???꤬???뤤???ʤ??ѥ???ɤˤ??ޥå??????褦?ˤʤ??ޤ???
?????ˤ??ꡢƱ????̩?????? 2
?Ľ???ɬ?פȤ????뤳?Ȥ??뤳?Ȥ??Ǥ??ޤ???
login
???ץ????Ȥ????Ƥ??????ˤϡ????ʤ???ǧ???Ԥ????ޤ???
/etc/ppp/ppp.deny
??¸?ߤ??ơ??桼?????????˵??Ҥ????Ƥ??????硢
ǧ?ڤϼ??Ԥ??ޤ??? /etc/ppp/ppp.shells
??¸?ߤ??ơ??桼?????̾???
?????????뤬???Ҥ????Ƥ??ʤ????硢ǧ?ڤϼ??Ԥ??ޤ???
ǧ?ڤ? IPCP
(?ޤ??Ϥ???¾?Υͥåȥ???????ץ??ȥ???)
?????Ϥ?????????Ǽ???Τ????褦?˴?λ???Ƥ???ɬ?פ??????ޤ???
???꤬???ʾ??????뤳?Ȥ??????????Ƥ??????ˡ?ǧ?ڤ˼??Ԥ????ȡ?
pppd ?? (LCP ?????????뤳?Ȥ?)
???????Ǥ??ޤ??? ?⤷ IPCP
???????줿???⡼?ȥۥ??Ȥ? IP
???ɥ쥹???????????????ʤ?
???ΤǤ??ä????硢IPCP
?ϥ????????????ޤ??? IP ?ѥ??åȤ? IPCP ??
?????ץƤ?????????????????ǽ?Ǥ???
?????????ۥ??Ȥ?????Ū??ǧ?ڤ?ɬ?פȤ??????Ǥ⡢
??³???Ԥ????ꤵ?줿 IP
???ɥ쥹???Ȥ? 1 ?Ĥ??Ȥ???????
???ʾ??????Ǥ??ʤ??ۥ??Ȥ??Ф??ơ?
??³??ǧ????ɬ?פ??????????⤢???ޤ???
?⤷????¦??????????ǧ?????????ݤ??????硢pppd
?Ϥ?????
?桼??̾?ȥѥ???ɤ???ʸ?????Ǥ???
PAP ǧ?ڤȤ??ư????ޤ???
?????ǡ????饤??????̾?ȥѥ???ɤ˶?ʸ?????????ꤷ??
1 ?Ԥ? pap-secrets
?ե????????ɲä??뤳?Ȥǡ????ʾ????????ݤ???
?ۥ??Ȥˤ????¤Ĥ??Υ????????????Ĥ??뤳?Ȥ??Ǥ??ޤ???
IPCP ?ͥ??????????????????????????硢 pppd
?ϥ????ͥ??ˡ?PPP
???ե????????Ѥ??????????? IP ???ɥ쥹??????
???⡼?? IP ???ɥ쥹?????Τ??ޤ???
?????ϡ?????¦?? IP ?ѥ??åȤ?????
???Υ??⡼?Ƚ?ü?ؤη?ϩ???????????Τ˽?ʬ?ʾ????Ǥ???
?????аʳ??Υޥ????Ȥ??̿??ˤϡ?????Ū?ˤϷ?ϩ
?ơ??֥??? ARP (???ɥ쥹?????ץ??ȥ???;
Address Resolution Protocol)
?ơ??֥??Τ????ʤ빹????ɬ?פȤʤ??ޤ???
?ۤȤ??ɤξ??? defaultroute ?? proxyarp
???ץ??????ǽ?ʬ?Ǥ?????
???ʤ????Ϥ?ɬ?פʾ????⤢???ޤ???
/etc/ppp/ip-up
???????ץȤ????Ѳ?ǽ?ʾ??礬?????ޤ???
?????ͥåȤؤ???³?? PPP
???ե???????ͳ?ΤߤǹԤ??ޥ?????
?????ˤϡ????⡼?ȥۥ??Ȥ??̤??ǥե????ȷ?ϩ???ɲä?
˾?ޤ??????礬?????ޤ??? defaultroute
???ץ??????ϡ?IPCP ????λ?????ݤ? pppd ??
???Τ褦?ʥǥե????ȷ?ϩ???????????????????Ǥ??줿?Ȥ??ˤ?
???Υǥե????ȷ?ϩ???????????ޤ???
?㤨?Х????Хޥ????? LAN
????³?????Ƥ??????硢LAN
????¾?Υۥ??Ȥ?
???⡼?ȥۥ??Ȥ??̿??Ǥ????褦?ˤ??뤿????
proxy ARP ?λ??Ѥ?
˾?ޤ????????⤢???ޤ??? proxyarp
???ץ??????????ꤹ???ȡ?pppd
?ϥ??⡼?ȥۥ??Ȥ?
Ʊ?쥵?֥ͥåȾ??ˤ???
(?֥????ɥ??㥹?Ȥ? ARP
?ݡ??Ȥ???ư???? ???? point-to-point
???롼?ץХå??Ǥʤ?)
?ͥåȥ?????ե???????
õ???ޤ???
???Τ褦?ʥ??ե??????????Ĥ??ä????硢pppd
?? ????Ū?˸??????줿 ARP
?????ȥ??Ȥ??ƥ??⡼?ȥۥ??Ȥ? IP
???ɥ쥹??
???θ??Ĥ??ä??ͥåȥ?????ե??????Υ??????ͥå?
(MAC) ???ɥ쥹?? ??Ͽ???ޤ???
demand ???ץ????????ѻ??ϡ?IPCP
??ư???? ???ե??????? IP
???ɥ쥹???????ѤߤǤ??? pppd
?????ե??????????˻??Ѥ??????Τ?Ʊ?????ɥ쥹??
?ͥ??????????????Ǥ??ʤ??ä??????ˤ?
(?㤨?? ISP ??ưŪ?? IP
???ɥ쥹?????????Ƥ?????)?? pppd
?ϥ??ե??????? IP
???ɥ쥹???ͥ????????Ȥ??줿???Τ?
?ѹ?????ɬ?פ??????ޤ???
???ξ?????¸????³???˲????뤫?⤷???ޤ????Τǡ?
ưŪ IP
???????Ƥ??Ԥ??????????????????????Ԥ????Ȥϴ????????ޤ?????
(ppp ?????ۤΥǥե????Ȥ? /etc/ppp/options
?ե???????Ʊ????) ?ʲ??????Ǥ? /etc/ppp/options
?ե??????? auth
???ץ????????ޤ????ΤȤ??ޤ?
?????餯?Ǥ?????Ū?? pppd
?λ?????ˡ?? ISP
?إ??????륢???Ȥ??뤳?ȤǤ??礦??
???ξ??缡?Υ??ޥ??ɤ????Ѥ??ޤ???
- pppd call isp
?????? /etc/ppp/peers/isp
?ե??????ϥ????ƥ??????Ԥ????Τ褦?????ꤷ?ޤ?:
- ttyS0 19200 crtscts
connect '/usr/sbin/chat -v -f /etc/ppp/chat-isp'
noauth
???????Ǥϡ?chat ?????Ѥ??? ISP
?Υ??ǥ??˥??????뤷??
ɬ?פʥ????????????̲ᤷ?ޤ???
/etc/ppp/chat-isp ?ե??????? chat
?????Ѥ??륹?????ץȤ??ޤߤޤ???
?㤨?м??Τ褦?ˤʤäƤ??ޤ?:
- ABORT "NO CARRIER"
ABORT "NO DIALTONE"
ABORT "ERROR"
ABORT "NO ANSWER"
ABORT "BUSY"
ABORT "Username/Password Incorrect"
"" "at"
OK "at&d0&c1"
OK "atdt2468135"
"name:" "^Umyuserid"
"word:" "\qmypassword"
"ispts" "\q^Uppp"
"~-^Uppp-~"
chat
???????ץȤξܺ٤ˤĤ??Ƥϡ?
chat(8)
?Υޥ˥奢???ڡ????Ȥ??Ƥ?????????
pppd ?Ϥޤ????????륤?? ppp
?????ӥ????桼???????뤿???˻??Ѳ?ǽ?Ǥ???
?桼???????˥????????????Ȥ????äƤ????????ˤϡ?
ppp ?????ӥ??κǤ???ñ????????ˡ?ϡ?
?桼???ˤ??Υ????????Ȥǥ??????Ƥ????äƤ??顢
(setuid-root ???줿) pppd
?Τ褦?˼¹Ԥ??뤳?ȤǤ???
- pppd proxyarp
?桼???? PPP
??ǽ?????Ѥ??뤳?Ȥ??????????ˤϡ?
???Υ桼???Υޥ????Τ????? IP
???ɥ쥹?????????ơ? /etc/ppp/pap-secrets ?ޤ???
/etc/ppp/chap-secrets (?桼???Υޥ????? PPP ??????
?ɤ?????ǧ????ˡ?ݡ??Ȥ??뤫?˰?¸???ޤ?)
?˥????ȥ??????????ơ??桼???Υޥ?????ǧ?ڲ?ǽ?Ȥ??ޤ???
?㤨?С?Joe ?? "joespc"
?Ȥ????ޥ????????äƤ??ơ?"server"
?Ȥ????ޥ????ؤ? ???????륤????
joespc.my.net ?Ȥ??? IP
???ɥ쥹?λ??Ѥ????????Ƥ??????硢
???Τ褦?ʥ????ȥ??? /etc/ppp/pap-secrets
?ޤ??? /etc/ppp/chap-secrets ?? ?ä??ޤ?:
- joespc server "joe's secret" joespc.my.net
?̤???ˡ?Ȥ??ơ?(?㤨??)
"ppp" ?Ȥ??ä??桼??̾??????????
???Υ??????????? pppd ?Ȥ???
?ۡ????ǥ??쥯?ȥ??? /etc/ppp
?Ȥ?????ˡ???????ޤ??? ??????ˡ?? pppd
???¹Ԥ????????˻??Ѥ??륪?ץ???????
/etc/ppp/.ppprc ???֤????Ȥ??Ǥ??ޤ???
?⤷???ʤ??Υ??ꥢ????³???????֥?
1
?ܤǤʤ??????ä?ʣ???ʾ????ˤϡ?
?????Ĥ???????ʸ?????????????פ??????褦??
???????Ƥ???ɬ?פ??????ޤ????Ȥ??櫓??XON
(^Q) ?????? XOFF (^S) ???? asyncmap a0000
???Ѥ??ƥ????????פ??뤳?ȤϤ??Ф???ͭ???Ǥ???
?ѥ??? telnet ???ޤ??????ˤϡ? ^]
ʸ????Ʊ?ͤ˥????????? (asyncmap 200a0000
??????) ????ɬ?פ??????Ǥ??礦?? ?ѥ??? rlogin
???ޤ??????ˤϡ?rlogin
???饤?????Ȥ?ư??Ƥ???¦??
?ۥ??Ȥ? escape ff
?????ꤹ??ɬ?פ??????Ǥ??礦???????ϡ?¿????
rlogin
?μ??????ͥåȥ??Ʃ???Ǥʤ??????Ǥ???
???????? rlogin ?Ǥϡ? 0xff, 0xff, 0x73, 0x73
?Ȥ?????³?? 8 ?Х??Ȥ?
???????ȥ?फ???????????ޤ???
???å??????? LOG_DAEMON ?ե??????ƥ????Ѥ??? syslog
?ǡ??????? ???????ޤ?
(?????ϴ?˾?????ե??????ƥ??? LOG_PPP
?ޥ????Ȥ??????????? pppd
???ƥ????ѥ??뤹?뤳?Ȥ??ѹ????뤳?Ȥ??Ǥ??ޤ?)??
???顼???å????????ǥХå????å??????뤿???ˤϡ?
/etc/syslogd.conf ?ե????????Խ????? pppd
?????Υ??å???????
??˾???????ϥǥХ??????ե??????˽Ф??????褦?ˤ??Ƥ???ɬ?פ??????ޤ???
debug
???ץ??????????????????뤹?٤Ƥ??????ѥ??åȤ????Ƥ?
?????˵?Ͽ???????褦?ˤ??ޤ????оݤȤʤ??????ѥ??åȤϡ?
???٤Ƥ? LCP, PAP, CHAP, IPCP
?ѥ??åȤǤ??? ???ε?ǽ?ϡ?PPP
?ͥ??????????????ޤ??????ʤ???????
ǧ?ڤ????Ԥ????????θ????????˸???Ū?Ǥ??礦??
?????ѥ??????˥ǥХå????ץ???????ͭ???ˤ??Ƥ????????ˤϡ?
debug
???ޤ?¾?ΥǥХå????å?????????Ͽ???뤿???˻Ȥ????ޤ???
pppd ?ץ??????? SIGUSR1
?????ʥ??????äƥǥХå???ͭ???ˤ??뤳?Ȥ?
?Ǥ??ޤ????????ϥȥ???ư??ޤ???
pppd
?Ͻ??????͡????ʳ??ˤ????ƥ??????ץȤ???ư????
?????ȸ?ͭ???ɲý??????Ԥ??ޤ???
???????Υ??????ץȤ??̾亮???륹?????ץȤǤ?????
?¹Բ?ǽ?????ɥե??????Ǥ??äƤ⤫?ޤ??ޤ?????
pppd
?ϥ??????ץȤ???λ?????ޤ??Ԥ??ޤ?????
???????ץȤ? root ?ˤ? (?¥桼?? ID
?????Ӽ¸??桼?? ID ?Ȥ? 0 ?????ꤷ??)
?¹Ԥ????ޤ??Τǡ???ϩ?ơ??֥??ι??????ø??ǡ??????μ¹Ԥ???ǽ?Ǥ???
???????Υ??????ץȤ????Ƥˤ??äƥ????ƥॻ???????ƥ??????????ʤ??ʤ??褦
???դ??Ƥ????????? pppd
??ɸ?????ϡ?ɸ?????ϡ?ɸ?२?顼???Ϥ?
/dev/null ?˥??????쥯?Ȥ???
???ξ?????Ϳ???뤤???Ĥ??δĶ??ѿ????????ƴĶ??ѿ??????ˤ??ơ?
???????ץȤ??¹Ԥ??ޤ??? pppd
?????ꤹ???Ķ??ѿ????ʲ??˼????ޤ?:
- DEVICE
- ???Ѥ??Ƥ??륷?ꥢ?? tty
?ǥХ???̾??
- IFNAME
- ???Ѥ??Ƥ????ͥåȥ?????ե?????̾??
- IPLOCAL
- ???Υ???????¦?? IP ???ɥ쥹?? IPCP
??Ω???夬?ä????Τ????ꤵ???ޤ???
- IPREMOTE
- ???Υ??⡼??¦?? IP ???ɥ쥹?? IPCP
??Ω???夬?ä????Τ????ꤵ???ޤ???
- PEERNAME
- ??????ǧ?ڤ??줿̾????
???꤬???ʾ????????????Τ????ꤵ???ޤ???
- SPEED
- tty ?ǥХ????Υܡ??졼?ȡ?
- UID
- pppd ????ư?????桼???μ¥桼?? ID??
pppd
?ϡ??ʲ??Υ??????ץȤ?¸?ߤ????е?ư???ޤ???
¸?ߤ??ʤ??Ƥ⥨?顼?ǤϤ????ޤ?????
- /etc/ppp/auth-up
- ???⡼?ȥ????ƥब?????˼??ʾ??????????Ǽ¹Ԥ?????
?ץ????????ޤ??ϥ??????ץȤǤ???
???Τ??Τ??ѥ?????Ȥ??Ƽ¹Ԥ????ޤ???
- interface-name peer-name user-name tty-device speed
- ???꤬???ʾ??????ʤ??????ˤϡ?
???Υ??????ץȤϼ¹Ԥ????ʤ????Ȥ????դ??Ƥ?????????
?㤨?? noauth
???ץ??????Ѥ??????????????ˤ??????ޤ???
- /etc/ppp/auth-down
- /etc/ppp/auth-up
???????¹Ԥ??줿???ǥ????????????˼¹Ԥ?????
?ץ????????ޤ??ϥ??????ץȤǤ???
?????? /etc/ppp/auth-up
??Ʊ???ѥ??????Ϳ???ơ?Ʊ????ˡ?Ǽ¹Ԥ????ޤ???
- /etc/ppp/ip-up
- ???Υ??? IP
?ѥ??åȤ??????????Ԥ????褦?ˤʤä???
(IPCP ????λ??????)
?˼¹Ԥ??????ץ????????ޤ??ϥ??????ץȤǤ???
???Τ??Τ??ѥ?????Ȥ??Ƽ¹Ԥ????ޤ???
- interface-name tty-device speed local-IP-address
remote-IP-address ipparam
- /etc/ppp/ip-down
- ???Υ??? IP
?ѥ??åȤ??????????Ǥ??ʤ??ʤä??????˼¹Ԥ?????
?ץ????????ޤ??ϥ??????ץȤǤ???
???Υ??????ץȤ? /etc/ppp/ip-up
???????ץȤǹԤä??ѹ???
???ˤ??ɤ????????Ѥ??????ޤ??? ?????? ip-up
??Ʊ???ѥ??????Ϳ???ơ?Ʊ????ˡ?Ǽ¹Ԥ????ޤ???
- /etc/ppp/ipx-up
- ???Υ??? IPX
?ѥ??åȤ??????????Ԥ????褦?ˤʤä???
(IPXCP ????λ??????)
?˼¹Ԥ??????ץ????????ޤ??ϥ??????ץȤǤ???
???Τ??Τ??ѥ?????Ȥ??Ƽ¹Ԥ????ޤ???
- interface-name tty-device speed network-number
local-IPX-node-address remote-IPX-node-address
local-IPX-routing-protocol remote-IPX-routing-protocol
local-IPX-router-name remote-IPX-router-name ipparam pppd-pid
- local-IPX-routing-protocol ?????? remote-IPX-routing-protocol
?Υե??????ɤ?
?ʲ??Τ????줫?Ǥ?:
- NONE
??ϩ?ץ??ȥ??뤬̵?????Ȥ??ޤ?
RIP RIP/SAP
???Ȥ??٤??Ǥ??뤳?Ȥ??ޤ?
NLSP Novell NLSP
???Ȥ??٤??Ǥ??뤳?Ȥ??ޤ?
RIP NLSP RIP/SAP ?? NLSP
??ξ?????Ȥ??٤??Ǥ??뤳?Ȥ??ޤ?
- /etc/ppp/ipx-down
- ???Υ??? IPX
?ѥ??åȤ??????????Ǥ??ʤ??ʤä??????˼¹Ԥ?????
?ץ????????ޤ??ϥ??????ץȤǤ???
???Υ??????ץȤ? /etc/ppp/ipx-up
???????ץȤǹԤä??ѹ???
???ˤ??ɤ????????Ѥ??????ޤ??? ?????? ipx-up
??Ʊ???ѥ??????Ϳ???ơ?Ʊ????ˡ?Ǽ¹Ԥ????ޤ???
- /var/run/pppn.pid (BSD ?ޤ??? Linux),
/etc/ppp/pppn.pid (????¾)
- ppp ???ե????????˥å? n
???б????? pppd ?ץ??????? ?ץ????? ID
????Ͽ?????ޤ???
- /etc/ppp/pap-secrets
- PAP
ǧ?ڤǻ??Ѥ????桼??̾???ѥ???ɡ?IP
???ɥ쥹????Ǽ???ޤ??? ???Υե???????
root
????ͭ????¾?Υ桼?????ɤ߽Ǥ??ƤϤʤ??ޤ?????
?????Ǥʤ????? pppd
?Ϸٹ????????Ԥ??ޤ???
- /etc/ppp/chap-secrets
- CHAP ǧ?ڤǻ??Ѥ???̾??????̩??????IP
???ɥ쥹????Ǽ???ޤ??? ???Υե???????
root
????ͭ????¾?Υ桼?????ɤ߽Ǥ??ƤϤʤ??ޤ?????
?????Ǥʤ????? pppd
?Ϸٹ????????Ԥ??ޤ???
- /etc/ppp/options
- pppd
?Υ????ƥ??ǥե????ȥ??ץ??????Ҥ??ޤ???
?桼???ǥե????ȥ??ץ??????ӥ??ޥ???
?饤?ץ????????ɤޤ????????ɤ߹??ޤ??ޤ???
- ~/.ppprc
- ?桼?????Υǥե????ȥ??ץ??????Ҥ??ޤ???
/etc/ppp/options.ttyname
???ɤޤ????????ɤ߹??ޤ??ޤ???
- /etc/ppp/options.ttyname
- ?ƥ??ꥢ???ݡ??ȤΥ????ƥ??ǥե????ȥ??ץ??????????ꤷ?ޤ???
~/.ppprc ?θ????ɤޤ??ޤ???
???Υե?????̾?? ttyname
??ʬ?ι????ˤ????ꡢ ?ޤ? /dev/ ??
(¸?ߤ?????) ?ݡ???̾?????????졢
?Ĥä??????å??夬?ɥåȤ??ִ??????ޤ???
- /etc/ppp/peers
- pppd ???? root
?桼???ˤ??äƵ?ư???줿?Ȥ??Ƥ?
?ø????ץ????????ޤ??Ǥ??ޤ??ʤ????ץ??????ե????????ޤ??ǥ??쥯?ȥ??Ǥ???
?????ƥ??????Ԥϥ??ץ??????ե??????Υǥ??쥯?ȥ????˺??????뤳?Ȥˤ??ꡢ
???ø??桼??????????ǧ?ڤ??פ????˥??????륢???Ȳ?ǽ?Ȥ??ޤ???
?????????????ط??Τ????????Τ߲?ǽ?Ǥ???
- /etc/ppp/ppp.deny
- ?????ƥ??Υѥ???ɤˤ??? PAP
ǧ?ڤ??Ȥ碌?ʤ??桼???Ҥ??ޤ???
- /etc/ppp/ppp.shells
- ?????ƥ??Υѥ???ɤˤ??? PAP
ǧ?ڥ????????Τ?????Ŭ?ڤʥ???????
???Ҥ??ޤ???
- /usr/share/examples/pppd/
- ?????ץ??? pppd ?????ե????롣
chat(8), ppp(8)
- RFC1144
- Jacobson, V. Compressing TCP/IP headers for low-speed serial links.
February 1990.
- RFC1321
- Rivest, R. The MD5 Message-Digest Algorithm. April 1992.
- RFC1332
- McGregor, G. PPP Internet Protocol Control Protocol (IPCP). May
1992.
- RFC1334
- Lloyd, B.; Simpson, W.A. PPP authentication protocols. October
1992.
- RFC1661
- Simpson, W.A. The Point-to-Point Protocol (PPP). July 1994.
- RFC1662
- Simpson, W.A. PPP in HDLC-like Framing. July 1994.
?ʲ??Υ????ʥ뤬 pppd
???????줿???硢?????????????????̤????????ޤ???
- SIGINT, SIGTERM
- ???????Υ????ʥ??????????????硢pppd ?? (LCP
?????????뤳?Ȥ?)
???????Ǥ??????ꥢ???ǥХ??????????????????ơ??ץ???????????λ???ޤ???
- SIGHUP
- ʪ???ؤΥ????????Ǥ??ؼ????ޤ???pppd
?ϥ??ꥢ???ǥХ???????????????????
???ꥢ???ǥХ??????Ĥ??ޤ??? persist
?ޤ??? demand
?Υ??ץ??????ꤵ???Ƥ??????硢pppd ??
???ꥢ???ǥХ??????ƥ????ץ?(?ߴ??֤??֤??Ƥ???)
????????³???Ϥ??褦?Ȥ??ޤ???
?????Ǥʤ??????ϡ?pppd ?Ͻ?λ???ޤ???
???Υ????ʥ????ߴ??֤˼??????ȡ?pppd
???ߴ??֤??˽?λ???ޤ???
- SIGUSR1
- ???Υ????ʥ??ϡ?debug
???ץ??????ξ??֤?ȿž???ޤ???
- SIGUSR2
- ???Υ????ʥ??ϡ? pppd
?˰??̤??դ??ƺƤӥͥ????????Ȥ????ޤ???
?????ϡ???̿Ū?ʿ?Ĺ???顼?η??̤Ȥ???
???̤??ߤ???ǡ??ƤӰ??̤?ͭ???ˤ??뤿?????????Ǥ???
(??̿Ū?ʿ?Ĺ???顼?ϰ??̤ˤɤ??餫?μ???????
?Х????ޤ???)
Paul Mackerras (Paul.Mackerras@cs.anu.edu.au) ???? Drew Perkins, Brad Clements,
Karl Fox, Greg Christy, Brad Parker
?κ??Ȥ˺??????ޤ?????