profile
viewpoint

wardn/nats-streaming-server 0

NATS Streaming System Server

wardn/tailscale 0

Private WireGuard networks made easy

startedappleboy/gorush

started time in 4 days

startedtxn2/txeh

started time in 5 days

startedtxthinking/encrypt

started time in 5 days

startedsamber/sync-ssh-keys

started time in 5 days

startedtj/go-naturaldate

started time in 5 days

startedNe0nd0g/go-shellcode

started time in 5 days

startedguumaster/hostctl

started time in 5 days

startedkaepora/resilience

started time in 5 days

startedcoreos/go-oidc

started time in 5 days

startedtantivy-search/tantivy

started time in 5 days

startedpion/ion

started time in 5 days

startedlibgeos/geos

started time in 5 days

startedxacrimon/dashmap

started time in 5 days

startedDocNow/awesome-archive-tools

started time in 5 days

startedwybiral/tube

started time in 5 days

starteddtgorski/typex

started time in 5 days

startedremeh/diago

started time in 5 days

startedaxboe/fio

started time in 7 days

startedtxthinking/socks5

started time in 8 days

startedmichenriksen/gitrob

started time in 8 days

startedmeshtastic/Meshtastic-esp32

started time in 21 days

startedakhenakh/insideout

started time in 21 days

startednyxgeek/ntlmscan

started time in 21 days

startedglobusdigital/deep-copy

started time in 22 days

startedUltimaker/CuraEngine

started time in 22 days

startedjimsalterjrs/sanoid

started time in 22 days

startedjohanbrandhorst/certify

started time in 22 days

startedhashicorp/packer

started time in 22 days

startedSudeepDasari/visual_foresight

started time in 22 days

startedNetflix-Skunkworks/rewrite

started time in 23 days

startedaforensics/HiddenVM

started time in a month

startedvoid-rs/void

started time in a month

startedcorellium/projectsandcastle

started time in a month

startedboypt/simple-torrent

started time in a month

startedDimitarPetrov/stegify

started time in a month

startedmonitoror/monitoror

started time in a month

startedgocarina/gocsv

started time in a month

startedcsimplestring/go-csv

started time in a month

startedmickael-kerjean/filestash

started time in a month

startedjordan-wright/email

started time in a month

startedmurooka/go-diff-image

started time in a month

startedapex/gateway

started time in a month

startedaswinkarthik/csvdiff

started time in a month

startedliamg/tfsec

started time in a month

startedicza/bitio

started time in a month

startedcskr/gorepos

started time in a month

startedredecentralize/alternative-internet

started time in a month

startedchrisruffalo/gudgeon

started time in a month

startedpaulirish/github-email

started time in a month

startedtidwall/qtree

started time in a month

startedapoorvam/goterminal

started time in a month

startedRobertLucian/cortex-license-plate-reader-client

started time in a month

startedcaffix/amass

started time in a month

startedNetflix/dispatch-docker

started time in a month

startedNetflix/dispatch

started time in a month

startedvitwit/go-faas

started time in a month

startedopenzfs/zfs

started time in a month

startedbytecodealliance/cranelift

started time in a month

startedcjhutto/vaderSentiment

started time in a month

startedAdamNiederer/faster

started time in a month

startedctz/rustls-native-certs

started time in a month

startedgoogle/codesearch

started time in a month

startedtomnomnom/assetfinder

started time in a month

startedhakluke/hakrevdns

started time in a month

startedhakluke/hakrawler

started time in a month

startedemersion/go-ical

started time in a month

startedcoreos/go-systemd

started time in a month

startedThorPham/License-plate-detection

started time in a month

startedProxymanApp/Proxyman

started time in a month

startedb-r-u/osmpbf

started time in a month

create barnchwardn/tailscale

branch : freebsd_resolv

created branch time in a month

PR opened tailscale/tailscale

wgengine: resolv.conf spelling corrections

Signed-off-by: wardn wardn@users.noreply.github.com

+3 -3

0 comment

1 changed file

pr created time in a month

create barnchwardn/tailscale

branch : resolv

created branch time in a month

startedgoogle/clusterfuzz

started time in a month

startedjcchavezs/httpmole

started time in a month

startedBishopFox/dufflebag

started time in a month

startedScaleFT/sshkeys

started time in a month

startedfelixge/httpsnoop

started time in a month

