I've got a TP-Link Archer C7 v2 running smoothly under OpenWrt for a long time now. I was in a double NAT setup with my ISP router in front before but since I've moved to a new place a little while ago I configured my Archer to be the only router on my network (although same ISP as before).
I've a file server on my network with an OpenSSH server running on it so that I can access my files from the WAN securely (only key-based auth is permitted).
I've a NAT rule configured in OpenWrt so that the traffic coming from the WAN on the port 1337 (I don't use 22 because of automated scanners which spams my logs) is redirected to my file server on port 22.
And my problem is simple, the SFTP transfer speed (which uses SSH) from LAN to WAN and WAN to LAN is terrible, in the range of 270 kbps where I get ~82 MBps from LAN to LAN, so the problem doesn't come from my OpenSSH server. I have a symmetrical 300 Mbps fiber connection with my ISP and I get pretty much 300 Mbps when doing an HTTP transfer on port 443 from LAN to WAN and WAN to LAN.
I've tried to change the port forward from 1337 to 22, so no port translation, to see if it would make a difference, but it didn't. I also tried 8080 (can't try 80 and 443 yet as I've important services listening on them) because I thought maybe my ISP was throttling speed on non-"standard" ports but the result was the same, and my ISP has a reputation of not interfering in that sort of way.
So, if you have any idea of what settings could cause my LAN to WAN SFTP speed to be so low I would very much appreciate the help!
I will update this post once I've had more time to test on port 80 and 443.
Thanks a lot for taking the time to read!