You are not logged in.

#1 2013-05-03 18:37:31

robloy_ballobloy
Member
Registered: 2013-05-03
Posts: 5

Connecting to Xbox Live with IPTables

I've been trying to connect my Xbox to Live by sharing my computer's connection with it. I followed this tutorial https://wiki.archlinux.org/index.php/Internet_Share and my Xbox connects but says that I have a strict NAT type and voice chat is unavailable. I have tried numerous iptables rules to fix this issue but so far none have worked. Here is the iptables.rules from my latest attempt.

# Generated by iptables-save v1.4.18 on Sat May  4 02:20:04 2013
*filter
:INPUT ACCEPT [2:156]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -i enp4s0 -j ACCEPT
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -i enp4s0 -j ACCEPT
-A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
-A OUTPUT -o enp4s0 -j ACCEPT
-A OUTPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
COMMIT
# Completed on Sat May  4 02:20:04 2013
# Generated by iptables-save v1.4.18 on Sat May  4 02:20:04 2013
*nat
:PREROUTING ACCEPT [5:1405]
:INPUT ACCEPT [1:78]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
-A PREROUTING -s 139.96.30.100/32 -j ACCEPT
-A OUTPUT -s 139.96.30.100/32 -j ACCEPT
-A POSTROUTING -o enp4s0 -j ACCEPT
-A POSTROUTING -o enp0s29f7u5 -j MASQUERADE
COMMIT
# Completed on Sat May  4 02:20:04 2013

Any help would be greatly appreciated

Last edited by robloy_ballobloy (2013-05-03 18:53:52)

Offline

#2 2013-05-04 08:57:16

sistematico
Member
From: Campo Grande / MS / Brasil
Registered: 2008-07-26
Posts: 97
Website

Re: Connecting to Xbox Live with IPTables

Open:

  • Port 88 (UDP)

  • Port 3074 (UDP and TCP)

  • Port 53 (UDP and TCP)

  • Port 80 (TCP)

And paste the firewall rules, i dont understand firewall output, sorry.


Lucas Saliés Brum
blog | medium | vk | twitter | github | .share
Forgive the spelling and grammar, English is not my native language.

Offline

#3 2013-05-04 09:11:28

robloy_ballobloy
Member
Registered: 2013-05-03
Posts: 5

Re: Connecting to Xbox Live with IPTables

Thanks for the reply, sistematico.
Those ports are all open on my router and i tried to forward them through iptables with the following rules:

iptables -t nat -A POSTROUTING -o enp0s29f7u5 -j MASQUERADE
iptables -t nat -A PREROUTING -i enp0s29f7u5 -p tcp -m multiport --dports 53,80,3074 -j DNAT --to-destination 139.96.30.120
iptables -t nat -A PREROUTING -i enp0s29f7u5 -p udp -m multiport --dports 53,88,3074 -j DNAT --to-destination 139.96.30.120
iptables -A FORWARD -i  enp0s29f7u5 -d 139.96.30.120 -p udp -m multiport --dports 53,88,3074 -j ACCEPT
iptables -A FORWARD -i  enp0s29f7u5 -d 139.96.30.120 -p tcp -m multiport --dports 53,80,3074 -j ACCEPT

enp0s29f7u5 is my Wireless interface connected to my network with an ip address of 10.0.0.5
enp4s0 is my Ethernet interface connected my xbox, this interface has been assigned the ip address 139.96.30.100
139.96.30.120 is the ip assigned to my xbox, which is using 139.96.30.100 as the gateway.
What is wrong with this setup?

Last edited by robloy_ballobloy (2013-05-04 10:03:37)

Offline

#4 2013-05-05 08:53:07

robloy_ballobloy
Member
Registered: 2013-05-03
Posts: 5

Re: Connecting to Xbox Live with IPTables

Anyone?

Offline

#5 2013-05-05 09:06:46

robloy_ballobloy
Member
Registered: 2013-05-03
Posts: 5

Re: Connecting to Xbox Live with IPTables

I read in other forums that the linux-igd package could be used to enable upnp and give my xbox the open NAT type, but it returns an error "invalid internal device name" when I try to issue the command

upnpd enp0s29f7u5 enp4s0

does any know how to fix this error or if any alternative to linux-igd is available?

Offline

#6 2013-05-05 09:25:37

robloy_ballobloy
Member
Registered: 2013-05-03
Posts: 5

Re: Connecting to Xbox Live with IPTables

There is no error if I issue the command while the XBox is on, but upnpd just says "Advertisements Sent.  Listening for requests ..." and nothing happens. Any suggestions?

Offline

Board footer

Powered by FluxBB