Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Стоп\старт\рестарт Open VPN из CLI

    Scheduled Pinned Locked Moved Russian
    1 Posts 1 Posters 467 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P Offline
      pigbrother
      last edited by

      В продолжении темы, поднятой тут:
      https://forum.pfsense.org/index.php?topic=128841.msg720927#msg720927

      Корректный стоп\старт\рестарт индивидуального экземпляра Open VPN сервера. Возможно - и клиента, это не проверял.

      pfSsh.php playback svc stop openvpn server 2

      Starting the pfSense developer shell….
      Attempting to issue stop to openvpn service...
      openvpn has been stopped.

      pfSsh.php playback svc start openvpn server 2

      Starting the pfSense developer shell….
      Attempting to issue start to openvpn service...
      openvpn has been started.

      pfSsh.php playback svc restart openvpn server 2

      Starting the pfSense developer shell….
      Attempting to issue restart to openvpn service...
      openvpn has been restarted.

      server 2 - то, что в
      /var/etc/openvpn
      соответствует server2.conf

      Используется PHP pfSense Shell. Теоретически можно писать подобие макросов.
      https://doc.pfsense.org/index.php/Using_the_PHP_pfSense_Shell

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.