|
Download docs/VYRON_NETWORK_ARCHITECTURE.md from monika-p/VyronOS: direct link, hf CLI and curl.
- Browser
- Download file 3.76 kB
-
https://huggingface.co/datasets/monika-p/VyronOS/resolve/main/docs/VYRON_NETWORK_ARCHITECTURE.md
- Command line
-
hf download hf://datasets/monika-p/VyronOS/docs/VYRON_NETWORK_ARCHITECTURE.md
-
curl -L -o VYRON_NETWORK_ARCHITECTURE.md https://huggingface.co/datasets/monika-p/VyronOS/resolve/main/docs/VYRON_NETWORK_ARCHITECTURE.md
3.76 kB
VyronOS Network Architecture Specification
Document Version: 1.0
Status: Canonical Network Specification
Architecture Target: VirtualBox NAT & Standard TCP/IP POSIX Subsystems
DNS Resolver: systemd-resolved (IPv4 Prioritized)
1. Network Topology & Virtualization Model
VyronOS operates within an isolated Network Address Translation (NAT) topology hosted on Apple Silicon VirtualBox 7.x:
graph LR
subgraph Host ["macOS Host (Apple Silicon Darwin)"]
H_IP["Host Loopback (127.0.0.1)"]
H_SSH["Host Port Forward: 127.0.0.1:2222"]
H_KEY["SSH Key (~/.ssh/vyron_key)"]
end
subgraph VBoxNAT ["VirtualBox 7.x NAT Engine"]
NAT_GW["Virtual Gateway: 10.0.2.2"]
NAT_DHCP["Virtual DHCP Server: 10.0.2.3"]
NAT_DNS["Virtual DNS Proxy: 10.0.2.3"]
end
subgraph Guest ["VyronOS Guest (ARM64 Bookworm)"]
G_NIC["enx080027c17b86 (10.0.2.15/24)"]
G_SSH["sshd Daemon (Port 22)"]
G_RES["systemd-resolved (8.8.8.8, 1.1.1.1)"]
end
H_SSH -->|"NAT Translation"| G_NIC
G_NIC --> G_SSH
G_NIC --> NAT_GW
NAT_GW --> Internet["Upstream Public Internet"]
G_RES -->|"DNS Queries (UDP 53)"| Internet
2. IP Addressing & Route Configuration
2.1 Interface Bindings
- Primary Interface:
enx080027c17b86(Predictable Network Interface Name generated from VirtualBox MAC08:00:27:C1:7B:86). - IP Address:
10.0.2.15/24dynamically leased via VirtualBox DHCP. - Default Gateway:
10.0.2.2viaenx080027c17b86(metric 100). - Loopback:
lobound to127.0.0.1/8and::1/128.
2.2 DNS Subsystem & IPv4 Prioritization
Due to hypervisor NAT limitations with IPv6 DNS forwarders on Darwin Apple Silicon, VyronOS enforces IPv4 precedence:
- Resolver Daemon:
systemd-resolvedlistening locally on127.0.0.53:53. - Upstream Nameservers:
- Primary:
8.8.8.8(Google Public DNS) - Secondary:
1.1.1.1(Cloudflare Public DNS) - Fallback:
8.8.4.4
- Primary:
- APT Transport Configuration:
/etc/apt/apt.conf.d/99force-ipv4setsAcquire::ForceIPv4 "true";ensuring package mirrors never stall on unroutable IPv6 interfaces.
3. Host-Guest Communication Architecture
Automated testing harnesses, file transfers, and remote management communicate through a hardened SSH channel:
- Host Port Forwarding Rule:
- Rule Name:
GuestSSH - Protocol:
TCP - Host IP:
127.0.0.1| Host Port:2222 - Guest IP:
10.0.2.15| Guest Port:22
- Rule Name:
- Cryptographic Authentication:
- Key Algorithm:
ED25519(~/.ssh/vyron_key). - Root & User Authorization: Key deployed to
/root/.ssh/authorized_keysand/home/vyron/.ssh/authorized_keyswith0600permissions. - BatchMode Support: Enables passwordless, non-interactive execution for CI/CD test gates.
- Key Algorithm:
4. Socket Layer & Network Security Policies
graph TD
App["Application Layer (Firefox, wget, curl)"] --> Sockets["POSIX BSD Socket API (socket, connect, bind)"]
Sockets --> TCP_IP["Linux TCP/IP Network Stack"]
TCP_IP --> Netfilter["Netfilter / Packet Filtering Rules"]
Netfilter --> Driver["Network Device Driver (e1000 / virtio_net)"]
4.1 Security Boundaries
- No Insecure Protocols: Telnet, RSH, and unencrypted FTP are strictly purged.
- Non-Root Socket Binding: Non-privileged user processes (such as
vyron) cannot bind to privileged ports (< 1024). - Loopback Isolation: X11 server listening on UNIX sockets only (
/tmp/.X11-unix/X0); TCP listening for X11 is disabled (-nolisten tcp). - Audit Logging: All incoming connection attempts to port 22 are logged to
/var/log/auth.logwith source IP and authentication outcome.