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


> 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.
5) Enable ip forwarding
echo "1" > /proc/sys/net/ipv4/ip_forward
This will allow packets to pass b/w interfaces.

-- 
   "All this modern technology just makes people try to do everything at once."
-Hobbes
-- 
http://mm.glug-bom.org/mailman/listinfo/linuxers

Reply via email to