Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
Second public IP on the same firewall
« previous
next »
Print
Pages: [
1
]
Author
Topic: Second public IP on the same firewall (Read 4232 times)
openasapce
Newbie
Posts: 11
Karma: 0
Second public IP on the same firewall
«
on:
May 19, 2020, 11:09:59 pm »
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.
Logged
Maurice
Hero Member
Posts: 1213
Karma: 158
Re: Second public IP on the same firewall
«
Reply #1 on:
May 20, 2020, 12:37:28 pm »
Quote from: openasapce on May 19, 2020, 11:09:59 pm
How to do this? I can't find in the manual.
https://docs.opnsense.org/manual/firewall_vip.html
Logged
OPNsense virtual machine images
OPNsense aarch64 firmware repository
Commercial support & engineering available. PM for details (en / de).
openasapce
Newbie
Posts: 11
Karma: 0
Re: Second public IP on the same firewall
«
Reply #2 on:
May 22, 2020, 05:03:05 pm »
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?
Logged
Maurice
Hero Member
Posts: 1213
Karma: 158
Re: Second public IP on the same firewall
«
Reply #3 on:
May 22, 2020, 05:30:50 pm »
You can add multiple IP addresses to a single interface, that's exactly what virtual IPs are for.
Logged
OPNsense virtual machine images
OPNsense aarch64 firmware repository
Commercial support & engineering available. PM for details (en / de).
openasapce
Newbie
Posts: 11
Karma: 0
Re: Second public IP on the same firewall
«
Reply #4 on:
May 25, 2020, 07:44:43 pm »
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?
«
Last Edit: May 25, 2020, 07:54:58 pm by openasapce
»
Logged
openasapce
Newbie
Posts: 11
Karma: 0
Re: Second public IP on the same firewall
«
Reply #5 on:
May 25, 2020, 08:23:35 pm »
I don't know why, but after a reboot the nat was applied and the second ip on the dedicated virtual ethernet works correctly.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
Second public IP on the same firewall