From charlesreid1

No edit summary
No edit summary
Line 16: Line 16:
* Client can run 2nd instance of stunnel, local port 873 open
* Client can run 2nd instance of stunnel, local port 873 open


this is where we step into the problem.


rsync on the server:
* rsync is running on the host machine, not in a docker. (Next steps.)
* To start rsync service, use <code>sudo service rsync start</code>
* Note that rsync will NOT print out error messages, it will fail silently. Check its status to ensure it is running via <code>systemctl status rsync.service</code>
* Once it is running, your rysnc server instance should be ready and waiting for input
stunnel on the server:
* stunnel is running via docker
* The rsync service must be ready on port 873 when docker stunnel starts, or the connection will not be made
* Ensure external port 273 is open with <code>nmap localhost</code>





Revision as of 22:07, 8 April 2017

Current status: FIXING STUNNEL CONTAINER.

  • Each time I try and replicate this pipeline, a different piece goes wrong.
  • This time, it's been the rsync stunnel container's secure communications port, 273, not opening up between host/container.
  • This is why we need Docker - *so* much bullshit involved in configuring Linux networking services. I'm not calling technical complexity bullshit, I'm calling hypernuanced, undocumented, impossible-to-debug network configuration and hardware issues bullshit.

Okay, here is the status of getting ssh and rsync up and working over rsync.

ssh over stunnel: works ok.

  • Client is pi on dropbear, connected directly to router which is connected to internet
  • Client can run stunnel, local port 2222 open
  • Server can run stunnel, port 443 open
  • Able to connect the stunnel client and server just fine

rsync over stunnel:

  • Client is pi on dropbear, connected directly to router which is connected to internet
  • Client can run 2nd instance of stunnel, local port 873 open

this is where we step into the problem.

rsync on the server:

  • rsync is running on the host machine, not in a docker. (Next steps.)
  • To start rsync service, use sudo service rsync start
  • Note that rsync will NOT print out error messages, it will fail silently. Check its status to ensure it is running via systemctl status rsync.service
  • Once it is running, your rysnc server instance should be ready and waiting for input

stunnel on the server:

  • stunnel is running via docker
  • The rsync service must be ready on port 873 when docker stunnel starts, or the connection will not be made
  • Ensure external port 273 is open with nmap localhost]