From 7563ddb88013d6395ec7809590fec250dc761934 Mon Sep 17 00:00:00 2001 From: staffadmin Date: Mon, 25 Sep 2023 00:48:11 +0200 Subject: [PATCH] Add chisel --- chisel.yml | 11 +++++++---- host_vars/scaleway_fr.yml | 13 ++++++++++++- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/chisel.yml b/chisel.yml index d5053e9..fe64dd4 100644 --- a/chisel.yml +++ b/chisel.yml @@ -29,9 +29,12 @@ tasks: - - name: Set up config file better ... + # Need to install proxychains + - name: Change settings in chisel and proxychains conf files ansible.builtin.lineinfile: - path: /etc/chisel/chisel-server.conf - regexp: '^# SOCK5=--sock5' - line: "SOCK5=--sock5" + path: "{{ item.path }}" + regexp: "{{ item.regexp }}" + line: "{{ item.line }}" + loop: "{{ chisel_proxychains_conf }}" + when: "{{ chisel_server|default(false) }} is true" tags: chisel diff --git a/host_vars/scaleway_fr.yml b/host_vars/scaleway_fr.yml index 4179244..6e6f649 100644 --- a/host_vars/scaleway_fr.yml +++ b/host_vars/scaleway_fr.yml @@ -118,7 +118,18 @@ alerts_ssl: scaleway # CHISEL # ########## +chisel_server: true chisel_service_name: chisel-server chisel_config_name: chisel-server chisel_server_host: 163.172.84.28 -chisel_server_port: 8080 \ No newline at end of file +chisel_server_port: 8080 +chisel_proxychains_conf: + - path: "/etc/chisel/{{ chisel_config_name }}" + regexp: "^# SOCK5" + line: "SOCK5=--sock5" + - path: "/etc/proxychains.conf" + regexp: "^socks4" + line: "#socks4" + - path: "/etc/proxychains.conf" + regexp: "^# meanwile" + line: "socks5 {{ chisel_server_host }} 1080" \ No newline at end of file