LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 04-20-2006, 02:18 PM   #1
dhushor_ami
LQ Newbie
 
Registered: Apr 2006
Posts: 2

Rep: Reputation: 0
internet sharing


hi there.
im facing a big problem in linux. let me explain.

im using Fedora Core 2 in one pc and Windows XP (pro) in another pc. they are connected in a peer to peer connection. i connect to the internet using dialup from Linux box. now what i want is.. i want to access internet from windows pc too. how can i give share from linux box so that i can use internet from windows pc too. please help me in this problem. thanks in advance.

p.s: i can use internet from both pc when i use windows in both pc.
 
Old 04-20-2006, 03:58 PM   #2
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Install ip-masquerading. There will be a package and write-up on this via Google and you will find a generic version here. You need then need to get forwarding going with a script. Once you have all this operational set a static address on the Linux box and use the same subnet address on the XP box and then give the ip-address in the Linux box as the gateway for the XP box. i.e. set ip address of Linux as eg 192.168.0.1 and XP 192.168.0.2 and the gateway in XP as 192.168.0.1
 
Old 04-20-2006, 04:20 PM   #3
dhushor_ami
LQ Newbie
 
Registered: Apr 2006
Posts: 2

Original Poster
Rep: Reputation: 0
im a newbie in using Linux. about ip-masquerading please be more specific.
 
Old 04-20-2006, 04:46 PM   #4
Attila_f74
LQ Newbie
 
Registered: Apr 2006
Posts: 7

Rep: Reputation: 0
Here is a sample of my config.


echo "1" > /proc/sys/net/ipv4/ip_forward

then you'll have to masq your eth1 ( local net )

Mine looks like

$IPT -t nat -A POSTROUTING -o $INET_IFACE -j MASQUERADE

Good luck.
 
Old 04-20-2006, 05:04 PM   #5
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Quote:
Originally Posted by dhushor_ami
im a newbie in using Linux. about ip-masquerading please be more specific.
You should find the necessary info in the link I gave. Install the Fedora ip-masq package. There is a basic firewall/forwarding script on the page. You just need to change the eth0 to ppp0. I don't use Fedora but any RH/fedora guide will show you how to install a script into the rc.local? files. Basically you need to set it up so that the script is executed during the boot process.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Internet Access & Internet Sharing Through Wi-Fi. Be.Gurmeet.Be Linux - Networking 0 04-13-2006 04:07 PM
Internet Sharing crazykiller Linux - Networking 12 10-29-2005 06:06 AM
mandrake 10.1 sharing files and internet sharing xfiles_arram Linux - Networking 0 05-21-2005 03:22 PM
File sharing and internet sharing mullet Linux - Networking 1 10-14-2003 02:30 PM
internet sharing gonus Linux - Networking 2 11-03-2002 11:35 PM

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

All times are GMT -5. The time now is 01:11 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