|
|
@ -34,46 +34,50 @@
|
|
|
|
</legalnotice>
|
|
|
|
</legalnotice>
|
|
|
|
</articleinfo>
|
|
|
|
</articleinfo>
|
|
|
|
|
|
|
|
|
|
|
|
<para>Proxy ARP (RFC 1027) is a way to make a machine physically located on
|
|
|
|
<section>
|
|
|
|
one network appear to be logically part of a different physical network
|
|
|
|
<title>Overview</title>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<para>Proxy ARP (RFC 1027) is a way to make a machine physically located
|
|
|
|
|
|
|
|
on one network appear to be logically part of a different physical network
|
|
|
|
connected to the same router/firewall. Typically it allows us to hide a
|
|
|
|
connected to the same router/firewall. Typically it allows us to hide a
|
|
|
|
machine with a public IP address on a private network behind a router, and
|
|
|
|
machine with a public IP address on a private network behind a router, and
|
|
|
|
still have the machine appear to be on the public network "in front of" the
|
|
|
|
still have the machine appear to be on the public network "in front of"
|
|
|
|
router. The router "proxys" ARP requests and all network traffic to and from
|
|
|
|
the router. The router "proxys" ARP requests and all network traffic to
|
|
|
|
the hidden machine to make this fiction possible.</para>
|
|
|
|
and from the hidden machine to make this fiction possible.</para>
|
|
|
|
|
|
|
|
|
|
|
|
<para>Consider a router with two interface cards, one connected to a public
|
|
|
|
<para>Consider a router with two interface cards, one connected to a
|
|
|
|
network PUBNET and one connected to a private network PRIVNET. We want to
|
|
|
|
public network PUBNET and one connected to a private network PRIVNET. We
|
|
|
|
hide a server machine on the PRIVNET network but have it accessible from the
|
|
|
|
want to hide a server machine on the PRIVNET network but have it
|
|
|
|
PUBNET network. The IP address of the server machine lies in the PUBNET
|
|
|
|
accessible from the PUBNET network. The IP address of the server machine
|
|
|
|
network, even though we are placing the machine on the PRIVNET network
|
|
|
|
lies in the PUBNET network, even though we are placing the machine on the
|
|
|
|
behind the router.</para>
|
|
|
|
PRIVNET network behind the router.</para>
|
|
|
|
|
|
|
|
|
|
|
|
<para>By enabling proxy ARP on the router, any machine on the PUBNET network
|
|
|
|
<para>By enabling proxy ARP on the router, any machine on the PUBNET
|
|
|
|
that issues an ARP "who has" request for the server's MAC address will get a
|
|
|
|
network that issues an ARP "who has" request for the server's MAC address
|
|
|
|
proxy ARP reply from the router containing the router's MAC address. This
|
|
|
|
will get a proxy ARP reply from the router containing the router's MAC
|
|
|
|
tells machines on the PUBNET network that they should be sending packets
|
|
|
|
address. This tells machines on the PUBNET network that they should be
|
|
|
|
destined for the server via the router. The router forwards the packets from
|
|
|
|
sending packets destined for the server via the router. The router
|
|
|
|
the machines on the PUBNET network to the server on the PRIVNET
|
|
|
|
forwards the packets from the machines on the PUBNET network to the server
|
|
|
|
network.</para>
|
|
|
|
on the PRIVNET network.</para>
|
|
|
|
|
|
|
|
|
|
|
|
<para>Similarly, when the server on the PRIVNET network issues a "who has"
|
|
|
|
<para>Similarly, when the server on the PRIVNET network issues a "who has"
|
|
|
|
request for any machines on the PUBNET network, the router provides its own
|
|
|
|
request for any machines on the PUBNET network, the router provides its
|
|
|
|
MAC address via proxy ARP. This tells the server to send packets for
|
|
|
|
own MAC address via proxy ARP. This tells the server to send packets for
|
|
|
|
machines on the PUBNET network via the router. The router forwards the
|
|
|
|
machines on the PUBNET network via the router. The router forwards the
|
|
|
|
packets from the server on the PRIVNET network to the machines on the PUBNET
|
|
|
|
packets from the server on the PRIVNET network to the machines on the
|
|
|
|
network.</para>
|
|
|
|
PUBNET network.</para>
|
|
|
|
|
|
|
|
|
|
|
|
<para>The proxy ARP provided by the router allows the server on the
|
|
|
|
<para>The proxy ARP provided by the router allows the server on the
|
|
|
|
PRIVNETnetwork to appear to be on the PUBNET network. It lets the router
|
|
|
|
PRIVNETnetwork to appear to be on the PUBNET network. It lets the router
|
|
|
|
pass ARP requests and other network packets in both directions between the
|
|
|
|
pass ARP requests and other network packets in both directions between the
|
|
|
|
server machine and the PUBNET network, making the server machine appear to
|
|
|
|
server machine and the PUBNET network, making the server machine appear to
|
|
|
|
be connected to the PUBNET network even though it is on the PRIVNET network
|
|
|
|
be connected to the PUBNET network even though it is on the PRIVNET
|
|
|
|
hidden behind the router.</para>
|
|
|
|
network hidden behind the router.</para>
|
|
|
|
|
|
|
|
|
|
|
|
<para>Before you try to use this technique, I strongly recommend that you
|
|
|
|
<para>Before you try to use this technique, I strongly recommend that you
|
|
|
|
read the <ulink url="shorewall_setup_guide.htm">Shorewall Setup
|
|
|
|
read the <ulink url="shorewall_setup_guide.htm">Shorewall Setup
|
|
|
|
Guide</ulink>.</para>
|
|
|
|
Guide</ulink>.</para>
|
|
|
|
|
|
|
|
</section>
|
|
|
|
|
|
|
|
|
|
|
|
<section id="Example">
|
|
|
|
<section id="Example">
|
|
|
|
<title>Example</title>
|
|
|
|
<title>Example</title>
|
|
|
|