Wake on lan from web interface send with server or host ?



  • Hi,
    I have weird behavior with wake on lan with the web interface (basic tasks -> advanced -> wake-up)

    This work only if i launch the task on the web interface from host in the same vlan.
    If i test from host in other vlan (always with web interface), it’s not work.

    I test from FOG server (who is in other vlan) : /usr/bin/wakeonlan 00:11:22:xx and it’s works

    When we launch wake-up from web interface is it the server who send wakeonlan command or the host from which clic on the web interface ?

    Regards



  • @sebastian-roth
    Hi,
    I use FOG 1.5.4
    I have just done a new test and work on http but not https.
    I use Firefox 61.0.1 64 bits without extensions.

    I use on the host : Basic Task -> Advanced -> Wake-up

    See my virtualhost conf for https :

    <VirtualHost *:443>
        KeepAlive Off
    
        ServerName fog.mydomain
        ServerAlias fog.mydomain
    
        #<FilesMatch "\.php$">
        #    SetHandler "proxy:fcgi://127.0.0.1:9000/"
        #</FilesMatch>
    
        DocumentRoot /var/www/fog
        <Directory /var/www/fog/>
            DirectoryIndex index.php index.html index.htm
        Require all granted
        </Directory>
    
        RewriteEngine On
        RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
        RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-d
        RewriteRule ^/(.*)$ /fog/api/index.php [QSA,L]
    
        # -------------------------------------------------------------------------
        # SSL
        #Header always set X-Frame-Options SAMEORIGIN
        #Header always unset X-Frame-Options
        SSLEngine on
        SSLCertificateFile      /etc/apache2/certs/XXX.pem
        SSLCertificateKeyFile   /etc/apache2/certs/private/XXX.key
    
        SSLVerifyClient none
        SSLVerifyDepth 3
      BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
    
        # -------------------------------------------------------------------------
        # Logs 
        LogLevel warn
        ErrorLog  ${APACHE_LOG_DIR}/fog-ssl-error.log
        LogFormat "TO %v:%p FROM %h VIA %{X-Forwarded-For}i %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\" \"%{Content-Type}o\" %T %D" logstash
        CustomLog ${APACHE_LOG_DIR}/fog-ssl-access.log logstash
    
    </VirtualHost>
    

  • Developer

    @Florent Which version of FOG do you have. Are you sure you can replicate the issue when creating the wake task over a HTTPS connection?



  • I think found the problem but don’t know how to resolve this.

    If i launch task on the web interface with HTTPS it’s not work.
    But if i launch web interface with HTTP unsecure it’s work.

    Ideas ?



  • @florent said in Wake on lan from web interface send with server or host ?:

    is it the server who send wakeonlan command or the host from which clic on the web interface ?

    It’s done via PHP on the server-side.


 

351
Online

41.8k
Users

12.3k
Topics

116.0k
Posts