In the Usenet newsgroup comp.os.linux.networking, in article
<(E-Mail Removed) .com>,
(E-Mail Removed) wrote:
>there are two computers, named arrakis and caladan. the setup is:
>
>internet --> router
>router --> wireless signal
>wireless signal --> wl-330g network adapter
>wl-330g --> arrakis eth0
>arrakis eth1 --> hub
>hub --> caladan eth1
For packets to get to the Internet from caladan, they have to be sent to
arrakis. For the packets to GET BACK TO caladan, the router has to know
to send the packets to arrakis for forwarding.
>does arrakis need to be configured as a gateway?
281095 Jun 9 18:27 HOWTO-INDEX
29687 May 21 2002 Bridge
40490 Jun 22 2000 Home-Network-mini-HOWTO
703560 May 23 08:22 IP-Masquerade-HOWTO
17605 Jul 21 2004 Masquerading-Simple-HOWTO
45620 Jul 10 2000 Networking-Overview-HOWTO
19372 Aug 28 2000 Proxy-ARP-Subnet
278012 Jul 23 2002 Security-Quickstart-HOWTO
71626 Apr 4 2004 Unix-and-Internet-Fundamentals-HOWTO
A lot of the specifics depend on the IP addresses used, and how the
router is configured. If the router only knows about arrakis, and only
hands out one address, then arrakis is going to have to be doing IP
masquerading. The HOWTO is quite extensive.
If the router permits two or more systems on the same network, AND both
computers are on the same address block (example 192.168.1.2 and 192.168.1.3)
the arrakis needs to be bridging, and using proxy-arp so that the "other"
computers appear to talk to each other directly (but arrakis is relaying
between the two nets).
If the router permits using two or more address blocks (example 192.168.1.0
on one net, 192.168.2.0 on the other - using a host that has interfaces on
both networks to act as a router), then the router needs to be told about
using arrakis as a gateway to the net that caladan is on. caladan sends all
non-local packets to arrakis, either as destination, or as a gateway to
the world.
Old guy