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
|
<?xml version="1.0" encoding="utf-8"?>
<section version="5.0" xml:lang="ja" xml:id="drakgw" xmlns="http://docbook.org/ns/docbook"
xmlns:ns5="http://www.w3.org/1998/Math/MathML"
xmlns:ns4="http://www.w3.org/2000/svg"
xmlns:ns3="http://www.w3.org/1999/xhtml"
xmlns:ns2="http://www.w3.org/1999/xlink"
xmlns:ns="http://docbook.org/ns/docbook">
<info>
<title xml:id="drakgw-ti1">他のローカルマシンとインターネット接続を共有</title>
<subtitle>drakgw</subtitle>
</info>
<mediaobject>
<imageobject>
<imagedata align="center" fileref="drakgw.png" format="PNG" revision="1"
xml:id="drakgw-im1"/>
</imageobject>
</mediaobject>
<para/>
<section xml:id="drakgw-principles">
<title>Principles</title>
<para><mediaobject>
<imageobject>
<imagedata fileref="../drakgw-net.png"/>
</imageobject>
</mediaobject>This is useful when you have a
computer (3) which has Internet (2) access and is connected also to a local
network (1). You can use computer (3) as a gateway to give that access to
other workstations (5) and (6) in the local network (1). For this, the
gateway must have two interfaces; the first one such as an ethernet card
must be connected to the local network, and the second one (4) connected to
the Internet (2).</para>
<para>The first step is to verify that the network and the access to Internet are
set up, as documented in <xref linkend="draknetcenter"/>.</para>
</section>
<section xml:id="drakgw-wizard">
<title>Gateway wizard</title>
<para>The wizard<footnote>
<para>You can start this tool from the command line, by typing <emphasis
role="bold">drakgw</emphasis> as root.</para>
</footnote> offers successive steps
which are shown below:</para>
<para><itemizedlist>
<listitem>
<para>If the wizard does not detect at least two interfaces, it warns about this
and asks to stop the network and configure the hardware.</para>
</listitem>
<listitem>
<para>specify the interface used for the Internet connection. The wizard
automatically suggests one of the interfaces, but you should verify that
what is proposed is correct.</para>
</listitem>
<listitem>
<para>specify which interface is used for the Lan access. The wizard also proposes
one, check that this is correct.</para>
</listitem>
<listitem>
<para>The wizard proposes parameters for the Lan network, such as IP address, mask
and domain name. Check that these parameters are compatible with the actual
configuration. It is recommended that you accept these values.</para>
</listitem>
<listitem>
<para>specify if the computer has to be used as a DNS server. If yes, the wizard
will check that <code>bind</code> is installed. Otherwise, you have to
specify the address of a DNS server.</para>
</listitem>
<listitem>
<para>specify if the computer is to be used as a DHCP server. If yes, the wizard
will check that <code>dhcp-server</code> is installed and offer to configure
it, with start and end addresses in the DHCP range.</para>
</listitem>
<listitem>
<para>specify if the computer is to be used as a proxy server. If yes, the wizard
will check that <code>squid</code> is installed and offer to configure it,
with the address of the administrator (admin@mydomain.com), name of the
proxy (myfirewall@mydomaincom), the port (3128) and the cache size (100 Mb).</para>
</listitem>
<listitem>
<para>The last step allows you to check if the gateway machine is connected to
printers and to share them.</para>
</listitem>
</itemizedlist></para>
<para>You will be warned about the need to check the firewall if it is active.</para>
</section>
<section xml:id="drakgw-configure">
<title>Configure the client</title>
<para>If you have configured the gateway machine with DHCP, you only need to
specify in the network configuration tool that you get an address
automatically (using DHCP). The parameters will be obtained when connecting
to the network. This method is valid whatever operating system the client is
using.</para>
<para>If you must manually specify the network parameters, you must in particular
specify the gateway by entering the IP-address of the machine acting as the
gateway.</para>
</section>
<section xml:id="drakgw-stop">
<title>Stop connection sharing</title>
<para>If you want to stop sharing the connection on the Mageia computer, launch
the tool. It will offer to reconfigure the connection or to stop the
sharing.</para>
</section>
</section>
|