OPNsense Forum

Archive => 19.7 Legacy Series => Topic started by: ramon on August 28, 2019, 04:20:43 PM

Title: Presenting all IP's on WAN interface
Post by: ramon on August 28, 2019, 04:20:43 PM
Dear, I am a newbie when it comes to OPNSense.
From our ISP we got 5 available usable IP Addresss. the first 2 addresses and the last are fixed and therefore not usable. The ISP modem is already set in Bridge mode.
Now at configuration you have to specify the WAN IP with subnet mask. However the other addresses are not being directed to the firewall, unless you change the interface IP.

How can I make sure that all available addresses are being presented to the firewall?

Cheers,

Ramon.
Title: Re: Presenting all IP's on WAN interface
Post by: franco on August 30, 2019, 03:52:52 PM
Hi Ramon,

You use 1:1 NAT for this purpose. You add your additional IP mappings there, usually to an internal server in your LAN:

https://docs.opnsense.org/manual/nat.html#one-to-one



Cheers,
Franco
Title: Re: Presenting all IP's on WAN interface
Post by: ramon on October 02, 2019, 12:33:18 PM
Hi Franco,

Thank you for you reply. I havedn't been online recently, therefore I could reply earlier.
I am still struggling with the config.

From my ISP I've got IP range x.x.x.50/29.
.50 is the network address
.51 is the gateway
.52 is not used
and
.53 is configured on the WAN interface.
.54, .55 and .56 are not used, yet.
.57 is the broadcast.

Now I want to use the WAN .54 address to an internal server. So i created the one-to-one as you suggested.
As the subnet mask of the WAN and LAN are different I need the one-to-one entry type set to "NAT", so I can specify the mask on the external.
I've also created a WAN firewall rule from any to the specific internal server.
Still I am uable to connected.

What am I missing?

Thank you,
Ramon