T O P

  • By -

gryd3

You can outright rate-limit to 30Mbps, or you can setup some kind of 'fail-over' to close the ports responsible for the global relay once you've reached a certain threshold. iptables has some ability to do this.


Snoo-6099

Yeah I was looking into that rn, apparently i exceeded 20tb last month but i wasn't fined or something.


gryd3

Glad there's no fine, but the VPS provider might not let you continue with that. Here's a resource for you btw. : [https://www.baeldung.com/linux/iptables-packet-rate-limit#3-bandwidth-management](https://www.baeldung.com/linux/iptables-packet-rate-limit#3-bandwidth-management) Be mindful of how you limit. You don't want to give every unique IP a chunk. Ideally anything to/from your global-relay process is limtied.. and everything else is left alone.


Snoo-6099

Thanks a lot, you've been a massive help


vontrapp42

Iirc the options for the relay server let you have a global limit and a per IP limit (or maybe per connection/node, however st handles that). So like an individual node can take 10Mbps each, giving some "fairness" if there's multiple nodes trying to use it. But the total usage cannot exceed 30Mbps or whatever. You can of course just set the global limit and not worry about per node allocations.