Your basic Linux instance should not be using any iptables. I will not go into details here, maybe in a separate document later because it seems SELinux is not enabled in most AWS Linux instances. If your status is enabled you will also make sure that the file and context permissions are properly set. If you use a basic Linux instance in your EC2 you should not have to worry about SELinux but you might want to check first, like this: # sestatus SELinux status: disabled If you have a local Linux setup (like CentOS) you should really check this steps as well. Server Setupīefore we dive into the vsftpd configuration a couple words first about the server setup and something you might check just to be sure. With this we are basically ready to accept all passive mode traffic for FTP to the server. While you are adding these two ports also allow a TCP port range from like 1024-1048 I will explain later, just trust me on this one for now. In such a very unrecommended case you can skip this part.Īs an initial thought you enable the two default FTP ports TCP 20 and 21 for data transfer and communication. Unless you have a security group applied that allows basically anything. Lets begin with the access control from the outside world and for an EC2 instance access is controlled by the security group. I also assume everything is properly installed and please understand that the following is only about the configuration, i.e. This will add a few more pitfalls as I will explain in this document. From my local client I use FileZilla as the FTP client and transfer is set to Passive Mode. The information here is based on a regular AWS EC2 Linux server instance and with yum I installed vsftpd as the FTP Server. In this tutorial document I will show you the pitfalls I encountered when I you set up FTP in my Amazon cloud server.īefore we start lets talk about the configuration and environment. If you don't know them you will spend a lot of time until you get it to work. Actually it is but there are a few pitfalls. You'd think that setting up FTP in an AWS EC2 instance is simple.
0 Comments
Leave a Reply. |