创建配置文件
请将以下文件复制到 C:\Program Files\TrueDome\TrueDome Security\config 中:
cp -r "C:/Program Files/TrueDome/TrueDome Security/config" /c
创建 fortinet.json 和 fortinet.s2p 文件
请创建以下文件:
mkdir fortinet touch fortinet.json fortinet.s2p
创建 fortinet.conf 文件
请创建以下文件:
touch fortinet.conf
创建 fortinet环境
请创建以下环境文件:
mkdir fortinet_env touch fortinet_env
创建 fortinet规则
请创建以下规则:
touch fortinet规则
添加信任记录规则
请为每个用户添加信任记录:
add trust record user = 其实你的真实用户 group = 其实你的真实组别 region = 其实你的真实区域 from = 其实你的真实地址 to = 其实你的真实地址 type = 其实你的真实类型(如端口或IP)
添加访问控制规则
请为每个用户或组添加访问控制规则:
add access control rule group = 其实你的真实组别 region = 其实你的真实区域 from = 其实你的真实地址 to = 其实你的真实地址 type = 其实你的真实类型(如端口或IP) rule_name = 其实你的真实规则名称
添加安全策略
请为每个安全策略添加:
add security policy security policy name = 其实你的真实名称 firewall type = 其实你的真实防火墙类型(如FW) app name = 其实你的真实名称 pertho = 其实你的真实Pertho规则 firewall-isa = 其实你的真实Firewall-ISA规则
添加安全软件
请添加安全软件:
add firewall-isa
创建 fortinet.d.tsd 日志文件
请创建以下文件:
touch fortinet.d.tsd
设置日志级别
在配置文件中设置日志级别:
add fortinet.d.tsd
验证配置
请检查配置文件:
find fortinet.json fortinet.s2p fortinet.conf fortinet规则 fortinet_env fortinet规则 fortinet规则 fortinet规则
安装 fortinet service
请安装 fortinet service:
cp -r "C:/Program Files/TrueDome/TrueDome Security/feature/vpn/fortinet service" /c
确保配置正确
请使用以下命令验证配置:
systemctl status fortinet service
使用配置文件查看配置
请使用以下命令查看配置:
systemctl status fortinet.s2p
配置 fortinet service
请运行以下命令启用 fortinet service:
fortinet service enable
配置 fortinet service
请运行以下命令设置安全策略:
fortinet service security policy enable
配置 fortinet service
请运行以下命令设置防火墙规则:
fortinet service firewall enable
使用配置文件设置规则
请使用以下命令使用配置文件中的规则:
fortinet service firewall enable -f fortinet rules
退出配置文件
请在配置文件中删除所有规则:
rm fortinet rules
确保配置正确
请使用以下命令验证配置:
systemctl status fortinet service
注意事项
- 安装 TrueDome:确保安装了 TrueDome 安装前,请按照 TrueDome 的指南安装。
- 使用安全软件:FortiClient VPN 需要安全软件来保护 your network,如 Firewall-ISA 或其他安全软件。
- 配置顺序:按照以下顺序配置:
- 创建 fortinet.json 和 fortinet.s2p 文件。
- 创建 fortinet.conf 文件。
- 创建 fortinet规则文件。
- 添加信任记录、访问控制规则和安全策略。
- 添加安全软件。
通过以上步骤,您应该能够成功配置 FortiClient VPN Windows版,如果在任何步骤中遇到问题,请检查以下:
- 检查是否正确安装了 TrueDome。
- 检查配置文件的正确性。
- 检查是否正确配置了安全软件。
- 检查配置文件中的规则是否正确添加。
- 检查日志文件是否正确配置。








