Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 21st December 2008, 05:05 AM
solomon Offline
Registered User
 
Join Date: Feb 2007
Posts: 68
Internet connection sharing (Fedora-windows)

Hi, can anybody help me to set my small home network, two computers : one is FC9 with internet connection and another one is WinXP. How can I get internet on WinXP box? Computers are connected by cross-cable. Is there any tutorial available? Sorry if there is another thread like this one.
Reply With Quote
  #2  
Old 21st December 2008, 05:17 AM
pwca Offline
Banned
 
Join Date: Nov 2008
Posts: 827
How are you connected to the Internet?
Reply With Quote
  #3  
Old 21st December 2008, 06:04 AM
solomon Offline
Registered User
 
Join Date: Feb 2007
Posts: 68
Cable internet, broadband.
Reply With Quote
  #4  
Old 21st December 2008, 06:09 AM
pwca Offline
Banned
 
Join Date: Nov 2008
Posts: 827
Is the cable connected directly to your Fedora box or does the cable connection go to a router first?

Never mind... scratch the above question...

If you have cable internet then you've got a cable modem. Take the RJ45 cable (aka Cat 5,6... ) line coming out of the cable modem and plug it into a router. Now take the RJ45 cable from your Fedora box and plug it into the router. Do the same for your Windows box. Both should now be able to get on the Internet.

Last edited by pwca; 21st December 2008 at 06:13 AM.
Reply With Quote
  #5  
Old 21st December 2008, 12:15 PM
solomon Offline
Registered User
 
Join Date: Feb 2007
Posts: 68
I don't have a router, computers are connected directly by cross cable.
I tried to ping each other and it works.
Reply With Quote
  #6  
Old 23rd December 2008, 10:20 AM
marcrblevins's Avatar
marcrblevins Offline
Registered User
 
Join Date: Jun 2006
Location: Texas
Age: 42
Posts: 4,168
pwca was trying to find out if you have two NIC on the fedora box itself. Or is it wireless base Fedora box.
Reply With Quote
  #7  
Old 23rd December 2008, 10:26 AM
Dangermouse's Avatar
Dangermouse Offline
Administrator
 
Join Date: Aug 2007
Location: London Postbox (the red one)
Age: 47
Posts: 3,847
Hi im really rubbish with networking, but from what i remember if you install firestarter, there is a option in that for connection sharing, i think! but may be wrong its been a while

Quote:
su
yum install firestarter
Reply With Quote
  #8  
Old 19th February 2009, 06:37 PM
rampuji Offline
Registered User
 
Join Date: Feb 2009
Posts: 13
how share internet from fedora to windows lan.
Reply With Quote
  #9  
Old 19th February 2009, 08:41 PM
marcrblevins's Avatar
marcrblevins Offline
Registered User
 
Join Date: Jun 2006
Location: Texas
Age: 42
Posts: 4,168
rampuji,
Need more details. Are you using Fedora box as a gateway?
Using a router up front?
Reply With Quote
  #10  
Old 19th February 2009, 09:18 PM
metaltux Offline
Registered User
 
Join Date: Feb 2009
Posts: 45
use iptables like this
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE (if your modem is connected to eth1 interface)
echo 1 > /proc/sys/net/ipv4/ip_forward

if your Fedora got for exampls 192.168.1.1 as an IP and the Windows host got this IP 192.168.1.2 so you'll need to set the gateway in the windows host to 192.168.1.1 and set a DNS address that's all

fedora

Last edited by metaltux; 21st February 2009 at 08:57 PM.
Reply With Quote
  #11  
Old 20th February 2009, 10:22 AM
rampuji Offline
Registered User
 
Join Date: Feb 2009
Posts: 13
Quote:
Originally Posted by marcrblevins View Post
rampuji,
Need more details. Are you using Fedora box as a gateway?
Using a router up front?
No router in front..
Step by step details:

1) I have 2 Internet connections
2) i am using Fedora10 with 3Eth cards. (that is Eth0,1 & 2)
3) I connected internet to Eth0 & 1
4) I am planning to use Fedora box as a gateway.

Need any more details let me know.


Rampuji
Reply With Quote
  #12  
Old 20th February 2009, 10:30 AM
rampuji Offline
Registered User
 
Join Date: Feb 2009
Posts: 13
Quote:
Originally Posted by metaltux View Post
use iptables like this
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE (if your modem is connected to eth1 interface)
echo 1 > /proc/sys/net/ipv4/ip_forward

if your Fedora got for exampls 192.168.1.1 as an IP and the Windows host got this IP 192.168.1.2 so you'll need to set the gateway in the windows host to 192.168.1.1 and set a DNS address that's all
Dear Meta,

i donno any thing about fedora.
Please explain me step by step.

Rampuji
Reply With Quote
  #13  
Old 20th February 2009, 10:52 AM
bob's Avatar
bob Online
Administrator (yeah, back again)
 
Join Date: Jul 2004
Location: Colton, NY; Junction of Heaven & Earth (also Routes 56 & 68).
Age: 67
Posts: 21,218
Here's a tutorial that I found with Google "linux box as gateway": http://linuxadministration.wordpress...ernet-gateway/

You might want to refer to it or any of the other 'hits' from Google to see if they make sense to you. As I've mentioned in the past, I haven't used this and can't be of direct help. Perhaps Metaltux will have a chance to explain further.
__________________
Linux & Beer - That TOTALLY Computes!
Registered Linux User #362651


Don't use any of my solutions on working computers or near small children.
Reply With Quote
  #14  
Old 29th November 2009, 09:53 PM
Zorg's Avatar
Zorg Offline
Registered User
 
Join Date: Aug 2008
Location: INT 13
Posts: 19
linuxfedorafirefox
Sorted

Quote:
Originally Posted by metaltux View Post
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward
MetalTux - Thanks a million! I've been looking for that iptables line all weekend
Reply With Quote
  #15  
Old 20th February 2012, 03:21 PM
d4v1dv00 Offline
Registered User
 
Join Date: Nov 2011
Posts: 18
linuxchrome
Re: Internet connection sharing (Fedora-windows)

Thanks to metaltux, I am able to get it working by sharing my mobile phone 3G connection to my family with a little tweak. Posted an article here for sharing purpose.
Reply With Quote
Reply

Tags
connection, fedorawindows, 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
Problem with internet connection sharing (Fedora 11) moallemi Servers & Networking 3 21st June 2009 11:48 PM
Sharing internet connection fedora 7 joajim Servers & Networking 1 11th August 2007 06:16 PM
Sharing An Internet Connection Rick069 Servers & Networking 1 5th June 2006 06:23 PM
Internet Connection sharing from XP to Fedora..Please Help Me snaggapuss Servers & Networking 6 19th October 2005 04:59 PM
Sharing my Windows XP internet connection (AOL ADSL) with Linux Fedora Core 2 d60eba Servers & Networking 3 12th November 2004 04:24 AM


Current GMT-time: 06:57 (Thursday, 23-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