Skip to content

KASM VLAN config issue post 1.15.0+ images #743

Open

Description

@Kabe0

Existing Resources

  • Please search the existing issues for related problems
  • Consult the product documentation : Docs
  • Consult the FAQ : FAQ
  • Consult the Troubleshooting Guide : Guide
  • Reviewed existing training videos: Youtube

Describe the bug
When working with restricted networking, I have a consistent problem with the container sessions starting properly, but the VNC connection never succeeding. This all started after the 1.15.0 builds. The 1.15.0 build behave properly, and connect to the VLAN network as expected.

To Reproduce
Steps to reproduce the behavior:

  1. configure a VLAN network interface. I have created one such as
        vlan15: connected to developers
        "vlan15"
        inet4 10.19.48.2/24
        route4 10.19.48.0/24 metric 400
  1. Setup the docker vlan config
    docker network create --id -d ipvlan --subnet=10.19.48.0/24 --gateway=10.19.48.1 --aux-address="local=10.19.48.2" -o ipvlan_mode=l2 -o parent=vlan15 z_developer-net

  2. Go to workspaces, and update a workspace to be restricted networks, and set "z_developer-net" as the network.

  3. Login to the front-end portal and connect to the workspace. Inspect and watch the 503 errors on the VNC connection

https://domain.com/<uuid>/vnc/vnc.html?video_quality=3&enable_webp=false&idle_disconnect=20&password=&autoconnect=1&path=desktop/<uuid>f/vnc/websockify&cursor=true&resize=remote&clipboard_up=true&clipboard_down=false&clipboard_seamless=true&toggle_control_panel=null

Expected behavior
VNC connects and opens up the window session. This image is working fine kasmweb/ubuntu-focal-dind-rootless:1.15.0, as well as kasmweb/fedora-39-desktop:1.15.0. Any of the later images these versions or other releases fail.

Workspaces Version
Version 1.17

Workspaces Installation Method
Single Server

Client Browser (please complete the following information):

  • OS: Linux
  • Browser Chrome, (Firefox too)
  • Version 136.0.71

Workspace Server Information (please provide the output of the following commands):

f2e8e141df64   kasmweb/proxy:1.17.0                    "/docker-entrypoint.…"   About an hour ago   Up About an hour             80/tcp, 0.0.0.0:443->443/tcp, [::]:443->443/tcp   kasm_proxy
8a2b2940673f   kasmweb/rdp-https-gateway:1.17.0        "/opt/rdpgw/rdpgw"       About an hour ago   Up About an hour (healthy)                                                     kasm_rdp_https_gateway
b6936acfe824   kasmweb/rdp-gateway:1.17.0              "/start.sh"              About an hour ago   Up About an hour (healthy)   0.0.0.0:3389->3389/tcp, [::]:3389->3389/tcp       kasm_rdp_gateway
5b2a97f0e089   kasmweb/agent:1.17.0                    "python3 /src/Provis…"   About an hour ago   Up About an hour (healthy)   4444/tcp                                          kasm_agent
915bd45ad54d   kasmweb/api:1.17.0                      "/bin/sh -c /usr/bin…"   About an hour ago   Up About an hour (healthy)   8080/tcp                                          kasm_api
737fe372c68f   kasmweb/share:1.17.0                    "python3 /src/api_se…"   About an hour ago   Up About an hour (healthy)   8182/tcp                                          kasm_share
a84275d6d9e3   kasmweb/manager:1.17.0                  "python3 /src/api_se…"   About an hour ago   Up About an hour (healthy)   8181/tcp                                          kasm_manager
d359e1438503   kasmweb/postgres:1.17.0                 "docker-entrypoint.s…"   About an hour ago   Up About an hour (healthy)   0.0.0.0:5432->5432/tcp, [::]:5432->5432/tcp       kasm_db
56b008598d2a   redis:5-alpine                          "docker-entrypoint.s…"   About an hour ago   Up About an hour             6379/tcp                                          kasm_redis
8d093e0b7037   kasmweb/kasm-guac:1.17.0                "/dockerentrypoint.sh"   About an hour ago   Up About an hour (healthy)                                                     kasm_guac

