Add chisel
This commit is contained in:
11
chisel.yml
11
chisel.yml
@@ -29,9 +29,12 @@
|
|||||||
|
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Set up config file better ...
|
# Need to install proxychains
|
||||||
|
- name: Change settings in chisel and proxychains conf files
|
||||||
ansible.builtin.lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
path: /etc/chisel/chisel-server.conf
|
path: "{{ item.path }}"
|
||||||
regexp: '^# SOCK5=--sock5'
|
regexp: "{{ item.regexp }}"
|
||||||
line: "SOCK5=--sock5"
|
line: "{{ item.line }}"
|
||||||
|
loop: "{{ chisel_proxychains_conf }}"
|
||||||
|
when: "{{ chisel_server|default(false) }} is true"
|
||||||
tags: chisel
|
tags: chisel
|
||||||
|
|||||||
@@ -118,7 +118,18 @@ alerts_ssl: scaleway
|
|||||||
# CHISEL #
|
# CHISEL #
|
||||||
##########
|
##########
|
||||||
|
|
||||||
|
chisel_server: true
|
||||||
chisel_service_name: chisel-server
|
chisel_service_name: chisel-server
|
||||||
chisel_config_name: chisel-server
|
chisel_config_name: chisel-server
|
||||||
chisel_server_host: 163.172.84.28
|
chisel_server_host: 163.172.84.28
|
||||||
chisel_server_port: 8080
|
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"
|
||||||
Reference in New Issue
Block a user