I have three separate ubuntu VPS servers (A, B, C)
previously I only had one IP address associated with server A and used
iptables to forward any incoming packets to IP
11.22.33.44 on port 443 to ip address
55.66.77.88 (server B)
and using server A as a gateway for my TCP connection to bypass the blocking in the client's region
I did that by adding a rule to
PREROUTIN using the command below:
$ iptables -t nat -A PREROUTING -p tcp --dport 443 -j DNAT --to-destination 55.66.77.88:443
as well as adding a rule to
POSTROUTING :
$ iptables -t nat -A POSTROUTING -j MASQUERADE
I want to purchase another IP address (
99.10.11.12) from my VPS provider on server A which would be connected to
eth1 and forward packets on that address to server C (
13.14.15.16)
but as soon as the second IP is purchased and active, everything stops working even the packets incoming to
11.22.33.44 don't get to server B

I'm not sure how to config the rules to get what I want and trying to learn about
iptables only confused me even more.