原文:Unit iptables.service could not be found

問題:查看防火牆狀態時報錯service iptables status 解決方案 在CentOS 或RHEL 或Fedora中防火牆由firewalld來管理,當然你可以還原傳統的管理方式,或則使用新的命令進行管理。本文中將還原傳統的管理方式。 cd etc sysconfig ls l 沒有查看到iptables文件,但存在ip tables config和iptables config,本文 ...

2020-02-25 22:36 0 3418 推薦指數:

查看詳情

Ubuntu 16.04下操作iptables的技巧(解決Failed to start iptables.service: Unit iptables.service not found.或者/etc/init.d/iptables: 沒有那個文件或目錄)

/etc/init.d/iptables網上的解法應該都是基於CentOS 6去實踐,而在CentOS 7中又被firewalld給取代,所以操作上的寫法基本會改變,但是底層iptables則不會改變,iptables默認加載在內存,管理網絡規則,而至於在實現網絡傳輸時,由系統決定,比如網絡服務 ...

Tue Sep 26 17:57:00 CST 2017 0 39006
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM