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) ?
|
If the gateway, or another box is setup as a router between these 2 networks, yes.
|
Quote:
How will look iptables rule, that do this? |
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. |