Menu

#4 Warning năo aguento mais

open-accepted
5
2005-03-26
2005-03-01
Anonymous
No

Ola eu uso o slackware 10.1 e estou tendo problemas com
fwadmin 0.4 e nгo consigou ultiliza-lo configurei igual
a recomendaзгo do site e tenho o seguinte problema.
Toda a vez que configuro o arquivo sudoers ele para de
funcionar qualquer opзгo que eu clico menos a de
configuraзгo a mensagem no log й a seguinte:
Invalid argument supplied for foreach() in
/var/www/fw/include/iptables.inc.php on line 592

Quando eu retiro as linhas do sudo ele funciona mais
nгo altera nada no iptables.

Discussion

  • Vinicius Marques de Souza

    • labels: 706685 -->
    • status: open --> open-works-for-me
     
  • Vinicius Marques de Souza

    Logged In: YES
    user_id=321258

    Prezado colega, para que o suporte para o seu problema seja
    mais rpido peo que voc se cadastre na sourceforge e se
    identifique antes de postar algum problema ou bug. Como voc
    deve ter visto existem 2 outros pedidos de suporte para o
    mesmo problema que o seu, entretando no foram solucionados
    pois no tive resposta dos ltimos posts.

    Peo que voc envie neste pedido de suporte o resultado dos
    seguintes comandos:

    1) cat /etc/sudoers
    2) ps aux | egrep "(apache|http)"
    3) cat config.php (dentro do dir do firewalladmin)
    4) which iptables iptables-save iptables-restore

    De posse dessas informaes poderei ajudar.

    []

    Vincius

     
  • Vinicius Marques de Souza

    • status: open-works-for-me --> open
     
  • Vinicius Marques de Souza

    Logged In: YES
    user_id=321258

    Verifique o request <a
    href="http://sourceforge.net/tracker/index.php?func=detail&aid=1157746&group_id=128595&atid=712562">http://sourceforge.net/tracker/index.php?func=detail&aid=1157746&group_id=128595&atid=712562</a>

     
  • Vinicius Marques de Souza

    • labels: --> Execution Error
    • assigned_to: nobody --> vmsouza
    • status: open --> closed-accepted
     
  • dibbz

    dibbz - 2005-03-20

    Logged In: YES
    user_id=1151997

    I get this also.

    Warning: Invalid argument supplied for foreach()
    in /var/www/html/fw/include/iptables.inc.php on line 592

    Maximum execution time of 30 seconds exceeded
    in /var/www/html/fw/include/iptables.inc.php on line 264

    Maximum execution time of 30 seconds exceeded
    in /var/www/html/fw/include/iptables.inc.php on line 264

    I run CentOS 3.4

    # cat config.php
    <?
    $ipt="/sbin/iptables";
    $iptsave="/sbin/iptables-save";
    $iptrestore="/sbin/iptables-restore";
    $iptfile="/etc/iptables.rules";
    $language="english";
    $counters="yes";
    ?>

    root 25246 0.0 1.1 15016 5812 ? S 13:36
    0:00 /usr/sbin/httpd
    apache 25249 4.9 1.3 16620 6692 ? S 13:36 0:30
    \_ /usr/sbin/httpd

    # su - apache
    -bash-2.05b$ /sbin/iptables --list
    iptables v1.2.8: can't initialize iptables table `filter':
    Permission denied (you must be root)
    Perhaps iptables or your kernel needs to be upgraded.
    -bash-2.05b$ sudo /sbin/iptables --list
    Chain INPUT (policy DROP)
    target prot opt source destination
    ACCEPT all -- anywhere anywhere state
    RELATED,ESTABLISHED

    # which iptables iptables-save iptables-restore
    /sbin/iptables
    /sbin/iptables-save
    /sbin/iptables-restore

     
  • Vinicius Marques de Souza

    • status: closed-accepted --> open-accepted
     
  • Vinicius Marques de Souza

    Logged In: YES
    user_id=321258

    Hi dibbz, verify if your system has a file called
    /etc/selinux/config
    If you do, edit it then change his content to SELINUX=permissive
    Reboot you linux and try firewalladmin again

     
  • dibbz

    dibbz - 2005-03-26

    Logged In: YES
    user_id=1151997

    CentOS 3 or RHEL 3 does not have SELinux.

     
  • Nobody/Anonymous

    Logged In: NO

    d para a pasta onde est os arquivos web a mesma
    permisso de usurio e grupo do apache... ex:

    chown -R www.www /caminho/firewalladmin0-4
    chmod -R 770 /caminho/firewalladmin0-4

    verifique se no visudo esto configurados os mesmos
    usurios utilizados pelo seu servidor web... se for apache
    bem provvel que seja www...

    vinicius@frangosrica.com.br

     
  • pamidou

    pamidou - 2006-06-09

    Logged In: YES
    user_id=1257227

    Hi all,
    I have the same problem on Mankdrake 8.1.
    PHP id the real cause of this problem.
    I made a patch file for firewalladmin-0.4 :
    -------------------- firewalladmin-0.4-iptables.patch
    --------------------
    --- include/iptables.inc.php.orig Tue Feb 1 17:18:08 2005
    +++ include/iptables.inc.php Fri Jun 9 11:32:44 2006
    @@ -516,7 +516,6 @@
    if ($output[$i]=="COMMIT" and $found==true) {
    foreach($chains as $idx => $chain)
    $rules["$chain"]["desc"]=$chain;
    - $rules=str_replace('"','\#',$rules);
    return $rules;
    }
    if ($found==true and
    substr($output[$i],0,1)==":") {
    -------------------- firewalladmin-0.4-iptables.patch
    --------------------

    Is that ok Vinicius?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.