CT: control Internet bandwidth ONLY

tommyv

Member
Dec 6, 2020
2
2
6
53
Hello,

I have a limited VDSL connection, so I'd like to limit only Internet bandwidth within a container while letting the local network throughput unlimited.

Is that possible ?

Thanks in advance
 
  • Like
Reactions: helpy4
Hello,

I have a limited VDSL connection, so I'd like to limit only Internet bandwidth within a container while letting the local network throughput unlimited.

Is that possible ?

Thanks in advance
Hi, yes you can bandwidth limit the containers virtual interface using tools like tc https://man7.org/linux/man-pages/man8/tc.8.html or wondershaper https://github.com/magnific0/wondershaper

Edit: Okay, maybe wondershaper is not capable of filtering traffic based on destination IP, so you will have to use tc (wondershaper is actually just a userfriendly wrapper/scripts for tc)

Another way might be to define a second virtual interface for inet traffic only and route all non-local traffic trough there while rate limiting that interface.
 
Last edited:
  • Like
Reactions: helpy4
When you edit the Network settings for the Containers NIC you should be able to set a bandwidth limit. If you only want the bandwidth limit for connections to the internet and not within your network itself, you will need to configure that on your router.
 
  • Like
Reactions: helpy4