Bit offtopic, but came up and needs to be solved today: I need to set up a proxy in a Proxmox VE container (most likely OpenVZ) to act as a port forwarder, but on the public internet.
It should work like this: a client will connect to the proxy's public IP address 1.2.3.4, to port 1000. Then the proxy should forward this connection to another server on the internet 2.3.4.5, also port 1000.
- Can I do this with one interface (eth0) or do I need two?
- Can I do this with one public IP address, or do I need two?
- Is this a NAT or route relationship?
- Can this be done with iptables or route, or do I need dedicated proxy software to do this?
I would welcome any help in this matter.
It should work like this: a client will connect to the proxy's public IP address 1.2.3.4, to port 1000. Then the proxy should forward this connection to another server on the internet 2.3.4.5, also port 1000.
- Can I do this with one interface (eth0) or do I need two?
- Can I do this with one public IP address, or do I need two?
- Is this a NAT or route relationship?
- Can this be done with iptables or route, or do I need dedicated proxy software to do this?
I would welcome any help in this matter.