Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Wireless Internet > networking solution? is this possible? how?

Forgot Password?
 Wireless Internet   Anything related to getting wireless set up in Linux. WLAN, WiFi, etc.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 09-10-2007   #1 (permalink)
Just Joined!
 
Join Date: Aug 2007
Location: Corvallis, OR
Posts: 9
Send a message via AIM to weltall
networking solution? is this possible? how?

Ok, laptops -

Mine - Dlink DWL G630 Rev C3 PCMCIA 802.11 b/g
Hers - newer Broadcom built into her Presario C502US

We grab internet from our neighbor who lets us, if the router were in the room my card could pick up to 700kb/s easy, but since it's through a wall or two... but her built in wireless card gets a much faster connection.

(It's not my version of linux... any version of linux is slightly better with my card than windows is. but still not a solid connection like her laptop)

can I connect the two some way wirelessly? can I hook up to hers and steal her internet connection? or can I run a ethernet cable to link ours together and get some way to nab better access? any ideas? thanks.

Her laptop has Vista on it, but probably not for long.
weltall is offline  


Reply With Quote
Old 09-10-2007   #2 (permalink)
tpl
Linux User
 
Join Date: Jan 2007
Location: cleveland
Posts: 370
two parts to your question
1. how to hook 2 computers up wirelessly
(not hard, but try hardwired 1st)
2. how to use a direct (crossover) connection
to share an internet connection

when you say "vista but not for long" I hope you
mean, some version of *nix. Let us suppose so.

the secret is so-called IP-Masquerade, wherein the
machine with the net connection--dial-up, wired,
wireless, it doesn't matter--runs a short script
appended: you'll need to get appropriate kernel
modules and other facilities--whilst the 2nd
machine, that wants to piggyback, runs (as root)
this command:

route add -net 0.0.0.0 gw \
<whatever.IP.the.1st.machine.has>

there's not much to it. This machine is sharing a
connection w/ another, the other on wireless.

here's the script:

#!/bin/sh
# Basic firewall and forward/masquerade setup

PATH=/usr/sbin:/sbin:/bin:/usr/bin

# Delete/Flush old iptables rules
iptables -F
iptables -t nat -F
iptables -X

# Set up IP FORWARDing and Masquerading
iptables --table nat --append POSTROUTING --out-interface wlan0 -j MASQUERADE

echo "1" > /proc/sys/net/ipv4/ip_forward
#
#on other machine
#route add -net 0.0.0.0 gw <appropriate.IP.addr>
__________________
the sun is new every day (heraclitus)
tpl is offline   Reply With Quote
Old 09-10-2007   #3 (permalink)
Just Joined!
 
Join Date: Aug 2007
Location: Corvallis, OR
Posts: 9
Send a message via AIM to weltall
sweet.

I've been showing her the happiness that is with the flavors of linux I could put on her laptop... I'm going to dual boot her laptop so she can play with it in her own time.
weltall is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 10:06 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2