Second public IP on the same firewall

Started by openasapce, May 19, 2020, 11:09:59 PM

Previous topic - Next topic
Hi.
I need to add a second public ip to the firewall and perform a nat 443 to internal VPS on proxmox.

The firewall already have a  public ip and 443 is already used by another service.
How to do this? I can't find in the manual.

Any advice?
Thank you.


Really thank you.
Last question, obviously i need to add a virtual card on the firewall? it can't work on the same network card?


You can add multiple IP addresses to a single interface, that's exactly what virtual IPs are for.
OPNsense virtual machine images
OPNsense aarch64 firmware repository

Commercial support & engineering available. PM for details (en / de).

May 25, 2020, 07:44:43 PM #4 Last Edit: May 25, 2020, 07:54:58 PM by openasapce
Thank you, but using proxmox and Hetzner servers I need to create a separate MAC address for the new ip address to correctly route it to the right vps.

To do this I need to add a virtual ethernet card with this mac address, therefore assign the public Ip to the device.

I have added the virtual ethernet card to opnsense, assigning the mac address on proxmox, therefore added the net device to opnsense with the right ip.

Opnsense now have 3 virtual ethernet:
- 1: WAN public ip
- 2: LAN private ip with nat to internal virtual servers.
- 3: second Public IP that i want to nat on 443 port to a internal 443 to a VPS within the LAN private network (2).

I have set the NAT on the (3) secondo public ip device, but i see that any incoming traffic to this ip is dropped by opnsense.

Where I'm wrong?

I don't know why, but after a reboot the nat was applied and the second ip on the dedicated virtual ethernet works correctly.