I found this on a post at another forum:
Code:
$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
The guy on that forum was trying to share a conection with a desktop PC running ubuntu and a wireless connection. Like this:
Wireless <--> Desktop <--> XBOX
He had it all set up but had the same NAT problem and he said that these mods to his iptables fixed it in his application.
I don't really understand the $WAN_IF part. If I fill in my XBOX IP and whatever should go in the $WAN_IF spot will it work? I disabled squid for now to simplify things.
Bookmarks