This file is indexed.

/usr/share/doc/HOWTO/ja-html/Firewall-HOWTO-6.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
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
 <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
 <TITLE>Firewall And Proxy Server HOWTO: Linux $B%7%9%F%`$r=`Hw$9$k(B</TITLE>
 <LINK HREF="Firewall-HOWTO-7.html" REL=next>
 <LINK HREF="Firewall-HOWTO-5.html" REL=previous>
 <LINK HREF="Firewall-HOWTO.html#toc6" REL=contents>
</HEAD>
<BODY>
<A HREF="Firewall-HOWTO-7.html">$B<!$N%Z!<%8(B</A>
<A HREF="Firewall-HOWTO-5.html">$BA0$N%Z!<%8(B</A>
<A HREF="Firewall-HOWTO.html#toc6">$BL\<!$X(B</A>
<HR>
<H2><A NAME="s6">6. Linux $B%7%9%F%`$r=`Hw$9$k(B</A></H2>

<P>$B$G$-$k$@$1>.$5$$5,LO$G!"(BLinux $B%7%9%F%`$r%$%s%9%H!<%k$7$^$9!#(B
$B;d$,%$%s%9%H!<%k$r$9$k$H$-$O!"$^$:%5!<%P$N@_Dj$r9T$$!"<!$$$G(B
/etc/inetd.conf $B$GITI,MW$J%5!<%S%9$r30$7$^$9!#(B
$B99$K%;%-%e%j%F%#$r9b$a$?$$$J$i!"ITI,MW$J%5!<%S%9$O(B
$B%"%s%$%s%9%H!<%k$7$F$7$^$$$^$7$g$&!#(B
<P>$BKX$I$N%G%#%9%H%j%S%e!<%7%g%s$O<+J,$NL\E*$K1~$8$?%+!<%M%k$K(B
$B$J$C$F$$$^$;$s$+$i!"<+J,$NL\E*$K$"$C$?%+!<%M%k$K(B
$B%3%s%Q%$%k$7$J$1$l$P$$$1$^$;$s!#(B
$B%U%!%$%"%&%)!<%k0J30$N%3%s%T%e!<%?$G%3%s%Q%$%k$,$G$-$k$J$i!"(B
$B$=$l$,0lHVNI$$J}K!$G$9!#(B
C $B%3%s%Q%$%i$J$I$N%f!<%F%#%j%F%#$r%U%!%$%"%&%)!<%k$K(B
$B%$%s%9%H!<%k$7$F$7$^$C$?>l9g$O!"%+!<%M%k$N@_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$$$F$O!"(BConfigure.help $B$NF|K\8lHG$b;29M$K$7$F$/$@$5$$!#(B
<A HREF="http://www.linux.or.jp/JF/JFdocs/Configure.help/">http://www.linux.or.jp/JF/JFdocs/Configure.help/</A>$B![(B
<P>
<PRE>
    &lt;*> Packet socket
    [ ] Kernel/User netlink socket
    [*] Network firewalls
    [ ] Socket Filtering
    &lt;*> Unix domain sockets
    [*] TCP/IP networking
    [ ] IP: multicasting
    [*] IP: advanced router
    [ ] IP: kernel level autoconfiguration
    [*] IP: firewalling
    [?] IP: always defragment (required for masquerading)
    [?] IP: transparent proxy support
    [?] IP: masquerading
    --- Protocol-specific masquerading support will be built as modules.
    [?] IP: ICMP masquerading
    --- Protocol-specific masquerading support will be built as modules.
    [ ] IP: masquerading special modules support
    [*] IP: optimize as router not host
    &lt; > IP: tunneling
    &lt; > IP: GRE tunnels over IP
    [?] IP: aliasing support
    [*] IP: TCP syncookie support (not enabled per default)
    --- (it is safe to leave these untouched)
    &lt; > IP: Reverse ARP
    [*] IP: Allow large windows (not recommended if &lt;16Mb of memory)
    &lt; > The IPv6 protocol (EXPERIMENTAL)
    ---
    &lt; > The IPX protocol
    &lt; > Appletalk DDP
    &lt; > CCITT X.25 Packet Layer (EXPERIMENTAL)
    &lt; > LAPB Data Link Driver (EXPERIMENTAL)
    [ ] Bridging (EXPERIMENTAL)
    [ ] 802.2 LLC (EXPERIMENTAL)
    &lt; > Acorn Econet/AUN protocols (EXPERIMENTAL)
    &lt; > WAN router
    [ ] Fast switching (read help!)
    [ ] Forwarding between high speed interfaces
    [ ] PU is too slow to handle full bandwidth
    QoS and/or fair queueing  ---> 
</PRE>
<P>$BA4$F$N@_Dj$r$7$F$+$i!":F%3%s%Q%$%k$7!"%+!<%M%k$r:F%$%s%9%H!<%k$7!"(B
$B:F5/F0$7$^$9!#(B
<P>$B<!$N$h$&$J%3%^%s%I$G9T$$$^$9(B - 
<P>1$B9T$N%3%^%s%I$GA4It$r9T$&$K$O!"<!$N$h$&$K$7$^$9!#(B
make dep;make clean;make bzlilo;make modules;make modules_install;init 6
<P>
<H2><A NAME="ss6.2">6.2 $BFsKg$N%M%C%H%o!<%/%+!<%I$r@_Dj$9$k(B</A>
</H2>

<P> 
$B%3%s%T%e!<%?$KFsKg$N%M%C%H%o!<%/%+!<%I$rA^$7$F$$$k$J$i!"(BIRQ $B$HFsKg$N(B
$B%+!<%I$N%"%I%l%9$r(B /etc/lilo.conf $B%U%!%$%k$K(B append $B$r;H$C$FL@<(E*$K(B
$B2C$($J$1$l$P$J$i$J$$>l9g$,$"$j$^$9!#(B
$B;d$N(B lilo $B$N(B append $B9T$O<!$N$h$&$K$J$C$F$$$^$9(B - 
<P>
<PRE>
 
append=&quot;ether=12,0x300,eth0 ether=15,0x340,eth1&quot; 
</PRE>
<P>$B!ZLuCm(B: $B%M%C%H%o!<%/%+!<%I$N@_Dj$O!"<!$N$h$&$JJ8=q$b;29M$K$7$F$/$@$5$$!#(B
<A HREF="http://www.linux.or.jp/JF/JFdocs/Ethernet-HOWTO.html">http://www.linux.or.jp/JF/JFdocs/Ethernet-HOWTO.html</A><P>
<A HREF="http://www.linux.or.jp/JF/JFdocs/Multiple-Ethernet.html">http://www.linux.or.jp/JF/JFdocs/Multiple-Ethernet.html</A>$B![(B
<P>
<P>
<H2><A NAME="ss6.3">6.3 $B%M%C%H%o!<%/%"%I%l%9$N@_Dj(B</A>
</H2>

<P> 
$B$5$F!"9=C[:n6H$bLLGr$$$H$3$m$K$-$F$$$^$9!#(B
$B$3$NJ8=q$G$O(B LAN $B$r@_Dj$9$kJ}K!$K$D$$$F?<$/$O@bL@$7$^$;$s!#(B
$B$3$N7o$K$D$$$F$N$"$J$?$NLdBj$r2r7h$9$k$K$O!"(B Networking-HOWTO $B$r(B
$BFI$s$G$/$@$5$$!#(B
<P>$B!ZLuCm(B: Networking-HOWTO $B$NF|K\8lLu$O!"<!$N$H$3$m$K$"$j$^$9!#(B
<A HREF="http://www.linux.or.jp/JF/JFdocs/NET3-4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(B
192.168.1.xxx $B$b$3$NCf$KF~$C$F$$$F!"$3$NJ8=q$G$O$3$l$rNc$K;H$$$^$9!#(B
<P>$B$3$N?tCM$r;H$&0Y$K$O(B IP $B%^%9%+%l!<%I$r;H$&I,MW$,$"$j$^$9!#(B
$B$3$NJ}K!$G(B $B%U%!%$%"%&%)!<%k$O%Q%1%C%H$r%U%)%o!<%I$7$F!"(B
$B%$%s%?!<%M%C%H>e$G(B &quot;$BK\J*$N(B&quot; $B%"%I%l%9$KJQ49$7$^$9!#(B
<P>$B$3$N$h$&$J%k!<%F%#%s%0$G$-$J$$(B IP $B%"%I%l%9$r;H$($P!"$"$J$?$N%M%C%H%o!<%/$O(B
$B$h$j0BA4$K$J$j$^$9!#(B
$B%$%s%?!<%M%C%H%k!<%?$O!"$3$N$h$&$J%W%i%$%Y!<%H%"%I%l%9$N$D$$$?%Q%1%C%H$r(B
$BDL$7$^$;$s!#(B
<P>$B$3$N7o$K4X$7$F$O!"<!$NJ8=q$rFI$s$@$[$&$,$h$$$G$7$g$&!#(B
<A HREF="http://members.home.net/ipmasq/">IP Masquerading HOWTO</A><P>$B!ZLuCm(B: IP Masquerade HOWTO $B$NF|K\8lLu$O!"<!$N$H$3$m$K$"$j$^$9!#(B
<A HREF="http://www.linux.or.jp/JF/JFdocs/IP-Masquerade.html">http://www.linux.or.jp/JF/JFdocs/IP-Masquerade.html</A>$B![(B
<P>
<PRE>
            24.94.1.123  __________    192.168.1.1
      _/\__/\_        \ | $B%U%!%$%"(B | /           _______________
     |$B%$%s%?!<(B|        \| $B%&%)!<%k(B |/           |     $B%o!<%/(B    |
    /  $B%M%C%H(B  \--------| $B%7%9%F%`(B |------------|  $B%9%F!<%7%g%s(B |
    \_  _  _  _/        |__________|            |_______________|
      \/ \/ \/ 
</PRE>
<P>$B$*;H$$$N%$%s%?!<%M%C%HMQ%M%C%H%o!<%/%+!<%I$K3d$jEv$F$k$?$a$N(B
&quot;$BK\J*$N(B&quot; IP $B%"%I%l%9$r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- 
<P>
<PRE>
    DEVICE=eth1
    IPADDR=192.168.1.1
    NETMASK=255.255.255.0
    NETWORK=192.168.1.0
    BROADCAST=192.168.1.255
    GATEWAY=24.94.1.123
    ONBOOT=yes
</PRE>
<P>$B%@%$%"%k%"%C%W@\B3$r$9$k$D$b$j$J$i!"(Bifcfg-ppp0 $B$H(B chat-ppp0 $B$r8+$J$1$l$P(B
$B$J$j$^$;$s!#(B
$B$3$l$i$O(B PPP $B@\B3$r@)8f$7$^$9!#(B
<P>$B$3$N>l9g$N(B ifcfg $B%U%!%$%k$O<!$N$h$&$K$J$j$^$9(B - 
<P>
<PRE>
    DEVICE=&quot;ppp0&quot;           
    ONBOOT=&quot;yes&quot;
    USERCTL=&quot;no&quot;
    MODEMPORT=&quot;/dev/modem&quot;      
    LINESPEED=&quot;115200&quot;          
    PERSIST=&quot;yes&quot;   
    DEFABORT=&quot;yes&quot;  
    DEBUG=&quot;yes&quot;     
    INITSTRING=&quot;ATZ&quot;
    DEFROUTE=&quot;yes&quot;  
    HARDFLOWCTL=&quot;yes&quot;           
    ESCAPECHARS=&quot;no&quot;
    PPPOPTIONS=&quot;&quot;   
    PAPNAME=&quot;LoginID&quot;           
    REMIP=&quot;&quot;        
    NETMASK=&quot;&quot;      
    IPADDR=&quot;&quot;       
    MRU=&quot;&quot;          
    MTU=&quot;&quot;          
    DISCONNECTTIMEOUT=&quot;&quot;        
    RETRYTIMEOUT=&quot;5&quot;
    BOOTPROTO=&quot;none&quot;
</PRE>
<P>
<P>
<H2><A NAME="ss6.4">6.4 $B%M%C%H%o!<%/$r;n$7$F$_$k(B</A>
</H2>

<P> 
ifconfig $B$H(B route $B%3%^%s%I$r;H$C$F$_$^$7$g$&!#(B
$BFsKg$N%M%C%H%o!<%/%+!<%I$r;H$C$F$$$k$J$i!"<!$N$h$&$KI=<($5$l$^$9!#(B
<P>
<PRE>
  #ifconfig
  lo        Link encap:Local Loopback
            inet addr:127.0.0.1  Mask:255.0.0.0
            UP LOOPBACK RUNNING  MTU:3924  Metric:1
            RX packets:1620 errors:0 dropped:0 overruns:0
            TX packets:1620 errors:0 dropped:0 overruns:0
            collisions:0 txqueuelan:0

  eth0      Link encap:10Mbps Ethernet  HWaddr 00:00:09:85:AC:55
            inet addr:24.94.1.123 Bcast:24.94.1.255  Mask:255.255.255.0
            UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
            RX packets:1000 errors:0 dropped:0 overruns:0
            TX packets:1100 errors:0 dropped:0 overruns:0
            collisions:0 txqueuelan:0
            Interrupt:12 Base address:0x310

  eth1      Link encap:10Mbps Ethernet  HWaddr 00:00:09:80:1E:D7
            inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
            UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
            RX packets:1110 errors:0 dropped:0 overruns:0
            TX packets:1111 errors:0 dropped:0 overruns:0
            collisions:0 txqueuelan:0
            Interrupt:15 Base address:0x350
</PRE>
<P>$B99$K7PO)%F!<%V%k$O<!$N$h$&$K$J$j$^$9(B - 
<P>
<PRE>
  #route -n
  Kernel routing table
  Destination     Gateway         Genmask         Flags MSS    Window Use Iface
  24.94.1.0       *               255.255.255.0   U     1500   0       15 eth0
  192.168.1.0     *               255.255.255.0   U     1500   0        0 eth1
  127.0.0.0       *               255.0.0.0       U     3584   0        2 lo
  default         24.94.1.123     *               UG    1500   0       72 eth0
</PRE>
<P><B>$BCm0U(B - </B> 24.94.1.0 $B$O!"$3$N%U%!%$%"%&%)!<%k$N%$%s%?!<%M%C%HB&$G!"(B
192.168.1.0 $B$O%W%i%$%Y!<%H(B( LAN )$BB&$K$J$j$^$9!#(B
<P>LAN $B>e$K$"$kA4$F$N%3%s%T%e!<%?$,!"%U%!%$%"%&%)!<%k%7%9%F%`$NFbB&$N(B
$B%"%I%l%9$K(B ping $B$G$-$k$+$I$&$+$rD4$Y$^$7$g$&(B
($B$3$3$G$O(B 192.168.1.1 $B$rNc$K$7$F$$$^$9(B)$B!#(B
$B$&$^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9$O$I$l$bL58z$K$7$J$1$l$P$J$j$^$;$s!#(B
<P>/etc/inetd.conf $B%U%!%$%k$r8+$F$/$@$5$$!#(B
$B$3$l$O(B &quot;super server&quot; $B$H$7$FCN$i$l$k(B inetd $B$r@_Dj$9$k(B
$B%U%!%$%k$G$9!#(B
inetd $B$OBt;3$N%5!<%P%G!<%b%s$r@)8f$7!"(B&quot;well known&quot; $B%]!<%H(B
$B$X$NMW5a%Q%1%C%H$,E~Ce$9$k$H!"$=$l$i$r%9%?!<%H$5$;$^$9!#(B
<P>$B!ZLuCm(B: well known port $B$O!"(B TCP/UDP $B%]!<%HHV9f(B 1024 $BHV0J2<$N%]!<%H$r(B
$B;X$7$^$9!#![(B
<P>echo, discard, daytime, chargen, ftp, gopher, shell, login, exec, talk,
ntalk, pop-2, pop-3, netstat, systat, tftp, bootp, finger, cfinger,
time, swat $B$=$7$F(B linuxconfig $BEy$OA4$FL58z$K$7$^$7$g$&!#(B
<P>$B%5!<%S%9$rJQ99$9$k$K$O!"%5!<%S%99T$N:G=i$NJ8;z$K(B # $B$rCV$-$^$9!#(B
$B$3$l$,:Q$s$@$i(B <B>&quot;kill -HUP &lt;pid&gt;&quot;</B> $B$rAw$j$^$9!#(B
&lt;pid&gt; $B$K$O!"(Binetd $B$N%W%m%;%9HV9f$r=q$-$^$9!#(B
$B$3$&$9$k$H$=$N@_Dj%U%!%$%k$r:FFI$5$;!"%7%9%F%`$rDd;_$5$;$J$$$G(B
$B:F%9%?!<%H$7$^$9!#(B
<P>$B!ZLuCm(B: killall $B$H$$$&%3%^%s%I$,$"$j$^$9!#(B man killall $B$bD4$Y$F$/$@$5$$!#(B
killall -HUP inetd $B$,;H$($^$9!#![(B
<P>$B%U%!%$%"%&%)!<%k$N(B port 15 (netstat) $B$KBP$7$F(B telnet $B$7$F$_$F$/$@$5$$!#(B
$B2?$+=PNO$9$k$h$&$J$i!"%5!<%S%9$OL58z$K$J$C$F$$$^$;$s!#(B
<P>telnet localhost 19
<P>/etc/nologin $B$H$$$&%U%!%$%k$r:n@.$9$k$3$H$b$G$-$^$9!#(B
BUZZ OFF ($B7R$,$J$$$N0UL#(B) $B$N$h$&$K!"$3$N%U%!%$%k$K$A$g$C$H$7$?%F%-%9%H$r(B
$B=q$-$^$9!#(B
$B$3$N%U%!%$%k$,B8:_$9$k$H!"(B login $B$O%f!<%6$N%m%0%*%s$r5v2D$7$^$;$s!#(B
$B%f!<%6$O$3$N%U%!%$%k$NFbMF$r8+$k$3$H$K$J$j!"%m%0%$%s$O5qH]$5$l$^$9!#(B
root $B$@$1$,%m%0%$%s$G$-$^$9!#(B
<P>/etc/securetty $B$H$$$&%U%!%$%k$bJT=8$G$-$^$9!#(B
$B%f!<%6$,(B root $B$J$i!"(B /etc/securetty $B$KNs5s$5$l$?(B tty $B$+$i$7$+(B
$B%m%0%$%s$G$-$^$;$s!#(B
$B<:GT$9$k$H!"(B syslog $B5!G=$G5-O?$5$l$^$9!#(B
$B$3$l$i$NN>J}$N%3%s%H%m!<%k$rM-8z$K$9$l$P!"%U%!%$%"%&%)!<%k$X$N%m%0%*%s$O!"(B
root $B$H$7$F%3%s%=!<%k7PM3$G$7$+9T$($J$/$J$j$^$9!#(B
<P>$B@dBP$K(B telnet $B$G(B root $B$H$7$F%m%0%$%s$7$F$O$$$1$^$;$s!#(B
$B%j%b!<%H(B root $B$rI,MW$H$9$k$J$i!"(BSSH (Secure Shell) $B$G%"%/%;%9$7$^$9!#(B
telnet $B$OL58z$K$9$Y$-$G$7$g$&!#(B
<P>$B?4G[@-$J?M$O!"(Blids (Linux Intrusion Detect System $B3d$j9~$_8!CN%7%9%F%`(B) 
$B$r;H$&I,MW$,$"$k$+$b$7$l$^$;$s!#(B
$B$3$l$O(B Linux $B%+!<%M%k$KBP$9$k?/F~6X;_%7%9%F%`$N%Q%C%A$G$9!#(B
$B=EMW$J%U%!%$%k$r2~cb$+$i<i$j$^$9!#(B
$B$3$N;EAH$_$r;H$&$H!"(B $BKI8fBP>]$N%U%!%$%k$d%G%#%l%/%H%j!"99$K$=$NG[2<$N(B
$B%5%V%G%#%l%/%H%j$O(B (root $B$r4^$a$F(B) $BC/$bJQ99$G$-$J$/$J$j$^$9!#(B
$B$3$N$h$&$J0BA42=$5$l$?%U%!%$%k$rJQ99$9$k$K$O!"(B LILO $B$N@_Dj$G(B security=1
$B$r;XDj$7$F%7%9%F%`$r%j%V!<%H$5$;$J$1$l$P$J$j$^$;$s(B
($B;d$J$i%7%s%0%k%f!<%6%b!<%I$G5/F0$5$;$k$G$7$g$&(B)$B!#(B
<P>
<P>
<HR>
<A HREF="Firewall-HOWTO-7.html">$B<!$N%Z!<%8(B</A>
<A HREF="Firewall-HOWTO-5.html">$BA0$N%Z!<%8(B</A>
<A HREF="Firewall-HOWTO.html#toc6">$BL\<!$X(B</A>
</BODY>
</HTML>