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

tor-ctrl-onion: read PKs from directory or file and set the services up #26

Closed
nyxnor opened this issue Feb 17, 2022 · 4 comments
Closed

Comments

@nyxnor
Copy link
Owner

nyxnor commented Feb 17, 2022

this would facilitate a lot, you only specify the directory of the file that contains the onion services pk and it will be activated, so no need to copy contents to the command line and also facilitates if you want to setup a lot of services on the controller.

@nyxnor
Copy link
Owner Author

nyxnor commented Feb 17, 2022

not only pk, ports and flags also need to be read.
This will come with --permanent option.

@adrelanos
Copy link
Contributor

That would be to simplify the setup of onions?

If I understand this right, yeah, pointing a command line tool to a backup directory seems great for usability. A lot simpler than manual copying of contents to the right directly and fixing access rights.

@nyxnor
Copy link
Owner Author

nyxnor commented Feb 20, 2022

That would be to simplify the setup of onions?

Yes!!

If I understand this right, yeah, pointing a command line tool to a backup directory seems great for usability. A lot simpler than manual copying of contents to the right directly and fixing access rights.

Sometimes we just see the problem after the pain.

nyxnor added a commit that referenced this issue Feb 21, 2022
nyxnor added a commit that referenced this issue Feb 21, 2022
nyxnor added a commit that referenced this issue Feb 21, 2022
nyxnor added a commit that referenced this issue Feb 21, 2022
nyxnor added a commit that referenced this issue Feb 21, 2022
nyxnor added a commit that referenced this issue Feb 21, 2022
nyxnor added a commit that referenced this issue Feb 21, 2022
@nyxnor
Copy link
Owner Author

nyxnor commented Feb 21, 2022

This is complete and I am satisfied.
Normal usage to save or restore.

Make the service permanent, block DiscardPK flag, specify all other parameters as usual:

tor-ctrl-onion -A -l 80 -P ~/some_dir

Restore all onions from a directory:

tor-ctrl-onion -A -E ~/some_dir

Restore only one onion of contained in a file:

tor-ctrl-onion -A -E ~/some_dir/some_file

E for restore because R was taken. So think of Establish.

@nyxnor nyxnor closed this as completed Feb 21, 2022
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

2 participants