Menu

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.

Show posts Menu

Topics - BrianW

#1
19.1 Legacy Series / CP Endpoints for White List
February 07, 2019, 06:52:54 PM
Can anyone point me to the endpoints for getting, adding, and deleting MAC address to the CP white list via the API?

Thanks
#2
19.1 Legacy Series / [solved]API via Ruby
February 06, 2019, 06:29:07 PM
I am running OPNsense 19.1.1 and attempting to access the API via Ruby

This code snippet:

require 'net/http'
require 'openssl'
require 'json'

uri = URI('https://10.15.1.227/api/captiveportal/service/searchtemplates')

request = Net::HTTP::Get.new(uri)

request.basic_auth '123', 'abc'

result = Net::HTTP.start(uri.hostname, uri.port, :use_ssl => true) do |http|
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
http.request(request)
end

puts result.body


produces the error:

SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed

I have confirmed that the key and secret are correct.

Am I doing it right?

Thanks
#3
18.7 Legacy Series / MAC Authentication via RADIUS
January 21, 2019, 09:24:30 PM
I am running OPNsense 18.7.10-amd64.

I would like to authenticate users with MAC address via RADIUS or roll to a capture page if not authenticated.

Can this be done with OPNsense? Can someone point me in the right direction?

Thanks,

Brian