Reseed Tools issueshttps://i2pgit.org/idk/reseed-tools/-/issues2023-02-18T14:29:57Zhttps://i2pgit.org/idk/reseed-tools/-/issues/9Make rate limiting modifiable2023-02-18T14:29:57ZMarek Küthemark22k@i2pmail.orgMake rate limiting modifiableCurrently, the value of four requests per hour is hardcoded in https://i2pgit.org/idk/reseed-tools/-/blob/master/reseed/server.go#L71. However, according to my understanding, the reseed server of an IP always returns the same reseed file...Currently, the value of four requests per hour is hardcoded in https://i2pgit.org/idk/reseed-tools/-/blob/master/reseed/server.go#L71. However, according to my understanding, the reseed server of an IP always returns the same reseed file. So this limit exists to protect the server from attacks. For powerful servers, the option to increase this limit would be good. Do I see this wrong? Is it possible to implement such an option?https://i2pgit.org/idk/reseed-tools/-/issues/8Include a flag for docker when using a Reverse Proxy2023-02-19T13:54:39ZMarek Küthemark22k@i2pmail.orgInclude a flag for docker when using a Reverse ProxyRate limiting is too strong, which causes legitimate requests (even from IP addresses that are almost requesting nothing) to be rejected.
Example: I made a request to my reseed server with the IP address `2a0e:8f02:21e0::2`. The whole /4...Rate limiting is too strong, which causes legitimate requests (even from IP addresses that are almost requesting nothing) to be rejected.
Example: I made a request to my reseed server with the IP address `2a0e:8f02:21e0::2`. The whole /44 prefix belongs to me and makes maybe five requests per month. Somehow the request is still blocked.
Edit: Could it be because I am using a reverse proxy and the trustProxy option is not set?
Workaround for me was:
```
docker exec -it reseed sed -i -e 's|/var/lib/i2p/go/src/i2pgit.org/idk/reseed-tools/reseed-tools reseed --yes=true --netdb=/var/lib/i2p/i2p-config/netDb $@|/var/lib/i2p/go/src/i2pgit.org/idk/reseed-tools/reseed-tools reseed --yes=true --netdb=/var/lib/i2p/i2p-config/netDb --numSu3=0 --trustProxy=true $@|g' /var/lib/i2p/go/src/i2pgit.org/idk/reseed-tools/entrypoint.sh
```