5 Replies - 486 Views - Last Post: 16 December 2016 - 10:56 AM

#1 morheb  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 01-December 16

c/c++ programmable routers!?

Posted 01 December 2016 - 04:41 PM

Hi guys
I am need to know if it is prossible to program a router ising c/c++

What i need to do is:
Onve connected to the network, the default webpage will ask for an access token, and the router will do a certain algorithm on the entered token to check if it is valid or not (for example, if the sum of its ascii is 100 than its valid) and then the user can use the interent for a limited time (or limited abount of data) .

I need to kmow if it is possible to program the router to do it, and if anyone can give me suggestions for a router that can do it.

Is This A Good Question/Topic? 0
  • +

Replies To: c/c++ programmable routers!?

#2 modi123_1  Icon User is offline

  • Suitor #2
  • member icon



Reputation: 13558
  • View blog
  • Posts: 54,106
  • Joined: 12-June 08

Re: c/c++ programmable routers!?

Posted 01 December 2016 - 04:56 PM

You usually wouldn't "program" a router, and in this case a "captive portal" is more of a settings/web thing.

Example: https://coova.github.io/CoovaChilli/
Was This Post Helpful? 0
  • +
  • -

#3 morheb  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 01-December 16

Re: c/c++ programmable routers!?

Posted 01 December 2016 - 11:46 PM

View Postmodi123_1, on 01 December 2016 - 04:56 PM, said:

You usually wouldn't "program" a router, and in this case a "captive portal" is more of a settings/web thing.

Example: https://coova.github.io/CoovaChilli/

Thanks for the reply
So this can do what i need?
Can i enter certain algorithm for it to do on the access tokens and give a limited internet access?
Was This Post Helpful? 0
  • +
  • -

#4 no2pencil  Icon User is offline

  • Professor Snuggly Pants
  • member icon

Reputation: 6559
  • View blog
  • Posts: 30,699
  • Joined: 10-May 07

Re: c/c++ programmable routers!?

Posted 01 December 2016 - 11:55 PM

Look into DDWRT. Ultimately you could always install Linux/*BSD on any PC with multiple NICs & turn it into a router.

View Postmorheb, on 02 December 2016 - 01:46 AM, said:

So this can do what i need?
Can i enter certain algorithm for it to do on the access tokens and give a limited internet access?

Probably not, this sounds incredibly malicious.
Was This Post Helpful? 0
  • +
  • -

#5 morheb  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 01-December 16

Re: c/c++ programmable routers!?

Posted 02 December 2016 - 12:04 AM

View Postno2pencil, on 01 December 2016 - 11:55 PM, said:

Look into DDWRT. Ultimately you could always install Linux/*BSD on any PC with multiple NICs & turn it into a router.

View Postmorheb, on 02 December 2016 - 01:46 AM, said:

So this can do what i need?
Can i enter certain algorithm for it to do on the access tokens and give a limited internet access?

Probably not, this sounds incredibly malicious.




Habe to use arduino and a router, no pc
The arduino generates the token and the router does the algorithm, this is what i basically thought of
But if it doesnt work i need to find alternative

And why is it malicious, its a university project
Was This Post Helpful? 0
  • +
  • -

#6 bigmatt267  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 1
  • View blog
  • Posts: 79
  • Joined: 02-December 09

Re: c/c++ programmable routers!?

Posted 16 December 2016 - 10:56 AM

Router or Modem? Regardless, most routers are pre configured, and if for example this router is an Adtran device, then you would use the AOS command line interface to setup your device to do what you want it to do. Now, with a modem, such as a home wireless modem, you can download (from the device itself) the configuration, and then edit it as you see fit. If you know your programming, then this path will be an extremely easy way to do so.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1