iptables port forwarding with SNAT and DNAT

Assume we have a web server having node.js (or any other client-server software) installed behind a load balancer and teh web server has only internal IP address. We need to allow clients to connect to node.js. So we need to do port forwarding with iptables from load balancer’s 8000 to web server’s 8000. So the ideal model will look like on the figure below.

Seite 2 von 2