Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
Need to add users using OpnSense API.
« previous
next »
Print
Pages: [
1
]
Author
Topic: Need to add users using OpnSense API. (Read 4970 times)
it_harsh
Newbie
Posts: 3
Karma: 0
Need to add users using OpnSense API.
«
on:
July 05, 2017, 04:22:03 pm »
Hello,
Currently, In our College, Firstly new user needs to register their device's MAC address to the NOC. (All 2000 student go to single NOC Room). When they register their MAC address, a static address is assigned to them and entry is added to the Cyberoam firewall. (Now, they have started to use DHCP to assign static IP to a MAC address).
Now, what we want is that wifi becomes open and has no MAC filtering. So, once a user is connected to the internet, The firewall blocks every connection to that host except one IP address and a specific port which would be of our Authentication Server. Then, the user will get a captive portal that will allow them to download our College's App. Once user Installs the App, The App should send a request to the Auth Server to allow Access to Intranet Services to that specific MAC Address. Then the App should Contain an Internet page on which there will be a Connect button. When they click on connect on connect button, The auth server will whitelist their MAC for Internet Access(Whoever has paid for it) to the firewall and assign bandwidth and Quota Limit. (Optional) The firewall should blacklist the MAC when their session ends.
So basically, we want to create a middle auth server which will have its own database(& separate panel for admins) which will communicate to the firewall for blacklisting and whitelisting MAC's.
Is there any way, that by using firewall's API , we can meet above specified conditions
Logged
bartjsmit
Hero Member
Posts: 2018
Karma: 194
Re: Need to add users using OpnSense API.
«
Reply #1 on:
July 05, 2017, 06:37:31 pm »
Perhaps RADIUS can be the authentication glue in your design?
https://docs.opnsense.org/search.html?q=radius&check_keywords=yes&area=default
Bart...
Logged
fabian
Hero Member
Posts: 2769
Karma: 200
OPNsense Contributor (Language, VPN, Proxy, etc.)
Re: Need to add users using OpnSense API.
«
Reply #2 on:
July 05, 2017, 06:50:10 pm »
There is a RADIUS plugin in development (
https://github.com/opnsense/plugins/pull/190
). This plugin has an API.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
Need to add users using OpnSense API.