LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 04-15-2006, 04:55 PM   #1
dip_10
LQ Newbie
 
Registered: Mar 2006
Posts: 10

Rep: Reputation: 0
sharing internet with windows xp


i have a dual boot pc with winxp and fedora core 5 installed.i can share my broadband connection(bsnl-dataone)with my friend on winxp.
my winxp server
ip: 192.168.0.1(eth0)
subnet:255.255.255.0
eth1:192.168.1.3(connects to broadband via dhcp)
subnet:255.255.255.0
my friend's winxp system
ip:192.168.0.2
subnet:255.255.255.0
gateway:192.168.0.1(my ip)
i want to share internet connection on fedoracore.i set my fedora ip:192.168.0.3(eth0)
subnet:255.255.255.0
eth1:192.168.1.2(connects to broadband via dhcp)
subnet:255.255.255.0
with this i can ping my friend's system and share his shared files on smb.i can also use internet.
i tried:
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -P FORWARD DROP
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
iptables -A FORWARD -i eth0 -j ACCEPT
iptables -A FORWARD -m state --state STABLISHED,RELATED -j ACCEPT
and change my friend's gateway to:192.168.0.3
but can not share internet connection.
please help.
 
Old 04-16-2006, 01:42 PM   #2
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
hi,
Its doing the right thing by changing the gateway to 192.168.1.3 in your friends machine, b'coz its the IP of you machine.

Instead of assigning different IP's in windows and linux it would have been better to use the same on both o/s. But assigning the current IP's you are just confusing the things.

post the o/p of following commands executing on your friends machine:
#route -n
#cat /etc/resolv.conf

regards
 
Old 04-28-2006, 05:46 AM   #3
dip_10
LQ Newbie
 
Registered: Mar 2006
Posts: 10

Original Poster
Rep: Reputation: 0
success at last.....
i assigned the same ip on both o/s.what did extra was:i added the dns srver ip's on my machine to my friend's machine.in windows the dns server working for him was my machine.this was fine with windows.but in linux it didn't worked as my machine is not configured as a dns server.so i added some dns server to the client computer.
this way i can serve my friend on both o/s.

this scheme has a drawback:it uses maximum bandwidth for resolution of names requested by my friend's machine.so on server i get very low bandwidth and annoying browing experience.can anyone help me suggesting a better scheme?

regards.

Last edited by dip_10; 04-28-2006 at 05:48 AM.
 
Old 04-28-2006, 01:36 PM   #4
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
Quote:
i added the dns srver ip's on my machine to my friend's machine
.
u did the right thing.

Quote:
in windows the dns server working for him was my machine.this was fine with windows.but in linux it didn't worked as my machine is not configured as a dns server.
Is your machine working as DNS on windows ???
If not then better change the DNS IP to the DNS provided by ISP instead of your machines IP. His machine just need your machine as gateway.


Quote:
so i added some dns server to the client computer.
this way i can serve my friend on both o/s
.
thats why the output of #cat /etc/resolv.conf was asked.

Quote:
this scheme has a drawback:it uses maximum bandwidth for resolution of names requested by my friend's machine.so on server i get very low bandwidth and annoying browing experience.can anyone help me suggesting a better scheme?
there is nothing wrong in the scheme. Problem may be with the DNS IP address. Ask your ISP about the DNS IP's and put them there.

regards
 
Old 04-29-2006, 02:01 PM   #5
dip_10
LQ Newbie
 
Registered: Mar 2006
Posts: 10

Original Poster
Rep: Reputation: 0
i don't know what happened in windows xp,but i didn't have to add any dns server on my client's machine.i used and shared internet with my client's machine for at least one month without any problem.but the setup didn't worked in linux.so i added that extra and get it working.
my linux box comes with two dns server addresses.i added those addresses to my client's computer.do you think changing these addresses to those provided by my isp would help?
thanks for the valuable suggestions.

regards.
 
Old 04-30-2006, 12:16 AM   #6
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
Quote:
Originally Posted by dip_10
my linux box comes with two dns server addresses.i added those addresses to my client's computer.do you think changing these addresses to those provided by my isp would help?
thanks for the valuable suggestions.
regards.
U did the right thing by putting that DNS in the client machine.
reverse the DNS entries in /etc/resolv.conf. may be the first one not working properly so the name resolution is taking time (it happened to me once).

regards
 
  


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 internet with windows box ? GameMaker Linux - Networking 11 02-10-2006 06:10 PM
Sharing internet connection with windows Kontrau Linux - Networking 2 05-02-2004 07:10 PM
Sharing internet with windows Tryxl Mandriva 6 03-23-2004 07:17 PM
Sharing internet with windows Tryxl Linux - Networking 1 03-23-2004 11:46 AM
Internet sharing between Debian and Windows 98 (SE) GhostOfYoda Linux - Networking 12 08-01-2003 11:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 10:36 AM.

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