0

I'm trying to achieve exactly the same solution as the answer in this post (which works locally):

How to forward connection from one interface to another under linux

Except I need to forward to an IP address on another machine.

What do I need to do to get it to forward to an IP on another machine?

Eg: Machine A has 192.168.0.6 Machine B has 10.0.0.2

On the gateway if a client accesses 192.168.0.6 port 443 I want to forward it to the other PC at 10.0.0.2

How can I achieve this?

0

I found the solution here:

https://superuser.com/questions/1286555/iptables-port-forwarding-with-internal-snat

Hope it helps someone else.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.