Add a graphical figure for the natd chapter to replace the ASCII art
when the output format supports it. The PNG driver for Ghostscript doesn't support anti-aliasing on FreeBSD, so the PNG file was created on another platform and should not be automatically generated from the eps file. Submitted by: G. Adam Stanislav (created the EPS file with a text editor)
This commit is contained in:
parent
7e88989219
commit
8d2a434262
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=9683
4 changed files with 248 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
||||||
#
|
#
|
||||||
# $FreeBSD: doc/en_US.ISO8859-1/books/handbook/Makefile,v 1.32 2001/05/14 03:07:50 murray Exp $
|
# $FreeBSD: doc/en_US.ISO8859-1/books/handbook/Makefile,v 1.33 2001/06/21 03:38:14 chris Exp $
|
||||||
#
|
#
|
||||||
# Build the FreeBSD Handbook.
|
# Build the FreeBSD Handbook.
|
||||||
#
|
#
|
||||||
|
@ -13,6 +13,8 @@ FORMATS?= html-split
|
||||||
INSTALL_COMPRESSED?= gz
|
INSTALL_COMPRESSED?= gz
|
||||||
INSTALL_ONLY_COMPRESSED?=
|
INSTALL_ONLY_COMPRESSED?=
|
||||||
|
|
||||||
|
# IMAGES= advanced-networking/natd.png advanced-networking/natd.eps
|
||||||
|
|
||||||
#
|
#
|
||||||
# SRCS lists the individual SGML files that make up the document. Changes
|
# SRCS lists the individual SGML files that make up the document. Changes
|
||||||
# to any of these files will force a rebuild
|
# to any of these files will force a rebuild
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<!--
|
<!--
|
||||||
The FreeBSD Documentation Project
|
The FreeBSD Documentation Project
|
||||||
|
|
||||||
$FreeBSD: doc/en_US.ISO8859-1/books/handbook/advanced-networking/chapter.sgml,v 1.44 2001/06/15 21:47:55 murray Exp $
|
$FreeBSD: doc/en_US.ISO8859-1/books/handbook/advanced-networking/chapter.sgml,v 1.45 2001/06/21 17:20:55 murray Exp $
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<chapter id="advanced-networking">
|
<chapter id="advanced-networking">
|
||||||
|
@ -2944,7 +2944,7 @@ dhcp_flags=""</programlisting>
|
||||||
<sect3>
|
<sect3>
|
||||||
<title><filename>/etc/namedb/named.conf</filename></title>
|
<title><filename>/etc/namedb/named.conf</filename></title>
|
||||||
|
|
||||||
<programlisting>// $FreeBSD: doc/en_US.ISO8859-1/books/handbook/advanced-networking/chapter.sgml,v 1.44 2001/06/15 21:47:55 murray Exp $
|
<programlisting>// $FreeBSD: doc/en_US.ISO8859-1/books/handbook/advanced-networking/chapter.sgml,v 1.45 2001/06/21 17:20:55 murray Exp $
|
||||||
//
|
//
|
||||||
// Refer to the named(8) man page for details. If you are ever going
|
// Refer to the named(8) man page for details. If you are ever going
|
||||||
// to setup a primary server, make sure you've understood the hairy
|
// to setup a primary server, make sure you've understood the hairy
|
||||||
|
@ -3488,7 +3488,13 @@ www IN CNAME @
|
||||||
to the Internet router, the other connecting to a LAN. All the
|
to the Internet router, the other connecting to a LAN. All the
|
||||||
machines on the LAN are connected through a hub or switch.</para>
|
machines on the LAN are connected through a hub or switch.</para>
|
||||||
|
|
||||||
<programlisting> _______ __________ ________
|
<mediaobject>
|
||||||
|
<imageobject>
|
||||||
|
<imagedata fileref="advanced-networking/natd">
|
||||||
|
</imageobject>
|
||||||
|
|
||||||
|
<textobject>
|
||||||
|
<literallayout class="monospaced"> _______ __________ ________
|
||||||
| | | | | |
|
| | | | | |
|
||||||
| Hub |-----| Client B |-----| Router |----- Internet
|
| Hub |-----| Client B |-----| Router |----- Internet
|
||||||
|_______| |__________| |________|
|
|_______| |__________| |________|
|
||||||
|
@ -3496,7 +3502,14 @@ www IN CNAME @
|
||||||
____|_____
|
____|_____
|
||||||
| |
|
| |
|
||||||
| Client A |
|
| Client A |
|
||||||
|__________|</programlisting>
|
|__________|</literallayout>
|
||||||
|
</textobject>
|
||||||
|
|
||||||
|
<textobject>
|
||||||
|
<phrase>Network Layout</phrase>
|
||||||
|
</textobject>
|
||||||
|
</mediaobject>
|
||||||
|
|
||||||
<para>With this setup, the machine without Internet access can use
|
<para>With this setup, the machine without Internet access can use
|
||||||
the machine with access as a gateway to access the outside
|
the machine with access as a gateway to access the outside
|
||||||
world.</para>
|
world.</para>
|
||||||
|
|
228
en_US.ISO8859-1/books/handbook/advanced-networking/natd.eps
Normal file
228
en_US.ISO8859-1/books/handbook/advanced-networking/natd.eps
Normal file
|
@ -0,0 +1,228 @@
|
||||||
|
%!PS-Adobe-3.0 EPSF-3.0
|
||||||
|
%%BoundingBox: -10 -10 355 100
|
||||||
|
%%Creator: G. Adam Stanislav
|
||||||
|
%%EndComments
|
||||||
|
%%BeginProlog
|
||||||
|
%%EndProlog
|
||||||
|
|
||||||
|
%%BeginSetup
|
||||||
|
/ldent {
|
||||||
|
0 5 rlineto
|
||||||
|
-7 0 rlineto
|
||||||
|
0 -5 rlineto
|
||||||
|
} bind def
|
||||||
|
|
||||||
|
/uldent {
|
||||||
|
0 -5 rlineto
|
||||||
|
7 0 rlineto
|
||||||
|
0 5 rlineto
|
||||||
|
} bind def
|
||||||
|
|
||||||
|
/rdent {
|
||||||
|
0 5 rlineto
|
||||||
|
11 0 rlineto
|
||||||
|
0 -5 rlineto
|
||||||
|
} bind def
|
||||||
|
|
||||||
|
/urdent {
|
||||||
|
0 -5 rlineto
|
||||||
|
-11 0 rlineto
|
||||||
|
0 5 rlineto
|
||||||
|
} bind def
|
||||||
|
|
||||||
|
/hub {
|
||||||
|
moveto
|
||||||
|
0 30 rlineto
|
||||||
|
70 0 rlineto
|
||||||
|
0 -30 rlineto
|
||||||
|
-10.5 0 rlineto
|
||||||
|
ldent
|
||||||
|
-7 0 rlineto
|
||||||
|
ldent
|
||||||
|
-7 0 rlineto
|
||||||
|
ldent
|
||||||
|
-7 0 rlineto
|
||||||
|
ldent
|
||||||
|
closepath
|
||||||
|
2 28 rmoveto
|
||||||
|
0 -26 rlineto
|
||||||
|
6.5 0 rlineto
|
||||||
|
rdent
|
||||||
|
3 0 rlineto
|
||||||
|
rdent
|
||||||
|
3 0 rlineto
|
||||||
|
rdent
|
||||||
|
3 0 rlineto
|
||||||
|
rdent
|
||||||
|
6.5 0 rlineto
|
||||||
|
0 26 rlineto
|
||||||
|
closepath
|
||||||
|
fill
|
||||||
|
} bind def
|
||||||
|
|
||||||
|
/router {
|
||||||
|
moveto
|
||||||
|
0 30 rlineto
|
||||||
|
70 0 rlineto
|
||||||
|
0 -30 rlineto
|
||||||
|
-10.5 0 rlineto
|
||||||
|
ldent
|
||||||
|
-35 0 rlineto
|
||||||
|
ldent
|
||||||
|
closepath
|
||||||
|
2 28 rmoveto
|
||||||
|
0 -26 rlineto
|
||||||
|
6.5 0 rlineto
|
||||||
|
rdent
|
||||||
|
31 0 rlineto
|
||||||
|
rdent
|
||||||
|
6.5 0 rlineto
|
||||||
|
0 26 rlineto
|
||||||
|
closepath
|
||||||
|
fill
|
||||||
|
} bind def
|
||||||
|
|
||||||
|
/box1 {
|
||||||
|
moveto
|
||||||
|
0 40 rlineto
|
||||||
|
10.5 0 rlineto
|
||||||
|
uldent
|
||||||
|
82.5 0 rlineto
|
||||||
|
0 -40 rlineto
|
||||||
|
closepath
|
||||||
|
2 38 rmoveto
|
||||||
|
0 -36 rlineto
|
||||||
|
96 0 rlineto
|
||||||
|
0 36 rlineto
|
||||||
|
-78.5 0 rlineto
|
||||||
|
urdent
|
||||||
|
closepath
|
||||||
|
fill
|
||||||
|
} bind def
|
||||||
|
|
||||||
|
/box2 {
|
||||||
|
moveto
|
||||||
|
0 40 rlineto
|
||||||
|
10.5 0 rlineto
|
||||||
|
uldent
|
||||||
|
65 0 rlineto
|
||||||
|
uldent
|
||||||
|
10.5 0 rlineto
|
||||||
|
0 -40 rlineto
|
||||||
|
closepath
|
||||||
|
2 38 rmoveto
|
||||||
|
0 -36 rlineto
|
||||||
|
96 0 rlineto
|
||||||
|
0 36 rlineto
|
||||||
|
-6.5 0 rlineto
|
||||||
|
urdent
|
||||||
|
-61 0 rlineto
|
||||||
|
urdent
|
||||||
|
closepath
|
||||||
|
fill
|
||||||
|
} bind def
|
||||||
|
|
||||||
|
/plug {
|
||||||
|
moveto
|
||||||
|
0 7 rlineto
|
||||||
|
6 0 rlineto
|
||||||
|
0 -7 rlineto
|
||||||
|
closepath
|
||||||
|
fill
|
||||||
|
} bind def
|
||||||
|
|
||||||
|
/internet {
|
||||||
|
moveto
|
||||||
|
0 90 rlineto
|
||||||
|
110 0 rlineto
|
||||||
|
0 -90 rlineto
|
||||||
|
closepath
|
||||||
|
gsave
|
||||||
|
5 7 div setcolor
|
||||||
|
fill
|
||||||
|
grestore
|
||||||
|
stroke
|
||||||
|
} bind def
|
||||||
|
%%EndSetup
|
||||||
|
|
||||||
|
0 60 hub
|
||||||
|
11 57.5 plug
|
||||||
|
25 57.5 plug
|
||||||
|
|
||||||
|
135 60 router
|
||||||
|
146 57.5 plug
|
||||||
|
188 57.5 plug
|
||||||
|
|
||||||
|
0 0 box1
|
||||||
|
11 35.5 plug
|
||||||
|
|
||||||
|
13 40 moveto
|
||||||
|
0 18 rlineto
|
||||||
|
2 0 rlineto
|
||||||
|
0 -18 rlineto
|
||||||
|
closepath
|
||||||
|
fill
|
||||||
|
|
||||||
|
120 0 box2
|
||||||
|
% Connect box2 with hub
|
||||||
|
131 35.5 plug
|
||||||
|
133 40 moveto
|
||||||
|
0 8 rlineto
|
||||||
|
-106 0 rlineto
|
||||||
|
0 10 rlineto
|
||||||
|
2 0 rlineto
|
||||||
|
0 -8 rlineto
|
||||||
|
106 0 rlineto
|
||||||
|
0 -10 rlineto
|
||||||
|
closepath
|
||||||
|
fill
|
||||||
|
|
||||||
|
% Connect box2 with router
|
||||||
|
203 35.5 plug
|
||||||
|
205 40 moveto
|
||||||
|
0 8 rlineto
|
||||||
|
-57 0 rlineto
|
||||||
|
0 10 rlineto
|
||||||
|
2 0 rlineto
|
||||||
|
0 -8 rlineto
|
||||||
|
57 0 rlineto
|
||||||
|
0 -10 rlineto
|
||||||
|
closepath
|
||||||
|
fill
|
||||||
|
|
||||||
|
gsave
|
||||||
|
[5 3] 0 setdash
|
||||||
|
235 0 internet
|
||||||
|
grestore
|
||||||
|
|
||||||
|
% Connect router to the Internet
|
||||||
|
232 49.5 plug
|
||||||
|
190 58 moveto
|
||||||
|
0 -6 rlineto
|
||||||
|
45 0 rlineto
|
||||||
|
0 2 rlineto
|
||||||
|
-43 0 rlineto
|
||||||
|
0 4 rlineto
|
||||||
|
closepath
|
||||||
|
fill
|
||||||
|
|
||||||
|
/Helvetica-bold findfont dup 10 scalefont setfont
|
||||||
|
|
||||||
|
25 74 moveto (Hub) show
|
||||||
|
155 74 moveto (Router) show
|
||||||
|
28 18 moveto (Client A) show
|
||||||
|
149 23 moveto (Client B) show
|
||||||
|
123.5 10 moveto ((FreeBSD Gateway)) show
|
||||||
|
|
||||||
|
25 scalefont setfont
|
||||||
|
|
||||||
|
265 51 moveto (The) show
|
||||||
|
245 27 moveto (Internet) show
|
||||||
|
1 setcolor
|
||||||
|
264 53 moveto (The) show
|
||||||
|
244 29 moveto (Internet) show
|
||||||
|
|
||||||
|
%%Trailer
|
||||||
|
showpage
|
||||||
|
%%EOF
|
||||||
|
|
BIN
en_US.ISO8859-1/books/handbook/advanced-networking/natd.png
Normal file
BIN
en_US.ISO8859-1/books/handbook/advanced-networking/natd.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.8 KiB |
Loading…
Reference in a new issue