OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Profile of oussamaboumaad »
  • Show Posts »
  • Messages
  • Profile Info
    • Summary
    • Show Stats
    • Show Posts...
      • Messages
      • Topics
      • Attachments

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

  • Messages
  • Topics
  • Attachments

Messages - oussamaboumaad

Pages: [1]
1
21.1 Legacy Series / CREATE OPENVPN SERVER WITH API
« on: July 12, 2021, 06:28:05 pm »
I know it's ont possible to create openvpn (vpn server) from API, but I think it's possible to do,

Have anyone tried adding vpn server from API ? if yes, what's your approach ?

I'am trying to automate a load balancing between multi  VPN instance on power resourceful OPNSense instance   
I tried using POST {{URL}}/vpn_openvpn_server.php?act=new
along side with all the parameters
description:VPN+LOCAL+3
mode:server_tls_user
authmode:Local+Database
local_group:
protocol:UDP
dev_mode:tun
interface:lan
local_port:1195
tlsauth_enable:yes
autotls_enable:yes
tls:
caref:60e87cdd266f4
crlref:
certref:60e87d3d0451b
dh_length:2048
crypto:AES-256-GCM
digest:SHA256
engine:none
cert_depth:1
tunnel_network:192.168.245.0/24
tunnel_networkv6:
local_network:172.17.0.0/16172.20.0.0/16,192.168.0.0/16
local_networkv6:
remote_network:
remote_networkv6:
maxclients:
compression:adaptive
client2client:yes
duplicate_cn:yes
dynamic_ip:yes
pool_enable:yes
dns_domain:
dns_server1:
dns_server2:
dns_server3:
dns_server4:
ntp_server1:
ntp_server2:
netbios_ntype:0
netbios_scope:
wins_server1:
wins_server2:
client_mgmt_port:
custom_options:
verbosity_level:1
reneg-sec:
save:Save
act:new


 but couldn't get a working vpn instance

I would appreciate your help

Pages: [1]
OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2