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

Start, Stop multiple OpenVPN Client

Scheduled Pinned Locked Moved OpenVPN
3 Posts 2 Posters 637 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.
  • A
    alivdel
    last edited by Dec 18, 2017, 8:00 AM

    Hi all,

    lets say i have a OpenVPN Server and 5 Client, i want to start or stop Clients from console anytime i Need. i know we can start(stop) them with folloing command : " /usr/local/sbin/pfSsh.php playback svc start(stop) openvpn client 1 "
    now i want to know, is there a way to define each Client with a specific Name for example : a, b, c, d  and e . then start or stop them with calling These names, for example sth like: " " /usr/local/sbin/pfSsh.php playback svc start(stop) openvpn a "

    thanks

    1 Reply Last reply Reply Quote 0
    • D
      Derelict LAYER 8 Netgate
      last edited by Dec 18, 2017, 10:21 AM

      Upi would have to write php to do that then call the proper command in the format already referenced.

      Chattanooga, Tennessee, USA
      A comprehensive network diagram is worth 10,000 words and 15 conference calls.
      DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
      Do Not Chat For Help! NO_WAN_EGRESS(TM)

      1 Reply Last reply Reply Quote 0
      • A
        alivdel
        last edited by Dec 18, 2017, 12:38 PM

        @Derelict:

        Upi would have to write php to do that then call the proper command in the format already referenced.

        thanks for reply, ja it can be written with php or a simple script but my question is, how can i reference my Clients to the names which i want.
        because as i know Clients are referenced automatic by numbers, such as Client 1 ,Client 2 and so on…, now i want to know how can i reference Client 1 as for example "a" , Client 2 as "b" and ...

        1 Reply Last reply Reply Quote 0
        3 out of 3
        • First post
          3/3
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
          This community forum collects and processes your personal information.
          consent.not_received