feat(remnawave,rus-central): add IPv6 Xray cascade lulu.gunihome.ru -> ger-nod-02
ansible-deploy / plan (push) Successful in 2s
ansible-lint / lint (push) Successful in 3s
ansible-deploy / deploy (core-net, ) (push) Failing after 16s
ansible-deploy / deploy (ger-nod-02, ) (push) Successful in 47s
ansible-deploy / deploy (rus-central, ) (push) Successful in 6m20s
ansible-deploy / plan (push) Successful in 2s
ansible-lint / lint (push) Successful in 3s
ansible-deploy / deploy (core-net, ) (push) Failing after 16s
ansible-deploy / deploy (ger-nod-02, ) (push) Successful in 47s
ansible-deploy / deploy (rus-central, ) (push) Successful in 6m20s
This commit is contained in:
1 parent
71f1a009bf
commit
202290fa98
11 files changed
+244
-27
No files matched your search
@@ -3,6 +3,9 @@ remnanode_dir: /opt/remnanode
|
||||
remnanode_image: "remnawave/node:latest"
|
||||
remnanode_nginx_image: "nginx:1.28"
|
||||
remnanode_node_port: 2222
|
||||
remnanode_public_ip: "{{ ansible_host }}"
|
||||
remnanode_wait_host: "127.0.0.1"
|
||||
remnanode_allow_panel_wan: false
|
||||
|
||||
remnanode_selfsteal_domain: "yali.gunis.top"
|
||||
remnanode_xhttp_path: "/xhttp-yali"
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
body:
|
||||
type: A
|
||||
name: "{{ remnanode_selfsteal_domain }}"
|
||||
content: "{{ ansible_host }}"
|
||||
content: "{{ remnanode_public_ip }}"
|
||||
ttl: 120
|
||||
proxied: false
|
||||
status_code: [200, 201]
|
||||
@@ -92,14 +92,14 @@
|
||||
body:
|
||||
type: A
|
||||
name: "{{ remnanode_selfsteal_domain }}"
|
||||
content: "{{ ansible_host }}"
|
||||
content: "{{ remnanode_public_ip }}"
|
||||
ttl: 120
|
||||
proxied: false
|
||||
status_code: 200
|
||||
when: >-
|
||||
(cf_dns_lookup.json.result | length) > 0 and
|
||||
(
|
||||
(cf_dns_lookup.json.result | first).content != ansible_host or
|
||||
(cf_dns_lookup.json.result | first).content != remnanode_public_ip or
|
||||
(cf_dns_lookup.json.result | first).proxied
|
||||
)
|
||||
no_log: true
|
||||
@@ -142,6 +142,7 @@
|
||||
ansible.builtin.command: >
|
||||
certbot certonly
|
||||
--standalone
|
||||
--http-01-address {{ remnanode_public_ip }}
|
||||
--non-interactive
|
||||
--agree-tos
|
||||
--email {{ remnanode_letsencrypt_email }}
|
||||
@@ -203,7 +204,9 @@
|
||||
ufw allow from {{ remnanode_panel_nb.stdout | trim }} to any port {{ remnanode_node_port }} proto tcp
|
||||
register: ufw_node_nb
|
||||
changed_when: "'added' in (ufw_node_nb.stdout | lower)"
|
||||
when: remnanode_panel_nb.stdout | default('') | trim is match('^[0-9.]+$')
|
||||
when:
|
||||
- not (remnanode_allow_panel_wan | bool)
|
||||
- remnanode_panel_nb.stdout | default('') | trim is match('^[0-9.]+$')
|
||||
|
||||
- name: Убрать WAN-доступ к NODE_PORT
|
||||
ansible.builtin.command: >
|
||||
@@ -212,7 +215,9 @@
|
||||
register: ufw_node_wan_del
|
||||
changed_when: "'deleted' in (stdout | default('') | lower)"
|
||||
failed_when: false
|
||||
when: remnanode_panel_nb.stdout | default('') | trim is match('^[0-9.]+$')
|
||||
when:
|
||||
- not (remnanode_allow_panel_wan | bool)
|
||||
- remnanode_panel_nb.stdout | default('') | trim is match('^[0-9.]+$')
|
||||
|
||||
- name: Разрешить NODE_PORT только с egress панели (оба провайдера)
|
||||
ansible.builtin.command: >
|
||||
@@ -220,7 +225,7 @@
|
||||
loop: "{{ remnanode_panel_egress_ips }}"
|
||||
register: ufw_node
|
||||
changed_when: "'added' in (stdout | default('') | lower)"
|
||||
when: remnanode_panel_nb.stdout | default('') | trim is not match('^[0-9.]+$')
|
||||
when: (remnanode_allow_panel_wan | bool) or (remnanode_panel_nb.stdout | default('') | trim is not match('^[0-9.]+$'))
|
||||
|
||||
- name: Включить firewall
|
||||
ansible.builtin.command: ufw --force enable
|
||||
@@ -244,7 +249,7 @@
|
||||
- name: Дождаться 443 после конфига с панели
|
||||
ansible.builtin.wait_for:
|
||||
port: 443
|
||||
host: 127.0.0.1
|
||||
host: "{{ remnanode_wait_host }}"
|
||||
timeout: 180
|
||||
register: remnanode_wait_443
|
||||
failed_when: false
|
||||
|
||||
Reference in new issue
Block a user