From d9dc7975dcb3f37cac740211cc64ef44ed9e7b29 Mon Sep 17 00:00:00 2001 From: EphemeralDev <115334775+EphemeralDev@users.noreply.github.com> Date: Mon, 27 Jan 2025 14:26:13 -0500 Subject: [PATCH] fix rootless binding port 80+ command --- Ubuntu.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Ubuntu.md b/Ubuntu.md index efa3f85..6ec5cac 100644 --- a/Ubuntu.md +++ b/Ubuntu.md @@ -76,11 +76,9 @@ systemctl enable --now podman > This is only necessary if you are setting up the reverse proxy (or any service > on ports <1024). -`sudoedit /etc/sysctl.conf` - ```bash -## Add the following line and save -net.ipv4.ip_unprivileged_port_start=80 +printf '%s\n' 'net.ipv4.ip_unprivileged_port_start=80' | sudo tee /etc/sysctl.d/99-unprivileged-port-binding.conf +sysctl -w 'net.ipv4.ip_unprivileged_port_start=80' ``` ### Option 2: Redirect using firewalls