Activity

  1. added
    bug
    on May 26, 2025
  2. Kabe0 commented on May 26, 2025

    @Kabe0
    Author

    The actual KASM Logger is not reporting any errors so it's making things hard to better diagnose why this is effecting newer images only.

  3. Kabe0 commented on May 27, 2025

    @Kabe0
    Author

    Just some more information. Here is the Iptable policy if that helps.

    Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
        pkts      bytes target     prot opt in     out     source               destination         
    
    Chain FORWARD (policy DROP 0 packets, 0 bytes)
        pkts      bytes target     prot opt in     out     source               destination         
           0        0 ACCEPT     all  --  *      br_kasm_sidecar  0.0.0.0/0            0.0.0.0/0            ctstate RELATED,ESTABLISHED
           0        0 DOCKER     all  --  *      br_kasm_sidecar  0.0.0.0/0            0.0.0.0/0           
           0        0 ACCEPT     all  --  br_kasm_sidecar !br_kasm_sidecar  0.0.0.0/0            0.0.0.0/0           
           0        0 ACCEPT     all  --  br_kasm_sidecar br_kasm_sidecar  0.0.0.0/0            0.0.0.0/0           
       57259 130057401 DOCKER-USER  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
       57259 130057401 DOCKER-FORWARD  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
    
    Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
        pkts      bytes target     prot opt in     out     source               destination         
    
    Chain DOCKER (3 references)
        pkts      bytes target     prot opt in     out     source               destination         
           0        0 RETURN     all  --  br_kasm_sidecar *       0.0.0.0/0            0.0.0.0/0           
           0        0 ACCEPT     tcp  --  !br-041ee9f3d270 br-041ee9f3d270  0.0.0.0/0            172.18.0.10          tcp dpt:3389
         115     6900 ACCEPT     tcp  --  !br-041ee9f3d270 br-041ee9f3d270  0.0.0.0/0            172.18.0.11          tcp dpt:443
           0        0 ACCEPT     tcp  --  !br-041ee9f3d270 br-041ee9f3d270  0.0.0.0/0            172.18.0.5           tcp dpt:5432
           0        0 DROP       all  --  !br-041ee9f3d270 br-041ee9f3d270  0.0.0.0/0            0.0.0.0/0           
           0        0 DROP       all  --  !docker0 docker0  0.0.0.0/0            0.0.0.0/0           
    
    Chain DOCKER-BRIDGE (1 references)
        pkts      bytes target     prot opt in     out     source               destination         
         115     6900 DOCKER     all  --  *      br-041ee9f3d270  0.0.0.0/0            0.0.0.0/0           
           0        0 DOCKER     all  --  *      docker0  0.0.0.0/0            0.0.0.0/0           
    
    Chain DOCKER-CT (1 references)
        pkts      bytes target     prot opt in     out     source               destination         
       37129  4202578 ACCEPT     all  --  *      br-041ee9f3d270  0.0.0.0/0            0.0.0.0/0            ctstate RELATED,ESTABLISHED
           0        0 ACCEPT     all  --  *      docker0  0.0.0.0/0            0.0.0.0/0            ctstate RELATED,ESTABLISHED
    
    Chain DOCKER-FORWARD (1 references)
        pkts      bytes target     prot opt in     out     source               destination         
       57259 130057401 DOCKER-CT  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
       20130 125854823 DOCKER-ISOLATION-STAGE-1  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
       20130 125854823 DOCKER-BRIDGE  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
       20015 125847923 ACCEPT     all  --  br-041ee9f3d270 *       0.0.0.0/0            0.0.0.0/0           
           0        0 ACCEPT     all  --  docker0 *       0.0.0.0/0            0.0.0.0/0           
    
    Chain DOCKER-ISOLATION-STAGE-1 (1 references)
        pkts      bytes target     prot opt in     out     source               destination         
       20015 125847923 DOCKER-ISOLATION-STAGE-2  all  --  br-041ee9f3d270 !br-041ee9f3d270  0.0.0.0/0            0.0.0.0/0           
           0        0 DOCKER-ISOLATION-STAGE-2  all  --  br_kasm_sidecar !br_kasm_sidecar  0.0.0.0/0            0.0.0.0/0           
           0        0 DOCKER-ISOLATION-STAGE-2  all  --  docker0 !docker0  0.0.0.0/0            0.0.0.0/0           
    
    Chain DOCKER-ISOLATION-STAGE-2 (3 references)
        pkts      bytes target     prot opt in     out     source               destination         
           0        0 DROP       all  --  *      docker0  0.0.0.0/0            0.0.0.0/0           
           0        0 DROP       all  --  *      br_kasm_sidecar  0.0.0.0/0            0.0.0.0/0           
           0        0 DROP       all  --  *      br-041ee9f3d270  0.0.0.0/0            0.0.0.0/0           
    
    Chain DOCKER-USER (1 references)
        pkts      bytes target     prot opt in     out     source               destination         
       57259 130057401 RETURN     all  --  *      *       0.0.0.0/0            0.0.0.0/0    
    
  4. Kabe0 commented on May 27, 2025

    @Kabe0
    Author

    Yep the type ipvlan works. Is this not something that could be added to the base images?

  5. Kabe0 commented on May 27, 2025

    @Kabe0
    Author

    Maybe this would work better? Just combine the results so both scenarios pass.

                    interfaces=$(ip link show type veth 2>/dev/null; ip link show type ipvlan 2>/dev/null | awk -F: '/^[0-9]+: / {print $2}' | awk '{print $1}' | sed 's/@.*//')
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions