On Sat, Mar 19, 2005 at 01:27:26PM +0000, Andrew Benton wrote: > >What range is your DHCP server serving? ie. What IP Address did your > >xbox get? What are your PC's internal and external IP addresses? What does > >route -n show? > The IP gives the local address when we connect. Such as 84.65.189.144. > Presumably that's the external IP address? I don't know what the PC's
Yes. If that isn't a static address, you'll need to be doing masquerading; that is when your machine forwards packets, it doesn't just forward them, but changes the address in them so it seems to come from that address, then when packets arrive, if it's part of that connection, they are also forwarded on. Make sure you have all the iptables options compiled into your kernel (at least IP Masquerading, IP Connection tracking... there are a bunch of others that wouldn't hurt too). > internal address is, or how to set it, which could well be the problem. > I've never set an /etc/sysconfig/network-devices script as I've never > needed too The xbox can be set to get it's IP address dynamically from dhcp > or I can set it up manually on the xbox, but I don't know what to enter for > the gateway, which would be the PC's local address right? route -n shows > this > > Kernel IP routing table > Destination Gateway Genmask Flags Metric Ref Use > Iface > 62.25.200.184 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0 > 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 > 0.0.0.0 62.25.200.184 0.0.0.0 UG 0 0 0 ppp0 > > I've run > > ifconfig eth0 192.168.1.0 netmask 255.255.255.0 > route add -host 255.255.255.255 dev ppp0 > echo 1 > /proc/sys/net/ipv4/ip_forward OK, so your internal address is 192.168.1.0. Hopefully your dhcp server is telling the xbox to take a 192.168.1.x number, and use 192.168.1.0 as its gateway. (My PS2 let me do a manual set up, so I didn't bother with setting up a dhcp server.) To set up the masquerading, you'll need: iptables -t nat -A POSTROUTING -j MASQ iptables -A FORWARD -i eth0 -j ACCEPT iptables -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT (I'm not 100% sure about the first one, since I have static IPs everywhere, so I use SNAT. Since you have dynamic IPs, you'll need to use MASQ instead.) ~Ainsley -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
