[Mailinglist] Internet Connection Sharing
Sunjith P S
sunjith at gmail.com
Mon Dec 25 13:29:36 IST 2006
Hi Binny,
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. To enable
internet connection sharing, add a MASQUERADE rule in iptables:
Run as root: "iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE"
If you want this rule to be persistent across reboots, run "service iptables
save" after you add the rule.
Merry Christmas.
Regards,
Sunjith
On Monday 25 December 2006 12:41, Binny V Abraham wrote:
> Hi everyone,
>
> 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/
More information about the Mailinglist
mailing list