mirror of
https://github.com/ben-grande/qusal.git
synced 2025-03-24 16:16:44 -04:00
feat: use native TCP socket with Qrexec
This commit is contained in:
parent
95289ed19a
commit
4facf458b7
@ -34,4 +34,4 @@ if test "${#port}" -gt 5 || test "${port}" -gt 65535; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
exec socat - "TCP:${host}:${port}"
|
||||
exec socat STDIO "TCP:${host}:${port}"
|
||||
|
@ -1,7 +0,0 @@
|
||||
#!/bin/sh
|
||||
# SPDX-FileCopyrightText: 2023 unman <unman@thirdeyesecurity.org>
|
||||
#
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
set -eu
|
||||
exec socat STDIO TCP:localhost:631
|
@ -5,6 +5,15 @@ SPDX-FileCopyrightText: 2024 Benjamin Grande M. S. <ben.grande.b@gmail.com>
|
||||
SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
#}
|
||||
|
||||
"{{ slsdotpath }}-installed-client":
|
||||
pkg.installed:
|
||||
- require:
|
||||
- sls: utils.tools.common.update
|
||||
- install_recommends: False
|
||||
- skip_suggestions: True
|
||||
- pkgs:
|
||||
- socat
|
||||
|
||||
"{{ slsdotpath }}-client-systemd-print-forwarder":
|
||||
file.managed:
|
||||
- name: /usr/lib/systemd/system/qusal-print-forwarder.service
|
||||
|
@ -43,12 +43,21 @@ include:
|
||||
- user
|
||||
|
||||
"{{ slsdotpath }}-rpc":
|
||||
file.managed:
|
||||
file.symlink:
|
||||
- name: /etc/qubes-rpc/qusal.Print
|
||||
- source: salt://{{ slsdotpath }}/files/server/rpc/qusal.Print
|
||||
- mode: '0755'
|
||||
- target: /dev/tcp/127.0.0.1/631
|
||||
- user: root
|
||||
- group: root
|
||||
- force: True
|
||||
- makedirs: True
|
||||
|
||||
"{{ slsdotpath }}-rpc-config":
|
||||
file.symlink:
|
||||
- name: /etc/qubes/rpc-config/qusal.Print
|
||||
- target: /etc/qubes/rpc-config/qubes.ConnectTCP
|
||||
- user: root
|
||||
- group: root
|
||||
- force: True
|
||||
- makedirs: True
|
||||
|
||||
"{{ slsdotpath }}-bind-dirs":
|
||||
|
@ -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:873
|
@ -18,7 +18,6 @@ include:
|
||||
- skip_suggestions: True
|
||||
- pkgs:
|
||||
- rsync
|
||||
- socat
|
||||
- man-db
|
||||
|
||||
"{{ slsdotpath }}-stop-rsync":
|
||||
@ -42,14 +41,22 @@ include:
|
||||
- group: root
|
||||
- makedirs: True
|
||||
|
||||
"{{ 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.Rsync
|
||||
- target: /dev/tcp/127.0.0.1/873
|
||||
- user: root
|
||||
- group: root
|
||||
- force: True
|
||||
- makedirs: True
|
||||
|
||||
"{{ slsdotpath }}-rpc-config":
|
||||
file.symlink:
|
||||
- name: /etc/qubes/rpc-config/qusal.Rsync
|
||||
- target: /etc/qubes/rpc-config/qubes.ConnectTCP
|
||||
- user: root
|
||||
- group: root
|
||||
- force: True
|
||||
- makedirs: True
|
||||
|
||||
{% endif -%}
|
||||
|
@ -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":
|
||||
|
@ -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:22000
|
@ -26,18 +26,26 @@ include:
|
||||
- qubes-core-agent-networking
|
||||
- syncthing
|
||||
- jq
|
||||
- socat
|
||||
- qubes-core-agent-thunar
|
||||
- thunar
|
||||
- man-db
|
||||
|
||||
"{{ slsdotpath }}-rpc-service":
|
||||
file.managed:
|
||||
"{{ slsdotpath }}-rpc":
|
||||
file.symlink:
|
||||
- name: /etc/qubes-rpc/qusal.Syncthing
|
||||
- source: salt://{{ slsdotpath }}/files/server/rpc/qusal.Syncthing
|
||||
- target: /dev/tcp/127.0.0.1/22000
|
||||
- user: root
|
||||
- group: root
|
||||
- mode: '0755'
|
||||
- force: True
|
||||
- makedirs: True
|
||||
|
||||
"{{ slsdotpath }}-rpc-config":
|
||||
file.symlink:
|
||||
- name: /etc/qubes/rpc-config/qusal.Syncthing
|
||||
- target: /etc/qubes/rpc-config/qubes.ConnectTCP
|
||||
- user: root
|
||||
- group: root
|
||||
- force: True
|
||||
- makedirs: True
|
||||
|
||||
"{{ slsdotpath }}-mask-syncthing":
|
||||
|
Loading…
x
Reference in New Issue
Block a user