summaryrefslogtreecommitdiff
path: root/micro/reseau/topologie_reseau.mmd
blob: 95d936423a983f62d022db8cea376fb6b983c54d (plain)
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
%%{init: {'theme': 'base', 'flowchart': {'nodeSpacing': 50, 'rankSpacing': 60}}}%%
flowchart LR
    subgraph internet ["Internet"]
        direction TB
        ddns["DDNS Namecheap<br/>arauco.online<br/>git.arauco.online<br/>www.arauco.online"]
        upstream["Forwarders DNS<br/>8.8.8.8 / 8.8.4.4 / 1.1.1.1"]
    end

    subgraph swisscom ["Routeur Swisscom"]
        gw["Gateway 192.168.99.1"]
        nat["NAT ext:2222<br/>-> .51:1220"]
    end

    subgraph host_if ["araucaria - Interfaces"]
        direction TB
        eth0["eth0 .50/24<br/>master br0<br/>00:25:90:e7:47:e4"]
        eth1["eth1 .51/24<br/>SSH externe<br/>00:25:90:e7:47:e5"]
        br0["br0 Bridge .50/24"]
        virbr0["virbr0 .122.1/24<br/>DOWN"]
        eth0 --- br0
    end

    subgraph dns_conf ["dnsmasq Config"]
        dns_svc[":53 sur br0<br/>domain=local<br/>cache=1000<br/>log=/var/log/dnsmasq.log"]
    end

    subgraph records ["Enregistrements DNS"]
        direction TB
        r_araucaria[".50 arauco.online<br/>.50 www.arauco.online<br/>.51 araucaria-eth1"]
        r_chillka[".55 git.arauco.online<br/>.55 chillka.local"]
        r_npagnun[".35 npagnun.local<br/>.35 keycloak.arauco.local"]
        r_huitral[".22 huitral.local"]
        r_other[".33 lemolemo | .44 toki<br/>.11 copihue | .66 huinca"]
    end

    subgraph ptr ["PTR Records"]
        direction TB
        ptr1["50.99.168.192<br/>araucaria.local"]
        ptr2["51.99.168.192<br/>araucaria-eth1.local"]
    end

    subgraph vm_if ["Interfaces VM br0"]
        direction TB
        vnet1["vnet1 chillka<br/>52:54:00:0f:28:80"]
        vnet7["vnet7 npagnun<br/>52:54:00:5e:06:1e"]
        vnet8["vnet8 huitral<br/>52:54:00:ce:24:7f"]
    end

    subgraph routes ["Routes"]
        direction TB
        rt1["default via .1 eth0"]
        rt2["default via .1 eth1"]
        rt3[".0/24 br0 src .50"]
        rt4[".0/24 eth1 src .51"]
    end

    ddns --> nat
    nat -->|"2222->1220"| eth1
    upstream --> dns_svc
    dns_svc --> records
    dns_svc --> ptr
    br0 --- vnet1
    br0 --- vnet7
    br0 --- vnet8

    classDef netStyle fill:#1e3a5f,stroke:#4a90d9,color:#a8d0f0
    classDef dnsStyle fill:#1e4a4a,stroke:#4a9a9a,color:#a8e0e0
    classDef extStyle fill:#2a3a4a,stroke:#6a8aaa,color:#b0d0e8
    classDef routeStyle fill:#3a3a1e,stroke:#9a9a4a,color:#e0e0a8
    classDef dormStyle fill:#2a2a2a,stroke:#666,color:#999

    class ddns,upstream,nat,gw extStyle
    class eth0,br0,eth1 netStyle
    class virbr0 dormStyle
    class dns_svc,r_araucaria,r_chillka,r_npagnun,r_huitral,r_other dnsStyle
    class ptr1,ptr2 dnsStyle
    class vnet1,vnet7,vnet8 netStyle
    class rt1,rt2,rt3,rt4 routeStyle