I have a linux server with multiple IPs. I want to take 1 IP, and any traffic (or at least, the ports I choose) get redirected to an internal (VMware host only) IP. How would I go about creating this rule?
I'm guessing this is basically a form of nat, just not sure how to write the rule.
So just to clarify:
server's IP ranges: 10.1.1.10-10.1.1.20
Internal server IP: 10.4.4.10 (this IP only accessible from within the server, kinda like localhost)
So any traffic that goes to 10.1.1.11 port 10 is sent to 10.4.4.10 port 10.
Any other traffic to 10.1.1.11 is dropped (which I suppose will happen by default if I don't do anything with it)
How do I go about doing this?
Note that I only want it to happen to traffic going to that one IP, not the other IPs.
I'm guessing this is basically a form of nat, just not sure how to write the rule.
So just to clarify:
server's IP ranges: 10.1.1.10-10.1.1.20
Internal server IP: 10.4.4.10 (this IP only accessible from within the server, kinda like localhost)
So any traffic that goes to 10.1.1.11 port 10 is sent to 10.4.4.10 port 10.
Any other traffic to 10.1.1.11 is dropped (which I suppose will happen by default if I don't do anything with it)
How do I go about doing this?
Note that I only want it to happen to traffic going to that one IP, not the other IPs.