Issue -
Recently faced below 'Connection Timed Out' Error when trying to mount a freshly created OCI file system. Would like to share my experience and document this for future references.
I am using public and private subnets with security lists defined for each. File system is created in the private subnet and faced below issue when trying to mount it from an instance in the same private subnet,
sudo mount -v 10.3.2.10:/fssfortestcomp /mnt/fssfortestcomp
mount.nfs: timeout set for Wed Sep 9 06:27:20 2020
mount.nfs: trying text-based options 'vers=4.1,addr=10.3.2.10,clientaddr=10.3.2.2'
mount.nfs: mount(2): Connection timed out
Documenting list of ports that need to be open for mounting a file storage service on OCI instances on private/public subnet
Solution -
Update Security List Rules -
Please note to open destination ports for respective subnet where you created filesystem. These ports are opened to make sure our source oci instances can access nfs services like nfsd, rpcbind, etc running on file system storage.
Ingress Rules -
Rule Type | Protocol | Source Port Range | Destination Port Range | Stateful/Stateless |
---|---|---|---|---|
Ingress | TCP | All | 111 | Stateful |
Ingress | TCP | All | 2048 | Stateful |
Ingress | TCP | All | 2049 | Stateful |
Ingress | TCP | All | 2050 | Stateful |
Ingress | UDP | All | 111 | Stateful |
Ingress | UDP | All | 2048 | Stateful |
Egress rules -
Rule Type | Protocol | Source Port Range | Destination Port Range | Stateful/Stateless |
---|---|---|---|---|
Egress | TCP | All | 111 | Stateful |
Egress | TCP | All | 2048 | Stateful |
Egress | TCP | All | 2049 | Stateful |
Egress | TCP | All | 2050 | Stateful |
Egress | UDP | All | 111 | Stateful |
Egress | UDP | All | 2048 | Stateful |
A question may arise here that why are we explicitly creating egress rules when we already have stateful ingress rules in place -
References -
https://docs.cloud.oracle.com/en-us/iaas/Content/File/Tasks/securitylistsfilestorage.htm
https://cloudcustomerconnect.oracle.com/posts/7eb3f888e6
Comments
Post a Comment