Hi.
I have Linksys EA3500 with OpenWrt Designated Driver 50108 / LuCI Master (git-17.339.51318-de4c4b8) Kernel Version 4.4.14.
I've set up ftp on my local Raspberry Pi. I have a global static ip for my EA3500. I've set up 20 and 21 port forward to raspberry. FTP works fine when I access it via global ip from a device which is outside of my local network.
It is ok when I connect to it from my local PC using local ip.
Here is the problem:
I can connect via global IP and authenticate from a local device . But it fails to transfer files. I tried both active and passive modes. I use ProFTPD 1.3.5b. Passive ports are enabled and are being forwarded through the openwrt router.
Here is how it occures. I login from my macbook (192.168.1.192) in ftp active mode via terminal, I see the following:
...
ftp> pass
Passive mode off.
ftp> dir
500 Illegal PORT command
500 LPRT not understood
425 Unable to build data connection: Connection refused
on the side of Raspberry I see in logs:
Refused PORT 192,168,1,192,240,152 (address mismatch)
when I change to passive mode, it just terminates. Here is what I see on macbook:
ftp> pass
Passive mode on.
ftp> dir
450 LIST: Connection refused
227 Entering Passive Mode (192,168,1,200,6,39).
Passive mode address scan failure. Shouldn't happen!
500 LPSV not understood
and this is what happens on the side of Rasp (which local ip is 192.168.1.200):
(OpenWrt.lan[192.168.1.1]): notice: user yicam1: aborting transfer: Data connection closed
Could you please help me to set up my openwrt router in such a way for me to be able to access it identically from both inside and outside of my local network?