@echo off&setlocal enabledelayedexpansion MODE con: COLS=70 lines=15 TITLE 外网拦截 BY Claves :begin echo 请选择: @echo [1]: 安装 @echo [2]: 卸载 set var=0 set /p var=请输入[?]序号 if "%var%"=="1" goto install if "%var%"=="2" goto uninstall :install cls echo 正在安装中..... echo 执行 删除 0.0.0.0 route -p delete 0.0.0.0 echo 添加 0.0.0.0 到 192.168.1.1 route -p add 0.0.0.0 mask 0.0.0.0 127.0.0.1 echo 添加 10.0.0.0 到 10.10.36.1 route -p add 192.168.0.0 mask 255.255.0.0 192.168.1.1 echo 设置成功! pause exit :uninstall cls echo 正在卸载中...... echo 删除无线出入网关 route -p delete 0.0.0.0 mask 0.0.0.0 127.0.0.1 route -p delete 192.168.0.0 mask 255.255.0.0 192.168.1.1 echo 请断网重连 pause