Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 02-04-2004, 08:47 AM   #1
LQ Newbie
Registered: Aug 2003
Location: Atlanta, GA or DeLand, FL
Distribution: Fedora Core 6, various for work
Posts: 16

Rep: Reputation: 0
using NAT to get a second computer online

I did the software modification proposed on to get a version of Debian called Xebian running on my Xbox. My laptop is running Redhat 9 and is connected to the LAN here at my school through it's internal network card. However, I have an external usb-ethernet card and a crossover cable and I want to get the xbox online through my computer (there isn't an extra ethernet jack).

The xbox is configured with ip, subnet mask, and gateway, my laptop-to-xbox connection (eth1) is configured, subnet mask, and no gateway. The lan connection (eth0), gets its information through dhcp, but i seem to have a stable ip of

i tried running a firewall setup script that said it would enable the routing, but i can't ssh out of the xbox even using hostnames or ip addresses. i can, however, ssh into the xbox through eth1, and ssh back into my machine from there.

any ideas on how to get my laptop to pipe eth1 through eth0 would be greatly appreciated.
Old 02-04-2004, 09:54 AM   #2
Registered: May 2003
Distribution: Debian
Posts: 40

Rep: Reputation: 15
Try the following... (if you're interested, ask me for documentation links or look yourself on ... )

echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to

Note that if it subsequently turns out your external IP isn't always this, you will have to change the command.. there is a form that can deal with dhcp assigned addresses, but there's no need to confuse you with it atm

(edit: oh, these commands should be run on your externally connected machine... as long as your xbox has that as a router, it should work fine )

Last edited by pavgust; 02-04-2004 at 09:55 AM.
Old 02-04-2004, 10:44 AM   #3
LQ Newbie
Registered: Aug 2003
Location: Atlanta, GA or DeLand, FL
Distribution: Fedora Core 6, various for work
Posts: 16

Original Poster
Rep: Reputation: 0
that did it. thanks a lot.


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
Is it possible to track a stolen computer online? frankie_DJ General 7 05-12-2005 05:09 AM
Getting my Slackware 10 computer online pendulum Linux - Newbie 6 02-26-2005 08:11 PM
Accessing a computer behind NAT Menestrel Linux - Networking 1 01-16-2005 06:07 AM
Linux Ansqer - the best Computer Jargon online reference source I've yet to find studpenguin Linux - Newbie 3 01-09-2004 08:52 AM
Online computer club. guns Linux - General 0 02-28-2003 02:00 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:53 AM.

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