chisel
This commit is contained in:
@@ -18,6 +18,7 @@
|
|||||||
path: "{{ item.path }}"
|
path: "{{ item.path }}"
|
||||||
regexp: "{{ item.regexp }}"
|
regexp: "{{ item.regexp }}"
|
||||||
state: "{{ item.state }}"
|
state: "{{ item.state }}"
|
||||||
|
line: "{{ item.line|default(omit) }}"
|
||||||
loop: "{{ chisel_proxychains_conf }}"
|
loop: "{{ chisel_proxychains_conf }}"
|
||||||
when: "{{ chisel_server|default(false) }} is true"
|
when: "{{ chisel_server|default(false) }} is true"
|
||||||
tags: chisel-server
|
tags: chisel-server
|
||||||
|
|||||||
@@ -139,18 +139,22 @@ chisel_proxychains_conf:
|
|||||||
- path: "/etc/chisel/{{ chisel_config_name }}"
|
- path: "/etc/chisel/{{ chisel_config_name }}"
|
||||||
regexp: "^SOCK5=--socks5"
|
regexp: "^SOCK5=--socks5"
|
||||||
state: present
|
state: present
|
||||||
|
line: "SOCK5=--socks5"
|
||||||
# chisel enable reverse
|
# chisel enable reverse
|
||||||
- path: "/etc/chisel/{{ chisel_config_name }}"
|
- path: "/etc/chisel/{{ chisel_config_name }}"
|
||||||
regexp: "^PID=--reverse"
|
regexp: "^PID=--reverse"
|
||||||
state: present
|
state: present
|
||||||
|
line: "PID=--reverse"
|
||||||
# chisel set up basic auth
|
# chisel set up basic auth
|
||||||
- path: "/etc/chisel/{{ chisel_config_name }}"
|
- path: "/etc/chisel/{{ chisel_config_name }}"
|
||||||
regexp: "^AUTH=--auth {{ chisel_basic_auth }}"
|
regexp: "^AUTH=--auth {{ chisel_basic_auth }}"
|
||||||
state: present
|
state: present
|
||||||
|
line: "AUTH=--auth {{ chisel_basic_auth }}"
|
||||||
# proxychains replace socks4 to socks5
|
# proxychains replace socks4 to socks5
|
||||||
- path: "/etc/proxychains.conf"
|
- path: "/etc/proxychains.conf"
|
||||||
regexp: "^socks4 127.0.0.1 9050"
|
regexp: "^socks4 127.0.0.1 9050"
|
||||||
state: "absent"
|
state: "absent"
|
||||||
- path: "/etc/proxychains.conf"
|
- path: "/etc/proxychains.conf"
|
||||||
regexp: "^socks5 {{ chisel_server_host }} 1080"
|
regexp: "^socks5 {{ chisel_server_host }} 1080"
|
||||||
state: present
|
state: present
|
||||||
|
line: "socks5 {{ chisel_server_host }} 1080"
|
||||||
Reference in New Issue
Block a user