Sublime FTPS Can't Validate Folder - amazon-ec2

Issue: When trying to connect to my server through Sublime SFTP Plugin using the supported FTPS method, everything seems to go smoothly except for the validation of the folder.
I have searched all over for a recourse to resolve this issue to no avail.
The strange part is when I look at my FileZilla Server Logs it seems to connect to the server just fine but the connection ends when it goes into PASV mode.
Below are the logs from the server:
(000056)5/16/2017 21:15:50 PM - (not logged in) (73.102.144.11)>
Connected on port 21, sending welcome message...
(000056)5/16/2017 21:15:50 PM - (not logged in) (73.102.144.11)>
220-FileZilla Server 0.9.60 beta
(000056)5/16/2017 21:15:50 PM - (not logged in) (73.102.144.11)> 220
Welcome to the Collab Server
(000056)5/16/2017 21:15:50 PM - (not logged in) (73.102.144.11)> AUTH
TLS
(000056)5/16/2017 21:15:50 PM - (not logged in) (73.102.144.11)> 234
Using authentication type TLS
(000056)5/16/2017 21:15:50 PM - (not logged in) (73.102.144.11)> TLS
connection established
(000056)5/16/2017 21:15:51 PM - (not logged in) (73.102.144.11)> USER
msechrest
(000056)5/16/2017 21:15:51 PM - (not logged in) (73.102.144.11)> 331
Password required for msechrest
(000056)5/16/2017 21:15:51 PM - (not logged in) (73.102.144.11)> PASS
(000056)5/16/2017 21:15:51 PM - msechrest (73.102.144.11)> 230 Logged
on
(000056)5/16/2017 21:15:51 PM - msechrest (73.102.144.11)> PBSZ 0
(000056)5/16/2017 21:15:51 PM - msechrest (73.102.144.11)> 200 PBSZ=0
(000056)5/16/2017 21:15:51 PM - msechrest (73.102.144.11)> PROT P
(000056)5/16/2017 21:15:51 PM - msechrest (73.102.144.11)> 200
Protection level set to P
(000056)5/16/2017 21:15:52 PM - msechrest (73.102.144.11)> PWD
(000056)5/16/2017 21:15:52 PM - msechrest (73.102.144.11)> 257 "/" is
current directory.
(000056)5/16/2017 21:15:52 PM - msechrest (73.102.144.11)> CWD
/laravel/collabsession
(000056)5/16/2017 21:15:52 PM - msechrest (73.102.144.11)> 250 CWD
successful. "/laravel/collabsession" is current directory.
(000056)5/16/2017 21:15:52 PM - msechrest (73.102.144.11)> TYPE I
(000056)5/16/2017 21:15:52 PM - msechrest (73.102.144.11)> 200 Type
set to I
(000056)5/16/2017 21:15:52 PM - msechrest (73.102.144.11)> PASV
(000056)5/16/2017 21:15:52 PM - msechrest (73.102.144.11)> 227
Entering Passive Mode (127,0,0,1,55,249)
(000056)5/16/2017 21:15:53 PM - msechrest (73.102.144.11)>
disconnected.
Additional Information
I can connect to the server fine using FileZilla Client from another desktop.
The server is on a Windows 10 AWS and has an elastic IP address.
I have opened port 21 for both the inbound and outbound rules on the firewall as well as added the program FileZilla Server as an exception in the inbound rules.
I went onto the AWS Admin Panel and added all of the ports (21, 990, and 14200 - 14400) to my inbound rules. 14200 - 14400 are the passive mode port ranges I specified on the FileZilla Server Admin Panel.
Could someone please point me in the right direction or let me know what I am doing wrong? Any help is greatly appreciated!

