summaryrefslogtreecommitdiff
path: root/arfnet2.md
blob: 76087c1fb9123a75264c09223e6f765493311ac4 (plain) (blame)
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
# ARFNET2 deployment

Stage 1, very safe
 - Close all ports
 - Nuke (or stop) all old VMs (exclude OPNSense)
 - Make DMZ
 - Make the following ones (cloning deb12 template)
 - Open following ports

## Networks
 - DMZ untagged 192.168.4.0/24: Services and management
 - LAN VLAN 5   192.168.5.0/24: Clients
 - VPN LAN      10.5.0.0/24: Wireguard clients

## Hosts
 - server (...)
 - desktop .8
 - raspi .14

## Management
 - server iDRAC .5
 - Proxmox .4
 - OPNSense .1
 - switch .2
 - WAP .3
 - printer .7

## VMs and services
All VMs must run the wazuh agent

### router .1
 - (routing/firewalling)
 - SSH
 - DHCP
 - unbound DNS
 - OpenVPN
 - WireGuard
 - IPsec*

### NAS .6
RAID attached here (with the grey stuff) (local only)
 - SSH
 - NFS
 - Samba SMB*
 - MiniDLNA*
 - qBittorrent-nox

### web .9
 - SSH
 - nginx (static only site, isolated from NAS)

| vhost | webroot/proxy |
|-------|---------------|
| arf20.com | /var/www/arf20.com/html/ |
| www.arf20.com | <301 redirect arf20.com> |
| matrix.arf20.com | http://192.168.4.12:8008/_matrix |
| default | <return 418 im a teapot> |


### wazuh .10
 - SSH
 - wazuh

### game .11
 - SSH
 - grupo4mc
 - rubenmc

### comm .12
 - SSH
 - unrealircd IRC
 - synapse matrix
 - postgresql
 - pantalaimon
 - matterbridge
 - asterisk VoIP SIP*
 - XMPP*

### mail (ARFNET-IONOS) 5.250.186.185
 - SSH
 - postfix smtpd, submission, submissions
 - dovecot imapd

*TODO

## Port forwards
 | Service | Customer | IPProto | Ext Port | Host | Re Port |
 |---------|----------|---------|----------|------|---------|
 | OpenVPN | | TCP | 1194 | router | |
 | WireGuard | | UDP | 51820 | router | |
 | Web     | | TCP | 80,443 | web | |
 | bittorrent | | TCP/UDP | 8999 | nas | |
 | IRC     | | TCP | 6667 | comm | |
 | IRCS    | | TCP | 6697 | comm | |
 | grupo4mc| | TCP | 25565 | game | |
 | rubenmc | | TCP | 25566 | game | |
 | | | | | | |
 | yero-SSH | yero | TCP | 1511 | yerovps | 22 | |
 | yero-SQL | yero | TCP | 1512 | yerovps | 3306 |
 | FiveM SuperioresRP | yero | TCP | 30120,40120 | yerovps | |


## Internal Name and Number Assignation Table
| Addr | Host | Name |
|------|------|------|
| DMZ.1 | gateway | router.lan |
| DMZ.2 | switch | switch.lan |
| DMZ.3 | wap | wap.lan |
| DMZ.4 | proxmox | proxmox.lan |
| DMZ.5 | R720 iDRAC | idrac.lan |
| DMZ.6 | nas | nas.lan |
| DMZ.7 | printer | printer.lan |
| DMZ.8 | desktop | desktop.lan |
| DMZ.9 | webserver | web.lan |
| DMZ.10 | wazuh | wazuh.lan |
| DMZ.11 | game | game.lan |
| DMZ.12 | comm | comm.lan |

## Public DNS zone
| Name | Type | Content | Comment |
|------|------|---------|---------|
| arf20.com | A | 2.59.235.35 | |
| arf20.com | MX | mail.arf20.com | |
| mail | A | 5.250.186.185 | |
| selector._domainkey | TXT | (DKIM) | DKIM for selector 'selector' |
| _dmarc | TXT | (DMARC) | |
| arf20.com | TXT | (SPF) | |
| www | CNAME | arf20.com |
| jellyfin | CNAME | arf20.com |
| irc | CNAME | arf20.com |
| matrix | CNAME | arf20.com |
| _acme-challenge.jellyfin | CNAME | (challenge) | |
| _acme-challenge.irc | CNAME | (challenge) | |
| _acme-challenge.matrix | CNAME | (challenge) | |
| _acme-challenge.mail |  CNAME | (challenge) | |