LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 02-04-2004, 08:47 AM   #1
blahJake
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 www.xbox-linux.com 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 192.168.0.5, subnet mask 255.255.255.0, and gateway 192.168.0.4, my laptop-to-xbox connection (eth1) is configured 192.168.0.4, subnet mask 255.255.255.0, and no gateway. The lan connection (eth0), gets its information through dhcp, but i seem to have a stable ip of 147.253.107.95

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
pavgust
Member
 
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 www.tldp.org ... )

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

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
blahJake
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.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration