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

21st December 2008, 05:05 AM
|
|
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.
|

21st December 2008, 05:17 AM
|
|
Banned
|
|
Join Date: Nov 2008
Posts: 827

|
|
|
How are you connected to the Internet?
|

21st December 2008, 06:04 AM
|
|
Registered User
|
|
Join Date: Feb 2007
Posts: 68

|
|
|
Cable internet, broadband.
|

21st December 2008, 06:09 AM
|
|
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.
|

21st December 2008, 12:15 PM
|
|
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.
|

23rd December 2008, 10:20 AM
|
 |
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.
|

23rd December 2008, 10:26 AM
|
 |
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
|
|

19th February 2009, 06:37 PM
|
|
Registered User
|
|
Join Date: Feb 2009
Posts: 13

|
|
|
how share internet from fedora to windows lan.
|

19th February 2009, 08:41 PM
|
 |
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?
|

19th February 2009, 09:18 PM
|
|
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.
|

20th February 2009, 10:22 AM
|
|
Registered User
|
|
Join Date: Feb 2009
Posts: 13

|
|
Quote:
Originally Posted by marcrblevins
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
|

20th February 2009, 10:30 AM
|
|
Registered User
|
|
Join Date: Feb 2009
Posts: 13

|
|
Quote:
Originally Posted by metaltux
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
|

20th February 2009, 10:52 AM
|
 |
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.
|

29th November 2009, 09:53 PM
|
 |
Registered User
|
|
Join Date: Aug 2008
Location: INT 13
Posts: 19

|
|
|
Sorted
Quote:
Originally Posted by metaltux
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
|

20th February 2012, 03:21 PM
|
|
Registered User
|
|
Join Date: Nov 2011
Posts: 18

|
|
|
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.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 06:57 (Thursday, 23-05-2013)
|
|
 |
 |
 |
 |
|
|