1
General Discussion / Help with NAT Setup in OPNSense and Hyper-V (Public IPs for LAN Devices)
« on: August 09, 2024, 01:26:48 pm »
Hi everyone,
I'm running OPNSense on a dedicated computer within Hyper-V. The setup has two NICs: one for WAN (connected directly to the ISP's fiber converter) and another for LAN, which is plugged into an OpenWRT router set up as an AP/switch.
Everything is working, but all devices connected to the AP share the same public IP. My IPs are dynamically assigned by the ISP, so I can't rely on static IPs for one-to-one NAT. In commercial router setups, my devices usually get their own public IPs when checking "What's My IP".
How can I configure OPNSense so that each LAN device gets a unique public IP? Any help or guidance would be appreciated!
Firewall rules is setup as automatic, and they get their own ip's internally.
Thanks!
Edit: I have since learned a thing or two on how this is usually done, and my understanding is that i will need to use one to one with pre-defined ip's.
However i'm wondering if this can be done automatically?
I'm running OPNSense on a dedicated computer within Hyper-V. The setup has two NICs: one for WAN (connected directly to the ISP's fiber converter) and another for LAN, which is plugged into an OpenWRT router set up as an AP/switch.
Everything is working, but all devices connected to the AP share the same public IP. My IPs are dynamically assigned by the ISP, so I can't rely on static IPs for one-to-one NAT. In commercial router setups, my devices usually get their own public IPs when checking "What's My IP".
How can I configure OPNSense so that each LAN device gets a unique public IP? Any help or guidance would be appreciated!
Firewall rules is setup as automatic, and they get their own ip's internally.
Thanks!
Edit: I have since learned a thing or two on how this is usually done, and my understanding is that i will need to use one to one with pre-defined ip's.
However i'm wondering if this can be done automatically?