局域网机房网关管理工具。教师机(主控端)远程管理学生机(受控端)的网关配置,支持批量断网/恢复联网。适用于学校机房、实验室等场景。
- 批量清空网关 -- 一键断开学生机网络访问
- 批量设置网关 -- 一键恢复学生机联网
- 自动发现 -- 学生机启动后自动注册到教师机,无需手动添加
- 预设网关 -- 下拉选择常用网关地址,支持自动保存新增
- 静默运行 -- 受控端无窗口、无任务栏图标、不响应关闭信号
- 实时状态 -- 显示每台机器的主机名、IP、网关、在线状态
- 操作日志 -- 双方均有日志文件,按大小轮转,方便排查
- Windows 10/11
- .NET 8 Desktop Runtime(框架依赖版需要)
- 下载发行版,解压
主控端.zip到教师机,解压受控端.zip到学生机 - 修改受控端
appsettings.json中的ControllerUrl为主控端 IP - 双击 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 |
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.
- 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
- Windows 10/11
- .NET 8 Desktop Runtime (required for framework-dependent version)
- Download the release, extract
Controller.zipto the teacher's machine, extractAgent.zipto student machines - Edit
appsettings.jsonon the agent, setControllerUrlto the controller's IP - Double-click the exe to launch (admin privileges required on first run)
:: 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"| Component | Path |
|---|---|
| Agent | C:\GatewayManager\agent.log |
| Controller | C:\Controller\controller.log |
MIT