You can install a data gateway on one of your on-premises devices to achieve this - https://learn.microsoft.com/en-us/azure/logic-apps/logic-apps-gateway-install
The alternative is to deploy an Integration Service Environment (ISE) which connects your logic app to an Azure virtual network (and connected networks) - https://learn.microsoft.com/en-us/azure/logic-apps/connect-virtual-network-vnet-isolated-environment