Windows system >> Windowsの知識 >  >> Linuxシステムチュートリアル >> LinuxシステムFAQ >> Linuxのファイアウォール設定

Linuxのファイアウォール設定

  

1、ファイアウォールとは何ですか?

ファイアウォールは、特定の規則に従ってデータの送信を許可または制限する情報セキュリティ保護システムです。

2、Linuxのファイアウォール設定

2.1、ファイアウォール設定ファイルiptablesのパス

/etc /sysconfig /iptables

一般的にこの設定ファイルを直接編集しますただ大丈夫です。編集する前にバックアップしてください。

2.2、iptablesの開閉、再起動

service iptablesの開始

service iptablesの停止

service iptablesの再起動

設定の変更iptablesサービスを再起動する必要があります。

2.3、コマンド設定で保存します。

iptablesを設定するためにコマンドを使用すると、それは有効になりますが、/etc /sysconfig /iptablesファイルには書き込まれません。再起動します。無効です。iptablesに書き込む必要があります。

/etc/rc.d/init.d/iptables save

2.4、iptablesでマシンの設定を確認します。

iptables -L -n

Copyright © Windowsの知識 All Rights Reserved