redHat linux 修改防火牆設定簡略版

2022-01-31 00:58:50 字數 467 閱讀 6941

1) 重啟後生效

開啟: chkconfig iptables on

關閉: chkconfig iptables off

2) 即時生效,重啟後失效

開啟: service iptables start

關閉: service iptables stop

需要說明的是對於linux下的其它服務都可以用以上命令執行開啟和關閉操作。

在開啟了防火牆時,做如下設定,開啟相關埠,

修改/etc/sysconfig/iptables 檔案,新增以下內容:

-a rh-firewall-1-input -m state --state new -m tcp -p tcp --dport 80 -j accept

-a rh-firewall-1-input -m state --state new -m tcp -p tcp --dport 22 -j ac

linux 修改防火牆

本人使用的一般是centos 下面是centos6版本的操作 1 修改防火牆 root localhost nexus vi etc sysconfig iptables firewall configuration written by system config firewall manual ...

防火牆規則修改

命令說明 add新增新入站或出站防火牆規則 delete 刪除所有匹配的防火牆規則 set為現有規則的屬性設定新值 show 顯示指定的防火牆規則 add rule命令 netsh advfirewall firewall add rule name 110 dir in localport 80 ...

redhat linux 許可權筆記

linux許可權 安全模型 檔案許可權 r,w,x 目錄許可權 r,w,x rwx rw r r x rwx 111,7 rw 110,6 r x 101,5 r 100,4 wx 011,3 w 010,2 x 001,1 000,0 750 rwxr x 練習 1 600,640,660,775...