Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
21.1 Legacy Series
»
CREATE OPENVPN SERVER WITH API
« previous
next »
Print
Pages: [
1
]
Author
Topic: CREATE OPENVPN SERVER WITH API (Read 1565 times)
oussamaboumaad
Newbie
Posts: 1
Karma: 0
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
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
21.1 Legacy Series
»
CREATE OPENVPN SERVER WITH API