Enhanced Scripts to Prevent Abuse
To reduce abuse, you can restrict the usage of redeem codes to NodeSeek users only.
Additionally, here are some optional scripts that you can execute on the host machine as needed:
Block BitTorrent (BT) Traffic
iptables -A OUTPUT -m string --string "torrent" --algo bm -j DROP
iptables -A OUTPUT -m string --string ".torrent" --algo bm -j DROP
iptables -A OUTPUT -m string --string "peer_id=" --algo bm -j DROP
iptables -A OUTPUT -m string --string "announce" --algo bm -j DROP
iptables -A OUTPUT -m string --string "info_hash" --algo bm -j DROP
iptables -A OUTPUT -m string --string "get_peers" --algo bm -j DROP
iptables -A OUTPUT -m string --string "find_node" --algo bm -j DROP
iptables -A OUTPUT -m string --string "BitTorrent" --algo bm -j DROP
iptables -A OUTPUT -m string --string "announce_peer" --algo bm -j DROP
iptables -A OUTPUT -m string --string "BitTorrent protocol" --algo bm -j DROP
iptables -A OUTPUT -m string --string "announce.php?passkey=" --algo bm -j DROP
iptables -A OUTPUT -m string --string "magnet:" --algo bm -j DROP
iptables -A OUTPUT -m string --string "xunlei" --algo bm -j DROP
iptables -A OUTPUT -m string --string "sandai" --algo bm -j DROP
iptables -A OUTPUT -m string --string "Thunder" --algo bm -j DROP
iptables -A OUTPUT -m string --string "XLLiveUD" --algo bm -j DROP
Block Cryptocurrency Mining
iptables -A OUTPUT -m string --string "ethermine.com" --algo bm -j DROP
iptables -A OUTPUT -m string --string "antpool.one" --algo bm -j DROP
iptables -A OUTPUT -m string --string "antpool.com" --algo bm -j DROP
iptables -A OUTPUT -m string --string "pool.bar" --algo bm -j DROP
iptables -A OUTPUT -m string --string "get_peers" --algo bm -j DROP
iptables -A OUTPUT -m string --string "announce_peer" --algo bm -j DROP
iptables -A OUTPUT -m string --string "find_node" --algo bm -j DROP
iptables -A OUTPUT -m string --string "seed_hash" --algo bm -j DROP
Block Speed Test Sites
iptables -A OUTPUT -m string --string ".speed" --algo bm -j DROP
iptables -A OUTPUT -m string --string "speed." --algo bm -j DROP
iptables -A OUTPUT -m string --string ".speed." --algo bm -j DROP
iptables -A OUTPUT -m string --string "fast.com" --algo bm -j DROP
iptables -A OUTPUT -m string --string "speedtest.net" --algo bm -j DROP
iptables -A OUTPUT -m string --string "speedtest.com" --algo bm -j DROP
iptables -A OUTPUT -m string --string "speedtest.cn" --algo bm -j DROP
iptables -A OUTPUT -m string --string "test.ustc.edu.cn" --algo bm -j DROP
iptables -A OUTPUT -m string --string "10000.gd.cn" --algo bm -j DROP
iptables -A OUTPUT -m string --string "db.laomoe.com" --algo bm -j DROP
iptables -A OUTPUT -m string --string "jiyou.cloud" --algo bm -j DROP
iptables -A OUTPUT -m string --string "ovo.speedtestcustom.com" --algo bm -j DROP
iptables -A OUTPUT -m string --string "speed.cloudflare.com" --algo bm -j DROP
iptables -A OUTPUT -m string --string "speedtest" --algo bm -j DROP
The above scripts are sourced from NodeSeek forum user hug1013.
Avoid Sustained IO Operations on Low-Memory Machines
LXC instances may generate sustained IO operations when memory usage is very high. This is a software characteristic that cannot be effectively mitigated. You can use a monitoring script to periodically shut down instances with high usage.