LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 08-30-2005, 12:59 PM   #1
sehh
LQ Newbie
 
Registered: Nov 2003
Location: Greece & UK
Distribution: Fedora Core 4
Posts: 22

Rep: Reputation: 15
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.
 
Old 08-30-2005, 01:12 PM   #2
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 117Reputation: 117
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?
 
Old 08-30-2005, 03:11 PM   #3
sehh
LQ Newbie
 
Registered: Nov 2003
Location: Greece & UK
Distribution: Fedora Core 4
Posts: 22

Original Poster
Rep: Reputation: 15
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...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual-homed Box won't forward packets meadensi Linux - Networking 2 02-19-2005 02:04 PM
Forward netbios broadcast packets atlesn Linux - Networking 0 07-26-2004 09:37 AM
encapsulating TCP packets in UDP packets... yoshi95 Programming 3 06-03-2004 02:53 PM
cant see .forward file in home directory >> mail forward/copy steve_babbage Linux - Newbie 0 03-02-2004 06:25 AM
forward broadcast packets to another subnet VultureCulture Linux - Networking 9 10-25-2003 04:14 PM


All times are GMT -5. The time now is 11:36 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration