Hello, welcome to my blog :-) I don't say much but I occasionally write about things I've learned from a variety of sources, just to be able to refer to them myself later. Deriving Order from Chaos so to speak. Feel free to look around and get in touch. -- Rohit Shriwas
Automate Cyberoam Gateway Login w/ NetworkManager dispatcher service
16 May 2016
The network at BITS Pilani Goa Campus is secured with Cyberoam UTM system and it’s mandatory for all users to login to a gateway server before they’re allowed internet access. While this ensures fair use and quota limits for everyone, it’s often a huge hassle to keep logging in whenever you reconnect. They do provide a client to simplify it, but I still found the manual process somewhat annoying and wasteful. So here’s what I did to automate the thing (all commands as root, on Fedora 23):
Generate configuration file:
Change rohitshriwas and wlp7s0 with your own username and network interface
Add a script for NetworkManager dispatcher:
Change rohitshriwas and wlp7s0 with your own username and network interface
Make the script executable:
And that’s it! Now, I find myself already logged in whenever I reconnect to the campus Wi-FI. This can probably be refined and adapted to work with other Cyberoam enabled networks as well.