Jump to content

Help in designing a Remote Networ Lab


sama

Recommended Posts

Dear mates

I'm designing a web site that gives access to anyone how wants to use network gears. let us called it " Remote network Lab".

The equipments are limited so every user should reserve his/her time to get access. when he/she reserve hour(s), he will receive a password to use it as a credential to access the equipments.

The users will access the devices ( routers, switches.. etc ) using ssh or telnet ( terminal emulator  like putty), when he opened the session, he should enter the password that he granted. when his time expire, the ssh/telnet should kick him off the session.

please, are their any ideas. I don't have enough experience on PHP :-\, so everything will be appreciated :shy:.

No matter how simple the answers, I don't want to complicate the whole matter for me.so try to be simple!!

sama

Baghdad-Iraq

Merry Christmas :D

Link to comment
Share on other sites

Do you have root access to your server? I'll assume you have a dedicated one. For the session side, I don't think you can really bind PHP and telnet/SSH like so. What you can do is use a PHP command to parse the telnet server when the user is logged in: such as popen'ing telnet or SSH, dynamically setting up authorization for your assigned users and re-write the config for telnet (Or shut it off with another command) once the session time is over (which'd need CRON jobs.)

 

You may need to write your own CGI gateway.. with popen or exec you can run popen("/usr/bin/telnet --start --user $username --pass $pass").. Or however you set up telnet with user/pass.

Link to comment
Share on other sites

Hello mates

Thank you so much oni-kun for your replay.

dear readers, I don't have enough knowledge in php to solve this problem. do anybody have an idea, a simple idea?

I need a reservation system. a simple one to integrate it in my site.

Merry Christmas. your suggestions will be  wonderful gifts for me in this Christmas.. may all your dreams come true in the next One ;)

sama

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.