Hi, i have Seagate personal cloud NAS and it is working behind the FreeBSD gw
As you may know i could'nt connect FTP server using active mode. The NAS has not any Passive Mode settings so that i tried to implement ftp-proxy.
But now I am having "server: 425 Unable to build data connection: No route to host\r\n" error
Thanks in advance
A.B.C.D = My real public IP address , directly connected on my gw there is no CGNAT
X.Y.Z.T = My client public IP adress
192.168.0.200 = my ftp server IP address
PF rules for ftp-proxy
root@test:~ # tcpdump -ttt -n -e -i pflog0 host X.Y.Z.T and action block -vv
<there is no block logs>
As you may know i could'nt connect FTP server using active mode. The NAS has not any Passive Mode settings so that i tried to implement ftp-proxy.
But now I am having "server: 425 Unable to build data connection: No route to host\r\n" error
Thanks in advance
A.B.C.D = My real public IP address , directly connected on my gw there is no CGNAT
X.Y.Z.T = My client public IP adress
192.168.0.200 = my ftp server IP address
PF rules for ftp-proxy
Code:
nat-anchor "ftp-proxy/*"
rdr-anchor "ftp-proxy/*"
anchor "ftp-proxy/*"
pass in log quick on { igb0 } proto { tcp } from { X.Y.Z.T/32 } to { any } flags S/SA keep state
pass out log
Code:
root@test:~ # /usr/sbin/ftp-proxy -p 8021 -R 192.168.0.200 -b A.B.C.D -P 21 -D7 -v -d
using fixed server 192.168.0.200
listening on A.B.C.D port 8021
#1 accepted connection from X.Y.Z.T
#1 FTP session 1/100 started: client X.Y.Z.T to server 192.168.0.200 via proxy 192.168.0.1
#1 server: 220 ProFTPD 1.3.5 Server (PersonalCloud) [::ffff:192.168.0.200]\r\n
#1 client: USER tester\r\n
#1 server: 331 Password required for tester\r\n
#1 client: PASS asdasd**\r\n
#1 server: 230 User tester logged in\r\n
#1 client: OPTS UTF8 ON\r\n
#1 server: 200 UTF8 set to on\r\n
#1 client: PWD\r\n
#1 server: 257 "/" is the current directory\r\n
#1 client: TYPE I\r\n
#1 server: 200 Type set to I\r\n
#1 client: PORT 192,168,11,102,158,87\r\n
#1 proxy: PORT 192,168,0,1,226,172\r\n
#1 active: server to client port 40535 via port 58028
#1 server: 200 PORT command successful\r\n
#1 client: MLSD\r\n
#1 server: 425 Unable to build data connection: No route to host\r\n
#1 client close
#1 ending session
root@test:~ # tcpdump -ttt -n -e -i pflog0 host X.Y.Z.T and action block -vv
<there is no block logs>