mirror of
https://github.com/ben-grande/qusal.git
synced 2025-07-20 13:18:50 -04:00
feat: use native TCP socket with Qrexec
This commit is contained in:
parent
95289ed19a
commit
4facf458b7
10 changed files with 63 additions and 57 deletions
|
@ -1,9 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# SPDX-FileCopyrightText: 2022 unman <unman@thirdeyesecurity.org>
|
||||
#
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
set -eu
|
||||
|
||||
exec socat STDIO TCP:localhost:22
|
|
@ -18,7 +18,6 @@ include:
|
|||
- skip_suggestions: True
|
||||
- pkgs:
|
||||
- openssh-server
|
||||
- socat
|
||||
- man-db
|
||||
|
||||
"{{ slsdotpath }}-stop-ssh":
|
||||
|
@ -33,14 +32,22 @@ include:
|
|||
service.masked:
|
||||
- name: ssh
|
||||
|
||||
"{{ slsdotpath }}-set-rpc-services":
|
||||
file.recurse:
|
||||
- name: /etc/qubes-rpc/
|
||||
- source: salt://{{ slsdotpath }}/files/server/rpc/
|
||||
- dir_mode: '0755'
|
||||
- file_mode: '0755'
|
||||
"{{ slsdotpath }}-rpc":
|
||||
file.symlink:
|
||||
- name: /etc/qubes-rpc/qusal.Ssh
|
||||
- target: /dev/tcp/127.0.0.1/22
|
||||
- user: root
|
||||
- group: root
|
||||
- force: True
|
||||
- makedirs: True
|
||||
|
||||
"{{ slsdotpath }}-rpc-config":
|
||||
file.symlink:
|
||||
- name: /etc/qubes/rpc-config/qusal.Ssh
|
||||
- target: /etc/qubes/rpc-config/qubes.ConnectTCP
|
||||
- user: root
|
||||
- group: root
|
||||
- force: True
|
||||
- makedirs: True
|
||||
|
||||
"{{ slsdotpath }}-sshd-config":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue