OPNsense Forum

English Forums => General Discussion => Topic started by: meazz1 on July 25, 2021, 07:44:40 PM

Title: Creating Alias for PiHole and VLAN questios
Post by: meazz1 on July 25, 2021, 07:44:40 PM
I am setting up a new SOHO for my own use and I'm trying to move from my existing setup of one LAN for my home user and a VLAN for the IoT devices.
All my gears with static IP are residing in the LAN.
The devices are
Opnsense router: 192.168.4.1
Unifi 60W managed switch:192.168.4.2
Unifi AP-AC lite: 192.168.4.3
PiHole: 192.168.4.4
Unifi controller: 192.168.4.6

IoT VLAN20: 10.0.20.0/24
User VLAN 10.0.10.0/24

My goal is to keep all the devices and IPs as is. I already created a new VLAN10 where all the users laptops and pcs will be using VLAN10.

I have already created rules to block VLANs to access each other and LAN.

I created an alias for the Piholes and a allow rule to have my VLAN access it. I also have a rule to block any other DNS services for the VLANs.

I need to figure out 2 things:
1. How do I keep the printer in the LAN and have VLAN users share it?
2. For creating 2 Piholes alias what is the "Type" in the alias window? Is it hosts or networks?

For Type should it be Hosts in the dropdown or Networks?
(https://lh3.googleusercontent.com/yAgZiXuhRQH82d3cCNw7F2Wz-WcO_w8ocz9SWcs2itCIDpE4Y7D1UpgAUGPQaH9XDSIsEcHNYmaHzH67aAEDeCITVrV6sS9Fl7p1cNJr8DaTFoZXz10BLs80Rd8VYTSLFw9LGX3p-A=w2400)
Title: Re: Creating Alias for PiHole and VLAN questios
Post by: Greelan on July 26, 2021, 12:17:38 PM
1. Just create a firewall rule like you did for the pihole? Unless you are also talking about broadcast discovery, in which you will need a plugin like udpbroadcastrelay

2. Host(s)
Title: Re: Creating Alias for PiHole and VLAN questios
Post by: meazz1 on July 27, 2021, 12:32:16 AM
Quote from: Greelan on July 26, 2021, 12:17:38 PM
1. Just create a firewall rule like you did for the pihole? Unless you are also talking about broadcast discovery, in which you will need a plugin like udpbroadcastrelay

2. Host(s)

Thank you