I have 2 machines
Machine A have two interfaces and webserver
eth0 is private ip 192.168.1.1 eth1 is public ip 1.2.3.4
Machine B eth0 is private ip 192.168.1.2 running tomcat(8080)
Now how can i access 192.168.1.2:8080 using my public ip
Any idea how to port forward this?
Thank you guys for your answers. I know how to use reverse proxy since my public ip contain a django application which run on port 8000. But my question is , is it possible to act my machine A as router of machine B. that will accept connection on port 8080.