27 Commits

Author SHA1 Message Date
jdl
0b1d9e9da3 audit items 2026-06-12 15:02:35 +02:00
jdl
753f23cc03 audit items 2026-06-12 14:57:52 +02:00
jdl
994db90ecc Updated generated DB code 2026-06-12 14:50:19 +02:00
jdl
3e7d34a92a Removed peer editing, cleanup 2026-06-12 14:49:40 +02:00
jdl
4d2aa5c8c7 Cleanup / temp buffers for various things 2026-06-12 14:16:38 +02:00
jdl
6856727985 multicast cleanup 2026-06-12 14:08:41 +02:00
jdl
991fcffa68 Separate multicast package. 2026-06-12 13:37:05 +02:00
jdl
2b4cbae49c WIP 2026-06-11 18:47:49 +02:00
jdl
0902341322 Cleanup - WIP 2026-06-11 18:11:21 +02:00
jdl
ab2837817d WIP 2026-06-11 17:03:57 +02:00
jdl
82a6d47bc9 Audit changes. 2026-06-11 16:46:38 +02:00
jdl
cd2ec23ccb WIP 2026-06-10 20:13:11 +02:00
jdl
f89f5d5083 WIP 2026-06-10 19:17:55 +02:00
jdl
db78964033 WIP 2026-06-10 18:52:11 +02:00
jdl
bb28b8f340 WIP: DNS 2026-06-10 06:36:30 +02:00
jdl
a205f3acef Cleanup 2026-06-10 06:21:31 +02:00
jdl
8bf30b345b Some bug fixes, working better. 2026-06-09 20:36:30 +02:00
jdl
b0ff07aad6 Cleanup - maybe working... 2026-06-09 20:17:21 +02:00
jdl
96e7916721 WIP 2026-06-08 15:58:43 +02:00
jdl
3877ec5f35 WIP 2026-06-07 20:30:31 +02:00
jdl
747d73890f Bug fixes, removed old files. 2026-06-07 20:01:51 +02:00
jdl
e9dffee2de Cleanup - WIP 2026-06-07 19:42:04 +02:00
jdl
b8344a20b9 WIP 2026-06-07 18:12:44 +02:00
jdl
cad200b9cc WIP 2026-06-07 09:33:21 +02:00
jdl
199f774ed3 WIP 2026-06-06 18:46:46 +02:00
jdl
b972784d90 WIP 2026-06-05 19:43:27 +02:00
jdl
8b2c9709fc WIP 2026-06-04 16:00:21 +02:00
2 changed files with 9 additions and 10 deletions

View File

@@ -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

View File

@@ -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
}