SFTP with restricted speed

the key is let nc work in container

    cap_add:
      - NET_ADMIN  # Add NET_ADMIN capability

Docker Compose

Loading content…

rate limited

modify 64mbit to what you want to limited speed

setup-rate-limit.sh

Loading content…

Dockerfile

Loading content…

entrypoint.sh

Loading content…

sshd_config

Loading content…