Weblog Navigation
First Previous Index Next Last
XBox Live Port Forwarding (Saturday, September 29th, 2007)

My rommmate's been complaining about problems getting Halo 3 to work properly with NAT, and I had a very difficult time finding information about how to solve the problem. The XBox360 labeled my NAT configuration as “moderate” with no explanation about what that means. Bungie's recommendation is to buy a new router.

Eventually I was able to figure it out, but Google searching was very unhelpful, so I figured I should share my results here. Assuming you only have one XBox360 on your LAN, you'll need to assign it a static IP (I prefer to do this by configuring my DHCP server to assign a particular IP based on the client's MAC address), then set up port forwarding. The ports used by XBox Live are:

  • UDP port 88
  • TCP port 3074
  • UDP port 3074

Here's how to do it with a Linux-based NAT router:


iptables -t nat -A PREROUTING -p udp -i ethX -d 1.2.3.4 \
--dport 88 -j DNAT --to 10.9.8.7
iptables -t nat -A PREROUTING -p tcp -i ethX -d 1.2.3.4 \
--dport 3074 -j DNAT --to 10.9.8.7
iptables -t nat -A PREROUTING -p udp -i ethX -d 1.2.3.4 \
--dport 3074 -j DNAT --to 10.9.8.7

...where ethX is the WAN interface, 1.2.3.4 is the WAN IP, and 10.9.8.7 is the internal IP address of the Xbox360.

Once I was able to figure these out, I found MSKB 908874 which does at least list these.

Weblog Navigation
First Previous Index Next Last