Applellial
10th June 2011, 10:58
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.
i am facing some problem with the switching of packets from gateway to other, and even to the router.
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, 3 are connected through eth0 respectively
and some iptables rules
PC2 and PC3 are got the internet connection via PC1, but when i use a tool to transfer the packet from PC 2, 3 to PC1 then PC1 of eth1 (PC2 eth0) and eth2 (PC3 eth0) is not forwarding the packets to eth0 interface
i manage to make PC as router, but its not working as expected.
i am facing some problem with the switching of packets from gateway to other, and even to the router.
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, 3 are connected through eth0 respectively
and some iptables rules
PC2 and PC3 are got the internet connection via PC1, but when i use a tool to transfer the packet from PC 2, 3 to PC1 then PC1 of eth1 (PC2 eth0) and eth2 (PC3 eth0) is not forwarding the packets to eth0 interface