/usr/share/doc/HOWTO/ja-html/PPP-HOWTO-23.html is in doc-linux-ja-html 2006.05.25-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.21">
<TITLE>Linux PPP HOWTO: $B@\B3$,3NN)$7$?8e!"!"(B</TITLE>
<LINK HREF="PPP-HOWTO-24.html" REL=next>
<LINK HREF="PPP-HOWTO-22.html" REL=previous>
<LINK HREF="PPP-HOWTO.html#toc23" REL=contents>
</HEAD>
<BODY>
<A HREF="PPP-HOWTO-24.html">$B<!$N%Z!<%8(B</A>
<A HREF="PPP-HOWTO-22.html">$BA0$N%Z!<%8(B</A>
<A HREF="PPP-HOWTO.html#toc23">$BL\<!$X(B</A>
<HR>
<H2><A NAME="s23">23.</A> <A HREF="PPP-HOWTO.html#toc23">$B@\B3$,3NN)$7$?8e!"!"(B</A></H2>
<P>PPP $B@\B3$,3NN)$7$?$i!"(Bpppd $B$O(B <CODE>/etc/ppp/ip-up</CODE> $B$r%A%'%C%/$7$^$9!#(B
$B$3$N%9%/%j%W%H$,B8:_$7$F<B9T2DG=$K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$9!#(B
/usr/sbin/sendmail -q &
;;
139.130.177.2)
# $B%$%s%?!<%M%C%H@\B3(B
# $B%?%$%`%5!<%P$,F0$$$F$J$1$l$P@\B3;~$K5/F0$7$F!"@$3&$N;~9o$HF14|$9$k!#(B
if [ ! -f /var/lock/subsys/xntpd ]; then
/etc/rc.d/init.d/xntpd.init start &
fi
# $B%K%e!<%9%5!<%P$N5/F0(B($BF0$$$F$J$1$l$P(B)
if [ ! -f /var/lock/subsys/news ]; then
/etc/rc.d/init.d/news start &
fi
;;
203.18.8.104)
#
# $B<+Bp$N%^%7%s$K%a!<%k$rAw$j$3$`!#<+Bp$N%$!<%5%M%C%H$O(BIP masqeurade $B$H(B
# proxy arp $B$N%k!<%F%#%s%0$K$J$C$F$$$k$N$G%k!<%F%#%s%0$OITMW(B
/usr/sbin/sendmail -q &
;;
*)
esac
exit 0
</PRE>
<HR>
</P>
<P>Newman campus $B$X$3$N%9%/%j%W%H$G@\B3$7$?>l9g!"0J2<$K<($9$h$&$J%k!<%F%#(B
$B%s%0%F!<%V%k$,@_Dj$5$l$^$9(B($B$3$N%^%7%s$O;d$?$A$N%@%$%"%k%"%C%W(B PPP $B%5!<(B
$B%P7s%$%s%?!<%M%C%H@\B3%^%7%s$G$9(B)$B!#$=$l$>$l$N%(%s%H%j$,2?$r<($9$+$N%3(B
$B%a%s%H$rIU$1$F$*$-$^$7$?!#(B</P>
<P>
<HR>
<PRE>
[root@kepler /root]# route -n
Kernel routing table
Destination Gateway Genmask Flags MSS Window Use Iface
# $B%$%s%?!<%M%C%H%2!<%H%&%'%$$X$N%[%9%H%k!<%H(B
139.130.177.2 * 255.255.255.255 UH 1500 0 134 ppp4
# Newman campus $B%5!<%P$X$N%[%9%H%k!<%H(B
202.12.126.1 * 255.255.255.255 UH 1500 0 82 ppp5
# $B;d$N<+Bp$N%$!<%5%M%C%H(B LAN $B$X$N%[%9%H%k!<%H(B
203.18.8.104 * 255.255.255.255 UH 1500 0 74 ppp3
# $B8x3+$7$F$$$k(B 2 $B$D$N%@%$%"%k%"%C%W(B PPP $BMQ2s@~(B
203.18.8.64 * 255.255.255.255 UH 552 0 0 ppp2
203.18.8.62 * 255.255.255.255 UH 552 0 1 ppp1
# Newman campus LAN $B$X$N%M%C%H%o!<%/%k!<%H(B
202.12.126.0 202.12.126.1 255.255.255.0 UG 1500 0 0 ppp5
# $B%m!<%+%k$N%$!<%5%M%C%H$X$N%k!<%H(B(2 $B$D$NO"B3$9$k%/%i%9(B C $B$N%M%C%H%o!<%/(B
# $B$r@\B3$7$F$$$^$9(B)
203.18.8.0 * 255.255.254.0 U 1500 0 1683 eth0
# loop back $B%G%P%$%9$X$N%k!<%H(B
127.0.0.0 * 255.0.0.0 U 3584 0 483 lo
# $B%$%s%?!<%M%C%H$X$N%G%U%)%k%H%k!<%H(B
default 139.130.177.2 * UG 1500 0 3633 ppp4
</PRE>
<HR>
</P>
<H2><A NAME="ss23.2">23.2</A> <A HREF="PPP-HOWTO.html#toc23.2">e-mail $B$N=hM}(B</A>
</H2>
<P>$BA0@a$G$O@\B3$,3NN)$7$?;~$KC1=c$K%a!<%k%-%e!<$r%U%i%C%7%e$9$k$H$$$&J}K!(B
$B$G30$XAw$j=P$9%a!<%k$r$I$&=hM}$9$k$+$r<($7$^$7$?!#(B</P>
<P>WAN $B@\B3$N>l9g!"@\B3@h$N(B LAN $B$N%M%C%H%o!<%/4IM}<T$HAjCL$7$FF1$8$3$H$r(B
$B$9$k$3$H$,2DG=$G$9!#Nc$($P!"2f!9$N(B WAN $B@\B3$G$O(B Newman Campus $BB&$N(B
<CODE>/etc/ppp/ip-up</CODE> $B%9%/%j%W%H$O$3$N$h$&$K$J$C$F$$$^$9!#(B</P>
<P>
<HR>
<PRE>
#!/bin/bash
#
# pppd $B$KI,MW$J%k!<%F%#%s%0>pJs$N@_Dj(B
# Hedlan $B08$F$N@\B3$N>l9g$N$_$KI,MW(B
#
# ppp $B@\B3$N:]!"$3$N%9%/%j%W%H$O0J2<$N$h$&$J0z?t$G8F$S=P$5$l$k!#(B
#
# $1 pppd $B$,;H$&%$%s%?!<%U%'%$%9L>(B($BNc!'(Bppp3)
# $2 tty $B%G%P%$%9L>(B
# $3 tty $B%G%P%$%9B.EY(B
# $4 $B%$%s%?!<%U%'%$%9$N%m!<%+%k(B IP $B%"%I%l%9(B
# $5 $B%j%b!<%H$N(B IP $B%"%I%l%9(B
# $6 pppd $B$N(B ipparam $B%*%W%7%g%s$G;XDj$9$k%Q%i%a!<%?(B
case "$5" in
203.18.8.4)
/usr/sbin/sendmail -q
;;
*)
esac
exit 0
</PRE>
<HR>
</P>
<P>ISP $B@\B3$G(B IP $B%"%I%l%9$rF0E*$K3d$j$"$F$k(B PPP $B@\B3$7$+;H$($J$$>l9g$G$b(B
ISP $B$N%^%7%s$K$"$k$"$J$?08$N%a!<%k$r<h$j$3$_$?$$>l9g$,$"$k$G$7$g$&!#$3(B
$B$N>l9g!"0lHLE*$K$O(B POP(Post Office Protocol)$B$r;H$$$^$9!#(BPOP $B$O(B 'popclient'
$B%W%m%0%i%`$G07$(!"(Bip-up $B%9%/%j%W%H$G@_Dj$9$k$3$H$G<+F02=$9$k$3$H$,2DG=(B
$B$G$9!#(B</P>
<P>$BE,@Z$J@_Dj$G(B popclient $B$r5/F0$9$k%9%/%j%W%H$N$_$r4^$`(B <CODE>/etc/ppp/ip-up</CODE>
$B$rMQ0U$7$^$9!#(BRed Hat Linux $B$NF~$C$F$$$k%i%C%W%H%C%W5!(B($BN99T$NI,<{IJ$G(B
$B$9(B)$B$G$O!"$3$N$h$&$K$7$F$$$^$9!#(B</P>
<P>
<HR>
<PRE>
popclient -3 -c -u hartr -p <password> kepler.hedland.edu.au |formail -s procmail
</PRE>
<HR>
</P>
<P>$B%K%e!<%9$K$D$$$F$bF1MM$N$3$H$,(B slurp $B$J$I$N%W%m%0%i%`$r;H$&$3$H$G2DG=(B
$B$G$9!#(Bip-up $B%9%/%j%W%H$OC1$J$k(B bash $B%9%/%j%W%H$J$N$G(B PPP $B@\B3$,N)$A$"(B
$B$,$C$?$H$-$KKh2s9T$&$Y$-$I$s$J;E;v$G$b$5$;$k$3$H$,2DG=$G$9!#(B</P>
<HR>
<A HREF="PPP-HOWTO-24.html">$B<!$N%Z!<%8(B</A>
<A HREF="PPP-HOWTO-22.html">$BA0$N%Z!<%8(B</A>
<A HREF="PPP-HOWTO.html#toc23">$BL\<!$X(B</A>
</BODY>
</HTML>
|