Network forwarding - both directions
Hello,
My network configuration:
1st pc.
eth0 - local area (192.168.0.1)
eth1 - internet
iptables -t nat -A POSTROUTING -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward
2nd pc.
eth0 - 192.168.2.1 \
eth1 - 192.168.1.1 / sharing internet to local area network
eth2 - 192.168.0.2 -> getting internet from 1st pc.
iptables -t nat -A POSTROUTING -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward
3rd pc.
eth0 - 192.168.1.2 -> getting internet from 2nd pc.
The problem is:
from 3rd pc I can ping all ips in network, but from 1st pc I can ping only 192.168.0.2. I don't see even "192.168.1.1"
Why I need that? I want to redirect xxx port from 1st pc to 3rd pc.
Any ideas?