-
Notifications
You must be signed in to change notification settings - Fork 1
/
routers.yml
63 lines (58 loc) · 3.55 KB
/
routers.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
- name: Update routers config
hosts: routers
strategy: linear # because of mitogen_linear in ansible.cfg
gather_facts: false
tasks:
# - name: show configuration commands
# community.network.edgeos_command:
# commands: show configuration commands | no-more
- name: backup configs
community.network.edgeos_config:
backup: true
backup_options:
dir_path: backup
# - name: show ipset
# community.network.edgeos_command:
# commands: sudo ipset -L unblock_russia
# заменить set на delete для удаления записи
- name: configure
community.network.edgeos_config:
lines:
- set firewall group address-group unblock_russia description 'ipset group for domain-based selective routing'
- set service dns forwarding options ipset=/clamav.net/unblock_russia
- set service dns forwarding options ipset=/releases.hashicorp.com/unblock_russia
- set service dns forwarding options ipset=/registry.terraform.io/unblock_russia
- set service dns forwarding options ipset=/bigfangroup.org/unblock_russia
- set service dns forwarding options ipset=/bitru.org/unblock_russia
- set service dns forwarding options ipset=/kinozal.tv/unblock_russia
- set service dns forwarding options ipset=/riperam.org/unblock_russia
- set service dns forwarding options ipset=/rutracker.org/unblock_russia
- set service dns forwarding options ipset=/underver.se/unblock_russia
- set service dns forwarding options ipset=/sonarr.tv/unblock_russia
- set service dns forwarding options ipset=/radarr.video/unblock_russia
- set service dns forwarding options ipset=/lidarr.audio/unblock_russia
- set service dns forwarding options ipset=/prowlarr.com/unblock_russia
- set service dns forwarding options ipset=/servarr.com/unblock_russia
- set service dns forwarding options ipset=/notifiarr.com/unblock_russia
- set service dns forwarding options ipset=/notifiarr.wiki/unblock_russia
- set service dns forwarding options ipset=/themoviedb.org/unblock_russia
- set service dns forwarding options ipset=/tmdb.org/unblock_russia
- set service dns forwarding options ipset=/devops.com/unblock_russia
- set service dns forwarding options ipset=/sysdig.com/unblock_russia
- set service dns forwarding options ipset=/healthchecks.io/unblock_russia
- set service dns forwarding options ipset=/hc-ping.com/unblock_russia
- set service dns forwarding options ipset=/hchk.io/unblock_russia
- set service dns forwarding options ipset=/mattermost.com/unblock_russia
- set service dns forwarding options ipset=/openai.com/unblock_russia
- set service dns forwarding options ipset=/ui.com/unblock_russia
- set service dns forwarding options ipset=/docs.gitlab.com/unblock_russia
- set service dns forwarding options ipset=/gitlab.io/unblock_russia
- set service dns forwarding options ipset=/rwth-aachen.de/unblock_russia
- set service dns forwarding options ipset=/johnvansickle.com/unblock_russia
- set service dns forwarding options ipset=/docker.com/unblock_russia
- set service dns forwarding options ipset=/docker.io/unblock_russia
save: true
- name: clear dns forwarding cache
community.network.edgeos_command:
commands: sudo /opt/vyatta/bin/sudo-users/vyatta-op-dns-forwarding.pl --clear-cache