Level: L1 | Applies to: Teltonika routers on RutOS 7 | Type: Known issue
Summary
An FTP client outside the router connects to an FTP server behind it, but file transfers fail. This often starts after a move from legacy firmware to RutOS 7. This article shows the firewall setting that fixes it.
How to recognise it
- The FTP login works, but listing folders or transferring files hangs or fails.
- It only fails in passive mode.
- The same setup worked on legacy firmware.
Why it happens
Passive FTP opens a second connection for data on a port the server chooses. The router's firewall needs FTP connection tracking to spot that second connection and let it through. On RutOS 7 it has to be switched on for the zone, or passive transfers are blocked.
Before you start
- Make sure the FTP server is already reachable on its control port, normally port 21, through port forwarding. See Teltonika - Router - Add Port Forwarding.
- The router needs a public IP address for outside clients to reach it. See the precheck in that article.
- Take a note of the current firewall settings.
Steps
- Log in to the WebUI at http://192.168.1.1.
- Go to Network > Firewall > Settings. On legacy firmware this is General Settings.
- Turn off the automatic assignment of conntrack helpers.
- Go to Network > Firewall > Zones.
- Click Edit on the wan zone.
- If you use an mdex fixed.IP or public.IP service with OpenVPN, edit the openvpn zone instead.
- Open the Advanced Settings tab.
- In the Conntrack helpers drop-down, choose the FTP passive connection tracking option.
- Click Save & Apply.
Test it
- From a client outside the router, connect to the FTP server in passive mode.
- List a folder and transfer a small file.
- Check the transfer completes.
If it still fails
- Check the FTP server's passive port range and make sure those ports are forwarded as well.
- Check the server's own firewall.
- Check the client really is in passive mode.
- Try a different client to rule out the client's settings.
Related articles
- Teltonika - Router - Add Port Forwarding
- Teltonika - Router - Enable Remote Access