%%{init: {'theme': 'base', 'themeVariables': {'primaryColor': '#282828', 'primaryTextColor': '#ebdbb2', 'primaryBorderColor': '#fabd2f', 'lineColor': '#83a598', 'secondaryColor': '#3c3836', 'tertiaryColor': '#504945', 'background': '#282828', 'mainBkg': '#282828', 'nodeBorder': '#83a598', 'clusterBkg': '#3c3836', 'titleColor': '#ebdbb2', 'edgeLabelBackground': '#504945'}}}%% flowchart TD subgraph Internet["🌐 อินเทอร์เน็ต"] U[("👤 Remote User")] end subgraph DMZ["🟡 DMZ Zone"] BH["🛡️ Bastion Host\n203.0.113.10"] VPN["🔐 VPN Gateway\n203.0.113.20"] end subgraph Internal["🟢 Internal Network 10.0.0.0/24"] WEB["🖥️ Web Server\n10.0.0.10"] DB["🗄️ Database Server\n10.0.0.20"] COCKPIT["🌐 Cockpit\n10.0.0.40:9090"] end U -->|"SSH + MFA"| BH U -->|"WireGuard / IPSec"| VPN BH -->|"ProxyJump"| WEB BH -->|"ProxyJump"| DB VPN -->|"Encrypted Tunnel"| COCKPIT style Internet fill:#cc241d,color:#ebdbb2,stroke:#fb4934 style DMZ fill:#d79921,color:#1d2021,stroke:#fabd2f style Internal fill:#98971a,color:#1d2021,stroke:#b8bb26
%%{init: {'theme': 'base', 'themeVariables': {'primaryColor': '#282828', 'primaryTextColor': '#ebdbb2', 'primaryBorderColor': '#fabd2f', 'lineColor': '#83a598', 'secondaryColor': '#3c3836', 'background': '#282828', 'mainBkg': '#282828'}}}%% sequenceDiagram participant L as 💻 Local Machine participant B as 🛡️ Bastion Host participant T as 🖥️ Target Server Note over L: ssh-agent ทำงานอยู่ (Private Key: id_rsa) L->>B: ssh -A user@bastion (Forward Agent) B-->>L: ขอยืนยันตัวตน (Challenge) L-->>B: Agent ลงนาม Challenge ด้วย Private Key B-->>L: เชื่อมต่อสำเร็จ ✓ Note over B: SSH_AUTH_SOCK=/tmp/ssh-xxx/agent.123 B->>T: ssh user@target-server (จาก Bastion) T-->>L: ขอยืนยันตัวตน (ผ่าน Agent) L-->>T: Agent ลงนาม (ผ่าน Bastion) T-->>B: เชื่อมต่อสำเร็จ ✓
%%{init: {'theme': 'base', 'themeVariables': {'primaryColor': '#282828', 'primaryTextColor': '#ebdbb2', 'primaryBorderColor': '#fabd2f', 'lineColor': '#83a598', 'secondaryColor': '#3c3836', 'background': '#282828', 'mainBkg': '#282828'}}}%% flowchart LR subgraph Client["💻 VNC Client"] VI["🖥️ VNC Viewer"] KB["⌨️ Keyboard/Mouse"] end subgraph Network["🌐 เครือข่าย"] TUN["🔐 SSH Tunnel\nPort 22 → 5901"] end subgraph Server["🖥️ VNC Server (Remote)"] VS["📡 VNC Server\nPort 5901"] FB["🖼️ Framebuffer"] DE["🗂️ Desktop Environment\nXFCE/GNOME"] end KB -->|"Input Events (RFB)"| TUN TUN -->|"Forwarded to :5901"| VS VS --> DE DE --> FB FB -->|"Screen Updates"| TUN TUN -->|"Pixel Data"| VI style Client fill:#458588,color:#ebdbb2,stroke:#83a598 style Network fill:#d79921,color:#1d2021,stroke:#fabd2f style Server fill:#689d6a,color:#1d2021,stroke:#8ec07c
%%{init: {'theme': 'base', 'themeVariables': {'primaryColor': '#282828', 'primaryTextColor': '#ebdbb2', 'primaryBorderColor': '#fabd2f', 'lineColor': '#83a598', 'secondaryColor': '#3c3836', 'background': '#282828', 'mainBkg': '#282828'}}}%% flowchart LR subgraph E1["📅 ยุคแรก (1996-2005)"] R1["RDP 4.0\nWindows NT 4.0\nเข้ารหัสอ่อนแอ"] R2["RDP 5.0\nWindows 2000\n128-bit RC4"] end subgraph E2["⚠️ ยุคช่องโหว่ (2006-2018)"] V1["MS12-020\nCVE-2012-0002\nRCE Critical"] V2["BlueKeep\nCVE-2019-0708\nWormable RCE"] end subgraph E3["🔐 ยุคทันสมัย (2019+)"] R4["RDP 10.0\nTLS 1.3, NLA บังคับ"] R5["RDP Hardening\nCredSSP, TLS 1.2+"] end R1 --> R2 --> V1 --> V2 --> R4 --> R5 style E1 fill:#504945,color:#ebdbb2,stroke:#7c6f64 style E2 fill:#cc241d,color:#ebdbb2,stroke:#fb4934 style E3 fill:#98971a,color:#1d2021,stroke:#b8bb26
%%{init: {'theme': 'base', 'themeVariables': {'primaryColor': '#458588', 'primaryTextColor': '#ebdbb2', 'primaryBorderColor': '#83a598', 'lineColor': '#ebdbb2', 'secondaryColor': '#3c3836', 'background': '#282828', 'mainBkg': '#3c3836', 'nodeBorder': '#83a598'}}}%% mindmap root((🌐 Cockpit\nPort 9090)) 📊 System Overview CPU/Memory/Disk Network Traffic System Logs 🔧 System Management Services Control Software Updates User Management 🐳 Containers Podman Image Management 💾 Storage Disk/RAID/LVM LUKS Encryption 🔐 Security SSH Keys TLS Certificates Audit Logs
%%{init: {'theme': 'base', 'themeVariables': {'primaryColor': '#282828', 'primaryTextColor': '#ebdbb2', 'primaryBorderColor': '#fabd2f', 'lineColor': '#83a598', 'secondaryColor': '#3c3836', 'background': '#282828', 'mainBkg': '#282828'}}}%% flowchart TD subgraph Public["🌐 Public Internet"] U1["👤 Admin 1 (Thailand)"] U2["👤 Admin 2 (Remote)"] ATK["☠️ Attacker (Blocked)"] end subgraph DMZ["🟡 DMZ - Screened Subnet"] FW1{"🔴 External Firewall"} BH["🛡️ Bastion Host\n203.0.113.10\nPort 22 เท่านั้น\nMFA Required"] FW2{"🔴 Internal Firewall"} end subgraph Prod["🟢 Production Network 10.0.0.0/24"] APP["🖥️ App Server"] DB["🗄️ DB Server"] MON["📊 Monitoring"] end subgraph Log["📋 Audit & Logging"] AUDIT["📜 Session Recording"] SIEM["🔍 SIEM"] end U1 -->|"SSH + MFA"| FW1 U2 -->|"SSH + MFA"| FW1 ATK -.->|"❌ Blocked"| FW1 FW1 --> BH BH --> FW2 FW2 --> APP & DB & MON BH --> AUDIT & SIEM style Public fill:#cc241d,color:#ebdbb2,stroke:#fb4934 style DMZ fill:#d79921,color:#1d2021,stroke:#fabd2f style Prod fill:#98971a,color:#1d2021,stroke:#b8bb26 style Log fill:#458588,color:#ebdbb2,stroke:#83a598
%%{init: {'theme': 'base', 'themeVariables': {'primaryColor': '#282828', 'primaryTextColor': '#ebdbb2', 'primaryBorderColor': '#fabd2f', 'lineColor': '#83a598', 'secondaryColor': '#3c3836', 'background': '#282828', 'mainBkg': '#282828'}}}%% flowchart LR subgraph F1["🧠 Something You Know"] P1["🔑 Password"] P2["📌 PIN"] end subgraph F2["📱 Something You Have"] H1["📲 TOTP App"] H2["🔐 YubiKey"] H3["💳 Smart Card"] end subgraph F3["👁️ Something You Are"] B1["🖐️ Fingerprint"] B2["😊 Face Recognition"] end subgraph MFA["🛡️ MFA (ต้องใช้ >= 2 Factors)"] COMBO["✅ Password + TOTP\n✅ SSH Key + TOTP\n✅ Password + YubiKey"] end F1 --> MFA F2 --> MFA F3 --> MFA style F1 fill:#458588,color:#ebdbb2,stroke:#83a598 style F2 fill:#689d6a,color:#1d2021,stroke:#8ec07c style F3 fill:#d65d0e,color:#ebdbb2,stroke:#fe8019 style MFA fill:#98971a,color:#1d2021,stroke:#b8bb26
%%{init: {'theme': 'base', 'themeVariables': {'primaryColor': '#458588', 'primaryTextColor': '#ebdbb2', 'primaryBorderColor': '#83a598', 'lineColor': '#ebdbb2', 'secondaryColor': '#3c3836', 'background': '#282828', 'mainBkg': '#3c3836', 'nodeBorder': '#83a598'}}}%% mindmap root((🔐 Remote Access Security)) 🖥️ Remote Access Tools SSH Advanced ProxyJump Agent Forwarding VNC + SSH Tunnel RDP + NLA + TLS Cockpit Web Admin 🛡️ Infrastructure Bastion Host Single Entry Point 95% Attack Surface Reduction Session Recording Network Segmentation 🔑 Authentication MFA TOTP App FIDO2/YubiKey SSH Keys Ed25519 PAM Integration