Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#79471 - [rathole] systemd unit file doesn't work

Attached to Project: Arch Linux
Opened by Miika (miika) - Thursday, 24 August 2023, 23:52 GMT
Last edited by Toolybird (Toolybird) - Friday, 25 August 2023, 00:14 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description and steps to reproduce:

When I run rathole -c on server A, and rathole -s on server B with the below config, everything works. However, when I run rathole -c on server A, and systemctl start ratholes@default (if my config is default.toml for examp-e) on server B, the connection never completes and I get tons of errors in the syslog of server B that look like:

rathole[2714274]: 2023-08-24T23:43:03.162699Z ERROR connection{addr=XXXX:40288}:handle{service=serv}:run_tcp_connection_pool: rathole::server: Permission denied (os error 13). Retry in 1.005114565s

I found a fix, though:
set DynamicUser=no in the systemd unit

Additional info:
Version: 0.4.8-1
Rathole config:

[server]
bind_addr = "0.0.0.0:2333"
[server.services.serv]
token = "asdf"
bind_addr = "0.0.0.0:22"
[client]
remote_addr = "13.48.136.246:2333"
[client.services.serv]
token = "asdf"
local_addr = "127.0.0.1:22"
This task depends upon

Closed by  Toolybird (Toolybird)
Friday, 25 August 2023, 00:14 GMT
Reason for closing:  Upstream
Additional comments about closing:  See comments
Comment by Toolybird (Toolybird) - Friday, 25 August 2023, 00:14 GMT
The systemd service files come from upstream. Please report your issue upstream. In the meanwhile, you could maybe use a systemd drop-in override [1]

[1] https://wiki.archlinux.org/title/Systemd#Drop-in_files

Loading...