Multiple VIP and static routes

Started by samnet, August 26, 2020, 02:01:56 AM

Previous topic - Next topic
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?
----------------------------
Breeding Open Source
M0n0wall -> PfSense -> OpnSense -> Make lots of sense

August 26, 2020, 04:54:24 AM #1 Last Edit: August 26, 2020, 04:55:58 AM by marjohn56
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.
OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

Here's an image of my 1:1 nat setting


OPNsense 24.7 - Qotom Q355G4 - ISP - Squirrel 1Gbps.

Team Rebellion Member

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
----------------------------
Breeding Open Source
M0n0wall -> PfSense -> OpnSense -> Make lots of sense