forward packets between two interfaces
I would like to forward packets between two interfaces on the same machine.
Here is a description of my current setup:
Machine "A": DSL router (managed) doing NAT for the network, sharing internet. Also provides DNS. No DHCP since all systems use statip IP. Ethernet IP address 192.168.0.2.
Machine "B": desktop system with Fedora Core 4. Ethernet IP address 192.168.0.1 (eth0). Wireless IP address: 192.168.1.1 (ra0).
Machine "C": laptop system with Fedora Core 4: Wireless IP address: 192.168.1.3 (wlan0).
Currently, Machine "B" can access the internet via machine "A" over ethernet cable.
I'd like to make machine "C" (laptop) also access the internet. This means that machine "C" must send packets to machine "B" which forwards them to machine "A" which then does NAT and sends them over the internet.
I've been told that this can be done with a few simple "route" commands. No iptables is required.
Any suggestions are welcome.