原文:centos7 firewall指定IP與端口、端段訪問(常用)

https: blog.csdn.net yipianfuyunsm article details https: www.cnblogs.com co rway p .html 啟動防火牆 systemctlstart firewalld.service 指定IP與端口 firewall cmd permanent add rich rule rule family ipv source ad ...

2019-10-09 13:41 0 1103 推薦指數:

查看詳情

centos7 firewall指定IP端口訪問常用

1、啟動防火牆 systemctl start firewalld.service 2、指定IP端口 firewall-cmd --permanent --add-rich-rule="rule family="ipv4" source address="192.168.142.166 ...

Thu Jan 11 23:38:00 CST 2018 0 20113
centos7 firewall指定IP端口訪問

然后對指定IP開放指定端口 重新載入,使配置生效 iptables 對80端口進行訪問控制 ...

Thu Oct 22 00:20:00 CST 2020 0 567
使用firewall-cmd限制ssh只能從指定IP訪問

實現過程 下面的命令將配置192.168.1.0/24整個網段的IP允許訪問服務器的22端口 // 先移除默認開啟的沒有訪問限制的ssh服務 # firewall-cmd --permanent --remove-service=ssh // 添加復雜規則,只允許指定IP訪問22端口 ...

Mon Jul 06 23:19:00 CST 2020 0 2733
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM