Exemple #1
0
function FixRoute()
{
    $ip = hamachi_currentIP();
    if ($ip == null) {
        return;
    }
    $unix = new unix();
    exec($unix->find_program("route"), $results);
    while (list($num, $ligne) = each($results)) {
        if (preg_match("#([0-9\\.]+)\\s+([0-9\\.\\*]+).+?\\s+([0-9\\.]+)\\s+[A-Z]+.+ham0#", $ligne, $re)) {
            if (trim($re[2]) != $ip) {
                echo "Starting......: " . date("H:i:s") . " hamachi [Net]: ham0: {$ip}, building routes\n";
                shell_exec("route del -net 5.0.0.0 gw 0.0.0.0 netmask 255.0.0.0 dev ham0");
                shell_exec("route add -net 5.0.0.0 gw {$ip} netmask 255.0.0.0 dev ham0");
            }
        }
    }
}
Exemple #2
0
    exit;
}
if (isset($_GET["hamachi-net"])) {
    hamachi_net();
    exit;
}
if (isset($_GET["hamachi-status"])) {
    hamachi_status();
    exit;
}
if (isset($_GET["hamachi-sessions"])) {
    hamachi_sessions();
    exit;
}
if (isset($_GET["hamachi-ip"])) {
    hamachi_currentIP();
    exit;
}
if (isset($_GET["hamachi-restart"])) {
    hamachi_restart();
    exit;
}
if (isset($_GET["hamachi-delete-net"])) {
    hamachi_delete_network();
    exit;
}
if (isset($_GET["UpdateKav4Proxy"])) {
    Kav4ProxyUpdate();
    exit;
}
if (isset($_GET["kavmilter-configure"])) {
Exemple #3
0

//UpdateUtility

if(isset($_GET["UpdateUtilitySource"])){UpdateUtilitySource();exit;}

//stunnel
if(isset($_GET["stunnel-ini-status"])){STUNNEL_INI_STATUS();exit;}
if(isset($_GET["stunnel-restart"])){STUNNEL_RESTART();exit;}



if(isset($_GET["hamachi-net"])){hamachi_net();exit;}
if(isset($_GET["hamachi-status"])){hamachi_status();exit;}
if(isset($_GET["hamachi-sessions"])){hamachi_sessions();exit;}
if(isset($_GET["hamachi-ip"])){hamachi_currentIP();exit;}
if(isset($_GET["hamachi-restart"])){hamachi_restart();exit;}
if(isset($_GET["hamachi-delete-net"])){hamachi_delete_network();exit;}
if(isset($_GET["UpdateKav4Proxy"])){Kav4ProxyUpdate();exit;}

if(isset($_GET["kavmilter-configure"])){kavmilter_configure();exit;}
if(isset($_GET["kavmilter-mem"])){kavmilter_mem();exit;}
if(isset($_GET["kavmilter-pattern"])){kavmilter_pattern();exit;}
if(isset($_GET["kavmilter_license"])){kavmilter_license();exit;}
if(isset($_GET["kavmilter-bases-infos"])){kav4lms_bases_infos();exit;}
if(isset($_GET["KavMilterDbVer"])){KavMilterDbVer();exit;}



if(isset($_GET["kav4fs-infos"])){kav4fs_infos();exit;}
if(isset($_GET["kav4fs-ini-status"])){kav4fs_status();exit;}