Page 1 of 1
how to bridge connections in linux?
Posted: Mon Mar 09, 2009 3:23 pm
by i-SnipeZ
Im using Mandriva 2009 and would like to bridge connections from the ethernet to the wireless so I can get my 360 on LIVE without having to reboot to Windows. Is there a way that a somewhat inexperienced linux user can do this or do i have to go messing in the command line?
Re: how to bridge connections in linux?
Posted: Mon Mar 09, 2009 3:37 pm
by aaa
There's more than one way to do it. This is NAT, which does what you want but isn't bridging. Run these two lines as root:
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -A POSTROUTING -t nat -o eth1 -j MASQUERADE
Then set up the interfaces on both systems with static IPs (make up two private ones that aren't in a range used by the internet connection), with the default gateway on the xbox set to the ip of the linux machine.
I guess I'm assuming that you can set a static IP on an xbox.
Re: how to bridge connections in linux?
Posted: Wed Mar 11, 2009 12:21 am
by i-SnipeZ
unfortunately that did not work. And im having a problem with the repositories in Mandriva at the moment. Everything is missing appearantly yet I can update the sources and it says everything is there. Maybe the servers locked up. I love linux but sometimes it causes stress to the point I wonder if its worth it. Well, its better than a BSOD or that abomination of the computing world that is Mac (i dont mind easier, I do mind stupid though)
Re: how to bridge connections in linux?
Posted: Wed Mar 11, 2009 8:43 am
by aaa
I forgot to mention that you need to change "eth1" to the interface you are using for internet.
Dunno much about Mandriva, so I can't help you there.