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.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Linux Networking
Reload this Page Connection sharing... complete newbie
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Linux Networking Hardware/Software related, Modems, Internet connection sharing, IPTables etc.

Reply
 
Thread Tools Display Modes
Old 04-30-2008   #1 (permalink)
mehido
Just Joined!
 
Join Date: Apr 2008
Posts: 2
Connection sharing... complete newbie

Alright, so I've been looking around the net for awhile now, and everything on the subject I find seems to confuse me more. To be honest, I don't understand the tools I've downloaded at all (bridge-utils) and any help would be much appreciated.

Basically, I have no way of running cat5 cable to my attic, so the only way to access the internet up here is through wireless. My linux box (running Ubuntu gutsy) is connected to the router. My linux box has a free ethernet port. Now I have this other box, and it has no wireless card, and only onboard ethernet. That box runs Windows XP (sadly I still need it for school/other things wine won't run). So, to sum this up, is there any way to link the windows box to the linux box to share the wireless connection it has? Thank you in advance!
mehido is offline   Reply With Quote
Old 04-30-2008   #2 (permalink)
coopstah13
Linux Enthusiast
 
coopstah13's Avatar
 
Join Date: Nov 2007
Location: MA, USA
Posts: 505
you need to get what is called a crossover cable, then you can connect the ethernet card on the linux machine to the one on the windows machine.

you will have to use the linux machine as the router, probably using iptables is the easiest way, someone more experienced will have to help you on that, but you definitely need a crossover cable, a regular ethernet cable won't do unless you use a switch
coopstah13 is offline   Reply With Quote
Old 04-30-2008   #3 (permalink)
mehido
Just Joined!
 
Join Date: Apr 2008
Posts: 2
Quote:
Originally Posted by coopstah13 View Post
you need to get what is called a crossover cable, then you can connect the ethernet card on the linux machine to the one on the windows machine.

you will have to use the linux machine as the router, probably using iptables is the easiest way, someone more experienced will have to help you on that, but you definitely need a crossover cable, a regular ethernet cable won't do unless you use a switch
I actually have a switch from my last place of residence. So that is no problem. I appreciate that bit of info... it was more than I knew before!
mehido is offline   Reply With Quote
Old 05-15-2008   #4 (permalink)
secondmouse
Just Joined!
 
Join Date: May 2008
Posts: 21
Connection sharing... complete newbie

On your linux box, I don't think you need bridge-utils in this situation. All you need to do is to create a script like this in your /etc/init.d/inetsharing (or whatever name you like)
and enter the following iptables command

#!/bin/bash
/sbin/iptables -o wan0 -s 192.168.10.0/24 -p all -j MASQUERADE

then make it executable and add it to the default runlevels
chmod +x /etc/init.d/inetsharing
update-rc.d inetsharing defaults

replace wan0 with whatever interface name you got for your wifi device (run ifconfig to figure out), and 192.168.10.0/24 with your local area network setting. The windows xp box should be in the same subnet as your linux box's ethernet interface. After everything's connected, run
/etc/init.d/inetsharing

on your network connections, you need to connect the switch to the ethernet ports on your linux box and windows xp with two cat5 cables.

hope this helps.
secondmouse 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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT. The time now is 07:47 AM.

Powered by vBulletin 3.6.8 ©2000 - 2007, content relevant URLs by vBSEO, Property of Core Root.

Content Relevant URLs by vBSEO 3.0.0