mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-22 06:10:42 +01:00
Add IP address determination tip
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5406 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
230d987e44
commit
05dcc43775
@ -411,7 +411,26 @@ root@lists:~# </programlisting>
|
||||
<para>Before starting Shorewall, <emphasis role="bold">you should look at
|
||||
the IP address of your external interface and if it is in one of the above
|
||||
ranges, you should remove the <quote>norfc1918</quote> option from the
|
||||
entry in <filename>/etc/shorewall/interfaces</filename>.</emphasis></para>
|
||||
entry in <filename>/etc/shorewall/interfaces</filename>.</emphasis><tip>
|
||||
<para>To determine the IP address of your external interface, as root
|
||||
type <command>ip addr ls dev <interface></command> at the
|
||||
command line where <<emphasis>interface</emphasis>> is your
|
||||
external interface. The line beginning with inet identifies your IP
|
||||
address.</para>
|
||||
|
||||
<para>Example:</para>
|
||||
|
||||
<programlisting>root@lists:~# ip addr ls dev eth0
|
||||
2: eth0: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc htb qlen 1000
|
||||
link/ether 00:02:e3:08:48:4c brd ff:ff:ff:ff:ff:ff
|
||||
inet <emphasis role="bold">206.124.146.176</emphasis>/24 brd 206.124.146.255 scope global eth0
|
||||
inet6 fe80::202:e3ff:fe08:484c/64 scope link
|
||||
valid_lft forever preferred_lft forever
|
||||
root@lists:~# </programlisting>
|
||||
|
||||
<para>In this example, the IP address of the external interface is
|
||||
206.124.146.176</para>
|
||||
</tip></para>
|
||||
</section>
|
||||
|
||||
<section id="Open">
|
||||
|
@ -496,7 +496,26 @@ root@lists:~# </programlisting>
|
||||
the IP address of your external interface and if it is one of the above
|
||||
ranges, you should remove the <varname>norfc1918</varname> option from the
|
||||
external interface's entry in
|
||||
<filename>/etc/shorewall/interfaces</filename>.</emphasis></para>
|
||||
<filename>/etc/shorewall/interfaces</filename>.</emphasis><tip>
|
||||
<para>To determine the IP address of your external interface, as root
|
||||
type <command>ip addr ls dev <interface></command> at the
|
||||
command line where <<emphasis>interface</emphasis>> is your
|
||||
external interface. The line beginning with inet identifies your IP
|
||||
address.</para>
|
||||
|
||||
<para>Example:</para>
|
||||
|
||||
<programlisting>root@lists:~# ip addr ls dev eth0
|
||||
2: eth0: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc htb qlen 1000
|
||||
link/ether 00:02:e3:08:48:4c brd ff:ff:ff:ff:ff:ff
|
||||
inet <emphasis role="bold">206.124.146.176</emphasis>/24 brd 206.124.146.255 scope global eth0
|
||||
inet6 fe80::202:e3ff:fe08:484c/64 scope link
|
||||
valid_lft forever preferred_lft forever
|
||||
root@lists:~# </programlisting>
|
||||
|
||||
<para>In this example, the IP address of the external interface is
|
||||
206.124.146.176</para>
|
||||
</tip></para>
|
||||
|
||||
<para>You will want to assign your local addresses from one sub-network or
|
||||
subnet and your DMZ addresses from another subnet. For our purposes, we
|
||||
|
@ -458,7 +458,26 @@ root@lists:~# </programlisting>
|
||||
the IP address of your external interface and if it is one of the above
|
||||
ranges, you should remove the 'norfc1918' option from the external
|
||||
interface's entry in <filename
|
||||
class="directory">/etc/shorewall/</filename><filename>interfaces</filename>.</emphasis></para>
|
||||
class="directory">/etc/shorewall/</filename><filename>interfaces</filename>.</emphasis><tip>
|
||||
<para>To determine the IP address of your external interface, as root
|
||||
type <command>ip addr ls dev <interface></command> at the
|
||||
command line where <<emphasis>interface</emphasis>> is your
|
||||
external interface. The line beginning with inet identifies your IP
|
||||
address.</para>
|
||||
|
||||
<para>Example:</para>
|
||||
|
||||
<programlisting>root@lists:~# ip addr ls dev eth0
|
||||
2: eth0: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc htb qlen 1000
|
||||
link/ether 00:02:e3:08:48:4c brd ff:ff:ff:ff:ff:ff
|
||||
inet <emphasis role="bold">206.124.146.176</emphasis>/24 brd 206.124.146.255 scope global eth0
|
||||
inet6 fe80::202:e3ff:fe08:484c/64 scope link
|
||||
valid_lft forever preferred_lft forever
|
||||
root@lists:~# </programlisting>
|
||||
|
||||
<para>In this example, the IP address of the external interface is
|
||||
206.124.146.176</para>
|
||||
</tip></para>
|
||||
|
||||
<para>You will want to assign your addresses from the same sub-network
|
||||
(subnet). For our purposes, we can consider a subnet to consists of a
|
||||
|
Loading…
Reference in New Issue
Block a user