Skip to content

About

机房网关管理工具 / Classroom Gateway Manager - 局域网批量管理学生机网关配置

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

机房网关管理工具 / Classroom Gateway Manager

中文 | English


中文

简介

局域网机房网关管理工具。教师机(主控端)远程管理学生机(受控端)的网关配置,支持批量断网/恢复联网。适用于学校机房、实验室等场景。

功能特性

  • 批量清空网关 -- 一键断开学生机网络访问
  • 批量设置网关 -- 一键恢复学生机联网
  • 自动发现 -- 学生机启动后自动注册到教师机,无需手动添加
  • 预设网关 -- 下拉选择常用网关地址,支持自动保存新增
  • 静默运行 -- 受控端无窗口、无任务栏图标、不响应关闭信号
  • 实时状态 -- 显示每台机器的主机名、IP、网关、在线状态
  • 操作日志 -- 双方均有日志文件,按大小轮转,方便排查

快速开始

环境要求

部署

  1. 下载发行版,解压 主控端.zip 到教师机,解压 受控端.zip 到学生机
  2. 修改受控端 appsettings.json 中的 ControllerUrl 为主控端 IP
  3. 双击 exe 启动(首次需管理员权限确认)

计划任务部署(推荐,无弹窗)

:: 受控端
schtasks /Create /TN "GWAgent" /TR "C:\GatewayManager\GatewayManager.Agent.exe" /SC ONCE /ST 00:00 /F /RL HIGHEST
schtasks /Run /TN "GWAgent"

:: 主控端
schtasks /Create /TN "GWController" /TR "C:\Controller\GatewayManager.Controller.exe" /SC ONCE /ST 00:00 /F /RL HIGHEST
schtasks /Run /TN "GWController"

配置

详见 技术文档

日志位置

组件 路径
受控端 C:\GatewayManager\agent.log
主控端 C:\Controller\controller.log

English

Introduction

A LAN-based classroom gateway management tool. The teacher's computer (Controller) remotely manages the gateway configuration of student computers (Agent), supporting batch disconnect/reconnect. Designed for school computer labs and classrooms.

Features

  • Batch Clear Gateway -- One-click to disconnect student network access
  • Batch Set Gateway -- One-click to restore student internet
  • Auto Discovery -- Student machines auto-register with the teacher's machine on startup
  • Preset Gateways -- Dropdown selection of common gateway addresses with auto-save
  • Silent Mode -- Agent runs with no window, no taskbar icon, ignores close signals
  • Real-time Status -- Displays hostname, IP, gateway, and online status for each machine
  • Operation Logs -- Both sides have log files with size-based rotation

Quick Start

Requirements

Deployment

  1. Download the release, extract Controller.zip to the teacher's machine, extract Agent.zip to student machines
  2. Edit appsettings.json on the agent, set ControllerUrl to the controller's IP
  3. Double-click the exe to launch (admin privileges required on first run)

Scheduled Task Deployment (Recommended, No Popup)

:: Agent
schtasks /Create /TN "GWAgent" /TR "C:\GatewayManager\GatewayManager.Agent.exe" /SC ONCE /ST 00:00 /F /RL HIGHEST
schtasks /Run /TN "GWAgent"

:: Controller
schtasks /Create /TN "GWController" /TR "C:\Controller\GatewayManager.Controller.exe" /SC ONCE /ST 00:00 /F /RL HIGHEST
schtasks /Run /TN "GWController"

Configuration

See Technical Documentation

Log Locations

Component Path
Agent C:\GatewayManager\agent.log
Controller C:\Controller\controller.log

License

MIT

About

机房网关管理工具 / Classroom Gateway Manager - 局域网批量管理学生机网关配置

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages