Multi Wan IP - Single Server Multiple Websites - Outbound Nat Question

Started by ChrisOpn, June 27, 2022, 05:32:56 AM

Previous topic - Next topic
I have 5 external WAN IPs (1.1.1.1-1.1.1.5) that I've added to the Virtual IPs. My internal server (10.1.1.5) has several different websites that need to be binded to those virtual IPs so that each can use ports 80 and 443. The port forwarding rules are setup but I'm figuring that I either need to Nat 1:1 or do a Nat Outbound. I've tried several attempts at setting up a hybrid nat outbound but without success. I'm hoping some of you pros out there know how to successfully set this up. My last attempt with outbound was:
interface: Wan
source: 10.1.1.5
translation/target: 1.1.1.5

I've also tried destination address and ports for 80/443. I'm new at this so I'm a bit confused on how to accomplish this task.

I would recommend using haproxy or nginx for that and not NAT.

Thanks Bimbar I will look into those today! When I get it figured out I'll post back in here with my solution to hopefully help someone else out having this same issue.