OPNsense Forum

Archive => 20.7 Legacy Series => Topic started by: samnet on August 26, 2020, 02:01:56 am

Title: Multiple VIP and static routes
Post by: samnet on August 26, 2020, 02:01:56 am
Hi
Im having a problem on my current opnsense, I have several VIPs like xxx.xx.xx.190 (default gw)
xxx.xx.xx.191 (opnsense wan ip) xxx.xx.xx.192 (vip and doing port forward to exchange server in my lan) xxx.xx.xx.193 (vip and doing port forward to ftp server) ...etc
my main target is to get the exchange get back to internet via ip xxx.xx.xx.192 and not via the xxx.xx.xx.191 which is opnsense.
is this possible and how?
Title: Re: Multiple VIP and static routes
Post by: marjohn56 on August 26, 2020, 04:54:24 am
When I ran my mailserver from home I used a 1 to 1 NAT, Set type to BINAT, add the firewall rules, I used a floating rule with an alias for the ports. Don't forget to add the WAN address of the server as a virtual IP.
Title: Re: Multiple VIP and static routes
Post by: marjohn56 on August 26, 2020, 04:59:37 am
Here's an image of my 1:1 nat setting


(https://i.ibb.co/PNrRpVf/Capture.png) (https://ibb.co/f2XbRTP)
Title: Re: Multiple VIP and static routes
Post by: samnet on September 15, 2020, 10:46:07 pm
Thanks for sharing the info. can you pls lay out the steps needed for this to work,
I will need to do this for
1. email server
2. voip
3. ftp ...etc
all having separate public IPs