brainfucksec / kalitorify

Transparent proxy through Tor for Kali Linux OS
GNU General Public License v3.0
1.04k stars 225 forks source link

Your system is not using Tor (again, still) #59

Closed windowshopr closed 2 years ago

windowshopr commented 2 years ago

Describe the bug Running sudo kalitorify -t gives…

Program error message [!] Your system is not using Tor

try another Tor circuit with ‘kalitorify —restart’

Screenshots No screenshots necessary.

Other network proxies/firewalls or DNS applications installed No firewall (that I’m aware of? Unless one is included in Kali’s fresh install.) I’m currently running a NordVPN connection, maybe that has something to do with it?

Shell used Bash.

Additional context Kali 2021.3, all updated packages, and ran your install steps perfectly, just not connecting to a tor node. I’ve read the previous issue posts regarding this, but they didn’t resolve the issue for me/they were closed due to lack of response from the user, so I’m hoping to get this figured out for my case. Thanks!

windowshopr commented 2 years ago

I turned off/disconnected from/disabled firewall in NordVPN and also set kill switch to disabled, so basically took NordVPN out of the equation, still same issue. Tried a reinstall of kalitorify as well.

brainfucksec commented 2 years ago

Hi @windowshopr. You need to disable the VPN not only the kill switch.

windowshopr commented 2 years ago

@brainfucksec i did. Maybe my explanation wasn’t that great lol I disconnect from my VPN and shut down the program entirely. Before I did that, I disabled the firewall and kill switch settings. The VPN program isn’t even running, still go the same error.

brainfucksec commented 2 years ago

Try to reboot the system before run kalitorify.

I don't know the NordVPN application but maybe the application modifies some Tor related files and/or the iptables rules, also if you use some Firewall application like ufw you need to disable the relative service first.

Start the tor service alone and check if it works correctly:

sudo systemctl start tor

tor

you should not see any error in the command output.

https://tor.stackexchange.com/questions/12341/how-to-properly-start-tor-service

windowshopr commented 2 years ago

Ok I’ve narrowed it down.

sudo kalitorify -c sudo systemctl stop tor nordvpn d

So this shuts down all tor and NordVPN connections. Then I just run

sudo kalitorify —tor

And it connects. This is all after a restart from installation yes.

Only problem now is, how can I ensure that I’m connected to my NordVPN while using kalitorify? From here, with kalitorify running, I try to run

nordvpn connect

which connects to a vpn, however if I have kalitorify running already, I’m unable to connect to any webpage. I’m new to kali so I don’t know anything about what iptables are or what programs utilize what from it. Does this help at all? What should I try to modify so that I can be connected to vpn WHILE kalitorify is runnin? Thanks!

windowshopr commented 2 years ago

I see #26 after a quick search. Not sure I follow the details there, it’s always recommended to use tor from behind a vpn so would be good to figure this out

brainfucksec commented 2 years ago

Obviously I can't provide support for applications outside kalitorify, in this case the program works and I'm glad you solved the problem. The answers to your other questions are all present in the README, or at least the starting points to get the answers ...

About Tor and VPN argument I recommend the Tor Project FAQ - Can I use a VPN with Tor? if you have not already read.

Good work.