Solved AWS is throttling my tethering connection.

Hi guys,

I believe AWS is throttling my usb Android tethering connection.

I am recently download from the repository a the very minimum speed, it is almost impossible, check this out:

Code:
[ 1/17] Fetching linux-chrome-158.0.8127.36:   9%    15 MiB  32.8 kB/s    56:07 ETA

And I am clearly going through the SSH tunnel:

Code:
debug1: channel 4: free: direct-tcpip: listening port 12000 for cloudfront.aws.pkgbase.freebsd.org port 443, connect from 127.0.0.1 port 21239 to 127.0.0.1 port 12000, nchannels 6

Usually, with the SSH I can bypass the Carrier cap; as a matter of fact:
Code:
Download Mbps
221.90

Upload Mbps
11.13

I don't know how can AWS Cloudfront detect it, and slows the speed down.

Does FreeBSD have other (standard) mirrors I could use to avoid this situation?

Thanks! 🙏
 
Found it:


Also found this:


Code:
pkg search -f mirrorselect
mirrorselect-0.9.0_48
Name           : mirrorselect
Version        : 0.9.0_48
Origin         : www/mirrorselect
Architecture   : FreeBSD:15:amd64
Prefix         : /usr/local
Repository     : FreeBSD-ports [pkg+https://pkg.FreeBSD.org/FreeBSD:15:amd64/quarterly]
Categories     : ports-mgmt www
Licenses       : BSD3CLAUSE
Maintainer     : aly@aaronly.me
WWW            : https://github.com/DragonFlyBSD/mirrorselect
Comment        : HTTP service that selects pkg(8) mirrors near to the client
Shared Libs required:
    libc.so.7
    libthr.so.3
Annotations    :
    FreeBSD_version: 1501000
    build_timestamp: 2026-11-22T06:07:03+0000
    built_by       : poudriere-git-3.4.8-17-g835f702e
    port_checkout_unclean: no
    port_git_hash  : 7362a4c26250a451c0bc9010b256497525d428c9
    ports_top_checkout_unclean: no
    ports_top_git_hash: d3544cd05a5fbd09efb21a1f3a33c9911c574ae9
Flat size      : 8.83MiB
Pkg size       : 3.00MiB
Description    :
Mirrorselect is an HTTP backend service that selects the pkg(8) mirrors
according to their "distances" to the client.
 
mirrorselect was a mess, eventually I had to use Claude to dig into how use a mirror instead of the official repo:

Here the solution, but I only tested the repo for FreeBSD-base:

Code:
FreeBSD-ports: {
  url: "http://pkg0.nyi.FreeBSD.org/${ABI}/quarterly",
  mirror_type: "none"
}
FreeBSD-ports-kmods: {
  url: "http://pkg0.nyi.FreeBSD.org/${ABI}/kmods_quarterly_${VERSION_MINOR}",
  mirror_type: "none"
}
FreeBSD-base: {
  url: "http://pkg0.nyi.FreeBSD.org/${ABI}/base_release_${VERSION_MINOR}",
  mirror_type: "none",
  enabled: yes
}

Check the difference:

Code:
[ 1/17] Fetching linux-chrome-158.0.8127.36: 100%   165 MiB   4.4 MB/s    00:39

Those b* at AWS were actually slowdown my tethering connection… 😡
 
Back
Top