LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-13-2008, 08:05 AM   #1
abdullahcsedu
LQ Newbie
 
Registered: Mar 2008
Posts: 2

Rep: Reputation: 0
Internet sharing from fedora core 4


Hi all,

I have two desktops at my home. One desktop is connected to internet using broadband connection. I am sharing internet connection from that pc using windows xp. So at the client side i can use internet both at windows xp and fedora core 8. But problem is that on the server pc i use both windows xp and fedora core 4. When i boot at fedora 4,i can't access internet at my client pc. I am a new user of Linux and don't know how to configure this. So please give me idea to share internet connection from fedora 4 to my client pc.

At my server side there are two lan cards. One lan card is used to connect to the internet and the other lan card is used to connect two desktops using wires.

So please give me details information about internet sharing from fedora 4. Please also mention which packages are needed to establish internet sharing.

Thanks
ABDULLAH
 
Old 03-13-2008, 09:57 AM   #2
datopdog
Member
 
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
The quick and simple way is to edit /etc/sysctl.conf and make this change
Code:
net.ipv4.ip_forward = 1
Then run this
Code:
echo "1" > /proc/sys/net/ipv4/ip_forward
Then turn on masquerading add this to your /etc/sysconfig/iptables
Code:
*nat
:PREROUTING ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A POSTROUTING -o <external_interface> -j MASQUERADE 
COMMIT
And restart iptables.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sharing printers in Fedora Core 7 kscallions Linux - Server 1 02-18-2008 02:14 PM
How do I set up Internet Connection Sharing on fedora core 1? milkrock Linux - Networking 7 01-29-2006 04:52 AM
fedora core 4 internet sharing sameer666 Linux - Networking 1 12-12-2005 07:41 PM
Sharing Internet Connection Windows <- Linux (Fedora Core 3) e6x Linux - General 7 08-03-2005 12:58 PM
Internet sharing problems w/fedora core 2 bregan Linux - Wireless Networking 0 09-30-2004 06:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration