Fedora Linux Support Community & Resources Center
  #1  
Old 11th January 2006, 11:14 AM
h3llfire Offline
Registered User
 
Join Date: Dec 2005
Age: 26
Posts: 30
Question internet sharing

Hi,

I want to share my internet connection with my room mate (i have two ethernet cards in my pc). I know that this can be done in Windoze by checking a box that says "Allow other network users to connect to network through this computer`s internet connection" and configuring the other pc`s ip and gateway. Now i would like to do the same thing in linux but I don`t have any idea on what to do. Any help would be appreciated.

I have dual boot FC4/Win XP installed on my box and my room mate has only Windoze.

Sorry if this is something very obvious but i had just recently switched to Linux.
__________________
In a world without walls or fences, what use do we have for Windows or Gates? :D
Reply With Quote
  #2  
Old 11th January 2006, 04:56 PM
giulix's Avatar
giulix Offline
"Fixed" by (vague) request
 
Join Date: Oct 2005
Location: GMT+ 1
Posts: 2,950
Use firestarter or another firewall tool to configure iptables for you.
Reply With Quote
  #3  
Old 11th January 2006, 05:03 PM
h3llfire Offline
Registered User
 
Join Date: Dec 2005
Age: 26
Posts: 30
uhm...i`m not sure what you are talking about... the thing is that i have a computer running linux and i have one internet line. I have two ethernet cards, and I want to share that connection with the windoze box without having to buy a switch or hub.

I don`t know how to configure iptables, and i`m not even sure what iptables is.

Sebastian.
__________________
In a world without walls or fences, what use do we have for Windows or Gates? :D
Reply With Quote
  #4  
Old 11th January 2006, 05:36 PM
toonaken's Avatar
toonaken Offline
Registered User
 
Join Date: Dec 2005
Location: Pennsylvania
Age: 26
Posts: 8
Have you tried using a router? Just a simple solution you could try. XD
Reply With Quote
  #5  
Old 11th January 2006, 06:58 PM
giulix's Avatar
giulix Offline
"Fixed" by (vague) request
 
Join Date: Oct 2005
Location: GMT+ 1
Posts: 2,950
Ok. So, you can buy a crossover cable which is an inexpensive piece of junk with inverted wires that will allow you to connect your mate's machine to one of your NICs without the need of a hub/switch/router. Then install firestarter: as root, open a terminal window and type:
Code:
yum -y install firestarter
Firestarter's a tool that will allow you to configure network connection sharing pretty much as you would do on a windoze box.
Reply With Quote
  #6  
Old 11th January 2006, 10:30 PM
h3llfire Offline
Registered User
 
Join Date: Dec 2005
Age: 26
Posts: 30
Ok...thanks alot, it works! I would have never figured by my own that you can do this from firestarter, and that easily. Thank you, again. )
__________________
In a world without walls or fences, what use do we have for Windows or Gates? :D
Reply With Quote
  #7  
Old 21st January 2006, 11:00 PM
Trek1701's Avatar
Trek1701 Offline
Registered User
 
Join Date: Jul 2005
Location: Vulcan
Posts: 284
Hi,

Question: when I enable the firewall on firestarter should I disable the firewall that comes with fedora?

If so, when I disable I can't start iptables and receive an error.

thanks
__________________
P.S. Never take candy from strangers... money is ok, but not candy.

FC 12 - 64 bits

Dell Vostro 1710 | Intel Core 2 Duo T9500 @ 2.60GHz | DDR 2GB | nVidia GeForce 8600M GS 512MB | WLAN Broadcom BCM4328 802.11a/b/g/n | Realtek RTL8111/8168B PCI Express Gigabit Ethernet controller | Dell Wireless 360 Bluetooth | Seagate 5400rpm 160GB | Western Digital 5400rpm 320GB

Maemo 5

Nokia N900 | ARM Cortex A8 600 MHz | PowerVR SGX graphics | 32GB | Designed in Finland
Reply With Quote
  #8  
Old 22nd January 2006, 02:17 PM
giulix's Avatar
giulix Offline
"Fixed" by (vague) request
 
Join Date: Oct 2005
Location: GMT+ 1
Posts: 2,950
Quote:
Originally Posted by Trek1701
Question: when I enable the firewall on firestarter should I disable the firewall that comes with fedora?
Yes, the tools are mutually exclusive.
Reply With Quote
  #9  
Old 23rd January 2006, 12:07 PM
AHanbali Offline
Registered User
 
Join Date: Jan 2006
Posts: 20
you may try to edit rc.local in /etc/ folder to append these lines

# Load iptables NAT module when required
modprobe iptable_nat

## Clear NAT IPTables
iptables -t nat --flush

## Enable Nating
iptables -t nat -A POSTROUTING -o EXTETH -s INTERNALNET -d 0/0 -j MASQUERADE

EXTETH: is the interface wich connected to the internet.
INTERNALNET: the internal network subnet such as (192.168.1.0/24)

and

edit /etc/sysctl.conf by set the key net.ipv4.ip_forward to 1

then restart the linux box.
Reply With Quote
  #10  
Old 23rd January 2006, 08:21 PM
Trek1701's Avatar
Trek1701 Offline
Registered User
 
Join Date: Jul 2005
Location: Vulcan
Posts: 284
Thanks for the reply.

Ok, I have Firestarter orking and with the "share internet" option active.
I have a second box with dual boot FC4/XP. I'm able to share my files between the 2 boxes using samba.
However, even using firestarter in the main box, I don't get internet on the second box on both FC4 and XP.

As I said previously, I'm with the fedora's firewall disabled and when I try to start iptables I get an error ("iptables failed").

Do I really need of iptables? Is this the problem with sharing the internet?


Trek1701
__________________
P.S. Never take candy from strangers... money is ok, but not candy.

FC 12 - 64 bits

Dell Vostro 1710 | Intel Core 2 Duo T9500 @ 2.60GHz | DDR 2GB | nVidia GeForce 8600M GS 512MB | WLAN Broadcom BCM4328 802.11a/b/g/n | Realtek RTL8111/8168B PCI Express Gigabit Ethernet controller | Dell Wireless 360 Bluetooth | Seagate 5400rpm 160GB | Western Digital 5400rpm 320GB

Maemo 5

Nokia N900 | ARM Cortex A8 600 MHz | PowerVR SGX graphics | 32GB | Designed in Finland
Reply With Quote
  #11  
Old 23rd January 2006, 10:15 PM
Trek1701's Avatar
Trek1701 Offline
Registered User
 
Join Date: Jul 2005
Location: Vulcan
Posts: 284
AHanbali,

I've disabled firestarter, enabled fedora's firewall and edited "rc.local" as you said and aldo enabled the "ip forward" but my second box can't conect to internet...
__________________
P.S. Never take candy from strangers... money is ok, but not candy.

FC 12 - 64 bits

Dell Vostro 1710 | Intel Core 2 Duo T9500 @ 2.60GHz | DDR 2GB | nVidia GeForce 8600M GS 512MB | WLAN Broadcom BCM4328 802.11a/b/g/n | Realtek RTL8111/8168B PCI Express Gigabit Ethernet controller | Dell Wireless 360 Bluetooth | Seagate 5400rpm 160GB | Western Digital 5400rpm 320GB

Maemo 5

Nokia N900 | ARM Cortex A8 600 MHz | PowerVR SGX graphics | 32GB | Designed in Finland
Reply With Quote
  #12  
Old 24th January 2006, 09:00 AM
AHanbali Offline
Registered User
 
Join Date: Jan 2006
Posts: 20
please check

http://forums.fedoraforum.org/showth...647#post442647
Reply With Quote
Reply

Tags
internet, sharing

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
need some help with internet sharing... AdamBath Servers & Networking 1 29th November 2008 08:38 PM
How do I set up internet sharing sharique Servers & Networking 5 20th January 2007 03:02 PM
Sharing Internet From Xp pro H3z Servers & Networking 1 16th August 2005 08:55 PM
Internet Sharing Lano Servers & Networking 13 14th August 2005 03:28 PM
Internet Sharing Lizard King Servers & Networking 8 21st November 2004 02:02 PM


Current GMT-time: 23:39 (Saturday, 18-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat