OPNsense Forum

Archive => 23.7 Legacy Series => Topic started by: kyros79 on August 20, 2023, 04:36:32 PM

Title: How to configure multiple WAN IP Addresses
Post by: kyros79 on August 20, 2023, 04:36:32 PM
Hello there

We have an ISP that provides us with multiple public IP addresses. The additional addresses should be made available to devices on the LAN so that they can be reached with the corresponding public IP addresses.

I read in the OPNSENSE documentation that this is usually configured with a 1:1 NAT (binat).

I tried this, but failed. The requests are forwarded to the corresponding server in the LAN (I see in the firewall log) but they are not answered via the public IP address assigned to the server, so the return path does not work.
Now my question is: I'm sure there is someone who was able to get this to work successfully. Are there any instructions or a walk through for this?

Best regards

Adrian
Title: Re: How to configure multiple WAN IP Addresses
Post by: seed on August 20, 2023, 05:14:31 PM
1:1 nat makes sence when natting whole subnets with a similar size.

In your case i would add the ips obne by one as virtual ips on your wan interface and add portforwarding rules for each device.
Title: Re: How to configure multiple WAN IP Addresses
Post by: kyros79 on August 21, 2023, 07:23:27 AM
Hello seed

Thanks for your answer. I will try this via virtual IP's an Portforwarding.
Title: Re: How to configure multiple WAN IP Addresses
Post by: kyros79 on August 21, 2023, 01:02:34 PM
The solution from seed works. Thanks for your help!