Firezone

firezone.dev
Firezone

Open-source self-hosted VPN and firewall built on WireGuard®.

Open Source

Firezone Source Code

Author

firezone

Description

Blazing-fast remote access

#cloud#devsecops#elixir#elixir-lang#liveview#network#network-security#networking#phoenix#rust-lang#security#virtual-network#vpn#vpn-server#wireguard#wireguard-vpn

Homepage

https://www.firezone.dev

Repository

  • LicenseApache-2.0
  • Created22 Apr 20
  • Primary languageElixir
  • Size451,304 KB
  • Stars9,181
  • Forks466
  • Watchers9,181

Language Usage

Language Usage

Project Health

Recent Commits

  • Jamil(11 Nov 26)

    chore(portal): drop client_tokens (#16398) Last of the client token deploys. Merge only after #16397 runs on every node. Drops the column that linked device_tokens to client_tokens, then the client_tokens table. Every client token lives in device_tokens. Related: #15865, #16397

  • Jamil(11 Nov 26)

    chore(portal): stop using client_tokens (#16397) Sixth of the client token deploys. Merge only after #16396 runs on every node. No code reads or writes client_tokens any more. Nodes on the previous version still delete client_tokens rows on revoke and still write the column that links device_tokens to client_tokens, so the table and the column stay until the next deploy. Related: #15865, #16396

  • Jamil(11 Nov 26)

    chore(portal): validate the client token foreign keys (#16396) Fifth of the client token deploys. Merge only after #16395 runs on every node. Validates the two foreign keys that #16395 pointed at device_tokens. Validation reads the tables but does not block writes. Related: #15865, #16395

  • Jamil(11 Nov 26)

    feat(portal): write client tokens only to device_tokens (#16395) Fourth of the client token deploys. Merge only after #16394 runs on every node. New client tokens are written only to device_tokens. Every new token, client or Gateway, is signed with the "device" salt, which every node has accepted since #16392. policy_authorizations and devices now point their token keys at device_tokens. Each key is added NOT VALID in its own migration with a short lock timeout, and is validated in the next deploy. Replication no longer publishes client_tokens. The device_tokens change hook sends the live updates that the client_tokens hook sent. Related: #15865, #16394

  • Jamil(11 Nov 26)

    fix(portal): log TLS on the clear HTTP port at info (#16412) Bandit logs a warning when a client sends a TLS handshake to a plain HTTP port. This is client noise, such as scanners or a misconfigured proxy. Sentry used to skip all Bandit logs. Since #15990, Sentry captures them, so each of these warnings became a Sentry event. This lowers that one warning to info, the same way we already handle other expected client errors. Other Bandit warnings stay at warning. Related: #15990

  • Jamil(11 Nov 26)

    fix(portal): simplify the disable actor confirmation copy (#16411) The confirmation shown before disabling an actor was hard to read. It now says plainly that all of the actor's Clients disconnect right away, and that its sessions and tokens are only paused, so they work again if the actor is re-enabled.

  • Jamil(11 Nov 26)

    feat(portal): read client tokens from device_tokens (#16394) Third of the client token deploys. Merge only after #16393 runs on every node. Client token checks, the REST endpoints, the admin pages and the session flush now read client tokens from device_tokens. The client socket accepts only tokens with no Site and no Gateway device. The Gateway socket accepts only tokens with a Site or a Gateway device. A later deploy signs every new token with one salt, so the salt can no longer keep the two kinds apart. Revokes delete from both tables, so nodes on the previous version, which still read client_tokens, also see the revoke during the rollout. An actor page now deletes only the tokens of its own actor. Disabling an account or an actor no longer deletes its client tokens. It already can't connect while disabled, and its Clients and Gateways are still disconnected at once, so its Clients reconnect without a new sign-in when it is enabled again. The disable confirmation says this, and tells admins to revoke the tokens first to remove them. Related: #15865, #16393

  • Jamil(11 Nov 26)

    feat(portal): add the account region transfer tool (#16023) Admins can ask for a move between the US and EU cells. An operator then moves the account by hand in a maintenance window, following the runbook in firezone/infra#990. This adds the tool for the database part. `Portal.Ops.RegionTransfer.export/2` disables the account, emails its admins that the move is in progress, and uploads every row the account owns to a blob container in the other cell, one PostgreSQL COPY file per table plus a manifest with the column lists, row counts, checksums, slugs, and schema version. All tables come from one snapshot. `import/2` downloads the export in the other cell, loads it in one transaction and checks the checksums and row counts. The files are on the portal VM only while each call runs, so a deploy can't lose them and they never pass through an operator's laptop. `enable/2` turns the account back on and emails the admins the new sign-in URL with the steps for Gateways and API tokens. Each step asks for confirmation on the console, or takes `confirm: false` when a script runs it. A rollback in the source uses `enable(id, notify: false)`. `export` and `enable` refuse an account that is disabled for another reason. Tokens do not move, because each cell signs them with its own keys. Sessions, pending sign-ins, OAuth state bound to the cell's own clients, and the log tables do not move either. Columns that point at a row that stays behind are exported as NULL. Log sink cursors are reset, and the destination seeds new ones on its first run. Outbound email records move with the account. The suppression list is shared by the whole cell, so the suppressed addresses of the account's actors and past recipients are copied to the destination. The logs stay in the source cell until the account is deleted there, which cascades to them. `Portal.Safe` gains `sql_stream/3` for COPY, since Ecto streams are the only way to drive it. The two containers are set with `REGION_TRANSFER_OUTBOX_URL` (the other cell's container, which this cell writes) and `REGION_TRANSFER_INBOX_URL` (this cell's container, which it reads). firezone/infra#1100 creates them. Related: #8340 firezone/infra#990 firezone/infra#1100

  • Jamil(11 Nov 26)

    fix(portal): ignore panel events after the panel closes (#16409) Closing a panel clears its state on the server right away. But the browser can still send an event from that panel a moment later, like a focus or click that was already on its way. The handler then read the cleared state and crashed the page. Some handlers wrote to the database first and then crashed, so for example a rotated gateway token was never shown. Each LiveView now lists the events that need an open panel, form, or selected record. A shared hook drops those events when that state is gone. A few settings handlers that look up a row by id now do nothing if the row is already deleted. This started with 7a2733474a (#12900), which began clearing the panel state on close. #16003 fixed two of these one handler at a time. This PR covers the rest. Fixes PORTAL-1GV Related: #12900, #16003

  • Thomas Eizinger(11 Nov 26)

    refactor(connlib): extract relay-client-proto from snownet (#16405) The TURN client (`Allocation`, its backoff and the channel-data codec) is one of the most sensitive state machine in connlib. Moving it into its own crate next to `relay-server-proto` allows driving the two against each other in a dedicated simulation, without the rest of `snownet` around it. This is a move without a change in behaviour. The crate hands out its own `Transmit` because an allocation only ever decides on a destination and a payload; `snownet` fills in the rest. `Allocations` stays in `snownet`. The tests of `snownet` can no longer rely on the `cfg(test)` shortcuts of the allocation: they now answer the BINDING request to set an RTT and sign the response that rejects an ALLOCATE request. Related: #16271 Co-authored-by: Claude <[email protected]>

  • Jamil(11 Nov 26)

    fix(portal): require positive refill rates in account limits (#16407) The rate limiter divides by the refill rate. If an account's Stripe metadata set a refill rate to 0, every API or flow-log request for that account crashed with a 500 instead of a 429. Now the account limits reject a refill rate of 0 or less. A capacity of 0 is still allowed, because it only denies requests and does not crash. `api_refill_rate` and `api_capacity` had no check at all, so they get one too. Related: #16270

  • Jamil(11 Nov 26)

    chore(portal): copy existing client tokens to device_tokens (#16393) Second of the client token deploys. Merge only after #16392 runs on every node. Copies each client token that has no copy in device_tokens yet: the tokens from before #16392, and the tokens that nodes still on the older version wrote while #16392 rolled out. Revoked tokens need no clean-up, because each copy is deleted with its client token. Related: #15865, #16392

  • Thomas Eizinger(11 Nov 26)

    fix(connlib): ignore TURN responses for a different method (#16406) A response is matched to a pending request by its transaction ID. If its method differed from the one of the request, e.g. a `BINDING` response with the transaction ID of a pending `ALLOCATE`, we processed it as the answer and dropped the request. The actual response was then ignored and the allocation ended up neither established nor freed until the portal next sent a relay update. We now ignore such a response and keep waiting for the one that matches. Co-authored-by: Claude <[email protected]>

  • Jamil(11 Nov 26)

    ci: sign deployment manifests for relays only (#16408) Staging and production gateways now install from our APT repo, which already signs its packages. So CI no longer needs to upload gateway binaries to blob storage or sign deployment manifests for them. Relays still deploy per commit from blob storage, so they keep both. Merge this after firezone/infra#1095. Until then, infra still deploys gateways from these blobs. Related: #16381 Related: firezone/infra#1095

  • Jamil(11 Nov 26)

    fix(portal): limit flow-log rows per device and account (#16270) The flow-log ingest endpoint only limited how often one IP address could send a request. A client could write as many fake rows as it wanted by switching IP addresses or sending big batches. Now every request also pays one token per row it sends. It pays from two buckets: one for the device that reports, and one for the account. If either bucket is empty, the request gets a 429 with `Retry-After`, and no rows are written. The uploaders already wait and retry on a 429, so queued uploads catch up later. - **Device bucket:** a Client that reports its own flows gets 100 rows per second, with room for a burst of 100,000 rows after it was offline. A Gateway reports a row for every client it serves, so a responder gets its own bucket of 1,000 rows per second and a burst of 1,000,000 rows. - **Account bucket:** grows with the account's device allowance, the same sizing as relay allocations. It gives 50 rows per second and a burst of 50,000 rows per allowed device. That is half of one Client's limit, so half of the allowed devices must upload at full speed before the others are blocked. Accounts with an unlimited allowance only have the device bucket. Every value can be raised for one account with the new `flow_log_*` account limits, which come from Stripe product or subscription metadata like the other limits, so a false positive does not need a deploy. Each refused upload adds to the `portal.flow_logs.uploads_denied` counter, tagged with the bucket and the reporter role. A new IP address or a new token does not reset either bucket. The counters live in memory, so they reset on deploy. That is fine for an abuse limit. The unused `ingestion_refill_rate` and `ingestion_capacity` account limits are removed. Fixes https://github.com/firezone/firezone/security/advisories/GHSA-g29p-4m45-wg6c

  • Thomas Eizinger(11 Nov 26)

    refactor(relay): rename relay-proto to relay-server-proto (#16404) The `relay-proto` crate holds the sans-IO core of the relay, i.e. the server side of the TURN protocol. Rename it to `relay-server-proto` so the name says which side it is and leaves room for a client-side counterpart. The `relay-proto` fuzz target keeps its name for now. `coverage.sh` uses the target name as the cargo package to report on, so it now maps that target to the renamed crate. --------- Co-authored-by: Claude <[email protected]>

  • Thomas Eizinger(11 Nov 26)

    chore(rust): rename tunnel-proto fuzz target to tunnel (#16403) The `tunnel-proto` fuzz target builds its system under test through `Tunnel::fake`, so it drives the `tunnel` crate and not only the sans-IO `tunnel-proto` crate. Name the target after what it exercises. `coverage.sh` uses the target name as the cargo package whose dependencies are reported, so the coverage report for this target now also covers the `tunnel` crate and the workspace crates only it depends on. Co-authored-by: Claude <[email protected]>

  • Jamil(10 Nov 26)

    feat(portal): copy new client tokens to device_tokens (#16392) First of the client token deploys. Client tokens move into device_tokens the same way Gateway tokens did. Nothing reads the copies yet. Each new client token is copied in the same transaction, with the same id and secret. The copy has a foreign key to its client token that cascades, so every delete removes the copy, also deletes from nodes that still run the previous version. Deleting an actor now deletes its device tokens, as it already does for client tokens. The legacy Gateway actor still cannot be deleted through the app. Every node now accepts tokens signed with the new "device" salt on the client and Gateway sockets. No node signs with it until a later deploy, so a token signed on a new node always works on an old one. Related: #15865

  • Jamil(10 Nov 26)

    ci: sign relay and gateway deployment manifests (#16381) Relay and gateway VMs currently trust a checksum from the same writable container as the binary. Publish a Sigstore-signed manifest binding each binary digest to its component, source SHA, and architecture, so storage write access alone cannot forge a deployable artifact. Only release builds from `main` sign manifests. Cosign uses GitHub OIDC, and the manifest and verification bundle are uploaded beside the existing binary and checksum. No new secrets are needed. Companion infra PR: https://github.com/firezone/infra/pull/1089 (addresses firezone/infra#914). Merge this first, then rebuild the currently deployed SHAs from the main workflow before enabling signature enforcement in infra. The infra PR pins the GitHub issuer and `_data-plane.yml@refs/heads/main` identity and isolates deployment pointers by environment. --------- Co-authored-by: Claude <[email protected]>

  • Thomas Eizinger(10 Nov 26)

    test(connlib): wait for the TCP DNS idle timeout in real time (#16402) `idle_connection_times_out` ran with tokio's paused clock but used real sockets. If the runtime went idle before the OS reported the incoming connection, tokio auto-advanced straight to the client's deadline and the server's idle timer never got a chance to fire, which made the test flaky on slow macOS runners. The test now waits for the idle timeout in real time. Related: #16365 Co-authored-by: Claude <[email protected]>

  • Thomas Eizinger(10 Nov 26)

    test: replace http-test-server with an inline Python server (#16401) The integration tests download large files from a tiny HTTP server that only serves `/bytes?num=N`. It was a Rust crate with its own Docker image, built, scanned and published on every CI and CD run alongside the real data-plane components. It is now a few lines of Python inlined in the compose file, run from a stock `python` image. The URL contract is unchanged, so the test scripts stay as they are, and the crate, its image and its CI plumbing go away. --------- Co-authored-by: Claude <[email protected]>

  • Thomas Eizinger(10 Nov 26)

    refactor(connlib): drop "path agent" from logs and comments (#16400) The frostlink crate's agent is no longer called `PathAgent`, so the log messages and comments that still referred to the "path agent" now say "frostlink agent" (or just "agent" where frostlink is already named). Related: #16239 Co-authored-by: Claude <[email protected]>

  • Thomas Eizinger(10 Nov 26)

    feat(connlib): prefer additional host candidates (#16367) Additional host candidates are addresses an admin explicitly configured, yet frostlink ranked them like the host candidates we gather ourselves. With two hosts on the same LAN that are also connected through a faster link, such as our Thunderbolt benchmark rig, the tunnel could end up on the LAN. frostlink now gives additional host candidates the highest local preference and carries it to the remote peer, so a pair of two additional candidates outranks any pair of gathered host candidates whenever their RTTs are a wash-out. Connections using the ICE agent are unchanged. --------- Co-authored-by: Claude <[email protected]>

  • Thomas Eizinger(10 Nov 26)

    feat(connlib): force UDP socket buffer sizes on Linux (#16368) To get large enough UDP socket buffers on Linux, the Gateway (and the headless Client behind a hidden flag) raised the system-wide `net.core.rmem_max` and `net.core.wmem_max` limits by writing to `/proc/sys`. That fails in Docker, where `/proc/sys` is mounted read-only, and under systemd's `ProtectKernelTunables`, leaving the sockets capped at the kernel default of a few hundred KiB. Where it did work, it permanently changed global host state. Instead, we now set the buffer sizes per socket on Linux with `SO_SNDBUFFORCE` and `SO_RCVBUFFORCE`, which bypass those limits given `CAP_NET_ADMIN`. All of our Linux deployments already have that capability for the TUN device. Without it (e.g. rootless containers), setting the buffer sizes falls back to the previous behaviour of plain `SO_SNDBUF` / `SO_RCVBUF`. Android apps never have the capability, so they don't try. With that, the manual increases of the kernel limits are removed everywhere. `FIREZONE_NO_INC_BUF` is still accepted by the Gateway so existing deployments keep working, but it no longer has any effect. --------- Co-authored-by: Claude <[email protected]>

  • Thomas Eizinger(10 Nov 26)

    feat(connlib): listen on a random port on clients (#16386) Every Client listening on 52625 means that Clients behind the same NAT compete for that port's mapping. A port-preserving NAT can only keep it for one of them and remaps the others, often per destination, which makes their server-reflexive candidates useless for hole-punching. Each Client binary now probes for a free UDP port when a session starts and passes it in through `SessionConfig`. The port is kept for the lifetime of the session, including across socket rebinds, so a reset on an unchanged network still reuses the NAT bindings and the 3-tuple that the relays know us by. Gateways keep listening on 52625 so that admins can forward the port. The listen port is now a parameter of the tunnel, with the Gateway and the Client each deciding on theirs. Related: #9593 Co-authored-by: Claude <[email protected]>

  • firezone-ci[bot](10 Nov 26)

    chore: publish gui-client 1.5.21 (#16390) Co-authored-by: firezone-ci[bot] <351257342+firezone-ci[bot]@users.noreply.github.com>

  • Thomas Eizinger(10 Nov 26)

    ci: let the version bump PR request the team's review (#16389) The version bump PR that `publish-release.yml` opens asks `firezone/engineering` to review it. Requesting a team's review needs the token to see the organization's teams, which the firezone-ci app token could not, so GitHub rejected the request with a 422 and the PR opened without reviewers. Co-authored-by: Claude <[email protected]>

  • firezone-ci[bot](10 Nov 26)

    chore: publish headless-client 1.5.16 (#16388) Co-authored-by: firezone-ci[bot] <351257342+firezone-ci[bot]@users.noreply.github.com>

  • firezone-ci[bot](10 Nov 26)

    chore: publish gateway 1.6.5 (#16387) Co-authored-by: firezone-ci[bot] <351257342+firezone-ci[bot]@users.noreply.github.com>

  • Thomas Eizinger(10 Nov 26)

    ci: let the version bump PR touch workflow files (#16382) The version bump that `publish-release.yml` opens after a release rewrites the version markers in `.github/workflows`. Since moving to the firezone-ci app, its token only had `contents` and `pull-requests`, and GitHub refuses commits that change workflow files without `workflows: write`, so the job failed with "Resource not accessible by integration" for every component. --------- Co-authored-by: Claude <[email protected]>

Firezone Website

Website

Zero Trust Access That Scales | Firezone

Replace your VPN with Firezone, an open-source zero trust access platform built on WireGuard®. Connect users to anything, anywhere. Try free today.

Redirects

Does not redirect

Security Checks

2 security checks failed (63 passed)

  • Domain Recently Created
  • Domain Very Recently Created

Server Details

  • IP Address66.33.60.67
  • LocationWalnut,California,United States of America,NA
  • ISPVercel Inc
  • ASNAS16509

Associated Countries

  • USUS
  • CACA
  • JPJP

Safety Score

Website marked as safe

100%

Trackers

No known trackers found

Blacklist Check

www.firezone.dev was found on 0 blacklists

  • AntiSocial Blacklist
  • Artists Against 419
  • Badbitcoin
  • Bambenek Consulting
  • CERT Polska
  • CoinBlockerLists
  • CRDF
  • CryptoScamDB
  • EtherAddressLookup
  • EtherScamDB
  • Fake Website Buster
  • MetaMask EthPhishing
  • NABP Not Recommended Sites
  • OpenPhish
  • PetScams
  • PhishFeed
  • PhishFort
  • Phishing.Database
  • PhishStats
  • PhishTank
  • Phishunt
  • RPiList Not Serious
  • Scam.Directory
  • SecureReload Phishing List
  • Spam404
  • StopGunScams
  • Suspicious Hosting IP
  • ThreatFox
  • ThreatLog
  • TweetFeed
  • URLhaus
  • ViriBack C2 Tracker

Website Preview

Website preview

Firezone Reviews

More Self-Hosted Network Security

About the Data: Firezone

Edit Firezone Data

You can edit Firezone's entry in this section of awesome-privacy.yml by submitting a PR to our GitHub repo.
Note that some of the information shown above has been aggregated from external sources, a list of these can be found data documentation.

Origin Data

Modify Data

API

You can access Firezone's data programmatically via our API. Simply make a GET request to:

https://api.awesome-privacy.xyz/v1/services/firezone

The REST API is free, no-auth and CORS-enabled. To learn more, view the API Docs or read the API Usage Guide.

Share Firezone

Help your friends compare Self-Hosted Network Security, and pick privacy-respecting software and services.
Share Firezone and Awesome Privacy with your network!