0

私は、中央の rsyslog システム用に「logalyze」という名前の監視ソフトウェアを実装する作業を行ってきました。そのために、firewalld を実行する Centos7 サーバーをインストールしました。

以下の iptables コマンドを Centos7 の firewalld コマンドに変換する必要があります。

iptables -t nat -A PREROUTING -p udp --destination-port 514 -j REDIRECT --to-ports 1670

このルールは、ここで指定された中央 syslog サーバー監視の構成の一部です。

4

1 に答える 1

0

あなたが試すことができる2つのオプションがあります、

  1. 1つはfirewalldを無効にし、iptablesの使用を開始して、firewalldに慣れているものもあります。そうするために、

    • systemctl disable firewalld
    • systemctl enable iptables (iptables のインストール後)

iptables コマンド自体を使用できます。

  1. 2 番目のオプション - Firewalld コマンド

firewall-cmd --permenent --direct --add-rule ipv4 nat PREROUTING 0 -p udp --dport 514 -j REDIRECT --to-ports 1670

上記のfirewalld cmdは目的を果たします。

于 2017-09-16T07:46:03.027 に答える