Skip to content

Commit 1792edc

Browse files
update readme, service files with new cli
1 parent 83ef3f9 commit 1792edc

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ prost-build = { version = "0.9" }
7878

7979
[package.metadata.deb]
8080
maintainer-scripts = "debian/"
81+
depends = "$auto, wireguard-tools, iproute2"
8182
assets = [
8283
["target/release/wirespider", "usr/bin/", "755"],
8384
["README.md", "usr/share/doc/wirespider/README", "644"],

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Wirespider consists of a server and a client. The server is responsible of pushi
77
* Distribute routes to all clients
88
* RFC 5780 NAT detection
99
* NAT hole punching or relay over other nodes when not possible
10+
* detect other nodes in the same network
1011

1112

1213
## How to run the client
@@ -33,20 +34,20 @@ sudo cp target/release/wirespider /usr/bin
3334
sudo adduser --system --group --home /var/lib/wirespider wirespider
3435
3536
# create database
36-
wirespider server -d sqlite:/var/lib/wirespider/config.sqlite manage migrate
37+
wirespider database migrate -d sqlite:/var/lib/wirespider/config.sqlite
3738
# create a ip network for the clients
38-
wirespider server -d sqlite:/var/lib/wirespider/config.sqlite manage network create 10.1.2.0/24
39+
wirespider database create-network -d sqlite:/var/lib/wirespider/config.sqlite 10.1.2.0/24
3940
# add admin with ip in this new network
40-
# the command will return a token you can use with wirespider client
41-
wirespider server -d sqlite:/var/lib/wirespider/config.sqlite manage create-admin admin 10.1.2.1/24
41+
# the command will return a token you can use with wirespider start-client and wirespider send-command
42+
wirespider database create-admin -d sqlite:/var/lib/wirespider/config.sqlite admin 10.1.2.1/24
4243
4344
4445
sudo cp systemd/system/wirespider-server.service /etc/systemd/system
4546
# enable auto start and start the server
4647
sudo systemctl enable --now wirespider-server.service
4748
```
4849

49-
The admin can now use the `wirespider client manage` commands to create other peers and routes
50+
The admin can now use the `wirespider send-command` commands to create other peers and routes
5051

5152
### Contact
5253

systemd/system/[email protected]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ StartLimitBurst=1
88
Type=simple
99
Restart=on-failure
1010
EnvironmentFile=/etc/wirespider/%i
11-
ExecStart=/usr/bin/wirespider client start --device %i
11+
ExecStart=/usr/bin/wirespider start-client --device %i
1212

1313
[Install]
1414
WantedBy=multi-user.target

systemd/system/wirespider-server.service

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ User=wirespider
88
Type=simple
99
Restart=on-failure
1010
Environment=DATABASE_URL=sqlite:/var/lib/wirespider/config.sqlite
11-
ExecStartPre=/usr/bin/wirespider server manage migrate
12-
ExecStart=/usr/bin/wirespider server run --bind 127.0.0.1:49582
11+
ExecStartPre=/usr/bin/wirespider database migrate
12+
ExecStart=/usr/bin/wirespider start-server --bind 127.0.0.1:49582
1313

1414
[Install]
1515
WantedBy=multi-user.target

0 commit comments

Comments
 (0)