LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   iptables - is it possible? (https://www.linuxquestions.org/questions/linux-newbie-8/iptables-is-it-possible-245401/)

aylov 10-21-2004 02:17 AM

iptables - is it possible?
 
I have 2 networks - 10.2.0.0 and private 192.168.1.0. My Gateway is 10.2.0.1 and I want private network to be visible for 10.2.0.0. Is it possible with iptables (not VPN) ?

Demonbane 10-21-2004 03:38 AM

If the gateway, or another box is setup as a router between these 2 networks, yes.

aylov 10-21-2004 04:39 AM

Quote:

Originally posted by Demonbane
If the gateway, or another box is setup as a router between these 2 networks, yes.
Yes 10.2.0.1 is a router between these 2 networks.
How will look iptables rule, that do this?

Demonbane 10-21-2004 08:45 AM

echo "1" > /proc/sys/net/ipv4/ip_forward

and make sure forward policy is on ACCEPT(unless you want to fine tune)
/sbin/iptables -P FORWARD ACCEPT

hosts on 192.168.1.0 should use the 192.168.1.x interface of the gateway machine as their gateway.

That's about it


All times are GMT -5. The time now is 05:40 PM.