LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-27-2009, 10:57 PM   #1
michalng
Member
 
Registered: Dec 2005
Distribution: Debian KDE / Fluxbox
Posts: 222

Rep: Reputation: 46
How to share internet access in Debian?


My brother and I (who stays across the road) both have an internet dsl connection through WRT54G router, WPA2.

The neighborhood that we are in has rather old infrastructure, the lines are not very reliable, needing frequent maintenance.


Today my line is down again and I am using my laptop (Debian KDE4) to connect to his network while sitting near my main gate.
I am able to connect to his network ONLY at my main entrance, those in my house couldn't receive the signal.

The maintenance will drag on for a few days, hopefully not more then 1-2 week.


How can I share my laptop connection and pipe it to my WRT54G router to re-broadcast so that my other computers inside the house can connect to?

Last edited by michalng; 06-27-2009 at 11:01 PM.
 
Old 06-28-2009, 01:06 AM   #2
sarajevo
Member
 
Registered: Apr 2005
Distribution: Debian, OpenBSD,Fedora,RedHat
Posts: 228
Blog Entries: 1

Rep: Reputation: 31
Quote:
Originally Posted by michalng View Post
My brother and I (who stays across the road) both have an internet dsl connection through WRT54G router, WPA2.

The neighborhood that we are in has rather old infrastructure, the lines are not very reliable, needing frequent maintenance.


Today my line is down again and I am using my laptop (Debian KDE4) to connect to his network while sitting near my main gate.
I am able to connect to his network ONLY at my main entrance, those in my house couldn't receive the signal.

The maintenance will drag on for a few days, hopefully not more then 1-2 week.


How can I share my laptop connection and pipe it to my WRT54G router to re-broadcast so that my other computers inside the house can connect to?
The way I did ( I have same router as you have ... ) I spoofed MAC addresss of router ( just see which MAC address router has and assign it to your computer NIC ---this is in case your provider locked up ip to only on mac address ).

Once you do that, use an 30 $ box, iptables, an old switch and set up your own router/gateway. This way is more difficult but, more interesting

Second option is connect your laptop to WRT54G, open browser and enter ip address of router
( more http://www.dd-wrt.com/wiki/index.php...ation_Tutorial )

username=admin, password = admin....

http://192.168.1.1 ( in browser of your computer conected to WRT54G )

once you are logged to it, then in wireless options , you will see to set up mac addresses of your machines which should be allowe to connect ( this is funny, read above, MAC addresses are changeable )...

So my choice is option one, as better for control

Hope this helps

Regards,
 
Old 06-28-2009, 01:26 AM   #3
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
From your position, you can connect wirelessly to either your own or your freinds WAP/router, but people in your building can only connect to your one??? So you want to wirelessly make your connection via your freind available to your own network.

What you need is the right search terms - instructions would help but they tend to get convoluted.

You want either

wireless repeater

or set up your laptop as an invisible proxy, shunting internet requests.

Which is to say, internet requests at your lan need to be routed to your laptop - your laptop can then forward them to your friend's gateway.

either way you need two nics.

This will probably be a tad involved for the short-term you are looking for.
Talk to your ISP about a temporary wireless internet connection.

Last edited by Simon Bridge; 06-28-2009 at 01:27 AM.
 
  


Reply



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
trying to share internet connection ubuntu and debian etch firedancer Linux - Networking 4 11-17-2007 09:01 AM
trying to share internet connection ubuntu and debian etch firedancer Linux - Networking 2 11-13-2007 06:56 AM
Why can't i access my debian share from my XP computer? dbramer1134 Linux - Software 2 10-31-2006 01:29 PM
Debian Woody: Can't access internet through router, but can access network computers marales314 Linux - Networking 3 06-09-2006 12:33 PM
How do I set up Debian to access the internet? MurX Debian 9 02-28-2006 06:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:34 AM.

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
Open Source Consulting | Domain Registration