Virtual IP with NAT

Started by Blacktime2, January 13, 2024, 07:56:44 PM

Previous topic - Next topic
Hi team,

I am looking for a VIP with NAT feature in Opensense. I know it's simple in FortiGate but I want to configure it in opnsense.

LAN1 = 192.168.1.0/24 ; HOST1 = 192.168.1.5
LAN2 = 192.168.2.0/24 ; HOST2 = 192.168.2.54
My goal is to associate a VIP from LAN1 (e.g. 192.168.1.8) to reach the ip address 192.168.2.54 on LAN2.

Exemple in FortiGate :


Thanks for your help !

/ui/interfaces/vip
There you can create a virtual IP alias for 192.168.1.5.

/firewall_nat_1to1.php
Here you can map the Static NAT.

Afterwards you might need a firewall rule to allow this traffic.

I never did something like this (I only use 1:1 NAT to map external IPs to internal IPs.) but I think it should work in your case too.
Hardware:
DEC740

Thank you for your answer.

I tried to make this but it's did worked. You can see my diagram summarizing what I've done in attachment. Could you tell me if this makes sense to you?

I'll try to be more reactive to reply this time :)