Skip to content

Commit

Permalink
Add setcap
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
  • Loading branch information
alexellis committed Feb 9, 2024
1 parent f3156a4 commit 8edd074
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions blog/_posts/2024-02-09-the-homelab-tunnel-you-need.md
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,12 @@ inlets-pro sshmux \

You could also create a simple `systemd` unit file to run the `sshmux` and keep it running, monitored, and restarted if you reboot or it crashes for some reason.

When binding to port 443, you may need to run as sudo, or allow the unprivileged user to bind to a low port with `setcap`.

```bash
sudo setcap 'cap_net_bind_service=+ep' /usr/local/bin/inlets-pro
```

## Connect the tunnel client to expose the lab

This is the final part, just run the `inlets-pro tcp client` and make the upstream `127.0.0.1` exposing port (443) which is where the sshmux is running.
Expand Down

0 comments on commit 8edd074

Please sign in to comment.