-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathteleipv6.yml
More file actions
153 lines (132 loc) · 4.42 KB
/
Copy pathteleipv6.yml
File metadata and controls
153 lines (132 loc) · 4.42 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
name: telemetria
mgmt:
network: st
ipv4-subnet: 172.80.80.0/24
topology:
nodes:
# Nokia SRL Linux Router
srlrouter:
kind: nokia_srlinux
labels:
graph-icon: router
image: ghcr.io/nokia/srlinux:24.10.1
type: ixrd3
startup-config: router/config.json
exec:
- "sysctl -w net.ipv6.conf.e1-1.accept_ra=0"
# Nokia SRL Linux Layer 2 Device
srlswitch:
kind: nokia_srlinux
labels:
graph-icon: switch
image: ghcr.io/nokia/srlinux:24.10.1
type: ixrd3
startup-config: switch/srlswitch.cfg
# TELEMETRIA STACK
prometheus:
kind: linux
mgmt-ipv4: 172.80.80.42
image: quay.io/prometheus/prometheus:v2.54.1
binds:
- configs/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
cmd: --config.file=/etc/prometheus/prometheus.yml
ports:
- 9090:9090
grafana:
kind: linux
mgmt-ipv4: 172.80.80.43
image: grafana/grafana:12.0.2
binds:
- configs/grafana/dashboards.yml:/etc/grafana/provisioning/dashboards/dashboards.yaml:ro
- configs/grafana/datasource.yml:/etc/grafana/provisioning/datasources/datasource.yaml:ro
- configs/grafana/dashboards:/var/lib/grafana/dashboards
ports:
- 3000:3000
env:
# GF_INSTALL_PLUGINS: "yesoreyeram-infinity-datasource"
# env vars to enable anonymous access
GF_ORG_ROLE: "Admin"
GF_ORG_NAME: "Main Org"
GF_AUTH_ANONYMOUS_ENABLED: "true"
GF_AUTH_ANONYMOUS_ORG_ROLE: Admin
GF_AUTH_ANONYMOUS: "true"
GF_AUTH_OAUTH_AUTO_LOGIN: "true"
elastic:
kind: linux
mgmt-ipv4: 172.80.80.9
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.7
env:
node.name: es01
discovery.type: single-node
#xpack.security.enabled: "true"
#xpack.security.audit.enabled: "true"
#xpack.security.authc.api_key.enabled: "true"
ES_JAVA_OPTS: "-Xms1g -Xmx1g"
ports:
- 9200:9200/tcp
gNMIc:
kind: linux
labels:
graph-icon: host
image: esanchezv/hellt-gnmic:latest
binds:
- configs/python_scapy.sh:/root/python_scapy.sh
- configs/gnmic/gnmic-config.yml:/gnmic-config.yml:ro
- configs/gnmic/gnmic-config-acl.yml:/gnmic-config-acl.yml:ro
- configs/icmpv6_capturav2.py:/root/icmpv6_capturav2.py
- configs/icmpv6_capturav3.py:/root/icmpv6_capturav3.py
- configs/supervisord.conf:/root/supervisord.conf
- configs/sync_bindings.py:/root/sync_bindings.py
exec:
- mkdir /data
- chmod +x /data
- touch /data/mac_ipv6_bindings_dynamic.json
- chmod +x /root/python_scapy.sh
- bash /root/python_scapy.sh
PC1:
kind: linux
labels:
graph-icon: host
image: docker.io/esanchezv/kaliipv6:latest
exec:
- "sysctl net.ipv6.conf.eth1.addr_gen_mode=3"
PC2:
kind: linux
labels:
graph-icon: host
image: docker.io/esanchezv/kaliipv6:latest
exec:
- "sysctl net.ipv6.conf.eth1.addr_gen_mode=3"
- "sysctl net.ipv6.conf.eth1.addr_gen_mode=2"
- "sysctl net.ipv6.conf.eth1.use_tempaddr=2"
PC4:
kind: linux
labels:
graph-icon: host
image: docker.io/esanchezv/kaliipv6:latest
exec:
- "sysctl net.ipv6.conf.eth1.addr_gen_mode=3"
- "sysctl net.ipv6.conf.eth1.addr_gen_mode=2"
- "sysctl net.ipv6.conf.eth1.use_tempaddr=2"
srvweb:
kind: linux
image: docker.io/esanchezv/srvhttps:latest
binds:
#- config/serverweb.sh:/root/serverweb.sh
- configs/web-server.html:/var/www/localhost/htdocs/index.html
exec:
#- nginx
#- ip -6 route del default dev eth0
- ip -6 addr add 2001:db8:d1::50/64 dev eth1
- ip -6 route add 2001:db8:20::/64 via 2001:db8:d1::1
links:
- endpoints: ["srlrouter:e1-1", "srlswitch:e1-1"]
- endpoints: ["srlrouter:e1-2", "srvweb:eth1"]
- endpoints: ["PC1:eth1", "srlswitch:e1-2"]
mtu: 1500
- endpoints: ["PC2:eth1", "srlswitch:e1-3"]
mtu: 1500
- endpoints: ["gNMIc:eth1", "srlswitch:e1-4"]
mtu: 1500
- endpoints: ["PC4:eth1", "srlswitch:e1-5"]
mtu: 1500