To recap!
(1) A speed test from iphone to the internet through the MT Server router is fast!
(2) A download of a file from the NASS ( on a subnet of the MT Server Router) throughh the same tunnel is slow ???
(3) I fail to see any IP routes,
assuming you have made through the PPPOE client setup etc… and thus not visible on the config, but you need another to return traffic,
not sure how you are reaching the internet or more accurately not sure how return traffic is reaching you iphone without it ???
ON MT SERVER ROUTER
add dst-address=ipaddress of iphone gwy=wireguard interface table=main
speedtest through the vpn tunnel is fine.
downloading a file from the NAS through the vpn is slow. it can be fast, but it is random and most of the time couple kB/s
i dont have any mangle rules.
the IP route is added to the table automatically when the connection is established. i have seen this live in the MT ip route table when i connect. manually adding it doesnt help.
Oh right you use an IP address for the WG tunnel so its (the IP route from internet return traffic on server router, OR , subnet return traffic from server router) created automagically.
Makes no sense to me why it would be slower, in fact it should be faster in the sense that LAN traffic should be at 1 gig speed ??
Yes you can add the WG interface to the LAN list but it has no effect on whether the the tunnel is established … the control mechanism is the allowed IP’s
WG firewall rule can be placed either above or bellow … I prefer below because I like a logical order flow.
NAS performance [throughput] depends on how busy the NAS is with its active apps … also DOCIS is erratic enough especially based on how many are sharing that pipe …. IPerf installed on the NAS as server will provide realistic metrics especially when the client is remote.
another update. I went to a local store that has fiber >60mbps, connected to wifi with my phone and used the WG tunnel to my NAS. the connection was stable and achieved almost max bandwidth. the most important was that the download rate was stable at all times.
on another thought, i should have mentioned how i have been testing so far:
since the internet away from home(home=mikrotik+NAS) is crap and doesnt let me tunnel with the dsl+LTE hybrid connection, I have my android phone(poco f3) usb tethering enabled and share mobile internet to my windows machine (no data cap). the wifi hotspot from my phone is disabled. only usb tethering enabled. With this setup, my PC achieves >100mbps speeds download and 2-3mbps uplink. This is the only way i can establish a link to my home, where MT and NAS are located.
When I use LTE on the phone and download files from NAS via the tunnel, the connection can be fast (sometimes achieving full bandwidth), or it can deliver only a couple kB/s to my phone . But even when it is fast, it drops abruptly, then goes back up and is not consistent. it varies heavily, even when service(signal) is good.
Now when i turn off the tunnel on the phone and connect it to my pc via usb and use internet tethering, the same thing happens to the download rate. but the speedtests deliver exquisite results, thats
what bothers me. i know that mobile internet can be inconsistend, just not sure how sensitive data transfer via a tunnel can become in that case. IF this is normal behavior for using wireguard with mobile data, then it seems my MT and NAS operate properly(since i did the test using fiber internet with stable connection). i hope i provided some more valuable info and sorry for not illustrating my topology from the start.
p,s is there a way to only let my windows machine use the internet of my phone, acting like a transparent bridge? that way LTE will be allocated only for the pc, maybe?