OPNsense Forum

English Forums => General Discussion => Topic started by: spetrillo on July 02, 2024, 05:23:38 PM

Title: OPNsense and Two Public IPs
Post by: spetrillo on July 02, 2024, 05:23:38 PM
Hello all,

MY OPNsense server is setup for the public IP I have currently, but I have the ability to add a second IP from the same subnet. My thought was to separate my test and prod services across the two public IPs. Since I have already created an interface for the first public IP do I need to build another interface for the second IP, even if its coming off the same subnet as the first one? A little confused as to what to do here.

Thanks,
Steve
Title: Re: OPNsense and Two Public IPs
Post by: Monviech (Cedrik) on July 02, 2024, 05:37:19 PM
No you just add a virtual IP alias to the WAN interface.

https://docs.opnsense.org/manual/firewall_vip.html#ip-alias
Title: Re: OPNsense and Two Public IPs
Post by: spetrillo on July 02, 2024, 05:51:10 PM
Quote from: Monviech on July 02, 2024, 05:37:19 PM
No you just add a virtual IP alias to the WAN interface.

https://docs.opnsense.org/manual/firewall_vip.html#ip-alias

Aha...thank you!
Title: Re: OPNsense and Two Public IPs
Post by: spetrillo on July 02, 2024, 05:59:23 PM
Ohhh wait a sec...my public IP is static, so the IP alias does not show up...its only when using a DHCP assignment...ughhh!