[Mailinglist] Internet Connection Sharing

Binny V Abraham binnyva at yahoo.com
Tue Dec 26 17:55:01 IST 2006


Hi,

> Enable IP forwarding on linux machine:
> Run as root: "sysctl -w net.ipv4.ip_forward=1"
> (without quotes)
> To enable it in system startup, edit the file
> /etc/sysctl.conf and set:
> ==========
> net.ipv4.ip_forward = 1
> ==========
> Now, your windows machine should be able to ping the
> 192.168.1.5. 
After I ran the command and changed the gateway in the
windows system to 192.168.0.10, I could ping
192.168.1.5 and 192.168.1.1 from the Windows system.

> To enable 
> internet connection sharing, add a MASQUERADE rule
> in iptables:
> Run as root: "iptables -t nat -A POSTROUTING -o eth0
> -j MASQUERADE"
However this command does seem to work - I can run the
command - but there is no result(is there suppose to
be a response?)

Anyway, I cannot access any sites from XP system. Am I
supposed to change the proxy of the browser in the XP
or something?

Another thing - I run apache server(I am a web
developer) on the linux system - will this be a
problem? A strange thing is that I cannot access the
apache server on linux from the XP system. Ie.
'http://192.168.0.10/' gives the listing of the
document root in the linux system - but I cannot get
it if I try to access 'http://192.168.0.10/' from the
windows system.

Thanks for all the help.


> > I am trying to share an internet connection with
> > Windows XP System.  My linux system has the
> following
> > specs...
> >
> > Fedora Core 5
> > 2 Network Cards...
> > eth0 192.168.1.5 Connected to router.
> > eth1 192.168.0.10 Connected to the Windows System
> > Gateway 192.168.1.1(Router's IP)
> >
> > XP System : 192.168.0.6 - Connected to the eth1 of
> the
> > linux system
> >
> > Networks works fine.. The linux system can ping
> > 192.168.0.6 - and the XP system can ping
> 192.168.0.10.
> > But XP cannot ping 192.168.1.5
> >
> > What should I do to enable Internet connection
> > sharing?

Binny V A
http://binnyva.blogspot.com/

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the Mailinglist mailing list