Let's say I have a Windows computer and a Linux server. I'm looking for a way to route outgoing TCP packets on the Windows computer (all ports) through the Linux server.
The Linux server would have something like Ettercap to modify those packets before sending them out to the destination address.
I'm wondering if there is any way to accomplish the packet rerouting I described. Maybe there are proxy server programs or something? The problem is it has to do it with any TCP packet, not just HTTP(S) traffic.
The goal is to modify an address string (bolded below) in the packet data. Example:
{"method": "login", "params": {"login": "143v3cYrnwVJss3VDBEam6iYdecmpXzT3t8VNu6hcSz3TKDyFYYfvnPzqfEpD1VYoaRya4B7oANGE2a2W8k2ahbT7qxq8L", "id": 1}
EDIT: I originally wanted to do this for a specific port but doing it for all traffic would also be fine if that is possible