Our school recently installed a linux server (Lucas) that is used as a fileserver, mailserver, proxyserver and firewall. The machine comes with a limited version of PHP, so we can't run Moodle on it. I want to attach a separate LAMP server (Marcus), just to run Moodle on it. We have received a public ip address, so it is possible to access Lucas from home. I can access Marcus from inside the school: the ip is 192.168.250.195 and I can also reach Marcus if I use SSH to tunnel the traffic.
Then I used the following rule to redirect the traffic. This was working , but was really slow.
Action Source Destination Protocol Destination port(s)
DNAT net loc:192.168.250.195 tcp http
Lucas has 3 network cards, so I read something about it being possible to use a DMZ. Would this be faster?
How do I setup iptables or firewall to make sure all the requests coming in from the internet on port 80 are redirected to the Marcus machine with internal ip 192.168.250.195 ?
I am really new to all of this network stuff. So if you are missing important information (or I am missing important bits), please tell me, and I will provide more information.