hi, i want to use my PC as a router in linux, i feel that linux has more flexibility than any other OS,
i manage to make PC as router, but its not working as expected.
here this are the steps i have done,
1. etho is connected to ISP in PC1 (router)
2. eth1 is for PC2, i wrote in PC1 is "ifconfig eth1 192.168.2.1 netmask 255.255.255.0"
3. eth2 is for PC3, i wrote in PC1 is "ifconfig eth2 192.168.3.1 netmask 255.255.255.0"
PC2, PC3 are connected through eth0 respectively
and some iptables rules
ifconfig eth2 192.168.2.1 netmask 255.255.255.0 up
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward
PC2 and PC3 are got the internet connection via PC1, but when i use a tool to transfer the packet from PC2 and PC3 to PC1 then PC1 of eth1 (PC2 eth0) and eth2 (PC3 eth0) is not forwarding the packets to eth0 interface of PC1.