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

    Scripting openvpn client changes

    OpenVPN
    1
    1
    205
    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.
    • S
      SchuFire
      last edited by SchuFire

      Please forgive the seemingly noob question....

      Running pfSense CE 2.7.2

      I have 10 openvpn clients configured. I would like to automate rotating through those 10 clients through a cron job.

      As it stands right now, I have to perform the following manually.

      1. Navigate to interfaces -- interface assignments -- use the network port drop down for my OPT1 interface to change to the desired openvpn client
      2. Navigate to VPN -- openvpn -- clients -- edit the currently active client and check the disabled (disable this client) checkbox -- save
      3. From VPN -- openvpn -- clients -- edit the desired client and UNcheck the disabled (disable this client) checkbox -- save

      As expected the VPN egress changes to the location defined in the newly enabled openvpn client. This process works fine but is manual. I looed at the documentation (no help at all), found some github sites that came sorta close, and played around with the shell and PHP shell options but with no euccess

      I welcome any thoughts or ideas.

      Many thanks.

      SchuFire

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