1

I would like to forward TCP traffic from Server A which is a Linux Server to Server B which is a Windows server. Both are connected to the internet (public IP) and not in the same (local) network.

I have used this for my question: How to route UDP traffic from one public IP (linux) to another public IP(Windows) (rinetd)

The problem is that network traffic arriving at server B via Server A has Server A as source-IP.

My question is: Can I change this setup so that the Windows Server sees the original source IP and not server A as source IP

Calvin
  • 121

1 Answers1

1

Yes, you can. As David mentioned, it is very difficult to do this unless the forwarding machine (A) is the default router for the receiving one (B). Making a linux machine into a router is not difficult, and some selective iptables DNAT use should allow you to alter the destination. I'm not sure this is the best way to do what you are looking to do, however.

NickW
  • 10,289