SFTP vs. FTPS
In regards to how easy each of the secure FTP protocols are to
implement, SFTP is the clear winner since it is very firewall
friendly. SFTP only needs a single port number (default of 22) to be
opened through the firewall. This port will be used for all SFTP
communications, including the initial authentication, any commands
issued, as well as any data transferred.
On the other hand, FTPS can be very difficult to patch through a
tightly secured firewall since FTPS uses multiple port numbers. The
initial port number (default of 21) is used for authentication and
passing any commands. However, every time a file transfer request
(get, put) or directory listing request is made, another port number
needs to be opened. You and your trading partners will therefore have
to open a range of ports in your firewalls to allow for FTPS
connections, which can be a security risk for your network.
If you are using FTPS, you will face this issue based on the comments above.
The initial port number (default of 21) is used for authentication and passing any commands. However, every time a file transfer request (get, put) or directory listing request is made, another port number needs to be opened.
The most secure option is to use SFTP instead of FTPS.

Related

PhpStorm fails to connect to FTP but FileZilla connects OK

I am using an FTP connection in PhpStorm for transferring files. With FileZilla I am able to connect easily but unable to connect via PhpStorm. I have set up a custom port for ftp. Below are the settings.
Log File
2022-08-25 16:47:57,755 [1925474] DEBUG - t.config.sockets.SocketWrapper - Default socket connection to /115.50.20.78:63425 10000
2022-08-25 16:47:59,882 [1927601] WARN - t.connections.RemoteConnection - Retrying
connecting to ftp://115.50.20.78:1125/ in #2fdca0a0: 1 iterations
org.apache.commons.vfs2.FileSystemException: Could not list the contents of folder
"ftp://116.58.28.78:1469/".
at
org.apache.commons.vfs2.provider.AbstractFileObject.getChildren(AbstractFileObject.java:1111)
at org.apache.commons.vfs2.provider.ftp.FtpFileObject.getChildren(FtpFileObject.java:436)
at org.apache.commons.vfs2.provider.AbstractFileObject.getChild(AbstractFileObject.java:1033)
at com.jetbrains.plugins.webDeployment.connections.RemoteConnectionPool.lambda$createConnection$0(RemoteConnectionPool.java:265)
at com.intellij.util.RunnableCallable.call(RunnableCallable.java:20)
at com.intellij.util.RunnableCallable.call(RunnableCallable.java:11)
at com.intellij.openapi.application.impl.ApplicationImpl$1.call(ApplicationImpl.java:265)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.net.ConnectException: Connection refused: connect
at java.base/java.net.PlainSocketImpl.waitForConnect(Native Method)
at java.base/java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:107)
at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399)
at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242)
at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.base/java.net.Socket.connect(Socket.java:609)
at com.jetbrains.plugins.webDeployment.config.sockets.SocketWrapper.connect(SocketWrapper.java:50)
at org.apache.commons.net.ftp.FTPClient._openDataConnection_(FTPClient.java:920)
at org.apache.commons.net.ftp.FTPClient._openDataConnection_(FTPClient.java:760)
at org.apache.commons.vfs2.provider.ftp.FTPExtendedClient.initiateMListParsing(FTPExtendedClient.java:47)
at org.apache.commons.vfs2.provider.ftp.FTPExtendedClient.mlistDir(FTPExtendedClient.java:29)
at org.apache.commons.vfs2.provider.ftp.FtpJBHelper.listFiles(FtpJBHelper.java:66)
at org.apache.commons.vfs2.provider.ftp.FTPClientWrapper.listFilesInDirectory(FTPClientWrapper.java:169)
at org.apache.commons.vfs2.provider.ftp.FTPClientWrapper.listFiles(FTPClientWrapper.java:151)
at org.apache.commons.vfs2.provider.ftp.FtpFileObject.doGetChildren(FtpFileObject.java:128)
at org.apache.commons.vfs2.provider.ftp.FtpFileObject.doListChildren(FtpFileObject.java:452)
at org.apache.commons.vfs2.provider.AbstractFileObject.getChildren(AbstractFileObject.java:1102)
... 14 more
2022-08-25 16:48:07,958 [1935677] WARN - t.connections.RemoteConnection - Connection cancelled to ftp://115.50.20.78:1125/ in #2fdca0a0
2022-08-25 16:48:07,958 [1935677] INFO - ains.plugins.webDeployment.ftp - java.net.SocketException: Socket closed
2022-08-25 16:48:11,708 [1939427] INFO - j.ide.actions.RevealFileAction - Exit code 1
PhpStorm Version
PhpStorm 2021.1.1
Build #PS-211.7036.8, built on April 15, 2021
Licensed to PhpStorm Evaluator
Expiration date: September 21, 2022
Runtime version: 11.0.10+9-b1341.35 amd64
VM: Dynamic Code Evolution 64-Bit Server VM by JetBrains s.r.o.
Windows 10 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 1498M
Cores: 4
Registry: run.processes.with.pty=TRUE
Non-Bundled Plugins: io.zhile.research.ide-eval-resetter (2.3.5)
Update 1
So I have checked the server side and found the below logs on the FileZilla server
With Passive Mode
(000056)8/25/2022 22:50:23 PM - (not logged in) (192.168.80.220)> Connected, sending welcome message...
(000056)8/25/2022 22:50:23 PM - (not logged in) (192.168.80.220)> 220-FileZilla Server version 0.9.41 beta
(000056)8/25/2022 22:50:23 PM - (not logged in) (192.168.80.220)> 220-written by Tim Kosse (Tim.Kosse#gmx.de)
(000056)8/25/2022 22:50:23 PM - (not logged in) (192.168.80.220)> 220 Please visit http://sourceforge.net/projects/filezilla/
(000056)8/25/2022 22:50:23 PM - (not logged in) (192.168.80.220)> USER app
(000056)8/25/2022 22:50:23 PM - (not logged in) (192.168.80.220)> 331 Password required for app
(000056)8/25/2022 22:50:23 PM - (not logged in) (192.168.80.220)> PASS *********
(000056)8/25/2022 22:50:23 PM - app (192.168.80.220)> 230 Logged on
(000056)8/25/2022 22:50:23 PM - app (192.168.80.220)> TYPE I
(000056)8/25/2022 22:50:23 PM - app (192.168.80.220)> 200 Type set to I
(000056)8/25/2022 22:50:24 PM - app (192.168.80.220)> SYST
(000056)8/25/2022 22:50:24 PM - app (192.168.80.220)> 215 UNIX emulated by FileZilla
(000056)8/25/2022 22:50:24 PM - app (192.168.80.220)> PASV
(000056)8/25/2022 22:50:24 PM - app (192.168.80.220)> 227 Entering Passive Mode (192,168,20,1,237,90)
(000056)8/25/2022 22:50:27 PM - app (192.168.80.220)> QUIT
(000056)8/25/2022 22:50:27 PM - app (192.168.80.220)> 221 Goodbye
(000056)8/25/2022 22:50:27 PM - app (192.168.80.220)> disconnected.
(000057)8/25/2022 22:50:28 PM - (not logged in) (192.168.80.220)> Connected, sending welcome message...
(000057)8/25/2022 22:50:28 PM - (not logged in) (192.168.80.220)> 220-FileZilla Server version 0.9.41 beta
(000057)8/25/2022 22:50:28 PM - (not logged in) (192.168.80.220)> 220-written by Tim Kosse (Tim.Kosse#gmx.de)
(000057)8/25/2022 22:50:28 PM - (not logged in) (192.168.80.220)> 220 Please visit http://sourceforge.net/projects/filezilla/
(000057)8/25/2022 22:50:28 PM - (not logged in) (192.168.80.220)> USER app
(000057)8/25/2022 22:50:28 PM - (not logged in) (192.168.80.220)> 331 Password required for app
(000057)8/25/2022 22:50:28 PM - (not logged in) (192.168.80.220)> PASS *********
(000057)8/25/2022 22:50:28 PM - app (192.168.80.220)> 230 Logged on
(000057)8/25/2022 22:50:28 PM - app (192.168.80.220)> TYPE I
(000057)8/25/2022 22:50:28 PM - app (192.168.80.220)> 200 Type set to I
(000057)8/25/2022 22:50:28 PM - app (192.168.80.220)> SYST
(000057)8/25/2022 22:50:28 PM - app (192.168.80.220)> 215 UNIX emulated by FileZilla
(000057)8/25/2022 22:50:28 PM - app (192.168.80.220)> PASV
(000057)8/25/2022 22:50:28 PM - app (192.168.80.220)> 227 Entering Passive Mode (192,168,20,1,237,91)
(000057)8/25/2022 22:50:40 PM - app (192.168.80.220)> PASV
(000057)8/25/2022 22:50:40 PM - app (192.168.80.220)> 227 Entering Passive Mode (192,168,20,1,237,92)
(000057)8/25/2022 22:50:50 PM - app (192.168.80.220)> QUIT
(000057)8/25/2022 22:50:50 PM - app (192.168.80.220)> 221 Goodbye
(000057)8/25/2022 22:50:50 PM - app (192.168.80.220)> disconnected.
Without Passive Mode
(000062)8/25/2022 22:56:38 PM - (not logged in) (192.168.80.220)> Connected, sending welcome message...
(000062)8/25/2022 22:56:38 PM - (not logged in) (192.168.80.220)> 220-FileZilla Server version 0.9.41 beta
(000062)8/25/2022 22:56:38 PM - (not logged in) (192.168.80.220)> 220-written by Tim Kosse (Tim.Kosse#gmx.de)
(000062)8/25/2022 22:56:38 PM - (not logged in) (192.168.80.220)> 220 Please visit http://sourceforge.net/projects/filezilla/
(000062)8/25/2022 22:56:39 PM - (not logged in) (192.168.80.220)> USER app
(000062)8/25/2022 22:56:39 PM - (not logged in) (192.168.80.220)> 331 Password required for app
(000062)8/25/2022 22:56:39 PM - (not logged in) (192.168.80.220)> PASS *********
(000062)8/25/2022 22:56:39 PM - app (192.168.80.220> 230 Logged on
(000062)8/25/2022 22:56:39 PM - app (192.168.80.220)> TYPE I
(000062)8/25/2022 22:56:39 PM - app (192.168.80.220)> 200 Type set to I
(000062)8/25/2022 22:56:39 PM - app (192.168.80.220)> SYST
(000062)8/25/2022 22:56:39 PM - app (192.168.80.220)> 215 UNIX emulated by FileZilla
(000062)8/25/2022 22:56:39 PM - app (192.168.80.220)> PORT 192,168,43,189,230,71
(000062)8/25/2022 22:56:39 PM - app (192.168.80.220)> 200 Port command successful
(000062)8/25/2022 22:56:40 PM - app (192.168.80.220)> LIST
(000062)8/25/2022 22:56:40 PM - app (192.168.80.220)> 150 Opening data channel for directory list.
(000062)8/25/2022 22:56:50 PM - app (192.168.80.220)> QUIT
(000062)8/25/2022 22:56:50 PM - app (192.168.80.220)> 425 Can't open data connection.
(000062)8/25/2022 22:56:50 PM - app (192.168.80.220)> 221 Goodbye
(000062)8/25/2022 22:56:50 PM - app (192.168.80.220)> disconnected.
Already tried with Passive Mode and Always use LIST command but still no luck.

Peer disconnecting when setting Mikrotik as OpenVPN client

I want to connect my OpenVPN server (Ubuntu 16.4) in my office to my Mikrotik at home as client.
I already have OpenVPN server set based on this tutorial (link). If I try to connect it connects with OpenVPN client Windows app (no errors), and asks for username and password, with Client.ovpn added in Program Files/OpenVPN/config.
Here is my server.conf in OpenVPN server:
port 51333
proto tcp
dev tun5
ca ca.crt
cert server.crt
key server.key
dh dh2048.pem
server 10.8.101.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "route 192.168.20.10 255.255.255.255" #This is my server that I want to connect in Office
keepalive 10 120
tls-auth /etc/openvpn/ta.key
key-direction 0
cipher AES-256-CBC
auth SHA1
max-clients 10
user nobody
group nogroup
persist-key
persist-tun
username-as-common-name
plugin /usr/lib/openvpn/openvpn-plugin-auth-pam.so /etc/pam.d/openvpn
status /etc/openvpn/mikrotik.log
verb 5
mute-replay-warnings
client-config-dir ccd
management localhost 7505
Here is my configuration of base.conf in OpenVPN server (Ubuntu) for creating client.ovpn files:
client
dev tun
proto tcp
remote mydomain.com 51333 #in my DNS I redirect this domain to my public static domain in office there in firewall I am portforwarding this port to my server in office
resolv-retry infinite
nobind
user nobody
group nogroup
auth-user-pass
#ca ca.crt
#cert client.crt
#key client.key
remote-cert-tls server
tls-auth ta.key
cipher AES-256-CBC
auth SHA1
# More reliable detection when a system loses its connection.
ping 15
ping-restart 45
ping-timer-rem
persist-tun
persist-key
verb 5
key-direction 1
Now in Mikrotik (OS is: v6.42.12 in hAP lite (simps) I have:
Import my Client.ovpn in Files
Import Certificate Client.ovpn and set for T (name: ca.crt_0) and for KT (name: client.crt_0).
Create new PPP Profile: ppp profile add name=OVPN-client change-tcp-mss=yes only-one=yes use-encryption=required use-mpls=no
Create new interface: interface ovpn-client add connect-to=mydomain.com port 51333 add-default-route=no auth=sha1 certificate=client.crt_0 disabled=no user=vpnuser password=vpnpass name=myvpn profile=OVPN-client
But with this configuration, I cannot establish a connection. I cannot get "R - status" on OVPN-client, I only get this error:
* ovpn-out1: connecting
* ovpn-out1: terminating - peer disconnected
* ovpn-out1: disconnected
If I check logs in server I get this:
openVPN1 ovpn-server[2050]: MULTI: multi_create_instance called
Oct 26 09:33:03 openVPN1 ovpn-server[2050]: Re-using SSL/TLS context
Oct 26 09:33:03 openVPN1 ovpn-server[2050]: Control Channel MTU parms
Oct 26 09:33:03 openVPN1 ovpn-server[2050]: Data Channel MTU parms
Oct 26 09:33:03 openVPN1 ovpn-server[2050]: Local Options String: 'V4,dev-type tun,link-mtu 1559,tun-mtu 1500,proto TCPv4_SERVER,keydir 0,cipher AES-256-CBC,auth SHA1,keysize 256,tls-auth,key-method 2,tls-server'
Oct 26 09:33:03 openVPN1 ovpn-server[2050]: Expected Remote Options String: 'V4,dev-type tun,link-mtu 1559,tun-mtu 1500,proto TCPv4_CLIENT,keydir 1,cipher AES-256-CBC,auth SHA1,keysize 256,tls-auth,key-method 2,tls-client'
Oct 26 09:33:03 openVPN1 ovpn-server[2050]: Local Options hash (VER=V4): '7ac8f09f'
Oct 26 09:33:03 openVPN1 ovpn-server[2050]: Expected Remote Options hash (VER=V4): '53276059'
Oct 26 09:33:03 openVPN1 ovpn-server[2050]: TCP connection established with [AF_INET]XX.XXX.XXX.XX:60345
Oct 26 09:33:03 openVPN1 ovpn-server[2050]: TCPv4_SERVER link local: [undef]
Oct 26 09:33:03 openVPN1 ovpn-server[2050]: TCPv4_SERVER link remote: [AF_INET]XX.XXX.XXX.XX:60345
Oct 26 09:33:03 openVPN1 ovpn-server[2050]: XX.XXX.XXX.XX:60345 TLS: Initial packet from [AF_INET]XX.XXX.XXX.XX:60345
Oct 26 09:33:03 openVPN1 ovpn-server[2050]: XX.XXX.XXX.XX:60345 TLS Error: cannot locate HMAC in incoming packet from [AF_INET]XX.XXX.XXX.XX:60345
Oct 26 09:33:03 openVPN1 ovpn-server[2050]: XX.XXX.XXX.XX:60345 Fatal TLS error (check_tls_errors_co), restarting
Oct 26 09:33:03 openVPN1 ovpn-server[2050]: XX.XXX.XXX.XX:60345 SIGUSR1[soft,tls-error] received, client-instance restarting
Oct 26 09:33:03 openVPN1 ovpn-server[2050]: TCP/UDP: Closing socket
MikroTik does not support UDP in OpenVPN only TCP.
ROS 7 will support it but it's still in development phase.
As of 2022 - you would need to use ROS version 7 or later, where UPP support for OpenVPN is implemented. Still, Mikrotik's implementation of OpenVPN is limited, eg. no support for TLS auth with a static key.

Having trouble with LFTP. Socket error when Connecting to Firezilla

I have a bash script that I am trying to run on my hostgator account.
cd $HOMEDIR
dir="$(date +'%a')"
# Upload backups (5 tries)
i=0
while [ $i -le 5 ]; do
# We're running this more than once so it's advised to use -E to delete the
# original file after successful transfer.
lftp -d -e "set ftp:ssl-allow no; mrm backup-*.tar.gz; mput -c -E -O $dir backup-*.tar.gz;quit" -u $FTP_USER,$FTP_PASS -p $FTP_PORT $FTP_ADDR
sleep 5
((i++))
done
# Delete backup before generating new b/c hostgator allows only one
rm backup-*.tar.gz
# Generate new full backup in Cpanel
PARAMS="dest=homedir&email=$EMAIL&submit=Generate%20Backup"
curl -u $CPANEL_USER:$CPANEL_PASS --data $PARAMS $CPANEL_HOST/frontend/x3/backup/dofullbackup.html
The above script leaves me with the error code below from the client side (hostgator):
---> FEAT
<--- 211-Features:
<--- MDTM
<--- REST STREAM
<--- SIZE
<--- MLST type*;size*;modify*;
<--- MLSD
<--- AUTH SSL
<--- AUTH TLS
<--- PROT
<--- PBSZ
<--- UTF8
<--- CLNT
<--- MFMT
<--- EPSV
<--- EPRT
<--- 211 End
---> CLNT lftp/4.0.9
<--- 200 Don't care
---> OPTS UTF8 ON
<--- 202 UTF8 mode is always enabled. No need to send this command.
---> USER emre**
<--- 331 Password required for emre**
---> PASS *******
<--- 230 Logged on
---> PWD
<--- 257 "/" is current directory.
---> TYPE I
<--- 200 Type set to I
---> SIZE Fri/backup-6.17.2016_08-40-54_emre.tar.gz
<--- 550 File not found
---> PASV
<--- 227 Entering Passive Mode (**,***,**,**,199,56)
---- Connecting data socket to (**.***.**.**) port 51000
**** Socket error (Connection refused) - reconnecting
---- Closing data socket
---- Closing control socket
The server system is firezilla running on windows 10.
(000017)6/17/2016 19:01:11 PM - (not logged in) (***.***.***.**)> Connected on port 2222, sending welcome message...
(000017)6/17/2016 19:01:11 PM - (not logged in) (***.***.***.**)> 220-FileZilla Server 0.9.57 beta
(000017)6/17/2016 19:01:11 PM - (not logged in) (***.***.***.**)> 220-written by Tim Kosse (tim.kosse#filezilla-project.org)
(000017)6/17/2016 19:01:11 PM - (not logged in) (***.***.***.**)> 220 Please visit https://filezilla-project.org/
(000017)6/17/2016 19:01:11 PM - (not logged in) (***.***.***.**)> FEAT
(000017)6/17/2016 19:01:11 PM - (not logged in) (***.***.***.**)> 211-Features:
(000017)6/17/2016 19:01:11 PM - (not logged in) (***.***.***.**)> MDTM
(000017)6/17/2016 19:01:11 PM - (not logged in) (***.***.***.**)> REST STREAM
(000017)6/17/2016 19:01:11 PM - (not logged in) (***.***.***.**)> SIZE
(000017)6/17/2016 19:01:11 PM - (not logged in) (***.***.***.**)> MLST type*;size*;modify*;
(000017)6/17/2016 19:01:11 PM - (not logged in) (***.***.***.**)> MLSD
(000017)6/17/2016 19:01:11 PM - (not logged in) (***.***.***.**)> AUTH SSL
(000017)6/17/2016 19:01:11 PM - (not logged in) (***.***.***.**)> AUTH TLS
(000017)6/17/2016 19:01:11 PM - (not logged in) (***.***.***.**)> PROT
(000017)6/17/2016 19:01:11 PM - (not logged in) (***.***.***.**)> PBSZ
(000017)6/17/2016 19:01:11 PM - (not logged in) (***.***.***.**)> UTF8
(000017)6/17/2016 19:01:11 PM - (not logged in) (***.***.***.**)> CLNT
(000017)6/17/2016 19:01:11 PM - (not logged in) (***.***.***.**)> MFMT
(000017)6/17/2016 19:01:11 PM - (not logged in) (***.***.***.**)> EPSV
(000017)6/17/2016 19:01:11 PM - (not logged in) (***.***.***.**)> EPRT
(000017)6/17/2016 19:01:11 PM - (not logged in) (***.***.***.**)> 211 End
(000017)6/17/2016 19:01:11 PM - (not logged in) (***.***.***.**)> CLNT lftp/4.0.9
(000017)6/17/2016 19:01:11 PM - (not logged in) (***.***.***.**)> 200 Don't care
(000017)6/17/2016 19:01:11 PM - (not logged in) (***.***.***.**)> OPTS UTF8 ON
(000017)6/17/2016 19:01:11 PM - (not logged in) (***.***.***.**)> 202 UTF8 mode is always enabled. No need to send this command.
(000017)6/17/2016 19:01:11 PM - (not logged in) (***.***.***.**)> USER emre**
(000017)6/17/2016 19:01:11 PM - (not logged in) (***.***.***.**)> 331 Password required for emre**
(000017)6/17/2016 19:01:11 PM - (not logged in) (***.***.***.**)> PASS ********
(000017)6/17/2016 19:01:11 PM - emre** (***.***.***.**)> 230 Logged on
(000017)6/17/2016 19:01:11 PM - emre** (***.***.***.**)> PWD
(000017)6/17/2016 19:01:11 PM - emre** (***.***.***.**)> 257 "/" is current directory.
(000017)6/17/2016 19:01:11 PM - emre** (***.***.***.**)> PASV
(000017)6/17/2016 19:01:11 PM - emre** (***.***.***.**)> 227 Entering Passive Mode (76,100,88,71,199,56)
(000017)6/17/2016 19:01:11 PM - emre** (***.***.***.**)> LIST
(000017)6/17/2016 19:01:11 PM - emre** (***.***.***.**)> ABOR
(000017)6/17/2016 19:01:11 PM - emre** (***.***.***.**)> 226 ABOR command successful
(000017)6/17/2016 19:01:11 PM - emre** (***.***.***.**)> disconnected.
I don't know what is going on? Can anyone send some light? I've been digging for hours now and cannot figure it out.

Server returned unroutable private IP address in PASV reply

Trying to set-up FileZilla to connect to my FTP but am having one bugger of a time. I keep getting this error:
Server returned unroutable private IP address in PASV reply - I have passive enabled in FZ and have tried to set the IP address there as the IP of the PC with FZ Server installed as well as my IP from my ISP but both present the below issue!
Below is the log, can someone more apt to use FileZilla assist me on how to change this?
000008)7/11/2014 23:45:59 PM - (not logged in) (213.239.212.239)> Connected, sending welcome message...
(000008)7/11/2014 23:45:59 PM - (not logged in) (213.239.212.239)> 220-FileZilla Server version 0.9.45 beta
(000008)7/11/2014 23:45:59 PM - (not logged in) (213.239.212.239)> 220 Hello and welcome to FileZilla
(000008)7/11/2014 23:46:04 PM - (not logged in) (213.239.212.239)> CLNT https://ftptest.net on behalf of 96.32.136.77
(000008)7/11/2014 23:46:04 PM - (not logged in) (213.239.212.239)> 200 Don't care
(000008)7/11/2014 23:46:04 PM - (not logged in) (213.239.212.239)> USER js
(000008)7/11/2014 23:46:04 PM - (not logged in) (213.239.212.239)> 331 Password required for js
(000008)7/11/2014 23:46:05 PM - (not logged in) (213.239.212.239)> PASS ******
(000008)7/11/2014 23:46:05 PM - js (213.239.212.239)> 230 Logged on
(000008)7/11/2014 23:46:05 PM - js (213.239.212.239)> SYST
(000008)7/11/2014 23:46:05 PM - js (213.239.212.239)> 215 UNIX emulated by FileZilla
(000008)7/11/2014 23:46:06 PM - js (213.239.212.239)> FEAT
(000008)7/11/2014 23:46:06 PM - js (213.239.212.239)> 211-Features:
(000008)7/11/2014 23:46:06 PM - js (213.239.212.239)> MDTM
(000008)7/11/2014 23:46:06 PM - js (213.239.212.239)> REST STREAM
(000008)7/11/2014 23:46:06 PM - js (213.239.212.239)> SIZE
(000008)7/11/2014 23:46:06 PM - js (213.239.212.239)> MLST type*;size*;modify*;
(000008)7/11/2014 23:46:06 PM - js (213.239.212.239)> MLSD
(000008)7/11/2014 23:46:06 PM - js (213.239.212.239)> UTF8
(000008)7/11/2014 23:46:06 PM - js (213.239.212.239)> CLNT
(000008)7/11/2014 23:46:06 PM - js (213.239.212.239)> MFMT
(000008)7/11/2014 23:46:06 PM - js (213.239.212.239)> 211 End
(000008)7/11/2014 23:46:06 PM - js (213.239.212.239)> PWD
(000008)7/11/2014 23:46:06 PM - js (213.239.212.239)> 257 "/" is current directory.
(000008)7/11/2014 23:46:07 PM - js (213.239.212.239)> TYPE I
(000008)7/11/2014 23:46:07 PM - js (213.239.212.239)> 200 Type set to I
(000008)7/11/2014 23:46:07 PM - js (213.239.212.239)> PASV
(000008)7/11/2014 23:46:07 PM - js (213.239.212.239)> 227 Entering Passive Mode (192,168,1,58,202,143)
(000008)7/11/2014 23:46:07 PM - js (213.239.212.239)> disconnected.

Handshaking not happening between master and slave in jenkins

How to solve this error? Error occurred since I make master ip to public and assign DNS.
Jul 27, 2012 12:44:17 PM hudson.remoting.jnlp.Main$CuiListener <init>
INFO: Hudson agent is running in headless mode.
Jul 27, 2012 12:44:17 PM hudson.remoting.jnlp.Main$CuiListener status
INFO: Locating server among [http://10.10.1.162:8080/jenkins/, http://dem
Jul 27, 2012 12:44:38 PM hudson.remoting.jnlp.Main$CuiListener status
INFO: Connecting to demo.sigmainfo.in:8050
Jul 27, 2012 12:44:38 PM hudson.remoting.jnlp.Main$CuiListener status
INFO: Handshaking
Jul 27, 2012 12:44:58 PM hudson.remoting.jnlp.Main$CuiListener error
SEVERE: The server rejected the connection:
java.lang.Exception: The server rejected the connection:
at hudson.remoting.Engine.onConnectionRejected(Engine.java:258)
at hudson.remoting.Engine.run(Engine.java:233)
I have seen so many thread regarding this, but didn't get any answer properly.
I connected using headless slave agent and put HOST:PORT in advanced setting of configuration of slave. Master is linux and slave is windows 7.
From Comments:
=================================
Since you are having problems with the public IP & DNS, can you make sure that routing for the public IP and DNS is allowed on your network. Just to be sure this is not a firewall issue. Are you on a corporate network? In that case, your corporate firewall may be blocking certain ports on all IP addresses.

Resources