OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 19.1 Legacy Series »
  • API call to get Interface IP
« previous next »
  • Print
Pages: [1]

Author Topic: API call to get Interface IP  (Read 3912 times)

FingerlessGloves

  • Full Member
  • ***
  • Posts: 114
  • Karma: 11
    • View Profile
    • FingerlessGloves
API call to get Interface IP
« on: March 20, 2019, 09:49:50 pm »
Hi Guys,

I'm trying to get an IP address of an Interface, which is set by OpenVPN Client.

Is there an API call I can use to get list of interface's and their IP addresses or just the IP address of my ovpnc1 interface atleast.

Hopefully this is a quick answer for someone.

Jonny
Logged
Adventuring through internet pipes
My Blog

FingerlessGloves

  • Full Member
  • ***
  • Posts: 114
  • Karma: 11
    • View Profile
    • FingerlessGloves
Re: API call to get Interface IP
« Reply #1 on: March 21, 2019, 09:50:17 pm »
I've been looking at the API's looks like there one, but I can't seem to call it.

https://github.com/opnsense/core/blob/afcae6226a565e86ab668416c91ebc9b6ef12f54/src/opnsense/mvc/app/controllers/OPNsense/OpenVPN/Api/ExportController.php


getInterfaces from this Controller might be want I'm after??

Jonny

EDIT: I've found another way to get my end result of what I needed the interface ip for but I presume the API I was after will come in time.
« Last Edit: March 23, 2019, 12:40:11 am by Jonny »
Logged
Adventuring through internet pipes
My Blog

SimpleRezo

  • Newbie
  • *
  • Posts: 37
  • Karma: 1
    • View Profile
    • RMM for OPNsense
Re: API call to get Interface IP
« Reply #2 on: June 06, 2019, 02:56:41 pm »
I also did not find a way to get OpenVPN client IP address through API... would be nice to be able to retrieve this information :)
Logged
Clément - SimpleRezo
RMM for OPNsense: https://srbox.simplerezo.com/

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 19.1 Legacy Series »
  • API call to get Interface IP
 

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