Scheduled block of MAC address
-
Dear pfSense community,
I have a n00b question (in real life I am a physician, and my knowledge of IP networking is full of gaps). Can I use pfSense to block outgoing traffic from a specific LAN MAC address during certain hours of the day? You have already guessed it - I need to find a way to wean my kids off the internet during their homework time…
I shall be gratefeul to anybody who could walk be through the procedure of creating the proper firewall rule (and I'd be happy to reciprocate with all kind of medical advice!) :)
-
So you wouldn't do it via mac address, unless these are wireless devices and you did that on your wireless AP..
With pfsense you would set this mac to always get an IP.. This is done with a dhcp reservation or static dhcp as some call it.. So this device with mac 18-03-73-B1-0D-D3 for example always gets 192.168.1.100
This as simple as looking in the current dhcp leases finding the device in question and clicking the little + box that says static mapping when you hover over it.
Now once your device always is 192.168.1.X you can setup a firewall rule per a schedule that allows them to only use the internet when you want. You will need to make sure the states are reset when you do this or any current connections they have open would continue to work until that state expired on its own or they closed the connection..
Can show an example of this if need be…
Now onto that medical advice... I have this mole on my johnson where should I send pic so you could take a look? ;) HEHEHEHEH ROFL!!!! Sorry couldn't help myself heheehhe
-
As far as I know, pfSense doesn't filter on MAC addresses, unlike some other firewalls. The best you could do is configure DHCP to always assign the same IP address to a MAC address and then filter on it.
-
Now once your device always is 192.168.1.X you can setup a firewall rule per a schedule that allows them to only use the internet when you want. You will need to make sure the states are reset when you do this or any current connections they have open would continue to work until that state expired on its own or they closed the connection..
Can show an example of this if need be…
Many thanks. Yes, an example of how-to, including resetting the states, would be highly appreciated!