Commit graph

813 commits

Author SHA1 Message Date
Daniel Micay
448565de54 update description for rotate-session-ticket-keys.timer 2025-10-27 21:19:32 -04:00
Daniel Micay
c4af821eda always create /var/cache/nginx for web servers
This avoids needing to restart nginx for ReadWritePaths to kick in after
creating it.
2025-10-27 20:52:34 -04:00
Daniel Micay
fb9e4d6769 remove imagemagick package from mastodon.social
This was replaced by libvips.
2025-10-24 15:04:39 -04:00
Daniel Micay
048ccb3fba allow powerdns user to query pdns over loopback
This is being used by the pdns-trigger-health-checks script.
2025-10-23 14:11:56 -04:00
Daniel Micay
9c2183c794 stop blacklisting tls module
It no longer gets autoloaded by default due to Linux kernel changes.
2025-10-22 17:36:06 -04:00
Daniel Micay
178791ffd8 update pacreport.conf 2025-10-21 14:11:46 -04:00
Daniel Micay
d6823c9ae0 update python dependencies 2025-10-21 13:21:17 -04:00
Daniel Micay
92288293d9 gitignore: add /lock 2025-10-20 21:46:56 -04:00
Daniel Micay
f8a1d381e7 mdmonitor.service: use syslog reporting 2025-10-19 16:16:33 -04:00
Daniel Micay
e626d67dc1 add nftables deployment script 2025-10-19 15:35:13 -04:00
Daniel Micay
11c9421c63 rename deploy-initial to deploy-initial-vps 2025-10-19 14:58:36 -04:00
Daniel Micay
aaf63a7d87 add 3.releases.grapheneos.org package list 2025-10-19 12:35:01 -04:00
Daniel Micay
04d0489e57 add certbot and web deployment scripts 2025-10-19 12:30:53 -04:00
Daniel Micay
e84c84db6b disconnect: handle separate non-interactive sessions too 2025-10-11 18:04:48 -04:00
Daniel Micay
f2a4df1d0f add another IPv6 address for 0.releases.grapheneos.org
This will be used to send more traffic to it via DNS RRset load
balancing.
2025-10-11 15:31:09 -04:00
Daniel Micay
5ea8e202a1 0.releases.grapheneos.org IPv4 update
The main IPv4 address has changed and we're now using an additional IPv4
address to send more traffic to it via DNS RRset load balancing.
2025-10-11 15:30:35 -04:00
Daniel Micay
02b7e4e5c1 add 3.releases.grapheneos.org server 2025-10-09 09:06:31 -04:00
Daniel Micay
a52a12450d handle update server renaming for authorized_keys 2025-10-07 17:40:32 -04:00
Daniel Micay
e8a55eeede count: fix counting 9th gen Pixel updates
It wasn't including incremental updates and wasn't using a specific
build number.
2025-10-06 14:36:23 -04:00
Daniel Micay
4e1e1324a2 update python dependencies 2025-10-05 23:36:44 -04:00
Daniel Micay
48d939d39d adjust IPv6 subnet size for ReliableSite servers 2025-10-05 00:50:18 -04:00
Daniel Micay
e57096dfec disable TCP Fast Open on BuyVM for now 2025-09-30 16:56:21 -04:00
Daniel Micay
3691bd8e51 fetch-info: enable standard error detection setup 2025-09-25 15:50:14 -04:00
Daniel Micay
173822655c switch to xxd for converting random bytes to hex 2025-09-23 19:56:42 -04:00
Daniel Micay
d125eb96ca improve tls group configuration 2025-09-20 14:49:41 -04:00
Daniel Micay
47062b9c68 raise wmem_max/rmem_max for non-autotuned buffers
Unbound now requests 4M for the send buffer by default and we might as
well permit that for both the send and receive buffers. We set the max
auto-tuned send buffer size on a per-server basis but don't currently
have much use for tuning the maximum manually specified buffer size
across servers. It can be moved in the future if needed.
2025-09-18 13:56:46 -04:00
Daniel Micay
348cdf9d74 update systemd configuration 2025-09-18 11:17:05 -04:00
Daniel Micay
c6156ebed7 switch from shaped CAKE to FQ for BuyVM servers
These servers originally only had the 1Gbps base bandwidth and shaping
it with CAKE worked well to make the most of it during traffic spikes
for the web servers. It has little value for the nameservers since the
only potentially high throughput service is non-interactive SSH.

These servers now have 10Gbps burst available but are heavily limited by
their single virtual core and unable to use all of it in practice. CAKE
can only provide significant value when it's the bottleneck which isn't
the case when the workload is CPU limited. We don't want to keep around
the artificially low 1Gbps limit and it can't do much more.

