| Format | Sample Output |
|---|---|
| Apache .htaccess allow | allow from 8.8.8.0/24 |
| Apache .htaccess deny | deny from 8.8.8.0/24 |
| Nginx allow | allow 8.8.8.0/24; |
| Nginx deny | deny 8.8.8.0/24; |
| CIDR | 8.8.8.0/24 |
| Linux iptables accept | iptables -A INPUT -s 8.8.8.8/24 -j ACCEPT |
| Linux iptables drop | iptables -A INPUT -s 8.8.8.8/24 -j DROP |
| Netmask | 8.8.8.0/255.255.255.0 |
| Inverse Netmask | 8.8.8.0 0.0.0.255 |
| Web.config allow | <ipSecurity allowUnlisted="false"> <add ipAddress="8.8.8.0" subnetMask="255.255.255.0"/> |
| Web.config deny | <ipSecurity allowUnlisted="true"> <add ipAddress="8.8.8.0" subnetMask="255.255.255.0"/> |
| Cisco ACL | deny ip 8.8.8.0 0.0.0.255 any |
| PeerGuardian2 | HOST:8.8.8.0-8.255.255.255 |
| network-object | network-object 8.8.8.0 255.255.255.0 |
| Cisco bit bucket | ip route 8.8.8.0 255.255.255.0 Null0 |
| Juniper Junos | set 8.8.8.0/24 |
| MikroTik | add address=8.8.8.0/24 comment="Danger" list=MyList |
| ConfigServer Firewall (CSF) | 8.8.8.0/24 |
在不同的系统 都可以禁止或者允许某个ip段。保障您的服务器不受黑客的攻击。
本文介绍如何在Apache、Nginx、Linux iptables等不同系统中配置防火墙规则,实现特定IP段的访问控制,有效保护服务器安全。
801

被折叠的 条评论
为什么被折叠?



