生成VPN脚本
自动脚本生成
- 打开 Yubasec 或 Netcat。
- 在主界面,选择 Create > Configure。
- 选择 Dynamic Port。
- 选择 Dynamic Port for All Users。
- 点击 Create,配置脚本的设置(如 port ID、IP、Port ID Name 等)。
- 点击 Generate 生成脚本。
手动脚本生成
- 点击 File > New > Web Interface。
- 在新界面中,输入以下内容:
export "eth:eth 1...1/124"
- 点击 Generate,脚本将保存为
eth:eth。
修改密码
手动修改密码
- 打开 Yubasec 或 Netcat。
- 选择 Security > Configure > Security Settings。
- 在 Password 列中修改密码。
- 保存修改。
自动修改密码
- 打开 Yubasec 或 Netcat。
- 点击 File > Security > Configure > Security Settings。
- 在 Password 列中修改密码。
- 保存修改。
执行脚本
手动执行脚本
- 打开 Yubasec 或 Netcat。
- 点击 File > Open Web Interface > Web Interface。
- 输入脚本路径(
eth:eth)。 - 点击 Run。
自动执行脚本
- 回到 Yubasec 或 Netcat。
- 点击 File > Open Web Interface > Web Interface。
- 点击 Run > Execute Web Interface。
- 在弹出的对话框中输入脚本路径(
eth:eth)。
自动断开脚本
手动设置
- 点击 File > Security > Configure > Security Settings。
- 在 Password 列中添加一个自动断开的密码(
eth:eth)。 - 点击 Add,设置自动断开的时间和阈值(24 小时自动断开)。
- 保存修改。
自动设置
- 回到 Yubasec 或 Netcat。
- 点击 File > Security > Configure > Security Settings。
- 在 Password 列中添加一个自动断开的密码(
eth:eth)。 - 点击 Add,设置自动断开的时间和阈值(24 小时自动断开)。
- 保存修改。
确保安全列表
确保上述密码不在你的安全列表中,否则脚本会自动断开连接。


