1) enable ip forwarding (echo 1 >/proc/sys/net/ipv4/ip_forward) on the routing machine 2) enable ip masquerading (iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE) repeat for both interfaces (10.0.10.0 and 10.0.0.0) 3) make sure the routing tables on machine 1 and machine 3 are setup properly (route add -net 10.0.10.0/24 gw 10.0.0.42) and vice versa.
There are many online tutorials for this, but much of it is interspersed with also setting up dhcp servers, bind servers, radius servers, and hostap servers, etc. On Sun, Nov 8, 2009 at 9:22 PM, Nelson Serafica <[email protected]>wrote: > > I have 3 machine 1 is acting as a firewall/router using iptables. > > machine1 has ip 10.0.10.2. machine2 where iptables was running has > 10.0.10.10 and 10.0.0.42. machine3 has ip 10.0.0.10 > and the gateway it is using was 10.0.0.42. > > How can i setup command in iptables wherein machine1 (10.0.10.2) can > communicate with machine3 (10.0.0.10) > > I'm not familiar with iptables using it as a router. Could someone guide me > on the right direction. > > > > > -- Daniel --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Linux Users Group. To post a message, send email to [email protected] To unsubscribe, send email to [email protected] For more options, visit our group at http://groups.google.com/group/linuxusersgroup -~----------~----~----~----~------~----~------~--~---
