1 Answer
- Newest
- Most votes
- Most comments
2
Hi,
The generic quote that you report is probably due to this statement on https://docs.aws.amazon.com/efs/latest/ug/source-ports.html
To support a broad set of NFS clients, Amazon EFS allows connections from any source port. If you require
that only privileged users can access Amazon EFS, we recommend using the following client firewall rule.
Connect to your file system using SSH and run the following command:
iptables -I OUTPUT 1 -m owner --uid-owner 1-4294967294 -m tcp -p tcp --dport 2049 -j DROP
This command inserts a new rule at the start of the OUTPUT chain (-I OUTPUT 1). The rule prevents any
unprivileged, nonkernel process (-m owner --uid-owner 1-4294967294) from opening a connection to
the NFS port (-m tcp -p tcp –dport 2049).
Since EFS is built to support any port, the doc that you remains generic but the above advises you to limit yourself to 2049 when possible,
Best,
Didier
Relevant content
- asked a year ago

thanks Didier!
Hi Stu, you're very welcome!