OPNsense Forum

Archive => 19.7 Legacy Series => Topic started by: Fremulon on October 02, 2019, 08:37:06 AM

Title: IP subnet on WAN interface and NAT
Post by: Fremulon on October 02, 2019, 08:37:06 AM
Hello there

I need some clarification how I need to implement this scenario with OPNsense.
I've got a /29 subnet from my provider: 192.168.33.65/29

On my WAN interface I configurted the IP 192.168.33.70/29 and set the upstream gateway to 192.168.33.65, which is the gateway on the provider side.

Now I want to use the additional ip addresses with port forwarding:

192.168.33.67:443 --> 10.10.10.167:443

Do I need to configure this additional ip as a vIP on the OPNsense or is it enough when I just configure port forwarding and the firewall rules?

Thanks in advance
Title: Re: IP subnet on WAN interface and NAT
Post by: daigoro on October 03, 2019, 11:11:23 AM
Hello,

you should add an "IP Alias" with the same netmask of your WAN subnet.
Then you can use it as you need.
Title: Re: IP subnet on WAN interface and NAT
Post by: Fremulon on October 08, 2019, 11:15:57 AM
Thanks for the hint, you mean Aliases within the Firewall menu, right?