Peers should know about each other. #10

Closed
opened 2018-11-26 01:43:48 -05:00 by skx · 0 comments
skx commented 2018-11-26 01:43:48 -05:00 (Migrated from github.com)

Every time a new peer comes online we should broadcast that to the other nodes.

The only hard part is working out how to handle this, for the moment we could assume we'll invoke a script every time a node joins:

  • /etc/simple-vpn/node-available

With $CLIENT_NAME + $CLIENT_IP. However the better case would be to execute only a single script one-time. Passing a list of an arbitrary pair of name/IPs is hard though if we want to use the environment.

Perhaps we'll need JSON, but that suddenly means we can't use a bash-script easily..

Every time a new peer comes online we should broadcast that to the other nodes. The only hard part is working out how to handle this, for the moment we could assume we'll invoke a script every time a node joins: * `/etc/simple-vpn/node-available` With `$CLIENT_NAME` + `$CLIENT_IP`. However the better case would be to execute only a single script one-time. Passing a list of an arbitrary pair of name/IPs is hard though if we want to use the environment. Perhaps we'll need JSON, but that suddenly means we can't use a bash-script easily..
This discussion has been locked. Commenting is limited to contributors.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
skx/simple-vpn#10
No description provided.