Linc is not Cyberoam

August 10, 2008 at 6:44 am | In Debian, JNU, Linux | 8 Comments

See updates and leave comment on the new blog here.

My university uses cyberoam software for regulating internet use. It requires one to log into an account using a browser or a client software. Using the browser is a pain because one has to keep the window used for authentication open throughout the session. If you close it by mistake, cyberoam throws you out and you have to log in again to be able to use internet.

The linux client that comes with cyberoam, at least the version that was available from the cyberoam server of my university (version 1.1), is broken. On running, it just gave me a “Segmentation fault” and exited.

Subsequently, I installed Linc, a free cyberoam client, and it worked flawlessly. The website of linc is here. The only small problem I faced was that the sourceforge download page gave some errors. For others who may face the same problem, links for direct download are here:

Source

rpm

No deb package is provided at the site. I created a deb package using alien but that did not work for me (it complained about a different version of libstdc++, the c++ compiler).

However, installation from source on my Ubuntu 8.04 was straightforward. For installation on Ubuntu/Debian systems you should only need to do the following:

/> tar -xzvf linc-daemon-1.2.tar.gz
/> cd linc-daemon-1.2
/> ./configure
/> make
/> sudo make install

Once installed, create a lincrc file as specified on the linc website. Call linc whenever you want to access internet via cyberoam and there you go!! If you are using a computer that always needs to connect through cyberoam, you can configure the machine to start it when the machine starts.

It should be possible to script it with something like guessnet if the machine uses different networks at different locations and needs to go through cyberoam only on some of them. I have not tried it though.

Hope this helps.

8 Comments »

RSS feed for comments on this post. TrackBack URI

  1. In debian lenny I can’t configure linc.
    I’m using gcc-4.3; c++-4.3; cpp-4.3

    make command shows as below

    gcc -DPACKAGE=\”linc-daemon\” -DVERSION=\”1.2\” -DHAVE_SYSLOG_H=1 -I. -I. -O2 -cMsg.cpp In file included from /usr/include/c++/4.3/backward/strstream:51, from Msg.cpp:33: usr/include/c++/4.3/backward/backward_warning.h:33:2: warning: #warning This
    file includes at least one deprecated or antiquated header which may be
    removed without further notice at a future date. Please use a non-deprecated
    interface with equivalent functionality instead. For a listing of replacement
    headers and interfaces, consult the file backward_warning.h. To disable this
    warning use -Wno-deprecated.
    Msg.cpp: In constructor âMsg::Msg(MSGTYPE_en, int32_t)â:
    Msg.cpp:146: error: âbzeroâ was not declared in this scope
    make: *** [Msg.o] Error 1

    Plese suggest me how to fix it ?

  2. I have compiled it without any problems on ubuntu hardy and debian sid. My ubuntu system runs gcc 4.2.3. I am afraid I am not a hacker and would not be able to help you with the error.

    You may want to try tracking down the package maintainer and asking for help. I am, however, not too sure how actively is this maintained. The second option would be to raise it on the mailing lists (seen you on ilugd/ilug-cal-discuss) and see if someone there could help.

    V.

  3. Thanks for your response. If you found that gcc-4.3 can compile it then pls let me know. Do you know any other tool like linc which don’t have any such problem with gcc-4.3 and also work as deamon like linc ?

    thanks

  4. Hello,

    I have successfully compiled the linc. but it was little tricky. I downgraded cpp and gcc to 4.1 and no problem to compile.
    Thanks

  5. I successfully compiled linc with gcc 4.3.2. Several files were missing the header . Add this to files whichever show error during compilation. Also the encrypt.cpp file had used the data type u_int16_t and u_int32_t, they should be uint16_t and uint32_t respectively.

  6. Sorry missed the header part. The header missing is
    cstdlib. To include this header add this line where files have been included (usually at the top) #include

  7. Debjit,

    Thanks for the very helpful comment. Would it be possible for you to post a fixed code somewhere and provide a link? That would indeed be useful.

    Can one post a fix at sourceforge itself?

    Vikas

  8. Yes that would be very helpful to work with the latest gcc


Leave a comment

XHTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Blog at WordPress.com. | Theme: Pool by Borja Fernandez.
Entries and comments feeds.