# Tunnel-Based Solutions for Proxmox Access

## Quick Reference

### Your Current Situation
- **Your Network**: `192.168.1.0/24` (IP: 192.168.1.36)
- **Proxmox Network**: `192.168.11.0/24` (Hosts: 192.168.11.10, 11, 12)
- **Problem**: Different network segments - direct connection blocked

### Available Tunnels

| Host | Internal IP | Tunnel URL | Status |
|------|-------------|------------|--------|
| ml110-01 | 192.168.11.10 | https://ml110-01.d-bis.org | ✅ Active |
| r630-01 | 192.168.11.11 | https://r630-01.d-bis.org | ✅ Active |
| r630-02 | 192.168.11.12 | https://r630-02.d-bis.org | ✅ Healthy |

## Solution 1: Use SSH Tunnel (Recommended for API)

```bash
# Start SSH tunnel
./setup_ssh_tunnel.sh

# In another terminal, use localhost
PROXMOX_HOST=localhost python3 list_vms.py

# Stop tunnel when done
./stop_ssh_tunnel.sh
```

## Solution 2: Access Web UI via Cloudflare Tunnel

Simply open in browser:
- https://ml110-01.d-bis.org (for ml110-01)
- https://r630-01.d-bis.org (for r630-01)
- https://r630-02.d-bis.org (for r630-02)

## Solution 3: Run Script from Proxmox Network

Copy scripts to a machine on `192.168.11.0/24` and run there.

## Solution 4: Use Shell Script via SSH

```bash
export PROXMOX_HOST=192.168.11.10
export PROXMOX_USER=root
./list_vms.sh
```

## Files Created

- `TUNNEL_ANALYSIS.md` - Complete tunnel analysis
- `list_vms_with_tunnels.py` - Enhanced script with tunnel awareness
- `setup_ssh_tunnel.sh` - SSH tunnel setup script
- `stop_ssh_tunnel.sh` - Stop SSH tunnel script
- `TUNNEL_SOLUTIONS.md` - This file

