Koozali.org: home of the SME Server

Restricted remote access to primary ibay

juan jose v.

Restricted remote access to primary ibay
« on: September 07, 2002, 10:41:20 PM »
I´m trying to restric access to the primary ibay to only a IP. I configured Remote access panel to permit access to that IP (On Ibays runs fine) but  I'm trying the same with the primary ibay.....It´s posible?

Thanks in advance.

juan jose v.

Re: Restricted remote access to primary ibay
« Reply #1 on: September 07, 2002, 11:36:09 PM »
Autoreply :

I was looking information and i found this.......

Edit with your favourite editor : /etc/e-smith/templates/etc/httpd/conf/httpd.conf/90e-smithAccess10primary

and edit :


    Options Indexes Includes
{
    local %services = ( php => $php);

    my $status = db_get_prop (\%services, 'php', 'status') || 'disabled';

    if ($status eq 'enabled')
    {
        $OUT .= <    Options +Includes
    AddType application/x-httpd-php .php .php3 .phtml
EOF
    }
    else
    {
        $OUT .= <    Options +IncludesNOEXEC
   
        order deny,allow
        Deny from all
   

EOF
    }
}
    AllowOverride None
    order deny,allow
    deny from all
    allow from all -<<<<<< edit here


change allow from all to allow from 127.0.0.1 192.168.1.0/255.255.255.0

I assume that your SME server IP is 192.168.1.X. Change to other number you have....

save and exit.

Type :

/sbin/e-smith/expand-template /etc/httpd/conf/http.conf
/etc/rc.d/init.d/httpd-e-smith restart (or reboot your machine)

It this correct??????

Thanks in advance.

juan jose v.

Re: Restricted remote access to primary ibay
« Reply #2 on: September 07, 2002, 11:39:28 PM »
I forget it : may too this entries...


    Options ExecCGI
    AllowOverride None
    order deny,allow
    deny from all
    allow from all  <<<< Edit here



    AllowOverride None
    ForceType application/octet-stream
    order deny,allow
    deny from all
    allow from all    <<<< Edit here