LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   noob routing help (https://www.linuxquestions.org/questions/linux-networking-3/noob-routing-help-477861/)

nbn792 08-27-2006 03:32 PM

noob routing help
 
My debian testing box is upstairs and has an installed and configured wireless ethernet card, wlan0. It also has a built in ethernet card, eth0. I want to play xbox live upstairs and would like to just run the ethernet cable from my xbox to my computers eth0... so basically i need my box to route the internet from the wireless card to the eth0 card. I thought I followed these instructions:

http://documents.made-it.com/Debian_...Server-13.html

but the xbox still wont connect. My /etc/network/options looks like:

" GNU nano 1.3.11 File: interfaces

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.1.1
netmask 255.255.255.0
"

Im not worried about security or anything all I want is the darn xbox to connect. I know this shouldn't be so hard... Could someone who has set up their box as a router give me some help? Thanks!

acid_kewpie 08-28-2006 04:42 AM

just run
Code:

echo 1 > /proc/sys/net/ipv4/ip_forward
 iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE

and assuming eth1 is the external card, that's done. youmight actually want to look at bridging and not routing though if you have any other networks already in use.


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