-   Linux - Networking (
-   -   Need working iptables rules to allow XBox 360 to talk to Live server (

Malibyte 08-01-2010 03:07 AM

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 ( 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?


gilead 08-01-2010 09:21 PM

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):

iptables -t filter -A FORWARD -p TCP -s -m state --state NEW,ESTABLISHED -j ACCEPT
iptables -t filter -A FORWARD -p UDP -s -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:

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

Malibyte 08-02-2010 12:34 AM

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


tostrander 08-31-2010 04:54 PM

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.


Malibyte 09-01-2010 11:48 PM


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

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

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

All times are GMT -5. The time now is 05:33 AM.