You are not logged in.
Pages: 1
Topic closed
Hey guys, I'm trying to create a network bridge from eth0(ethernet port) to ra0(wifi) in an attempt to avoid buying a wireless adapter for my new Xbox 360 I got this Christmas. With Windows, it looks incredibly simple(just going into network settings and right clicking basically) but I don't want to boot into windows every time I want to use live... I have searched around the net but I always get DNS errors whenever I play with iptables, does anyone have a good way to get this to run?
17:23 < ConSiGno> yeah baby I release the source code with your mom every night
17:24 < ConSiGno> you could call them nightly builds if you know what I mean
Offline
Firstly, you're not looking for a bridge - you're looking for Network Address Translation (NAT).
Windows calls it "Internet Connection Sharing", Linux calls it IP Masquerading, and there a ton of howtos for it e.g. this one, which I randomly picked by blindfolding myself and then sticking a pin in Google. ![]()
Offline
ive posted this scripts in the forums somewhere..
some modifications are needed since i use it the other way around...
#!/bin/bash
# Shares internet from wlan0 through eth0
case "$1" in
start)
ifconfig eth0 up
ifconfig eth0 192.168.0.1
iptables --table nat --append POSTROUTING --out-interface wlan0 -j MASQUERADE
iptables --append FORWARD --in-interface eth0 -j ACCEPT
echo 1 > /proc/sys/net/ipv4/ip_forward
echo "set other computers in the range of"
echo "192.168.0.0 255.255.255.0"
echo "gateway 192.168.0.1"
echo "dns 192.168.10.1" % this is actually my router, use yours, or another dns service.
;;
stop)
echo 0 > /proc/sys/net/ipv4/ip_forward
ifconfig eth0 down
iptables --table nat --delete POSTROUTING --out-interface wlan0 -j MASQUERADE
;;
*)
echo "usage: $0 {start|stop}"
;;
esacOffline
Well it says I can't connect to my network hardware using a static IP address(I used 192.168.0.0 in manual configuration with the xbox). All I did to change the script was change wlan0 to ra0, though as well as set the primary DNS to my router's ip(192.168.1.1). Also setting the ip to dhcp doesn't give the xbox an IP back.
Last edited by MP2E (2009-12-26 21:31:56)
17:23 < ConSiGno> yeah baby I release the source code with your mom every night
17:24 < ConSiGno> you could call them nightly builds if you know what I mean
Offline
Any chance you guys are going to finish answering it? Since Arch is the do-it-yourself distro, can we get a group of people together who want to make a package or go "fix" the NetworkManager source code to include support for autoconfiguration of bridges?
Windows calls them bridges now, just for your information. In windows you select or highlight both network interface devices at the same time, right click on either one, and select "Bridge Connections". This is incredibly easy for the user, and it is just as powerful as that mess of instructions you gave up there.
scripts are OK, but they should never be the final solution to a problem. Remember it helps if more people don't have to know everything about an operating system. If people can avoid the complexity of Linux, they will be happier, more productive, and will enjoy contributing software to Linux or telling their friends about Linux.
If it requires this "splint" scripting that doesn't work 100% of the time, Linux is going to die a very grisly death. I know more and more people nowadays who know to Bridge the connections in Windows to get internet on their xbox 360s. I can't convince any of them that Linux is better because they ignore the rest of Linux and complain about this one missing feature. Indeed even I can't use Linux to bridge my laptop's connections for use with my desktop or another computer that needs to download 3rd party wireless drivers from the internet.
I am a huge proponent of Linux, but to be honest, I notice that a bunch of work still needs to be done. I realize the market and business forces are set against Linux right now, but if everyone would stop making new distros and instead fix the packages that go into the existing ones, we could have Linux replace Windows within 5 years.
If you don't like a distro, go work for the company and help them improve it. Making your own distro is not going to help solve the watered-down developer population.
Networking is something that is VERY important to people. NetworkManager was a great success and boon to everyday Linux usage. It needs a bit of polishing; that is all.
Offline
Moderator -- Please don't Necro-Bump
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
Pages: 1
Topic closed