pagekite / PyPagekite

Python implementation of the PageKite remote front-end protocols.
http://pagekite.org/
GNU Affero General Public License v3.0
724 stars 123 forks source link

--ratelimit_ips doesn't seem to be working #77

Closed jmnsf closed 4 years ago

jmnsf commented 4 years ago

I can't figure out how to customize the DDoS protection feature. I'm testing a Slack integration and getting callbacks from multiple IPs; the defaults are too restrictive.

$ python pagekite.py --ratelimit_ips=5/3600
>>> Hello! This is pagekite.py v1.0.0.190225.                   [CTRL+C = Stop]
    Connecting to front-end relay 176.58.121.52:443 ...
     - Relay supports 10 protocols on 19 public ports.
     - Raw TCP/IP (HTTP proxied) kites are available.
     - To enable more logging, add option: --logfile=/path/to/logfile
    Abuse/DDOS protection: Relaying traffic for up to 5 clients per 10800s.
    Quota: You have 14 days, 5.0 tunnels left.
~<> Flying localhost:80 as https://skoachdevjf.pagekite.me/
 << pagekite.py [flying]   Kites are flying and all is well.

Despite the config param, DDoS protection is set to 5/10800.

pagekite commented 4 years ago

That is a frontend option, not one you can set yourself at the backend. This is working as intended. :)

pagekite commented 4 years ago

(I've updated your pagekite.net account to remove the limits though, hope that helps.)

jmnsf commented 4 years ago

@pagekite hmm, thanks. Just to make sure I'm grokking this nomenclature, in this context pagekite.me is the "frontend"? i.e. I'd have to host a "frontend" at my own domain to configure this setting, correct?

BjarniRunar commented 4 years ago

Correct!