I'm running Linux Mint 19.1 and I apt-get installed tor and it is running fine. However if I add the line
/etc/tor/torrc and restart the tor service, the service starts successfully but tor doesn't work, by which I mean the socks proxy on port 9050 no longer has an internet connection.
To try to diagnose the problem, I added the following line
/etc/tor/torrc and ran this script.
With the ExitNodes line absent I get the expected output with 4 different circuits shown. With the ExitNodes line present I get no output at all.
I have tried different country codes and verified that exit nodes exist in those countries by looking at this list but nothing seems to work.
I have tried adding the
StrictNodes 1 option as well without any difference.
Does anyone have any ideas how I can force an exit node from a specific country, or how to further diagnose this problem?