Pass firewall rule allowing extra access

Started by nr124, June 19, 2022, 07:03:50 PM

Previous topic - Next topic
Hello – I'm admittedly a bit of a rookie and after much forum reading am stumped by a firewall rule meant to isolate one of my VLANS. 

Setup: router on a stick with 3 VLANS/interfaces setup on switch (WAN, LAN, IPCAM)

Desired Behavior:  I want to isolate IPCAM, blocking internet access and blocking access from any other device on the network except one IP (192.168.1.24)

I have the following two rules set up:
Action: Pass
Direction: out
Source: 192.168.1.24/1
Destination: IPCAM net

Action: Block
Direction: out
Source: VLAN net
Destination: IPCAM net

Instead of the desired behavior where I'm allowed access to one of the IP addresses on IPCAM only from 192.168.1.24, I'm allowed access from any IP on my VLAN and logs state that it's that first rule allowing it.  Any help or push in the right direction would be greatly appreciated!

June 19, 2022, 07:14:28 PM #1 Last Edit: June 19, 2022, 07:57:29 PM by pmhausen
You beed to put IN rules on the interface where the connection originates. And a single host like 192.168.1.24 takes a /32 netmask.

Could you try to explain more clearly? Which IP addresses are on which interface? We need all IP networks on all VLANs to come up with the proper rules ...
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Thank you!  It looks like changing to /32 cleared it up.  I also have both in and out rules set up.  Logs and behavior look appropriate with the changes you outlined.   :)

For completeness in case you see something else glaring, I've attached my switch setup.

the IPCAM interface has ip's from 192.168.80.*
the LAN interface has ips from 192.168.1.*

Thank you again for such quick help and understanding with that mistake!