From e6b6fbb9c48093fc460dd90e88a797f79c6c6ee6 Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 17 Nov 2026 05:13:47 +0000 Subject: host: HTTPS rules as https:// URIs Like tcp:// and udp:// rules, HTTPS rules are now URIs: https://DOMAIN (with subdomains, passed through) and https://DOMAIN/PATH-PREFIX (decrypted to check the path), instead of DOMAIN and DOMAIN/PATH-PREFIX. The old forms are refused by fc-egress and ignored by egress.lua; to convert existing lists: sed -i -E '/^[a-z]+:\/\//!s#^#https://#' /var/lib/fc-egress/*/* --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 04fc02f..c37b1fb 100644 --- a/README.md +++ b/README.md @@ -91,13 +91,13 @@ Each user has any number of named whitelists, in ```sh fc-egress list -fc-egress allow cache.nixos.org # the domain and its subdomains -fc-egress allow github.com/NixOS/ # only paths starting with /NixOS/ +fc-egress allow https://cache.nixos.org # the domain and its subdomains +fc-egress allow https://github.com/NixOS/ # only paths starting with /NixOS/ fc-egress allow tcp://192.0.2.7:22 # plain TCP to that address and port fc-egress allow tcp://git.example.org:22 # or name (resolved by the host) fc-egress allow udp://192.0.2.0/24:5000-5100 -fc-egress deny github.com/NixOS/ -fc-egress -l work allow example.com # the list "work" +fc-egress deny https://github.com/NixOS/ +fc-egress -l work allow https://example.com # the list "work" fc-egress lists fc-egress log -f ``` @@ -107,11 +107,11 @@ VMs), and uses one list: the one given with `--egress`, else the one named like the VM, else (no name) `default`: ```sh -fc-egress -l box allow cache.nixos.org +fc-egress -l box allow https://cache.nixos.org ./result/bin/run-firecracker-vm --name box # list box ./result/bin/run-firecracker-vm --name box2 --egress box # list box, too fc-egress vms # running VMs: tap (as in the log), name, list -fc-egress -v box allow example.org # the list box uses +fc-egress -v box allow https://example.org # the list box uses fc-egress use box default # switch box to another list ``` -- cgit v1.3.1