LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-17-2019, 01:30 AM   #16
gauravtewari88
LQ Newbie
 
Registered: May 2019
Posts: 9

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by gauravtewari88 View Post
Thanks for your reply. I have disabled IPTables and also SElinux.
I have put logging as well in the vsftpd as well but still i don't see any trace of error.

Even Windows Firewall is disabled and still it is not working. I have checked AWS rules as well and 20,21 ports are open in inbound rules.
Yes i will take in writing that the project want to use FTP and the security risk is owned by them.

Do you have any other stuff i can do to debug this problem?
Logs from vSFTPD
+++++++++++++++++++++++++
[root@ArcMC ~]# tail -100f /var/log/vsftpd.log
Fri May 17 06:22:27 2019 [pid 5937] CONNECT: Client "::ffff:10.126.0.18"
Fri May 17 06:22:27 2019 [pid 5937] FTP response: Client "::ffff:10.126.0.18", "220 (vsFTPd 3.0.2)"
Fri May 17 06:22:27 2019 [pid 5937] FTP command: Client "::ffff:10.126.0.18", "OPTS UTF8 ON"
Fri May 17 06:22:27 2019 [pid 5937] FTP response: Client "::ffff:10.126.0.18", "200 Always in UTF8 mode."
Fri May 17 06:22:30 2019 [pid 5937] FTP command: Client "::ffff:10.126.0.18", "USER baeadmin"
Fri May 17 06:22:30 2019 [pid 5937] [baeadmin] FTP response: Client "::ffff:10.126.0.18", "331 Please specify the password."
Fri May 17 06:22:36 2019 [pid 5937] [baeadmin] FTP command: Client "::ffff:10.126.0.18", "PASS <password>"
Fri May 17 06:22:36 2019 [pid 5936] [baeadmin] OK LOGIN: Client "::ffff:10.126.0.18"
Fri May 17 06:22:36 2019 [pid 5979] [baeadmin] FTP response: Client "::ffff:10.126.0.18", "230 Login successful."
Fri May 17 06:23:02 2019 [pid 5979] [baeadmin] FTP command: Client "::ffff:10.126.0.18", "PORT 10,126,0,18,220,214"
Fri May 17 06:23:02 2019 [pid 5979] [baeadmin] FTP response: Client "::ffff:10.126.0.18", "200 PORT command successful. Consider using PASV."
Fri May 17 06:23:02 2019 [pid 5979] [baeadmin] FTP command: Client "::ffff:10.126.0.18", "NLST"
Fri May 17 06:24:02 2019 [pid 5979] [baeadmin] FTP response: Client "::ffff:10.126.0.18", "425 Failed to establish connection."
Fri May 17 06:29:02 2019 [pid 5979] [baeadmin] FTP response: Client "::ffff:10.126.0.18", "421 Timeout."
 
Old 05-17-2019, 02:10 AM   #17
gauravtewari88
LQ Newbie
 
Registered: May 2019
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by gauravtewari88 View Post
Logs from vSFTPD
+++++++++++++++++++++++++
[root@ArcMC ~]# tail -100f /var/log/vsftpd.log
Fri May 17 06:22:27 2019 [pid 5937] CONNECT: Client "::ffff:10.126.0.18"
Fri May 17 06:22:27 2019 [pid 5937] FTP response: Client "::ffff:10.126.0.18", "220 (vsFTPd 3.0.2)"
Fri May 17 06:22:27 2019 [pid 5937] FTP command: Client "::ffff:10.126.0.18", "OPTS UTF8 ON"
Fri May 17 06:22:27 2019 [pid 5937] FTP response: Client "::ffff:10.126.0.18", "200 Always in UTF8 mode."
Fri May 17 06:22:30 2019 [pid 5937] FTP command: Client "::ffff:10.126.0.18", "USER baeadmin"
Fri May 17 06:22:30 2019 [pid 5937] [baeadmin] FTP response: Client "::ffff:10.126.0.18", "331 Please specify the password."
Fri May 17 06:22:36 2019 [pid 5937] [baeadmin] FTP command: Client "::ffff:10.126.0.18", "PASS <password>"
Fri May 17 06:22:36 2019 [pid 5936] [baeadmin] OK LOGIN: Client "::ffff:10.126.0.18"
Fri May 17 06:22:36 2019 [pid 5979] [baeadmin] FTP response: Client "::ffff:10.126.0.18", "230 Login successful."
Fri May 17 06:23:02 2019 [pid 5979] [baeadmin] FTP command: Client "::ffff:10.126.0.18", "PORT 10,126,0,18,220,214"
Fri May 17 06:23:02 2019 [pid 5979] [baeadmin] FTP response: Client "::ffff:10.126.0.18", "200 PORT command successful. Consider using PASV."
Fri May 17 06:23:02 2019 [pid 5979] [baeadmin] FTP command: Client "::ffff:10.126.0.18", "NLST"
Fri May 17 06:24:02 2019 [pid 5979] [baeadmin] FTP response: Client "::ffff:10.126.0.18", "425 Failed to establish connection."
Fri May 17 06:29:02 2019 [pid 5979] [baeadmin] FTP response: Client "::ffff:10.126.0.18", "421 Timeout."

Thanks All for your help.
I managed to sort the problem.

The FTP server attempts to make connections to random high ports on the client so I enabled high ports on Windows VM as inbound and it resolved the connection problem.
I enabled the port range in Windows AWS rule and it worked.

Thanks one and all for your help.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
vsftpd: error 425 Failed to establish connection. dirkjo Linux - Server 3 04-21-2016 10:32 AM
vsftpd server not listing ( 425 Failed to establish connection) oscargim Linux - Server 4 09-05-2012 10:41 PM
425 - failed to establish connection with vsftp and the firewall on brucerowe Linux - Networking 4 02-07-2012 12:28 AM
vsftpd - 425 failed to establish connection mohitanchlia Linux - Networking 7 03-17-2009 05:43 PM
425 failed to establish connection for ftp Networking linuxhippy Slackware 4 05-02-2005 03:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration