Forward outgoing request to a remote server only for some destinations
Hi to all, first topic here :P
- A dedicated server hosted in US, ip 188.8.131.52
- A VPS hosted in FR, ip 184.108.40.206
Both server have Linux/Debian, and only one ip each (eth0)
What i need:
All outgoing traffic from 220.127.116.11 exit normally to internet,
EXCEPT for destination IP X,Y,Z,etc, that i want to be done by 18.104.22.168 server.
The 22.214.171.124 it's dedicated to this, and accept connections ONLY from 126.96.36.199.
I'm newbie about networking.
I understand i need to create "route" in 188.8.131.52, and
enabling IP forwarding with some iptables rule (nat? masquerading?) in 184.108.40.206.
It's possible to do with only one IP on 220.127.116.11?
Thanks for help!