1

Topic: AWS Linux ftp server

Is available AWS the server on it AWS Linux
FTP the server under the instruction: https://silicondales.com/tutorials/aws- … -instance/
I am connected, but I do not see files which there already is and when I try to load a file I am not able to do it, here that I receive:

wrote:

Status: Connecting to 52.1.52.141:21...
Status: Connection established, waiting for welcome message...
Status: Insecure server, it does not support FTP over TLS.
Status: Logged in
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/var/www/html"
Command: TYPE I
Response: 200 Switching to Binary mode.
Command: PASV
Response: 500 OOPS: invalid pasv_address
Command: PORT 192,168,1,26,209,137
Response: 500 OOPS: priv_sock_get_cmd
Error: Failed to retrieve directory listing
Status: Connection closed by server
Status: Connecting to 52.1.52.141:21...
Status: Connection established, waiting for welcome message...
Status: Insecure server, it does not support FTP over TLS.
Status: Logged in
Status: Starting upload of C:\Users\areostar\Desktop\index.php
Status: Retrieving directory listing of "/var/www/html"...
Command: TYPE I
Response: 200 Switching to Binary mode.
Command: PASV
Response: 500 OOPS: invalid pasv_address
Command: PORT 192,168,1,26,209,187
Response: 500 OOPS: priv_sock_get_cmd
Command: SIZE index.php
Error: Connection closed by server
Error: File transfer failed
Status: Disconnected from server
Status: Connecting to 52.1.52.141:21...
Status: Connection established, waiting for welcome message...
Status: Insecure server, it does not support FTP over TLS.
Status: Logged in
Status: Starting upload of C:\Users\areostar\Desktop\index.php
Status: Retrieving directory listing of "/var/www/html"...
Command: TYPE I
Response: 200 Switching to Binary mode.
Command: PASV
Response: 500 OOPS: invalid pasv_address
Command: PORT 192,168,1,26,209,189
Response: 500 OOPS: priv_sock_get_cmd
Command: SIZE index.php
Error: Connection closed by server
Error: File transfer failed
Status: Disconnected from server
Status: Connecting to 52.1.52.141:21...
Status: Connection established, waiting for welcome message...
Status: Insecure server, it does not support FTP over TLS.
Status: Logged in
Status: Starting upload of C:\Users\areostar\Desktop\index.php
Status: Retrieving directory listing of "/var/www/html"...
Command: TYPE I
Response: 200 Switching to Binary mode.
Command: PASV

In what a problem?

2

Re: AWS Linux ftp server

What with ?

3

Re: AWS Linux ftp server

bga83;
You mean iptables? Now I will check up

4

Re: AWS Linux ftp server

Areostar wrote:

bga83;
You mean iptables? Now I will check up

not only, also on side AWS - network ACL and Security groups

5

Re: AWS Linux ftp server

C sudo service iptables stop
The same result

wrote:

Status: Connecting to 52.1.52.141:21...
Status: Connection established, waiting for welcome message...
Status: Insecure server, it does not support FTP over TLS.
Status: Logged in
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/var/www/html"
Command: TYPE I
Response: 200 Switching to Binary mode.
Command: PASV
Response: 500 OOPS: invalid pasv_address
Command: PORT 192,168,1,26,211,154
Response: 500 OOPS: priv_sock_get_cmd
Error: Failed to retrieve directory listing
Status: Connection closed by server
Status: Connecting to 52.1.52.141:21...
Status: Connection established, waiting for welcome message...
Status: Insecure server, it does not support FTP over TLS.
Status: Logged in
Status: Starting upload of C:\Users\areostar\Desktop\index.php
Status: Retrieving directory listing of "/var/www/html"...
Command: TYPE I
Response: 200 Switching to Binary mode.
Command: PASV
Response: 500 OOPS: invalid pasv_address
Command: PORT 192,168,1,26,211,156
Response: 500 OOPS: priv_sock_get_cmd
Command: SIZE index.php
Error: Connection closed by server
Error: File transfer failed
Status: Disconnected from server
Status: Connecting to 52.1.52.141:21...
Status: Connection established, waiting for welcome message...
Status: Insecure server, it does not support FTP over TLS.
Status: Logged in
Status: Starting upload of C:\Users\areostar\Desktop\index.php
Status: Retrieving directory listing of "/var/www/html"...
Command: TYPE I
Response: 200 Switching to Binary mode.
Command: PASV
Response: 500 OOPS: invalid pasv_address
Command: PORT 192,168,1,26,211,158
Response: 500 OOPS: priv_sock_get_cmd
Command: SIZE index.php
Error: Connection closed by server
Error: File transfer failed
Status: Disconnected from server
Status: Connecting to 52.1.52.141:21...
Status: Connection established, waiting for welcome message...
Status: Insecure server, it does not support FTP over TLS.
Status: Logged in
Status: Starting upload of C:\Users\areostar\Desktop\index.php
Status: Retrieving directory listing of "/var/www/html"...
Command: TYPE I
Response: 200 Switching to Binary mode.
Command: PASV
Response: 500 OOPS: invalid pasv_address
Command: PORT 192,168,1,26,211,160
Response: 500 OOPS: priv_sock_get_cmd
Command: SIZE index.php
Error: Connection closed by server
Error: File transfer failed

