iptables erro com nenhum arquivo ou diretório

1

Eu tenho o servidor vps CentOS 6 x86_64. Acabei de criar os seguintes iptables. Mas dá uma mensagem de erro. O que estou fazendo errado aqui?

*filter
:INPUT    DROP    [0:0]
:FORWARD  DROP    [0:0]
:OUTPUT   ACCEPT  [0:0]
:SERVICE  -       [0:0]
-A INPUT -i lo -j ACCEPT
-A INPUT -p icmp --icmp-type echo-request -m limit --limit 1/s --limit-burst 4  -j ACCEPT
-A INPUT -p tcp -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -p tcp -m state --state NEW -j SERVICES
-A INPUT -p udp --sport 53 -j ACCEPT
-A INPUT -p udp --sport 123 --dport 123 -j ACCEPT
-A SERVICES -p tcp --dport 61203 -j ACCEPT
-A SERVICES -p tcp --dport 80 -j ACCEPT
-A SERVICES -p tcp --dport 443 -j ACCEPT
COMMIT

# service iptables start
iptables: Applying firewall rules: iptables-restore v1.4.7: Couldn't load target 'SERVICES':/lib64/xtables/libipt_SERVICES.so: cannot open shared object file: No such file or directory

Error occurred at line: 9
Try 'iptables-restore -h' or 'iptables-restore --help' for more information.
    
por shin 29.10.2015 / 03:44

1 resposta

3

:SERVICE  -       [0:0]
...
-A SERVICES -p tcp --dport 61203 -j ACCEPT
-A SERVICES -p tcp --dport 80 -j ACCEPT
-A SERVICES -p tcp --dport 443 -j ACCEPT

Observe o problema?

:)

Dica: (mouseover)

You have a singular/plural mismatch.

    
por 29.10.2015 / 03:50

Tags