LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-07-2008, 03:25 PM   #1
Devilz
LQ Newbie
 
Registered: Nov 2007
Distribution: openSUSE 12.1
Posts: 23

Rep: Reputation: 15
Wired computer to act as a router


Currently I have a Linksys router, and I have a computer connected wirelessly to the router (Computer1). What I would like to do is connect Computer2 to Computer1 via ethernet cord, and basically just have Computer send the information to the router and send the recieved information to Computer2.

Router --- wireless --- Computer1 --- ethernet cord --- Computer2

Not sure if it helps, but the wireless computer is currently running Slackware.

Using iptables and ip_forwarding I have been able to send the information from Computer2 to the Router, however I have come across a problem:
When Computer2 tries to resolve the DNS server, the router sends out a broadcast message asking who is (ip address Computer2). The rules I set for iptables on Computer1 forward the packets to Computer2 if the destination is Computer2's ip address, however the broadcast message doesn't specify an ip address and I am unsure how I would go about to solve this.

Should I just set up Computer1 to forward all broadcasted packets to Computer2? Any tips or help would be greatly appreciated as I am fairly new to iptables, and have never really attempted this sort of thing before.
 
Old 09-08-2008, 04:03 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
presumably this "broadcast message" is an arp? in which case if you are *routing* through the middle box then the config is wrong, as you'd have an address on a different subnet, so it wouldn't be broadcasted for via arp, but routed instead. do you have different networks on either side of the box, and a route on the router pointing back to the middle box for the networks behind it?
 
Old 09-09-2008, 12:25 AM   #3
Devilz
LQ Newbie
 
Registered: Nov 2007
Distribution: openSUSE 12.1
Posts: 23

Original Poster
Rep: Reputation: 15
No I don't have either.
I was *hoping* to have the middle box just forward everything back and forth.
I assume that I need to set up the middle box to have a network behind it?
 
Old 09-09-2008, 09:33 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
that's a bridge, not a router. you can use the bridge module to take, for example, eth0 and eth1 and make a single br0 interface which will bridge (switch) the traffic through it as well as using it as a local interface.
 
Old 09-10-2008, 06:25 PM   #5
Devilz
LQ Newbie
 
Registered: Nov 2007
Distribution: openSUSE 12.1
Posts: 23

Original Poster
Rep: Reputation: 15
Ok, I will research that and give it a try, thanks a lot for the help!

Devilz.
 
  


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
Box with 3 NICS to act as router? KiLLaWaBBiT Linux - Networking 4 01-20-2008 11:05 AM
How to get computer and wired Linksys BEFSR41 router to work and play well together ginnytwo Linux - Newbie 6 03-08-2006 01:40 PM
Why does basic UBUNTU act as a Router with DNS All-in-One Linux - Networking 1 03-01-2006 10:43 PM
wired computer sniffing wireless router drkshadow Linux - Wireless Networking 0 11-24-2004 01:31 AM
Put linux to act as an router little_ball Linux - Networking 1 01-30-2004 11:10 AM


All times are GMT -5. The time now is 05:38 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