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

    Looking to set some default values

    Scheduled Pinned Locked Moved OpenVPN
    2 Posts 1 Posters 289 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.
    • J
      jkaven
      last edited by jkaven

      Hello,

      I have a lot of clients to add for OpenVPN. Is there a way to set some defaults for:
      Server host or address:
      TLS Configuration:
      And add AES-256-GCM to NCP Algorithms (currently 128 is default).

      Changing the source will work too if simple.

      Thanks!

      J 1 Reply Last reply Reply Quote 0
      • J
        jkaven @jkaven
        last edited by jkaven

        I'm going to answer my own question... the php is very easy to read.

        /usr/local/www/vpn_openvpn_client.php

        if ($act == "new") {
        $pconfig['ncp_enable'] = "enabled";
        $pconfig['ncp-ciphers'] = "AES-128-GCM,AES-256-GCM";
        $pconfig['autokey_enable'] = "yes";
        $pconfig['tlsauth_enable'] = "yes";
        $pconfig['autotls_enable'] = "yes";
        $pconfig['interface'] = "wan";
        $pconfig['server_addr'] = 1.1.1.1
        $pconfig['server_port'] = 1194;
        $pconfig['verbosity_level'] = 1; // Default verbosity is 1
        $pconfig['digest'] = "SHA256";
        $pconfig['compression'] = "none";

        Thanks!

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