LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Internet Connection Sharing with Linux (https://www.linuxquestions.org/questions/linux-newbie-8/internet-connection-sharing-with-linux-816408/)

redrum1990 06-25-2010 03:37 PM

Internet Connection Sharing with Linux
 
Hello,

I would like to have all traffic from the ethernet connection out through the wireless (basically using the box as a router) however I am having some trouble doing this.

I have done this before on Windows however I am having some trouble doing this on linux, I have tried using Squid Proxy however I am having some trouble using configuring/using it.

I am using Yellow Dog Linux however I am willing to change to any other distro as long as it is compatable with PS3 (as this is what im using linux on)

Many thanks

acid_kewpie 06-25-2010 03:42 PM

Well squid is an http proxy, so that won't help you in the slightest if you do want to route... which is it? You've not described the IP addressing here, normally a mixed wired and wireless LAN will still just use the same network, in which case you wouldn't route at all, just bridge. if you do need to route, then it should just be a case of enabling ip forwarding and masquerading - http://www.ibiblio.org/pub/linux/doc...ple-HOWTO.html

redrum1990 06-25-2010 03:54 PM

Yes, sorry you are correct I do just want to bridge, is it possible to still use Masquerading to do this or is there something else I need to do?

EDIT: Bridge, not route sorry again. I just want to bridge.

acid_kewpie 06-26-2010 12:43 AM

right, so it should just be a case of taking both interfaces and making a br0 interface out of the two of them. http://tldp.org/HOWTO/BRIDGE-STP-HOW...he-bridge.html

redrum1990 06-26-2010 03:51 AM

Ok, I've installed "bridge-utils-1.1-2" as this is the only version I can find. (all the links on the page you gave me come up as forbidden)

And now if I run "brctl addbr bridgename" I get the response:

"Cannot add bridge: Invalid arguement"

Any ideas?

acid_kewpie 06-26-2010 04:18 AM

well if you're doing it literally, "bridgename" is indeed not valid. call it "br0"

redrum1990 06-26-2010 04:31 AM

I've tried calling it a range of names including br0, nothing seems to work unfortunatly

redrum1990 06-26-2010 05:19 AM

I'm not sure if this will help at all but here is the output from the ifconfig command:

Quote:

eth0 Link encap:Ethernet HWaddr 00:1F:A7:7F:B9:33
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:52

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1931 errors:0 dropped:0 overruns:0 frame:0
TX packets:1931 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4494972 (4.2 MiB) TX bytes:4494972 (4.2 MiB)

wlan0 Link encap:Ethernet HWaddr 00:1F:A7:7F:B9:33
inet addr:192.168.1.102 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::21f:a7ff:fe7f:b933/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:11 errors:0 dropped:0 overruns:0 frame:0
TX packets:48 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1066 (1.0 KiB) TX bytes:8916 (8.7 KiB)

schneidz 06-26-2010 10:29 AM

this mite help:
http://www.linuxquestions.org/questi...6/#post3804866

acid_kewpie 06-26-2010 12:56 PM

mite????

Taglete 06-26-2010 01:16 PM

I succeed to install the wireless card drive,but I found that the configuration of it was difficult for me to do it ...

redrum1990 06-27-2010 04:23 AM

Always fails on the last line of that script saying "SIOCADDRT: Network is unreachable".

Ive changed the eth1 port for wlan0 and the gateway to that of my router and the IP address of the other machine I wish to share my connection with.

Still no luck

schneidz 06-27-2010 11:22 AM

Quote:

Originally Posted by acid_kewpie (Post 4015758)
mite????

correction: this should work
_____

i found this:
http://www.scyld.com/pipermail/realt...ry/000392.html
Quote:

That's a routing problem, not a network driver problem. That can happen if the gateway you specified is not reachable *within one hop*. Either you've specified the wrong gateway, the wrong network, or the wrong subnet mask. Without your routing table, it's hard to guess which.

redrum1990 06-27-2010 11:47 AM

I've had no luck what-so-ever.

It only seems that the last line doesnt work, any ideas?

jiml8 06-27-2010 12:02 PM

As was stated in the post just ahead of your last post, you need to provide your routing table now.


All times are GMT -5. The time now is 09:16 PM.