idiots attempt to automate recovery from PTC login IP ban.
On main (MAD) server:
- git clone and copy config file
git clone https://github.com/dkmur/ptcRecovery.git && cd ptcRecovery && cp config.ini.example config.ini
- enter details in config.ini
- install ncat. Debian
sudo apt install ncat
, Ubuntusudo apt install nmap
- make sure Stats is cloned and up-to-date https://github.com/dkmur/Stats as we use some scripts from it, no need to actually run it
in case (MAD) server is NOT located on same WAN IP as devices (setting serverLocal=false):
- clone ptcRecovery on local server
git clone https://github.com/dkmur/ptcRecovery.git && cd ptcRecovery && cp config.ini.example config.ini
- enter details in config.ini
- open up firewall on remote server for port used
pm2 start ptcrecovery.sh --name ptcRecovery -o "/dev/null" -e "/dev/null"
On seperate local server, when used (setting serverLocal=false):
pm2 start localserver.sh --name ptcRecoveryLocal -o "/dev/null" -e "/dev/null"