aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-17 05:13:47 +0000
committertv <tv@krebsco.de>2026-11-17 05:13:47 +0000
commite6b6fbb9c48093fc460dd90e88a797f79c6c6ee6 (patch)
treece72b7fbcb3a0ed90ff52c613090322551db6aed /README.md
parente80b1cfb826cf2926d0d87007b77cbd6639773b5 (diff)
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/*/*
Diffstat (limited to 'README.md')
-rw-r--r--README.md12
1 files changed, 6 insertions, 6 deletions
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
```