ptcRecovery

idiots attempt to automate recovery from PTC login IP ban.


Installation

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, Ubuntu sudo 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

Execute using pm2

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"