Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
Virtual IP with NAT
« previous
next »
Print
Pages: [
1
]
Author
Topic: Virtual IP with NAT (Read 1204 times)
Blacktime2
Newbie
Posts: 9
Karma: 0
Virtual IP with NAT
«
on:
January 13, 2024, 07:56:44 pm »
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.
to reach the ip address 192.168.2.54 on LAN2.
Exemple in FortiGate :
Thanks for your help !
Logged
Monviech (Cedrik)
Global Moderator
Hero Member
Posts: 1593
Karma: 176
Re: Virtual IP with NAT
«
Reply #1 on:
January 13, 2024, 09:24:24 pm »
/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.
Logged
Hardware:
DEC740
Blacktime2
Newbie
Posts: 9
Karma: 0
Re: Virtual IP with NAT
«
Reply #2 on:
May 27, 2024, 06:42:08 pm »
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 :)
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
Virtual IP with NAT