Forums

Jeff Smith
Jeff Smith
Offline
Resolved
0 votes
Hello everyone!

I am currently in the projects of working on 2 webservers, both of same specs running linux.

My goal objective is to be able to host multiple websites from both of these webservers,
Using both servers over 1 public IP.
Both of my webservers are in a dns cluster setup and work well over local network.

The challenge i am facing is i am only able to access webserver 1 and not webserver2 when using their domain names.
My clear os setup is running under the Gateway Mode setting with 2 network cards.
I have tried using the port forward settings and opening same ports for both servers but have no luck.
I have purchased an $15 plugin "Proxy Pass" and feel like its a waste having no luck.
I have tried 1:1 nat because it gives the ability to add multiple rules, with having no luck.
Monday, March 23 2020, 10:12 PM
Share this post:
Responses (2)
  • Accepted Answer

    Tuesday, March 24 2020, 08:32 AM - #Permalink
    Resolved
    0 votes
    If you are running with a single external IP address then firewall rules can't help you. 1-to-1 NAT will only work with multiple external IP's. The way to go is probably the Proxy Pass app.

    If both web servers are on your LAN, you'll probably need to remove the port forward rule when you configure the proxy pass app then configure it to pass for both web servers. Alternatively, you need to set up the web server that you can reach with a reverse proxy similar to the proxy pass to forward the relevant http(s) requests to the other web server. What is your topology?
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, March 24 2020, 02:39 PM - #Permalink
    Resolved
    0 votes
    With proxy pass it should be working but don't use any port forwards on your firewall for port 80 and 443 because proxy pass is working on those ports. I have it working perfect. Bur maybe if possible it is more secure to have your webservers seperated from your firewall.
    The reply is currently minimized Show
Your Reply