LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 03-19-2005, 09:54 AM   #1
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Xbox live through a Linux gateway?


Hello forum. My son has an xbox connected to his PC with a crossover cable. He has been using internet connection sharing on Windows XP to connect the xbox to the web. Then the other day he installed something he shouldn't have "...but dad, I didn't install anything, all I did was click yes..." and now Windows is more borken than usual. I'd like to install linux. Linux can do everything we need that computer to do, except connect the xbox to the net. So I've installed Ubuntu for now and if we can get the xbox to work I'll build Linux From Scratch.

The PC connects to the web with a SpeedTouch USB modem. It took me a couple of days to figure out how to get the ethernet card working (I've never needed it before) but now that's built into the kernel. From the PC I can ping the xbox. I've setup a dhcp server on the PC. The xbox likes the dhcp server and gives a different error message if that's not running. So they're talking. The problem is the xbox can't see the web. I've done
Code:
ifconfig eth0 192.168.1.0 netmask 255.255.255.0
route add -host 255.255.255.255 dev ppp0
echo 1 > /proc/sys/net/ipv4/ip_forward
and /etc/dhcpd.conf looks like this
Code:
default-lease-time 600;
max-lease-time 7200;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
# option routers 192.168.1.254;
option domain-name-servers 195.92.195.95, 195.92.195.94;
# option domain-name "localhost.localdomain";

subnet 192.168.1.0 netmask 255.255.255.0 {
   range 192.168.1.10 192.168.1.100;
   range 192.168.1.150 192.168.1.200;
}
I think the problem is I don't know how to set the internet address of the PC on the local network but I'm not sure. I've also tried various masquerading firewall rules but It didn't help. Any suggestions?
 
Old 03-20-2005, 08:05 AM   #2
odious1
Member
 
Registered: Jun 2003
Location: Virginia, USA
Distribution: Slackware
Posts: 252

Rep: Reputation: 30
i don't know if there is a way to get tcp/ip info directly from the xbox or not but you could stop your dhcpd server on the linux machine and restart it by dhcpd -d -f which will run it in the foreground. restart your xbox and watch the standard out messages as the xbox makes its lease request. you will see the offer and acceptance if things are set up properly. if the box is getting its lease then the next step is to set up nat firewall rules. confirm that the xbox is getting a lease and post back with the ouput of iptables -L

tom
 
Old 03-25-2005, 12:58 PM   #3
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Original Poster
Rep: Reputation: 64
Thanks for your response. Sorry I didn't reply but by the time you posted I'd already caved in and give him the windows CDs. I was up to my neck with college work and didn't have the time to read up on how to get it fixed, which is why I posted for help. Anyway, with that essay is done I've had time over the last two days to get this sorted out. LFS is built. I bought a new ethernet card and another crossover cable so I could connect my sons computer to mine and work out how to do masquerading with two normal computers and then applied what I learned to the xbox. I didn't need the dhcp server, the settings that worked were these firewall/nat/masquerading rules
Code:
#!/bin/bash
iptables -A INPUT  -i lo -j ACCEPT
iptables -P OUTPUT ACCEPT
iptables -t nat -A POSTROUTING -o ppp0 -s 192.168.1.2/32 -j MASQUERADE
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -m state --state NEW -i ! ppp0 -j ACCEPT
iptables -P INPUT DROP
iptables -A FORWARD -i ppp0 -o ppp0 -j REJECT
and these routing details (the xbox is on eth1 now because I bought another card)
Code:
ifconfig eth1 192.168.1.1 netmask 255.255.255.0 &&
route add -host 255.255.255.255 dev ppp0 &&
echo 1 > /proc/sys/net/ipv4/ip_forward
On the xbox I manually entered our ISP's nameserver numbers, set the xbox's address as 192.168.1.2 with a netmask of 255.255.255.0 and 192.168.1.1 (the PC) as the gateway.
It's good to be rid of windows. It was through msn messenger he was getting infected with stuff. Gaim works fine and in the unlikely event that anything bad happens, on Linux he only has write permission in his home folder, which limits the damage.

Last edited by Andrew Benton; 03-26-2005 at 02:24 PM.
 
  


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
xbox linux Jmcatch742 Linux - Distributions 5 11-24-2007 12:32 AM
Xbox-Linux daniel_jrm Linux - Hardware 2 01-03-2006 03:04 AM
Messenger's Xbox live alerts possible in Kopete, Gaim, or other...? asktoby Linux - Software 0 12-11-2004 03:31 PM
Xbox Live hyperterminal Linux - Networking 2 09-29-2004 05:22 PM
anybody play on xbox live? Brain Drop General 18 12-11-2003 09:04 AM


All times are GMT -5. The time now is 07:30 AM.

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