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

./build/remote <ip> #11

Open
wants to merge 33 commits into
base: master
Choose a base branch
from

Conversation

gobengo
Copy link
Contributor

@gobengo gobengo commented Mar 12, 2018

You can now provision remote linux hosts over SSH using ./build/bin/remote <user>@<ip>

exit_node_ip=165.227.241.194
./build/remote root@$exit_node_ip
# will provision the exitnode on that host, then reboot it and wait for it to come back

I tested this script on Digital Ocean: Ubuntu 16.04, 17.10

I have not tested an exitnode made with this script with a home node, and may not have a private internet connection to do so for a while.

Progress on testing:

  • - I will make a new droplet and provision it using this PR. Update: It is 159.89.220.229, which was provisioned with commit 259ecee
  • - Someone should test it with their home node. This can go in faster if someone else can test it, as I am on the road without in and our of hotels and stuff where I don't have a predictable internet connection to connect my homenode to.

…rward is not already 1 (e.g. if docker or other container runtime sets it up for you)
@jhpoelen
Copy link
Contributor

@bennlich would you be up for testing / merging this one?

@bennlich
Copy link
Collaborator

Yep.

@gobengo
Copy link
Contributor Author

gobengo commented Mar 13, 2018 via email

@bennlich
Copy link
Collaborator

@gobengo no dice :-( The client tries to connect, but to no avail:

Tue Mar 13 00:39:34 2018 daemon.info td-client: Performing broker selection...
Tue Mar 13 00:39:55 2018 daemon.err td-client: No suitable brokers found.
Tue Mar 13 00:39:55 2018 daemon.info td-client: Performing broker selection...
Tue Mar 13 00:40:16 2018 daemon.err td-client: No suitable brokers found.

This is with the following /etc/config/tunneldigger:

config broker 'main'
       list address '159.89.220.229:8942'
        ...

If you wind up with time to try yourself, the steps are:

  1. edit /etc/config/tunneldigger to use the ip of your exit node
  2. /etc/init.d/tunneldigger restart
  3. look at tunneldigger client logs: tail /var/log/messages | grep td-client

Probably hard to debug this further w/o being able to look at logs on the broker side.

@gobengo
Copy link
Contributor Author

gobengo commented Mar 13, 2018

@bennlich Thanks for testing! And especially for the steps! Haven't done home node stuff for a few weeks so it was feeling intractable, but this will be invaluable when I next have a router to hook into. I will follow them and look at broker logs for suspicious stuff.

@bennlich
Copy link
Collaborator

Unfortunately I think we need to fix #9 before you'll be able to see any logs :-( Or you could run the broker manually and look at stdout.

@bennlich
Copy link
Collaborator

@gobengo logging is fixed in master by starting tunneldigger w/ systemd instead of init. To view logs:

sudo journalctl -u tunneldigger

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

Successfully merging this pull request may close these issues.

3 participants