6

Re: AWS Linux ftp server

Security groups:
That that prompts to me that with port 21 as that on another is necessary. Here only how!?

7

Re: AWS Linux ftp server

In the instruction that I used all  is specified!?
https://silicondales.com/tutorials/aws- … -instance/
Specified the ip what in not those it is defined

8

Re: AWS Linux ftp server

Areostar;
FTP for the operation uses 2 connections:
- On 21 port is controlling. With it apparently all is normal
- Connection for date transmission. Here variants are possible: active and passive. Judging by a broad gull the passive variant is used. And so the port number for this connection of servers is selected arbitrarily, and number is sent to the client where it then should incorporate. In the resulted example the range for a choice of this port is restricted 1024-1048. But in security gprops you opened only  and lower bound, instead of all range.
Plus me is confused with a line a little

wrote:

Response: 500 OOPS: invalid pasv_address

, it would be necessary to look a detailed broad gull of the server and a FTP-server config
And generally council - not to contact FTP, use SFTP - much is easy-to-customizer plus .

9

Re: AWS Linux ftp server

bga83;
Where and as this detailed broad gull of the server to take!
What instruction to use recommend?
I in  am not strong!

10

Re: AWS Linux ftp server

Areostar wrote:

What instruction to use recommend?

the official documentation

Areostar wrote:

where and as this detailed broad gull of the server to take!

most likely something in the spirit of /var/log/vsftpd.log if in a config another was not set

11

Re: AWS Linux ftp server

Found here this instruction: http://roopampoddar.com/2015/09/13/inst … -instance/
Question here about what

wrote:

pasv_address = [public dns from the amazon EC2 instance]

Here to specify only ip or all a line of type

wrote:

ec2-52-202-95-225.compute-1.amazonaws.com

??
All new lines to add simply in the end/etc/vsftpd/vsftpd.conf or the place is important!?

12

Re: AWS Linux ftp server

1;
Would like for earlier nobility.
Well and search certainly it is possible.

13

Re: AWS Linux ftp server

Areostar;
Once again I will repeat:
- Why the official documentation is in essence ignored?
- Why not to pass on SFTP?

14

Re: AWS Linux ftp server

How it is possible to make bind on another's address from the point of view of nuclear API? If not root, in any way.
I think, it is necessary to add this IP still the local additional address.
And how about proftpd? What for to expect from  the server of floppy possibilities?

15

Re: AWS Linux ftp server

, , .
Really to read the documentation tried nobody?
pasv_address
Use this option to override the IP address that vsftpd will advertize in response to the PASV command. Provide a numeric IP address, unless pasv_addr_resolve is enabled, in which case you can provide a hostname which will be DNS resolved for you at startup.
Default: (none - the address is taken from the incoming connected socket)
This address will be told to the client,  it should be public ip, itself vsftpd this address to use will (not listen).
Type the client speaks vsftpd in a command flow (21 port), I want ls-la., vsftpd there answers: result take away pasv_address: [port from pasv a range].
The client goes to this + address port, AWS  broadcasts in private ip, and all converges.
PS: On the other hand if the client in the same private network,  it is not necessary at all and so all will work.

16

Re: AWS Linux ftp server

Denis wrote:

, , .
Really to read the documentation tried nobody?
pasv_address

Well it in  under the link is written. We assume that all is valid has been made as in article.

17

Re: AWS Linux ftp server

Now tried  to install it with adjustment pasv_enable and pasv_address - does not work.
But it is clarified that amazon perfectly does NAT on the server.
It is asked, what for to complicate?

18

Re: AWS Linux ftp server

Well and proftpd simply works .

19

Re: AWS Linux ftp server

the Duchess pear wrote:

now tried  to install it with adjustment pasv_enable and pasv_address - does not work.
But it is clarified that amazon perfectly does NAT on the server.
It is asked, what for to complicate?
Well and proftpd simply works.

I in course, in proftpd magic gnomes packets transfer through .

20

Re: AWS Linux ftp server

Denis wrote:

I in course, in proftpd magic gnomes packets transfer through .

Simply proftpd it is used for operation with ftp.
And vsftpd is used to drown ftp.