torch-agent/example
B.J. Dweck f99c80852b Updated/Added README.md files 2020-10-06 15:14:57 +02:00
..
agent-config Dir rename 2020-10-06 14:29:52 +02:00
broker-config Reorganized and regenerated example PKI 2020-10-06 13:54:00 +02:00
pki Reorganized and regenerated example PKI 2020-10-06 13:54:00 +02:00
subscriber-config Reorganized and regenerated example PKI 2020-10-06 13:54:00 +02:00
README.md Updated/Added README.md files 2020-10-06 15:14:57 +02:00
Vagrantfile Dir rename 2020-10-06 14:29:52 +02:00
run-broker.sh Reorganized and regenerated example PKI 2020-10-06 13:54:00 +02:00
run-subscriber.sh Reorganized and regenerated example PKI 2020-10-06 13:54:00 +02:00

README.md

TORch Agent Example

The example creates a Vagrant machine configured with TORch Agent

Instructions to Run

Install dependencies

  • docker
  • mosquitto_sub
    • apt install mosquitto-clients

Run the Broker

Add the following line to your /etc/hosts file:

127.0.0.1    mqtt.example.com

Run the broker in a terminal window:

cd example
./run-broker.sh

Run the Subscriber

In a separate terminal window, run the subscriber:

cd example
./run-subscriber.sh

Run TORch Agent in Vagrant

Run the Vagrant box in a third terminal window:

vagrant up

You should see that the broker received a connection from the Vagrant box at boot up and the subscriber received the onion hostname. You can use a local tor proxy to connect to the vagrant box using SSH and the onion hostname.