This page shows you how to mount a Filestore file share on clients
in a remote network, such as:

- Compute Engine VMs on a different project or VPC network.
- On-premises clients on your local network.

## Establish a VPN connection between the remote network and the VPC network of the Filestore instance

Before you can mount a file share on a remote client, you must establish a VPN
connection between the client's network and the VPC network of
the Filestore instance.

1. Create an HA VPN or a Classic VPN. For detailed instructions, see [Creating an HA VPN gateway to a Peer VPN gateway](https://docs.cloud.google.com/network-connectivity/docs/vpn/how-to/creating-ha-vpn.md.txt) or [Create a Classic VPN gateway using static routing](https://docs.cloud.google.com/network-connectivity/docs/vpn/how-to/creating-static-vpns.md.txt).

   Ensure that:
   - The subnet ranges of the client and the Filestore instance don't overlap.
   - The IP address of the Filestore instance is advertised as a custom route during BGP configuration.
   - You must use an external or third-party VPN provider.

   For details, see [Known issues](https://docs.cloud.google.com/filestore/docs/known-issues.md.txt#mounting_over_vpn).
2. Configure the VPN gateway and tunnel on the remote network:

   - For specific configuration guidance for certain VPN devices, see [VPN Interoperability Guides](https://docs.cloud.google.com/network-connectivity/docs/vpn/how-to/interop-guides.md.txt).
   - For general configuration parameters, see [Configuring the
     Peer VPN Gateway](https://docs.cloud.google.com/network-connectivity/docs/vpn/how-to/configuring-peer-gateway).

## Mount the Filestore file share on the remote client

Once the VPN connection is established, you can mount the file share on any
client in the remote network using any of the
[standard mounting methods](https://docs.cloud.google.com/filestore/docs/mounting-fileshares.md.txt).

If you use HA VPN or Cloud Interconnect and mount the file share to client VM that's running Linux kernel version 5, set the [`nconnect` mount option](https://man7.org/linux/man-pages/man5/nfs.5.html) to `1`. This setting prevents multiple connections to different Filestore backend nodes and ensures connection to mounted file shares.

       mount -o nconnect=1

## What's next

- Learn more about creating [Compute Engine instances](https://docs.cloud.google.com/compute/docs/instances/create-start-instance.md.txt).
- Learn more about creating [Filestore instances](https://docs.cloud.google.com/filestore/docs/creating-instances.md.txt).
- Learn more about [Cloud VPN](https://docs.cloud.google.com/network-connectivity/docs/vpn.md.txt).