DIsable 2FA for LAN access

Hi everyone,
I wanted to know if it is possible to deactivate 2FA for accesses made on LAN or if it is possible to “authorize” some devices for access without 2FA.
Thank you!