OPNsense Forum

English Forums => General Discussion => Topic started by: bforpc on August 28, 2020, 07:33:26 am

Title: opnsense with 2 IP's - for outgoing always use first IP showing
Post by: bforpc on August 28, 2020, 07:33:26 am
Hi,

my opnsense has one IP at the WAN interface and a second one (also on the wan Interface) as virtual IP.
On 2  VM's running a Web service, each one has a different public ip from opensense.
Everything works, both VM's are public available with their IP.

But both are answering with the first WAN IP of  opnsense. This can be problematic.
How can i fix that?

Bfo
Title: Re: opnsense with 2 IP's - for outgoing always use first IP showing
Post by: daniel78 on August 28, 2020, 12:24:05 pm
Do you have set up an outbound NAT rule?
Like: WAN interface, source: your Server, NAT-Adress: your virtal (2nd IP)
Title: SOLVED: opnsense with 2 IP's - for outgoing always use first IP showing
Post by: bforpc on September 01, 2020, 02:15:00 pm
Thats it.

thx