LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-25-2010, 03:37 PM   #1
redrum1990
LQ Newbie
 
Registered: Jun 2010
Posts: 15

Rep: Reputation: 0
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
 
Old 06-25-2010, 03:42 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
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
 
Old 06-25-2010, 03:54 PM   #3
redrum1990
LQ Newbie
 
Registered: Jun 2010
Posts: 15

Original Poster
Rep: Reputation: 0
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.

Last edited by redrum1990; 06-25-2010 at 03:56 PM.
 
Old 06-26-2010, 12:43 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
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
 
1 members found this post helpful.
Old 06-26-2010, 03:51 AM   #5
redrum1990
LQ Newbie
 
Registered: Jun 2010
Posts: 15

Original Poster
Rep: Reputation: 0
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?
 
Old 06-26-2010, 04:18 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
well if you're doing it literally, "bridgename" is indeed not valid. call it "br0"
 
Old 06-26-2010, 04:31 AM   #7
redrum1990
LQ Newbie
 
Registered: Jun 2010
Posts: 15

Original Poster
Rep: Reputation: 0
I've tried calling it a range of names including br0, nothing seems to work unfortunatly
 
Old 06-26-2010, 05:19 AM   #8
redrum1990
LQ Newbie
 
Registered: Jun 2010
Posts: 15

Original Poster
Rep: Reputation: 0
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)
 
Old 06-26-2010, 10:29 AM   #9
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,121

Rep: Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876
this mite help:
http://www.linuxquestions.org/questi...6/#post3804866
 
Old 06-26-2010, 12:56 PM   #10
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
mite????
 
Old 06-26-2010, 01:16 PM   #11
Taglete
LQ Newbie
 
Registered: Jun 2010
Location: China
Distribution: Fedora 13
Posts: 2

Rep: Reputation: 0
I succeed to install the wireless card drive,but I found that the configuration of it was difficult for me to do it ...
 
Old 06-27-2010, 04:23 AM   #12
redrum1990
LQ Newbie
 
Registered: Jun 2010
Posts: 15

Original Poster
Rep: Reputation: 0
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
 
Old 06-27-2010, 11:22 AM   #13
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,121

Rep: Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876
Quote:
Originally Posted by acid_kewpie View Post
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.

Last edited by schneidz; 06-27-2010 at 11:37 AM.
 
Old 06-27-2010, 11:47 AM   #14
redrum1990
LQ Newbie
 
Registered: Jun 2010
Posts: 15

Original Poster
Rep: Reputation: 0
I've had no luck what-so-ever.

It only seems that the last line doesnt work, any ideas?
 
Old 06-27-2010, 12:02 PM   #15
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
internet connection sharing in linux arunksit Linux - Networking 7 02-25-2007 03:46 PM
Sharing Linux Internet Connection with XP vishivishi Linux - Networking 11 04-19-2006 09:57 PM
sharing internet connection in linux parthbakshi Linux - Software 6 03-10-2006 07:35 PM
sharing internet connection in linux parthbakshi SUSE / openSUSE 1 03-10-2006 12:46 PM
Internet Connection Sharing through Linux 9 unmesh vaidya Linux - Newbie 1 11-25-2003 07:32 AM


All times are GMT -5. The time now is 02:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration