WOL PHP

Web hosting, FTP/database access, mirror services and hosted blogs
Post Reply
jenkos
Posts: 59
Joined: Thu May 22, 2008 11:50 am
Location: victoria

WOL PHP

Post by jenkos » Tue Apr 06, 2010 2:07 pm

Hi,

I'd like to run this from my web space:
Version: 2
Author of this application:
DS508_customer (http://www.synology.com/enu/forum/membe ... le&u=12636)
Please inform the author of any suggestions on (the functionality, graphical design, ... of) this application.
More info: http://wolviaphp.sourceforge.net
License: GPLv2.0
Main functionality of this application:
This application (a couple of PHP-scripts) allows webusers to wake up WOL-enabled remote hosts.
It sends a magic packet via UDP IPv4 to a remote host, according to the values of the variables on the webform:
optional schedule, MAC-address, optional SecureOn password, broadcast address, CIDR and port.
The last values will be stored in a persistent cookie, which will be encrypted if mcrypt is available on the webserver.
Warnings:
Use At Your Own Risk. The author of this application is in no way liable for (the usage of) this application.
As datalink packets (such as magic packets) are send via ISO-layer 2:
any source/ client can send magic packets to wake a WOL enabled remote host and
it does not matter whether the source/ client or remote host have a fixed or dynamic IP address (OSI-layer 3).
The application:
contains self explaining comments in English.
validates all user input (against code injection), before doing anything else.
forces a minimum delay of 3 seconds, between each WOL-request to prevent abuse (DOS-attacks/ flooding with magic packets).
Requirements:
Webserver running PHP v5.2.6 (earlier versions may work as well).
Make sure firewalls allow incoming magic packets (i.e. forward the public UDP port to the remote host's private broadcast address and do not use conflicting anti-DOS/flooding-rules).
Make sure the webserver permits sending packages via sockets. If a "Fatal error: Call to undefined function socket_create()" occurs:
I've copied the files to my web space but all I get is a blank page.

Is it possible to run this from Exetel web space?

Any help would be appreciated.

Thanks,

jenkos.

SysAdmin

Re: WOL PHP

Post by SysAdmin » Wed Apr 07, 2010 4:34 pm

jenkos wrote:I've copied the files to my web space but all I get is a blank page.

Is it possible to run this from Exetel web space?

Any help would be appreciated.
I've looked at what I think is your webspace but I find it empty. Can
you provide the address (via PM if you want) and, if need be, reinstall
and I'll have a quick look to see if I can spot anything obvious.

Andrew

jenkos
Posts: 59
Joined: Thu May 22, 2008 11:50 am
Location: victoria

Re: WOL PHP

Post by jenkos » Wed Apr 07, 2010 9:43 pm

Hi,

OK, PM sent.

Thanks,

jenkos

jenkos
Posts: 59
Joined: Thu May 22, 2008 11:50 am
Location: victoria

Re: WOL PHP

Post by jenkos » Thu Apr 08, 2010 10:16 am

Hi,

I've set up a Web Server (Abyss) & PHP (5.2.10) on my PC, and am able to run the PHP scripts OK. Of course 'cause it's on the PC I want wake up I don't know if it will actually do it.

I may have to get up off the recliner, install it on the laptop and see if will do "as advertised".

At least I know that it runs.

The plan is have it on my web page so I wake the PC from work and access it over the 'net.

jenkos.

SysAdmin

Re: WOL PHP

Post by SysAdmin » Thu Apr 08, 2010 12:16 pm

jenkos wrote:Hi,

OK, PM sent.
Fixed.

Please note that there is a firewall on that server so if your script still does not work, that may be the end of it.

Andrew

jenkos
Posts: 59
Joined: Thu May 22, 2008 11:50 am
Location: victoria

Re: WOL PHP

Post by jenkos » Thu Apr 08, 2010 7:40 pm

Hi,

Script runs, now need to test it from outside my network.

Thanks,

jenkos

Post Reply