# Network
## VPN
Tailscale machines:
```mermaid
flowchart TD
subgraph Wieprz
WEB0[wieprz0
100.120.15.82
192.168.15.3]
WEB1[wieprz1
100.90.156.33
192.168.15.4]
PVE0[pve0
100.65.128.50
192.168.10.30]
PVE1[pve1
100.96.18.66
192.168.10.31]
PVE2[pve2
100.67.72.64
192.168.10.32]
DEV[dev
100.103.66.85
192.168.10.7]
SAMBA[samba
100.87.150.57
192.168.10.14]
end
subgraph Bekasow
BEKASOW[bekasow
100.113.237.33
192.168.1.2]
end
subgraph GCP
VPS[vps
100.111.142.62]
end
Wieprz ~~~ Bekasow ~~~GCP
```
For detailed configuration, refer to the [Terraform configuration file](../terraform/tailscale/main.tf).
## DNS
### Wieprz
Cloudflare:
* `*.wieprz.org` → `100.120.15.82` (or `100.90.156.33` as backup)
Adguard rewrites
* `*.wieprz.org` → `192.168.15.3` (or `192.168.15.4` as backup)
* `*.bekasow.duckdns.org` → `100.113.237.33`
Router DNS Proxy:
* `1.1.1.1`
* `1.0.0.1`
### Bekasow
Duckdns:
* `*.bekasow.duckdns.org` → `100.113.237.33`
Adguard rewrites:
* `*.bekasow.duckdns.org` → `192.168.1.2`
* `*.wieprz.org` → `100.120.15.82` (or `100.90.156.33` as backup)
### VPS
Duckdns:
* `*.vps64.duckdns.org` → `100.111.142.62`
## VLANs
VLANs numbering scheme `192.168.XX.YYY` where `XX` is one of:
1. `10` - Management
2. `15` - Services
3. `20` - Home
4. `30` - Cameras
5. `40` - IoT
6. `50` - Guest
VLANs ACLs:
| Network | WAN | Management | Services | IoT | Other VLANs | Peers |
| ------- | :-: | :--------: | :------: | :-: | :---------: | :---: |
| Management | 🟢 | 🟢 | 🟢 | 🟢 | 🟢 | 🟢 |
| Services | 🟢 | 🟢 | 🟢 | 🚫 | 🚫 | 🟢 |
| Home | 🟢 | 🚫 | 🟢 | 🟢 | 🚫 | 🟢 |
| IoT | 🟢 | 🚫 | 🟢 | 🚫 | 🚫 | 🚫 |
| Cameras | 🚫 | 🚫 | 🟢 | 🚫 | 🚫 | 🚫 |
| Guests | 🟢 | 🚫 | 🟢 | 🚫 | 🚫 | 🚫 |
### Management LAN
* `192.168.10.1` - gateway
* `192.168.10.2-29` - virtual machines / linux containers
* `192.168.10.30-34` - Proxmox nodes
* `192.168.10.35-40` - trusted IoT devices
* `192.168.10.97` - WiFi access point (EAP683 UR)
* `192.168.10.98` - WiFi access Point (EAP610)
* `192.168.10.99` - Switch (TL-SG2428P)
* `192.168.10.100-254` - DHCP
### Services LAN
* `192.168.15.1` - gateway
* `192.168.15.2` - jump host
* `192.168.15.3-99` - virtual machines / linux containers
* `192.168.15.100-254` - DHCP
### Home LAN
* `192.168.20.1` - gateway
* `192.168.20.2` - jump host
* `192.168.20.3-99` - reserved
* `192.168.20.100-254` - DHCP
### Cameras LAN
* `192.168.30.1` - gateway
* `192.168.30.2` - jump host
* `192.168.30.3-9` - reserved
* `192.168.30.10-99` - cameras (DHCP reservations)
* `192.168.30.100-254` - DHCP
### IoT LAN
* `192.168.40.1` - gateway
* `192.168.40.2` - jump host
* `192.168.40.3-9` - reserved
* `192.168.40.10-99` - IoT devices (DHCP reservations)
* `192.168.40.100-254` - DHCP
### Guest LAN
* `192.168.50.1` - gateway
* `192.168.50.2` - jump host
* `192.168.50.3-99` - reserved
* `192.168.50.100-254` - DHCP