Bridging my Xbox through openSUSE problems :-(

Hi. I’ve been trying to use my Xbox through my samsung nc10 which has the latest suse installed on it. I’ve tried bridging my Ethernet card to my wireless (AR5001 chipset) but i’m having no luck. I’ve even tried routing the data coming in from the eth0 port, to the wlan0 port and out to the internet using iptables (masquerade) but all that seems to be happening is Ethernet interface is receiving data (checked via tcpdump, and ifconfig), but not routing the received data to the wireless interface.

Has anybody had any luck achieving this please?

I’ve been using various scripts i fount on the net which contain the following commands:

ALLOWING THE CORRECT XBOX 360 NAT SETTINGS:

IPTABLES=iptables
WAN_IF=wlan0
XBOX_IP=10.168.1.2

$IPTABLES -t nat -A PREROUTING -i $WAN_IF -p tcp --dport 3074 -j DNAT --to-destination $XBOX_IP
$IPTABLES -t nat -A PREROUTING -i $WAN_IF -p udp -m multiport --dports 88,3074 -j DNAT --to-destination $XBOX_IP
$IPTABLES -A FORWARD -i $WAN_IF -d $XBOX_IP -p tcp --dport 3074 -j ACCEPT
$IPTABLES -A FORWARD -i $WAN_IF -d $XBOX_IP -p udp -m multiport --dports 88,3074 -j ACCEPT

AND THIS ONE IS SUPPOSED TO ALLOW INTERNET SHARING:

#!/bin/bash

Enables “Internet Connection Sharing” on Linux

USER=whoami
if $USER == “root” ]; then
read -p "Please enter Internet connected interface (wlan0): " WAN
read -p "Please enter interface connected to Fon (eth0): " LAN

if  -z $WAN ]; then
    WAN="wlan0"
fi
if  -z $LAN ]; then
    LAN="eth0"
fi    

ifconfig $LAN 10.168.1.1  netmask 255.255.255.0
ipfwd=`cat /proc/sys/net/ipv4/ip_forward`
if  $ipfwd -eq 1 ]; then
    echo "IP forwarding enabled!"
else
    echo '1' > /proc/sys/net/ipv4/ip_forward
fi

iptables --version > /dev/null 2>&1
if  $? -eq 0 ]; then
    iptables -X
    iptables -F
    iptables -A FORWARD -i $WAN -o $LAN -s 10.168.1.0/24 -m state --state NEW -j ACCEPT
    iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
    iptables -A POSTROUTING -t nat -j MASQUERADE
    echo "iptables configured..."
    
    #route del default
    GW=`ifconfig $WAN | grep "inet addr:"| grep -v "127.0.0.1" | cut -d: -f2 | awk '{ print $1}' | cut -d. -f1,2,3`
    GW=`echo $GW.1`
    
    route add default gw $GW $WAN
    echo "Default route set to $GW through $WAN"
else
    echo "Please run as root or install iptables..."
fi

else
echo “Please run as root.”
fi

You can seek help from Yast firewall. Set up the firewall in such a way that eth0 as the public (external) interface and wlan0 as the internal one. Make sure to set the masquerading on.

If your XBOX and this machine are not connecting in Adhoc mode (I am not familiar with those game boxes), on the XBOX, you need this machine’s wlan0 IP as the default GW.

Thanks for ure reply. I’ll try that when i get home later on. I’ll let you know if it works :-D.