Compare commits
27 Commits
v0.10.0
...
0b1d9e9da3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0b1d9e9da3 | ||
|
|
753f23cc03 | ||
|
|
994db90ecc | ||
|
|
3e7d34a92a | ||
|
|
4d2aa5c8c7 | ||
|
|
6856727985 | ||
|
|
991fcffa68 | ||
|
|
2b4cbae49c | ||
|
|
0902341322 | ||
|
|
ab2837817d | ||
|
|
82a6d47bc9 | ||
|
|
cd2ec23ccb | ||
|
|
f89f5d5083 | ||
|
|
db78964033 | ||
|
|
bb28b8f340 | ||
|
|
a205f3acef | ||
|
|
8bf30b345b | ||
|
|
b0ff07aad6 | ||
|
|
96e7916721 | ||
|
|
3877ec5f35 | ||
|
|
747d73890f | ||
|
|
e9dffee2de | ||
|
|
b8344a20b9 | ||
|
|
cad200b9cc | ||
|
|
199f774ed3 | ||
|
|
b972784d90 | ||
|
|
8b2c9709fc |
12
README.md
12
README.md
@@ -1,5 +1,11 @@
|
||||
# vppn: Virtual Potentially Private Network
|
||||
|
||||
## TO DO
|
||||
|
||||
* peer - write status to file instead of using sockets
|
||||
* peer - improve relay selection
|
||||
* Double buffering in IFReader and ConnReader ?
|
||||
|
||||
## Hub Server Configuration
|
||||
|
||||
```
|
||||
@@ -53,17 +59,15 @@ Sign-in and configure.
|
||||
|
||||
Install the binary somewhere, for example `~/bin/vppn`.
|
||||
|
||||
Add the API key for your network name in `~/.vppn/<netname>/apikey`.
|
||||
|
||||
Create systemd file in `/etc/systemd/system/vppn.service`.
|
||||
|
||||
```
|
||||
[Service]
|
||||
AmbientCapabilities=AP_NET_ADMIN CAP_DAC_OVERRIDE CAP_CHOWN
|
||||
AmbientCapabilities=CAP_NET_BIND_SERVICE CAP_NET_ADMIN
|
||||
Type=simple
|
||||
User=user
|
||||
WorkingDirectory=/home/user/
|
||||
ExecStart=/home/user/bin/vppn -name my_net_name -hub https://my.hub
|
||||
ExecStart=/home/user/vppn run my_net_name https://my.hub my_api_key
|
||||
Restart=always
|
||||
RestartSec=8
|
||||
TimeoutStopSec=24
|
||||
|
||||
@@ -57,12 +57,7 @@ func (a *App) devSetRelay(p *Peer, endpoint netip.AddrPort) {
|
||||
}
|
||||
|
||||
func (a *App) devPromote(p *Peer) {
|
||||
ep := p.WGEndpoint()
|
||||
if ep.IsValid() {
|
||||
log.Printf("PROMOTED: %s - %s @ %s", p.Name, p.VPNIP.String(), p.WGEndpoint().String())
|
||||
} else {
|
||||
log.Printf("PROMOTED: %s - %s (no IP)", p.Name, p.VPNIP.String())
|
||||
}
|
||||
log.Printf("PROMOTED: %s - %s @ %s", p.Name, p.VPNIP.String(), p.WGEndpoint().String())
|
||||
devRetry(p.VPNIP, "Promote", func() error { return a.dev.Promote(p.PubKey(), p.VPNIP) })
|
||||
p.State = StateDirect
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user