|
|
(One intermediate revision by the same user not shown) |
Line 1: |
Line 1: |
− | See: [[HowTo_run_and_connect_to_PoW_Miner_pool]]
| |
| | | |
− | __TOC__
| |
− |
| |
− | == Overview ==
| |
− |
| |
− | This page provides information on pool operations and is intended for pool admins.
| |
− |
| |
− | == Anti-DOS ==
| |
− |
| |
− | === Simple ban script ===
| |
− |
| |
− | "nodecore_ddosban" is a simple ban script (written for Ubuntu) that scans ss and if an IP is connecting to port 8500 to frequently, it calls fail2ban (which wraps iptables) to block that IP.
| |
− |
| |
− | Script here: http://mirror1.veriblock.org/nodecore_ddosban_v1.tar
| |
− |
| |
− | <pre>
| |
− | # copy file over, make executable, run
| |
− | chmod +x install.sh
| |
− | ./install.sh
| |
− |
| |
− | #you may be prompted to install fail2ban
| |
− | </pre>
| |
− |
| |
− | Notes:
| |
− | * if an IP is added, then it records in the log "ddosban.log"
| |
− |
| |
− | View is script has run (example for ubuntu):
| |
− |
| |
− | <pre>
| |
− | grep -i cron /var/log/syslog | grep ddosban
| |
− | </pre>
| |
− |
| |
− | View IPS that were banned
| |
− | # View the "ddosban.log"
| |
− | # Run "sudo iptables -L" to see current bans
| |