Networking & Wireless forum


Need to add users using OpnSense/clearos/other's API

by it_harsh / July 5, 2017 6:55 AM PDT


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

Discussion is locked
You are posting a reply to: Need to add users using OpnSense/clearos/other's API
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: Need to add users using OpnSense/clearos/other's API
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.

All Answers

Collapse -
Re: firewall API's
by Kees_B Forum moderator / July 5, 2017 7:39 AM PDT

If you can't find it in the documentation of the firewall, it's time to contact the maker or the company that installed it. If it doesn't work with the current one, there might be a good alternative. Specialised companies know such.

Collapse -
This is a good question
by R. Proffitt Forum moderator / July 5, 2017 7:40 AM PDT

For the programmer, team that will be implementing this. If they don't know how, then you need better programmers that can call the gear makers as required.

Popular Forums

Computer Newbies 10,686 discussions
Computer Help 54,365 discussions
Laptops 21,181 discussions
Networking & Wireless 16,313 discussions
Phones 17,137 discussions
Security 31,287 discussions
TVs & Home Theaters 22,101 discussions
Windows 7 8,164 discussions
Windows 10 2,657 discussions


Your favorite shows are back!

Don’t miss your dramas, sitcoms and reality shows. Find out when and where they’re airing!