Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iptables v1.8.7 (nf_tables): owner: Bad value for "--uid-owner" option: "tor" #32

Open
evanescente-ondine opened this issue May 14, 2023 · 5 comments

Comments

@evanescente-ondine
Copy link

Hi, I tried to install torctl for my friend, and it hasn't gone well for now.
I had just installed torctl manually.

$ sudo torctl start
iptables v1.8.7 (nf_tables): owner: Bad value for "--uid-owner" option: "tor"
Try iptables -h' or 'iptables --help' for more information. iptables v1.8.7 (nf_tables): owner: Bad value for "--uid-owner" option: "tor" Try iptables -h' or 'iptables --help' for more information.
iptables v1.8.7 (nf_tables): owner: Bad value for "--uid-owner" option: "tor"
Try `iptables -h' or 'iptables --help' for more information.

uname -a: Linux mate-Vivobook-ASUSLaptop-X3400PHB-K3400PH 5.15.0-71-generic #78-Ubuntu SMP Tue Apr 18 09:00:29 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Then I upgraded the whole system and rebooted... and nothing changed.
Thanks for the help

@ikstream
Copy link
Member

ikstream commented May 15, 2023

Does a tor systemuser exist on your system?
torctl was created for blackarch linux and the tor package on arch creates a systemuser, so torctl is missing this check. It might be good to add though.

If it does exist, could you please try to add the --supl-groups flag to the failed commands (see here for more info)?

@evanescente-ondine
Copy link
Author

evanescente-ondine commented May 15, 2023 via email

@ikstream
Copy link
Member

I was assuming ubuntu, cause your uname command hints an ubuntu kernel.

If endeavour os uses arch repositories, the package should be same. Your /etc/passwd file should contain a line starting with tor:x:43:43.
If that's the case please just try adding --supl-groups to the offending lines in torctl.

@evanescente-ondine
Copy link
Author

evanescente-ondine commented May 15, 2023 via email

@enema-combatant
Copy link

Hybrid answer:

  1. cat /etc/passwd | grep tor*
  2. that's your tor-user (uid) you need to adjust in the torctl.sh script itself
  3. replace 'tor' with 'name-of-your-tor-user-in-etc-passwd' (mine was debian-tor)
  4. works like a charm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants