LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-01-2010, 03:07 AM   #1
Malibyte
Member
 
Registered: Dec 2001
Location: California, USA
Distribution: Ubuntu, Debian
Posts: 128

Rep: Reputation: 15
Need working iptables rules to allow XBox 360 to talk to Live server


Hi all -

I'm trying to get a new XBox 360 to work on my network. I configured it
manually with a static IP address (192.168.1.29) on my internal network,
gave it all the appropriate network info, opened up the ports it needs
(UDP 88 and 3074, and TCP 3074; also tried TCP 53 briefly; 80 is already
open) and forwarded them through the firewall.

It seems to be able to get on the Internet per se (its network test says
that it gets out (it's able to ascertain that the XBox Live server is up
and running) but can't actually talk to the Xbox Live server because my
MTU is too low ("XBox Live requires a minimum MTU setting of 1364")...

However, I have set both interfaces to be configured on boot with an MTU
of 1500. This is not the problem. If I drop my firewall long enough to
run the connection test, it works.

SO...does anyone have a set of iptables rules which will definitely allow
the XBox 360 on my internal network to talk to the XBox Live server? Does it
use high-order ports to talk to 53 and 88 on the M$ server?

Thanks
Bob
 
Old 08-01-2010, 09:21 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
You could use wireshark to check the traffic being generated by the XBox. Or, if you trust what it's doing, you just let it connect to anything it wants to (you should check which NIC the traffic is on, but it's up to you you):
Code:
iptables -t filter -A FORWARD -p TCP -s 192.168.1.29 -m state --state NEW,ESTABLISHED -j ACCEPT
iptables -t filter -A FORWARD -p UDP -s 192.168.1.29 -m state --state NEW,ESTABLISHED -j ACCEPT
For the inbound traffic you'd either allow the reverse of those rules, or your network may just accept inbound traffic from existing connections:
Code:
iptables -t filter -A FORWARD -p TCP -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -t filter -A FORWARD -p UDP -m state --state ESTABLISHED,RELATED -j ACCEPT
 
Old 08-02-2010, 12:34 AM   #3
Malibyte
Member
 
Registered: Dec 2001
Location: California, USA
Distribution: Ubuntu, Debian
Posts: 128

Original Poster
Rep: Reputation: 15
Gilead -

Thanks...I had considered doing that already but wanted to try and "protect" the console. But after tearing my hair out for another hour or so, figured that it's under warranty, so it's M$'s problem if somebody cracks it, so added those FORWARD rules. It works now (though I still need to DNAT UDP 88 and TCP/UDP 3074 specifically).

Bob

Last edited by Malibyte; 08-02-2010 at 12:48 AM.
 
Old 08-31-2010, 04:54 PM   #4
tostrander
LQ Newbie
 
Registered: Feb 2010
Posts: 6

Rep: Reputation: 0
Would you mind posting your iptables file or script? I did all of the above, have the DNAT for 88,3074 and it's still not working for some reason.

thanks

Last edited by tostrander; 08-31-2010 at 04:55 PM.
 
Old 09-01-2010, 11:48 PM   #5
Malibyte
Member
 
Registered: Dec 2001
Location: California, USA
Distribution: Ubuntu, Debian
Posts: 128

Original Poster
Rep: Reputation: 15
tostrander:

I'm running my own firewall script, available here if you want it (obviously doing much more than just dealing with the XBox):

http://www.malibyte.net/iptables/scripts/fwscripts.html

In the NAT file, I have this:
UDP 88 192.168.1.29 88
TCP 3074 192.168.1.29 3074
UDP 3074 192.168.1.29 3074

(192.168.1.29 is the XBox's IP address).

This may be overkill for what you want, but if you look at the port-forwarding and "GAMES" routines in the main script and the options in the config file, you'll likely figure out which rules you need.

Hope this helps.
Bob

Last edited by Malibyte; 09-01-2010 at 11:54 PM.
 
  


Reply

Tags
firewall, iptables, rules, xbox



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 360 Live + Linux (OpenSUSE) Crash90 Linux - Hardware 2 01-28-2009 01:34 PM
LXer: How to Turn Linux into a PS3 or Xbox 360 Media Server LXer Syndicated Linux News 0 01-25-2009 12:50 PM
XBOX 360 booting Ubuntu Live cd ??? WhiskeyTangoFoxtrot Linux - Hardware 3 03-27-2007 04:08 PM
Xbox 360 Live through suse 10.2 dream_coder Linux - Networking 9 02-17-2007 12:56 PM

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

All times are GMT -5. The time now is 10:45 AM.

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