Any iptables wizards out there?
I have 3 machines to work with:
1) machine A (windows box running client program)
2) machine B (linux box trusted by all machines)
3) machine C (proprietary system that trusts B but not A)
I need A to send data to port 5500 on C and receive all communications back. Can someone take a look at my first stab and tell me if I'm in the right ballpark?
iptables -t NAT -A PREROUTING -s A -d B--dport 5500 -j DNAT --to-destination C:5500
iptables -t NAT -A POSTROUTING -s C -d B --dport 5500 -j SNAT --to-source A
I've never had to NAT before, so I'm trying to wrap my mind around this. Thanks