Force AnonSurf And Kill Internet If AnonSurf, Tor Or Proxychains Goes Down?

AnonSurf and Proxchains can run automatically with a startup script, but how can I create a kill switch that prevents any requests being sent if Tor or Proxychains goes down and there is nothing anonymizing my network IP address? Similar to features VPN services offer. I prefer that ParrotOS operates like tails. Amnesiac and always anonymous.

How do I make certain that UDP and other non-TCP packets are proxies or denied?


  • Parrot version in use (if you are not aware of it, open terminal and type cat /etc/os-release | grep VERSION):

Security Edition 5.3A

  • Anonsurf running? (yes/no)

Yes

It’s not an easy task to do that. The easiest way is to check the Tor service:

while True:
  tor_status = check_tor_service_status()
  if not tor_status:
     return shutdown()

However, it’s harder to do that if Tor service is still running and it has network problem. At this point, it requires sort of network check to do that shutdown, which has a lot of different scenarios. But in the other hand, if Tor is not on, All your traffic will go to nowhere because anonsurf forward all packets to Tor gateway in first place.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.