internet connection sharing from centos to winxp, please help

Issues related to configuring your network
Post Reply
saintjomer
Posts: 1
Joined: 2006/11/03 07:24:32
Location: Manila, Philippines

internet connection sharing from centos to winxp, please hel

Post by saintjomer » 2006/12/08 05:02:59

i'm planning to build a small network that contain 17 workstations and a server, my problem is how to share my internet connection from linux box to winxp workstation,

i can't find any solutions from other forum, please help

server: centos linux
eth0 - automatic ip

eth1 - ip add: 192.168.0.1
subnetmask: 255.255.255.0

workstation:
lan card: ip add: 192.168.0.2
subnet mask: 255.255.255.0
default gateway: 192.168.0.1

i can ping linux box from winxp (vice versa) but it doesn't have internet sharing
i just want to enable internet sharing

thanks in advance

rapo1
Posts: 27
Joined: 2006/06/20 11:43:02
Location: Munich

Re: internet connection sharing from centos to winxp, please help

Post by rapo1 » 2006/12/08 13:54:33

Hi saintjomer - Welcome to the CentOS-board

do you have ip_forward in your CentOS on

check with

cat /proc/sys/net/ipv4/ip_forward

if there is a 0 it is off - there should be a 1.
this you can change as su with:

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

foxb
Posts: 1927
Joined: 2006/04/20 19:03:33
Location: Montreal/QC

Re: internet connection sharing from centos to winxp, please help

Post by foxb » 2006/12/09 02:54:47

rapo1 wrote: [quote]
Hi saintjomer - Welcome to the CentOS-board

do you have ip_forward in your CentOS on

check with

cat /proc/sys/net/ipv4/ip_forward

if there is a 0 it is off - there should be a 1.
this you can change as su with:

echo 1 >/proc/sys/net/ipv4/ip_forward[/quote]

In addition to that you will need to setup NAT translation (if you have only one public IP)

I'll suggest you to use firestarter - excellent tools for beginners or simple configs

andrewx
Posts: 2
Joined: 2006/11/28 13:02:22
Contact:

Re: internet connection sharing from centos to winxp, please help

Post by andrewx » 2006/12/11 08:14:15

also try firehol - another tools for beginners or simple configs http://firehol.sourceforge.net :lol:

reduxiam
Posts: 7
Joined: 2006/12/13 12:17:30

Re: internet connection sharing from centos to winxp, please help

Post by reduxiam » 2006/12/13 12:57:42

Hi

if u want internet shareing ,u will install squid in your server . this i s only best solution.

thank u

reduxiam

reduxiam@yahoo.com

Circuit
Posts: 34
Joined: 2008/07/22 04:30:24
Contact:

Re: internet connection sharing from centos to winxp, please help

Post by Circuit » 2009/02/12 10:20:28

Hi people !

I am unable to share my internet connection also. Reading this post and googling , I have tried almost everything. I have a Centos Sever with 2 NICs and a client system with Win XP

Centos Machine:

eth0 IP static : 192.168.1.4 --> connected to internet , my ISP
subnet mask : 255.255.255.0
Gateway : 192.168.1.1

eth1 static : 192.168.0.1
subnet mask : 255.255.255.0
Gateway : NONE


Client XP Machine:

IP Address : 192.168.0.2
subnet mask : 255.255.255.0
Gateway : 192.168.0.1


DNS 1 (by my ISP)
DNS 2 (by my iSP)

I can ping my centos machine from my winxp client and vice versa. However, I cannot share internet.

I tried pinging google.com from my system and I get the error " Ping request could not find host ............... "


I've done all the necessary settings for NAT using Iptables and other stuff. Here is the link to the how to that I have followed,

http://www.howtoforge.com/nat_iptables

Circuit
Posts: 34
Joined: 2008/07/22 04:30:24
Contact:

Re: internet connection sharing from centos to winxp, please help

Post by Circuit » 2009/02/12 12:03:44

Is it essential to setup the default gateway for the second NIC as well on the Centos box ?

Circuit
Posts: 34
Joined: 2008/07/22 04:30:24
Contact:

Re: internet connection sharing from centos to winxp, please help

Post by Circuit » 2009/02/12 13:06:09

Also, I have noticed that I am unable to ping my DNS ip from the client machine

Post Reply

Return to “CentOS 4 - Networking Support”