Показаны различия между двумя версиями страницы.
Предыдущая версия справа и слеваПредыдущая версия | |||
сайты:debian_11_fortigate_sslvpn [2022.04.04 09:21] – feser | сайты:debian_11_fortigate_sslvpn [2022.04.05 05:45] (текущий) – feser | ||
---|---|---|---|
Строка 10: | Строка 10: | ||
password = pass | password = pass | ||
trusted-cert = 4114afe52e931c7f50984567ffc390f529ccd668f01b35eff311abc0d052234a | trusted-cert = 4114afe52e931c7f50984567ffc390f529ccd668f01b35eff311abc0d052234a | ||
- | persistent = 0 | ||
</ | </ | ||
- | | + | |
+ | <code - / | ||
+ | [Unit] | ||
+ | Description=OpenFortiVPN for myconnection | ||
+ | After=network-online.target | ||
+ | Documentation=man: | ||
+ | |||
+ | [Service] | ||
+ | Type=simple | ||
+ | PrivateTmp=true | ||
+ | ExecStart=/ | ||
+ | OOMScoreAdjust=-100 | ||
+ | Restart=on-failure | ||
+ | RestartSec=120s | ||
+ | |||
+ | [Install] | ||
+ | WantedBy=multi-user.target | ||
+ | |||
+ | </ | ||
+ | |||
+ | Пингуем через VPN каждую минуту, | ||
+ | <code - / | ||
+ | * * * * * root ping -c 1 192.168.1.100 &> /dev/null | ||
+ | </ | ||
+ | |||
+ | | ||
| | ||
| | ||
- | === Работаем с NetworkManager === | ||
- | |||
- | dnf install NetworkManager-fortisslvpn | ||
- | nmcli connection add connection.id ecopl con-name Ecopl type VPN vpn-type fortisslvpn | ||