1
+ <p align =" center " >
2
+ <img src="peermap/ui/src/assets/logo.png" width="180" />
3
+ </p >
4
+
1
5
# PeerGuard
2
6
3
7
Another p2p network library in Go. Committed to direct communication between devices.
@@ -16,16 +20,16 @@ Another p2p network library in Go. Committed to direct communication between dev
16
20
## Get Started
17
21
18
22
> [ !NOTE]
19
- > Time synchronization between nodes is crucial; the difference should not exceed 5 seconds
23
+ > Time synchronization between nodes is crucial; the difference should not exceed 10 seconds
20
24
21
25
``` sh
22
26
# node1
23
- pgcli vpn -s wss://open.privpkg .in/pg -4 100.64.0.1/24
27
+ pgcli vpn -s wss://openpg .in/pg -4 100.64.0.1/24
24
28
```
25
29
26
30
``` sh
27
31
# node2
28
- pgcli vpn -s wss://open.privpkg .in/pg -4 100.64.0.2/24
32
+ pgcli vpn -s wss://openpg .in/pg -4 100.64.0.2/24
29
33
```
30
34
31
35
## Advanced
@@ -36,26 +40,26 @@ pgcli vpn -s wss://open.privpkg.in/pg -4 100.64.0.2/24
36
40
37
41
``` sh
38
42
$ pgmap -l 127.0.0.1:9987 --secret-key 5172554832d76672d1959a5ac63c5ab9 \
39
- --stun stun.miwifi.com :3478 --stun stunserver.stunprotocol.org :3478
43
+ --stun 111.206.174.2:3478 -- stun 106.13.249.54 :3478 --stun 106.12.251.52:3478 --stun 106.12.251.31 :3478
40
44
```
41
45
42
46
#### 2. wrap pgmap as an https server
43
47
44
48
``` sh
45
- $ caddy reverse-proxy --from https://open.privpkg.in/pg --to 127.0.0.1:9987
49
+ $ caddy reverse-proxy --from https://openpg.in --to 127.0.0.1:9987
46
50
```
47
51
48
52
### P2P file sharing
49
53
50
54
``` sh
51
55
# share
52
- $ pgcli share -s wss://open.privpkg .in/pg ~ /my-show.pptx
56
+ $ pgcli share -s wss://openpg .in/pg ~ /my-show.pptx
53
57
ShareURL: pg://DJX2csRurJ3DvKeh63JebVHFDqVhnFjckdVhToAAiPYf/0/my-show.pptx
54
58
```
55
59
56
60
``` sh
57
61
# download
58
- $ pgcli download -s wss://open.privpkg .in/pg pg://DJX2csRurJ3DvKeh63JebVHFDqVhnFjckdVhToAAiPYf/0/my-show.pptx
62
+ $ pgcli download -s wss://openpg .in/pg pg://DJX2csRurJ3DvKeh63JebVHFDqVhnFjckdVhToAAiPYf/0/my-show.pptx
59
63
```
60
64
61
65
### Shortcut pgvpn
@@ -75,7 +79,7 @@ pgvpn --peers
75
79
### Rootless mode VPN
76
80
77
81
``` sh
78
- pgvpn -s wss://open.privpkg .in/pg -4 100.64.0.1/24 --proxy-listen 127.0.0.1:4090 --forward tcp://127.0.0.1:80 --forward udp://8.8.8.8:53
82
+ pgvpn -s wss://openpg .in/pg -4 100.64.0.1/24 --proxy-listen 127.0.0.1:4090 --forward tcp://127.0.0.1:80 --forward udp://8.8.8.8:53
79
83
```
80
84
81
85
### Uses pre-shared secret file instead of OIDC auth
@@ -84,14 +88,14 @@ pgvpn -s wss://open.privpkg.in/pg -4 100.64.0.1/24 --proxy-listen 127.0.0.1:4090
84
88
85
89
``` sh
86
90
$ export PG_SECRET_KEY=5172554832d76672d1959a5ac63c5ab9
87
- $ export PG_SERVER=wss://open.privpkg .in/pg
91
+ $ export PG_SERVER=wss://openpg .in/pg
88
92
$ pgcli admin secret --network " <email>" --duration 24h > psns.json
89
93
```
90
94
91
95
** then**
92
96
93
97
``` sh
94
- sudo pgcli vpn -s wss://open.privpkg .in/pg -4 100.64.0.1/24 -f psns.json
98
+ sudo pgcli vpn -s wss://openpg .in/pg -4 100.64.0.1/24 -f psns.json
95
99
```
96
100
97
101
## License
@@ -104,3 +108,8 @@ Contributions welcome! Have an improvement? Submit a pull request.
104
108
105
109
> [ !NOTE]
106
110
> I also maintain a closed-source version, and contributions to the open-source project may be included in the closed-source version.
111
+
112
+ ## Contact
113
+
114
+ - Telegram Group: https://t.me/+-S5L6ZCBxlxkMTRl
115
+ - QQ Group: 1039776116
0 commit comments