Mehul Ved wrote:
> On Sun Jun 29, 2008 at 11:07:16PM +0530, Rony wrote:
>   
>> Which is the other PC on the LAN?
>>     
>
> Other PC is my sister's PC, which receives internet connection through
> my PC.
>
> ----->Cable Modem--->My Pc(eth1)--->My PC(eth0) ---->Sister's PC
>   

So now br0 is your interface that will talk to your LAN pcs. Are br0 and 
your LAN pcs on the same subnet?

>
>   
>> Are you referring to the host OS?
>>     
>
> Host OS is sabayon and guest OS is Arch, running within VirtualBox on
> Sabayon.
>
>   
>> BTW, how did you link eth1 for Internet Connection Sharing? I have 
>> always wondered how ICS is done in GNU/Linux.
>>     
>
> 1) Set up my static IP on eth1
> 2) Gave an IP of 192.168.0.1 to eth0 and 192.168.0.2 to the PC on the LAN.
> 3) Made sure that the PC's on the LAN ping each other.
> 4) Set up Masqueading with IP Tables
> iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -j MASQUERADE
> I believe this can be done by GUI tools too but never looked into them.
>   
Wow I didn't know it was that simple, only one line. Since the internet 
device and the LAN device is not mentioned in your command line, does 
the system assume internet device as the one which has default route and 
the LAN is the one that matches subnet?

> 5) Enable ip forwarding
> echo "1" > /proc/sys/net/ipv4/ip_forward
> This will allow packets to pass b/w interfaces.
>
>   
Just curious to know, after IP forwarding eth1 (internet) does your host 
OS have access to the net?

-- 
Regards,

Rony.

GNU/Linux !
No Viruses
No Spyware
Only Freedom.

-- 
http://mm.glug-bom.org/mailman/listinfo/linuxers

Reply via email to