iptables / forwarding
I've got the following rules setup
iptables -A PREROUTING -t nat -j DNAT -p tcp -i eth0 -d 18.104.22.168 --to-destination 172.16.197.128
iptables -A POSTROUTING -t nat -j SNAT -o eth0 -s 172.16.197.128 --to-source 22.214.171.124
iptables -I FORWARD -j ACCEPT -s 172.16.197.128
iptables -I FORWARD -j ACCEPT -d 172.16.197.128
So, this is for Solaris running on VMWare server (for grins and giggles).
Solaris can talk to the host OS and and the host OS can talk to Solaris in the VM
External forwarding, however is not working.
I've run into a brick wall trying to figure out what the problem is with these rules.
Any thoughts/solutions? I've got to be doing something completely daft.
Addendum: Can't do bridging because the network I'm on using MAC Security to stop people from ganking other IPs. I'm using host-only NAT forwarding.
What's the output of this command:
If it's 0, do a
echo 1 > /proc/sys/net/ipv4/ip_forward