OPNsense Forum

English Forums => General Discussion => Topic started by: Mikael on May 01, 2018, 07:10:09 pm

Title: Problem setting up multiple public IP addresses
Post by: Mikael on May 01, 2018, 07:10:09 pm
Hello,

Have spent more then a couple of hours with this without being really wise about this. Have read a few different pages and tried som adjustments but without understanding this problem.

My company's ISP has provided us with 16 IP-addresses. So I am now trying to redirect 1 additional IP to a web server, in addition to the IP address we use for the office computers.

My steps:
1) I have created an secondary IP address as a Virtual IP.
2) Then created a 1-to-1 NAT (secondary IP => web server).
3) Added a rule to the firewall (pass thru traffic to the web server).

The problem: The secondary IP only leads directly to the OpnSene login page no matter what I'm trying to adjust and then also, the office computers external IP change between the first and second IP addresses.

Could it be that our ISP only support 1 IP per NIC (or how you call it), or have I misunderstood something?
(We have 16 public/external IP addresses and 1 GW ip address.)

Kind regards,
Mikael
Title: Re: Problem setting up multiple public IP addresses
Post by: mimugmail on May 01, 2018, 08:33:50 pm
Check if you are at 18.1.6
Check if sticky nat is set
Change UI port to something like 4443
Title: Re: Problem setting up multiple public IP addresses
Post by: Mikael on May 02, 2018, 11:39:47 am
Update 7/5: I'm still struggling with this, so tips and/or hints in an direction would be appreciated :)

Thanks mimugmail!  :)

After those tips 2 things works better:
- Office computers do not switch between IP
- Second IP does not take you to the OpnSene login page

But the second IP doesn't load anything now instead.
(I have been trying some different adjustments without success)

Attaching some images over current settings.


Firewall: NAT: One-to-One:
(https://thumb.ibb.co/joCs8n/vixu.png) (https://ibb.co/joCs8n)

Firewall: NAT: Outbound:
(https://thumb.ibb.co/gpB8g7/vixu2.png) (https://ibb.co/gpB8g7)

Firewall: Viritual IPs: Settings:
(https://thumb.ibb.co/h1xg17/vixu3.png) (https://ibb.co/h1xg17)

Firewall: Rules: WAN:
(https://thumb.ibb.co/i6Pdg7/vixu4.png) (https://ibb.co/i6Pdg7)