startedsivel/speedtest-cli

started time in a month

Pull request review commenttailscale/tailscale

wgengine: properly clean up freebsd routes and interfaces on close

 func (e *userspaceEngine) RequestStatus() { func (e *userspaceEngine) Close() { 	e.Reconfig(&wgcfg.Config{}, nil) 	e.linkMon.Close()-	e.router.Close()

Sorry that must've been the fallout from some testing/refactoring I was doing. The current ordering of router.Close -> device.Close should allow openbsd to down the interface before removing it, but I was seeing some double close issues related to setting the routes to an empty CIDR, which caused an error, and the error would force a secondary close. There might still be an open bug on the openbsd side when this goes through, but I can't verify it at the moment.

wardn

comment created time in a month

push eventwardn/tailscale

Brad Fitzpatrick

commit sha f266e2d1eb419960fab0f73c7cc39a35b9dfb30f

version: add CmdName func for future use by logpolicy Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com> Change-Id: I02a7c907844f71242ef06ed097f2a92ece7ae091

view details

Avery Pennarun

commit sha bec17d05cb84240c162a57c396ea10d3316cd9cf

.gitattributes: add a smudge filter for go.mod. This is used when we want to do development against a local wireguard-go repository checkout.

view details

David Anderson

commit sha 15b4d26d92a90cac2743bff0cfceb6e661ba9969

logpolicy: automatically figure out paths and filenames. The autoselection should pick sensible paths for all of: - Windows (LocalAppData) - Mac (Library/Caches) - Unix user (XDG_CACHE_DIR) - Linux systemd service (CACHE_DIRECTORY) As a last resort, if cache dir lookup fails, plops sufficiently uniquely named files into the current working directory. Signed-off-by: David Anderson <dave@natulte.net>

view details

David Anderson

commit sha 77907a76a376c71e03d0cb86ad97ad928b187491

version: tag redo-generated version as +build redo. staticcheck defaults to running with no tags set, which only works if redo hasn't run and generated ver.go. If it has, we end up with a redeclaration conflict. Signed-off-by: David Anderson <dave@natulte.net>

view details

Avery Pennarun

commit sha 57bbafde8422ebcb4086bccb70e938feb1f238f1

cmd/relaynode: drop local --acl-file in favour of central packet filter. relaynode itself is not long for this world, deprecated in favour of tailscale/tailscaled. But now that the control server supports central distribution of packet filters, let's actually take advantage of it in a final, backward compatible release of relaynode.

view details

David Anderson

commit sha 5868dd1a7758a4047792dcb4196f3872aa1941fe

Lint: remove unused function. Signed-off-by: David Anderson <dave@natulte.net>

view details

Martin Baillie

commit sha a9bff99a9b89411edda45cdf9ec8baca0213ccb1

wgengine: add OpenBSD router DNS update handling Also removes validated TODO comments. Signed-off-by: Martin Baillie <martin@baillie.email>

view details

Brad Fitzpatrick

commit sha d298d5b1f85df98036c4352f9c1093620c132c66

wgengine/magicsock: support multiple derp servers, and not just for handshakes Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>

view details

wardn

commit sha 6bb88c765787f68ec269038082b841c759589f3b

wgengine: properly clean up freebsd routes and interfaces on close Signed-off-by: wardn <wardn@users.noreply.github.com>

view details

push time in a month

startedfd0/simpleproxy

started time in a month

startedasim/enterprise

started time in a month

startedhjacobs/kubernetes-failure-stories

started time in a month

startedglassechidna/trackiam

started time in a month

Pull request review commenttailscale/tailscale

wgengine: properly clean up freebsd routes and interfaces on close

 func (r *freebsdRouter) SetRoutes(rs RouteSettings) error { }  func (r *freebsdRouter) Close() error {-	out, err := cmd("ifconfig", r.tunname, "down").CombinedOutput()-	if err != nil {-		r.logf("running ifconfig failed: %v\n%s", err, out)-	}--	if err := r.restoreResolvConf(); err != nil {-		r.logf("failed to restore system resolv.conf: %v", err)-	}-+	r.device.Close()

Looks like fakeTun just needed the evchan to be closed. Might want to check it out on your end but it should be good to go.

wardn

comment created time in a month

push eventwardn/tailscale

wardn

commit sha 102eca12308784a8b08214008c7f5df9b1532331

wgengine: properly clean up freebsd routes and interfaces on close Signed-off-by: wardn <wardn@users.noreply.github.com>

view details

push time in a month

Pull request review commenttailscale/tailscale

wgengine: properly clean up freebsd routes and interfaces on close

 func (r *freebsdRouter) SetRoutes(rs RouteSettings) error { }  func (r *freebsdRouter) Close() error {-	out, err := cmd("ifconfig", r.tunname, "down").CombinedOutput()-	if err != nil {-		r.logf("running ifconfig failed: %v\n%s", err, out)-	}--	if err := r.restoreResolvConf(); err != nil {-		r.logf("failed to restore system resolv.conf: %v", err)-	}-+	r.device.Close()

Sure thing... looks like some tests are failing so I'll play around with the implementation a bit

wardn

comment created time in a month

push eventwardn/tailscale

wardn

commit sha 89cdca700e2f6d3383d4ee62e82b40190016b399

wgengine: properly clean up freebsd routes and interfaces on close Signed-off-by: wardn <wardn@users.noreply.github.com>

view details

push time in a month

push eventwardn/tailscale

wardn

commit sha db2e63def59618967d75c1d2520f18e469b5524e

wgengine: properly clean up freebsd routes and interfaces on close Signed-off-by: wardn <wardn@users.noreply.github.com>

view details

push time in a month

PR opened tailscale/tailscale

wgengine: properly clean up freebsd routes and interfaces on close

The routes and interfaces will get cleaned up on close, so there's no need to try updating interfaces and routes with empty addresses. device.Close() will properly close and clean up the device.

this resolves #72

+8 -10

0 comment

1 changed file

pr created time in a month

create barnchwardn/tailscale

branch : freebsd_close

created branch time in a month

issue openedtailscale/tailscale

freebsd: "interface wg0 already exists"

Is your feature request related to a problem? Please describe.

NewUserspaceEngine in wgengine/userspace.go issues a call to CreateTUN, which creates the wg0 interface on first run, but results in an "interface wg0 already exists" on subsequent runs.

Describe the solution you'd like

Mostly just looking for some context on whether this scenario exists on other platforms and how you'd like it to be handled. Perhaps a way to handle CreateTUN in which if it already exists, it gets reused.

Describe alternatives you've considered

Looking at the wireguard-go implementation, it looks like they're setting an environment variable after creating the tun, and referencing the file descriptor in the environment variable on subsequent runs. I can issue an "ifconfig wg0 destroy" to clean up the interface on close but that seems a little brute-forcish, and handling it higher up will likely impact all the platforms. I've checked the linux/darwin/windows implementations for an example of how this is handled but it's not immediately apparent from the code.

Additional context

logtail... Starting userspace wireguard engine. external packet routing via --tun=wg0 enabled CreateTUN: interface wg0 already exists Error starting wireguard engine: interface wg0 already exists

created time in a month

issue commenttailscale/tailscale

`relaynode` failing to start on FreeBSD (FreeNAS)

@akalin the latest build has some fixes in it regarding the interface/route setup, let me know if that helps or if you're still seeing issues

akalin

comment created time in a month

delete branch wardn/tailscale

delete branch : freebsd

delete time in a month

push eventwardn/tailscale

wardn

commit sha 8616ba89fffc8faa183990b3cea28b3175a00e48

wgengine: create freebsd-specific implementation Signed-off-by: wardn <wardn@users.noreply.github.com>

view details

push time in a month

push eventwardn/tailscale

wardn

commit sha 7bbbc39b7d656ecb3006ce24f77d40153338b8cb

wgengine: create freebsd-specific implementation Signed-off-by: wardn <wardn@users.noreply.github.com>

view details

push time in a month

PR opened tailscale/tailscale

wgengine: create freebsd-specific implementation

#63 was failing due to a destination address not being set on the interface address add. There were also a few other tweaks made to the interface/router logic to get a more sensible setup and map closer to what the linux build is doing. I split the implementation into its own freebsd build target so I wouldn't break anything on the openbsd side.

Signed-off-by: wardn wardn@users.noreply.github.com

+165 -8

0 comment

2 changed files

pr created time in a month

create barnchwardn/tailscale

branch : freebsd

created branch time in a month

delete branch wardn/tailscale

delete branch : node_equal

delete time in a month

more