This commit is contained in:
2023-09-25 12:50:13 +02:00
parent 602d84cf73
commit 35d8baa8eb
2 changed files with 6 additions and 1 deletions

View File

@@ -18,6 +18,7 @@
path: "{{ item.path }}"
regexp: "{{ item.regexp }}"
state: "{{ item.state }}"
line: "{{ item.line|default(omit) }}"
loop: "{{ chisel_proxychains_conf }}"
when: "{{ chisel_server|default(false) }} is true"
tags: chisel-server

View File

@@ -139,18 +139,22 @@ chisel_proxychains_conf:
- path: "/etc/chisel/{{ chisel_config_name }}"
regexp: "^SOCK5=--socks5"
state: present
line: "SOCK5=--socks5"
# chisel enable reverse
- path: "/etc/chisel/{{ chisel_config_name }}"
regexp: "^PID=--reverse"
state: present
line: "PID=--reverse"
# chisel set up basic auth
- path: "/etc/chisel/{{ chisel_config_name }}"
regexp: "^AUTH=--auth {{ chisel_basic_auth }}"
state: present
line: "AUTH=--auth {{ chisel_basic_auth }}"
# proxychains replace socks4 to socks5
- path: "/etc/proxychains.conf"
regexp: "^socks4 127.0.0.1 9050"
state: "absent"
- path: "/etc/proxychains.conf"
regexp: "^socks5 {{ chisel_server_host }} 1080"
state: present
state: present
line: "socks5 {{ chisel_server_host }} 1080"