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
https://forums.phpfreaks.com/topic/185385-help-in-designing-a-remote-networ-lab/
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.

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.