<@U04S8PLJWMT> I have Airbyte in Azure but I need ...
# ask-ai
b
@kapa.ai I have Airbyte in Azure but I need to get data source from on-prem SQL database. How do I connect to the data source without opening the SQL database to the internet?
k
To connect Airbyte running in Azure to an on-prem SQL database without exposing the SQL database to the internet, you need to establish a secure, private network connection between your Azure environment and your on-premises network. The knowledge sources do not provide a step-by-step guide for this specific scenario, but here are the general approaches based on best practices and Airbyte documentation: 1. Private Network Connectivity: - Set up a VPN or Azure ExpressRoute between your Azure environment and your on-premises network. This allows Airbyte in Azure to access your on-prem SQL database as if it were on the same local network, without exposing the database to the public internet. - Ensure that the necessary firewall rules and routing are configured to allow traffic from your Airbyte instance to the SQL server. 2. Network Security: - The Airbyte documentation emphasizes deploying Airbyte in a private network and using firewalls to restrict access. This applies to both Airbyte and your data sources. Do not expose your SQL database to the internet; instead, use private networking to control access securely [Securing Airbyte Open Source](https://docs.airbyte.com/platform/operating-airbyte/security#securing-airbyte-open-source). 3. Connector Configuration: - When configuring the SQL Server connector in Airbyte, provide the internal/private IP address or DNS name of your on-prem SQL server, along with the required credentials and SSL settings if needed [Getting Started with MSSQL](https://docs.airbyte.com/integrations/destinations/mssql#getting-started). 4. Alternative: SSH Tunnel: - For some databases, Airbyte supports connecting via an SSH tunnel, which can securely forward traffic from Airbyte to your on-prem SQL server without opening it to the internet. However, the documentation does not explicitly confirm SSH tunnel support for SQL Server connectors. This method is commonly used for Postgres and MySQL, and you may need to check connector-specific documentation or request this feature if not available [Connecting with SSL or SSH Tunnel](https://docs.airbyte.com/integrations/sources/postgres/cloud-sql-postgres#connecting-with-ssl-or-ssh-tunnel). Summary: The recommended and secure way is to use a private network connection (VPN or ExpressRoute) between Azure and your on-premises environment, ensuring your SQL database remains inaccessible from the public internet. SSH tunneling may be an option for some connectors, but is not explicitly documented for SQL Server in the provided sources. If you need more detailed, step-by-step network setup instructions, you may need to consult your network or cloud infrastructure team, as this is outside the direct scope of Airbyte's documentation.