Unlike OVH, the practical bottleneck is the CPU and FQ has the lowest
CPU usage in practice due to being very performance-oriented with a FIFO
fast path and offloading TCP pacing from the TCP stack to itself. On the
DNS servers, the fast path is always used in practice. Our OVH servers
have a much lower enforced bandwidth limit and the way they implement it
ruins fairness across flows. We definitely want to stick with CAKE for
our VPS instances on OVH but it doesn't make sense on BuyVM anymore.
2025-09-18 01:26:39 -04:00
Daniel Micay
b2c15916cc no need to override default qdisc since we set it 2025-09-17 19:23:26 -04:00
Daniel Micay
7d55588972 nftables: preserve connlimit sets across reloads 2025-09-17 19:23:22 -04:00
Daniel Micay
f3156e641d nftables: reorder network server UDP notrack 2025-09-16 18:19:33 -04:00
Daniel Micay
78bd96f4ae nftables: move listening ports to constants 2025-09-16 18:19:31 -04:00
Daniel Micay
d923bc7e24 use monotonic timer for session ticket key rotation
It makes more sense to rotate session ticket keys every 8 hours instead
of doing it at 3 specific times each day where the initial rotation will
happen earlier than necessary. It makes little difference due to keeping
the previous 3 session tickets valid but is cleaner.
2025-09-15 21:10:42 -04:00
Daniel Micay
5f1b0c886d nftables: replace magic numbers with constants 2025-09-15 21:10:42 -04:00
Daniel Micay
8bf64de00d add hosts arrays for ns1 and ns2 2025-09-15 21:10:42 -04:00
Daniel Micay
35ca9a2a19 allow server TCP Fast Open and rotate the keys
This needs to be configured by specific services to have any effect. For
now, we're only enabling it for the PowerDNS Authoritative Server and
dnsdist since it's recommended by RFC 9210 and actively used by various
recursive resolver servers when falling back to TCP. TCP Fast Open is
rarely used from end user devices due to it enabling tracking and having
issues with middleboxes. We aren't going to start using it anywhere in
GrapheneOS but may have more server-side uses for it. This functionality
is built into QUIC without the same downsides but QUIC support in the
software we use is not ready for us to enable it, especially the very
primitive support in nginx.

For most servers, a new random TCP Fast Open key is created on a daily
basis and the previous key continues to be accepted. For DNS servers,
the new key is generated via a keyed hash of the current date in order
to keep it consistent across servers providing an anycast IP without it
needing regular synchronization.
2025-09-15 21:10:39 -04:00
Daniel Micay
b2cb800512 re-enable generating fallback initramfs 2025-09-12 17:54:21 -04:00
Daniel Micay
46fe2fd36c add CAP_CHOWN to certbot-renew.service for dnsdist 2025-09-05 02:06:01 -04:00
Daniel Micay
defb596ac1 raise journal file size for relevant servers 2025-09-04 23:19:40 -04:00
Daniel Micay
9952c02e43 add ethtool to virtual servers too 2025-09-04 17:08:59 -04:00
Daniel Micay
ca22d4a0a3 enable adaptive-rx on ReliableSite update servers
This is fully supported by the Broadcom NIC used for both servers but
not enabled by default. It's already enabled by default for the Intel
NIC used by the Macarne update server.
2025-09-04 16:48:17 -04:00
Daniel Micay
ece7064674 raise NIC channels to number of threads
1.releases.grapheneos.org and 2.releases.grapheneos.org were ending up
with only 6 channels by default despite the hardware being capable of
far more. This raises it to match the 24 CPU threads.

0.releases.grapheneos.org is already using 32 channels by default which
matches the 32 CPU threads.
2025-09-04 01:00:22 -04:00
Daniel Micay
925b54eaf6 DSCP debugging replaced with counter on map 2025-09-04 00:53:20 -04:00
Daniel Micay
e9fda8e7a1 map packet priority 4 to the high priority fq band 2025-09-01 19:35:49 -04:00
Daniel Micay
97d650c7ed nftables: use DSCP to assign packets to fq bands 2025-09-01 19:35:49 -04:00
Daniel Micay
676763b8a5 nftables: split out update servers
This will be used for fq-specific configuration.
2025-09-01 19:35:49 -04:00
Daniel Micay
adf8269ac2 switch CAKE to diffserv4 now that DSCP marks are correct 2025-09-01 19:35:49 -04:00
Daniel Micay
41174c2a08 clean inbound DSCP
This avoids setting outbound DSCP for echo-reply, TCP RST for TCP
sockets in the Time-Wait state and potentially other cases. We don't
want it to be possible for inbound packets to determine our outbound
traffic classification even to a small extent.
2025-09-01 19:35:47 -04:00
Daniel Micay
28106192b1 reduce conntrack TCP established timeout to 1 hour
We have nothing depending on having even anywhere close to 1 hour of
idle time so we could reduce this significantly more.
2025-09-01 19:35:03 -04:00
Daniel Micay
e5ae9ca13b raise tcp_wmem[2] for update servers
Linux recently raised the default tcp_rmem[2] to 32MiB so it makes sense
to match it on the sending side to maximize bandwidth.
2025-09-01 19:35:03 -04:00