So I would very much like to limit his internet usage to a couple of hours at night he has four devices on the network now.
QuoteSo I would very much like to limit his internet usage to a couple of hours at night he has four devices on the network now.So you want something like a schedule?From 02:00 to 05:59 full access.From 06:00 to 01:59 no access.
You may need to check how he is connecting - Is he on an access point behind the OPNsense box, or, is he connected to the ONT (i.e. the ISP's modem) direct. If the latter he has bypassed the OPNsense restrictions.
1. Add static IP Address for all the devices in Services>DHCPv4>[LAN].2. Add the devices IP Address to Firewall>Aliases.3. In Firewall>Settiings>Schedules, add the time and day for allow access.4. In Firewall>Rules>Lan, add the rules to the top. Put allow rule then follow by block rule.
Quote from: tanks on June 07, 2021, 12:38:24 pm1. Add static IP Address for all the devices in Services>DHCPv4>[LAN].2. Add the devices IP Address to Firewall>Aliases.3. In Firewall>Settiings>Schedules, add the time and day for allow access.4. In Firewall>Rules>Lan, add the rules to the top. Put allow rule then follow by block rule.Good advice in general.However, depending on how crafty the users are ideally you would need to use a switch with DHCP-snooping and ARP inspection to prevent them from changing MAC or configuring static IP's to work around the limitations on the dynamically allocated ones.Another solution would be to used a separate VLAN and apply limits on the entire subnet.
I'm curious on this one. Could a list of MAC addresses be used to force the clients to use the LAN ?. I.e get an ip if in the allowed MAC list only, in case there is no switch with DHCP-snooping.
Quote from: cookiemonster on June 07, 2021, 04:55:19 pmI'm curious on this one. Could a list of MAC addresses be used to force the clients to use the LAN ?. I.e get an ip if in the allowed MAC list only, in case there is no switch with DHCP-snooping.Not totally sure what you mean with "force the clients to use the LAN".If you mean that you have a list of MAC addresses and you only want to allow those specific MAC adresses to get a DHCP lease then it could be done by using the option:Deny unknown clients under DHCP config for that specific interface.You will need to add the allowed MAC's at the bottom under: DHCP Static Mappings for this interface.However, that in itself will not prevent users from configuring a static IP on their device.I guess you could combine it with the Static ARP option and ARP Table Static Entry (enable that for each static mac - ip binding you create). Then add a firewall rule that only accepts traffic from the IP's that you have configured statically.I have not tested it but in theory it should work