Files
tldr/pages.zh/linux/openfortivpn.md

20 lines
587 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# openfortivpn
> 一个用于Fortinet专有PPP+SSL VPN解决方案的VPN客户端。
> 更多信息:<https://github.com/adrienverge/openfortivpn>。
- 使用用户名和密码连接到VPN
`openfortivpn --username={{username}} --password={{password}}`
- 使用特定的配置文件连接到VPN默认为`/etc/openfortivpn/config`
`sudo openfortivpn --config={{path/to/config}}`
- 通过指定主机和端口连接到VPN
`openfortivpn {{host}}:{{port}}`
- 通过传递其证书的sha256摘要来信任给定的网关
`openfortivpn --trusted-cert={{sha256_sum}}`