ifel.nordvpn

NordVPN

设置和配置 NordVPN 客户端

要求

您需要有一个有效的 NordVPN 订阅。

角色变量

变量 类型 选项 默认值 备注
auto_connect 布尔值 true, false false 是否需要在启动时连接 VPN
auto_connect_host 字符串 启动时 VPN 连接的主机
cyber_sec 布尔值 true, false false 启用或禁用 CyberSec
dns 字符串 disabled 设置自定义 DNS(您可以设置一个或两个用空格分隔的 DNS 服务器)
firewall 布尔值 true, false false 启用或禁用防火墙
ipv6 布尔值 true, false false 启用或禁用 ipv6
kill_switch 布尔值 true, false false 启用或禁用 Kill Switch
notifications 布尔值 true, false false 启用或禁用通知
technology 字符串 OPENVPN, NORDLYNX OPENVPN 设置连接技术(OpenVPN 或 NordLynx
protocol 字符串 UDP, TCP UDP 切换 UDP 和 TCP 协议
whitelisted_ports 列表 [22] 在 VPN 可用时应允许访问的端口列表
whitelisted_subnets 列表 [] 白名单子网列表。您可能想添加您的本地子网
login 布尔值 true, false true 自动登录到账户
username 字符串 foo 账户用户名
password 字符串 bar 账户密码
connect 布尔值 true, false false 配置完成后自动连接 VPN
server 字符串 连接到指定服务器

有关 NordVPN 设置的更多详细信息,请查看 NordVPN Linux 手册页面

依赖关系

无依赖关系

示例剧本

包含如何使用您的角色的示例(例如,以参数传入变量)对用户也很有帮助:

- hosts: nordvpn_clients
  roles:
     - role: ifel.nordvpn
       vars:
         auto_connect: true
         auto_connect_host: "us8830"
         firewall: true
         kill_switch: true
         technology: "NORDLYNX"
         username: [email protected]
         password: "我的密码,最好加密,见 https://bit.ly/3rOIlz3"
         server: "us8830"
         whitelisted_ports: [22, 80]
         whitelisted_subnets: ["192.168.0.0/16"]

许可证

MIT

作者信息

https://github.com/ifel/

关于项目

Setup and configures NordVPN client

安装
ansible-galaxy install ifel.nordvpn
许可证
Unknown
下载
7k
拥有者