Инструменты пользователя

Инструменты сайта


сайты:debian_11_fortigate_sslvpn

Различия

Показаны различия между двумя версиями страницы.

Ссылка на это сравнение

Предыдущая версия справа и слеваПредыдущая версия
Следующая версия
Предыдущая версия
сайты:debian_11_fortigate_sslvpn [2022.04.04 08:18] 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>   </code>  
  
-  systemctl enable openfortivpn@myconnection --now+ 
 +<code - /etc/systemd/system/myconnection.service> 
 +[Unit] 
 +Description=OpenFortiVPN for myconnection 
 +After=network-online.target 
 +Documentation=man:openfortivpn(1) 
 + 
 +[Service] 
 +Type=simple 
 +PrivateTmp=true 
 +ExecStart=/usr/bin/openfortivpn -c /etc/openfortivpn/myconnection.conf 
 +OOMScoreAdjust=-100 
 +Restart=on-failure 
 +RestartSec=120s 
 + 
 +[Install] 
 +WantedBy=multi-user.target 
 + 
 +</code>   
 + 
 +Пингуем через VPN каждую минуту, иначе через 5 минут PPP отваливается сам 
 +<code - /etc/crontab> 
 +* * * * * root ping -c 1 192.168.1.100 &> /dev/null 
 +</code> 
 + 
 +  systemctl enable myconnection.service --now
      
 +  
 +
сайты/debian_11_fortigate_sslvpn.1649060299.txt.gz · Последнее изменение: 2022.04.04 08:18 — feser