Could you ssh to the router, and try to execute the command.

wget http://www.gl-inet.com/lede/2.27/ar71xx/generic/Packages.gz -O /tmp/Packages.gz

You can try it on your browser as well, just want to confirm if you can access S3 server in your network.