LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   forward packets between two interfaces (https://www.linuxquestions.org/questions/linux-networking-3/forward-packets-between-two-interfaces-358547/)

sehh 08-30-2005 12:59 PM

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.

Thank you.

Matir 08-30-2005 01:12 PM

You could do it using ethernet bridging, I would think. But I don't think you can do it with just route commands. Maybe with ip_forwarding enabled, and the laptop having a default route of the desktop?

sehh 08-30-2005 03:11 PM

I have already enabled ip_forwarding as well as setup the default route of the desktop (machine "B") towards the dsl router (machine "A"). Unfortunately that didn't have any effect.

I can't do ethernet bridging because the RT2400 wireless driver that i'm using doesn't support it.

Hopefuly someone may know of a simple solution...


All times are GMT -5. The time now is 03:19 PM.