- 论坛徽章:
- 0
|
SUN V880如何禁止某一网段内的客户机访问。
不知何时,Solaris里有了IP包过滤,NAT地址变换,PAT端口地址变换。\r\n\r\n例如包过滤:\r\n\r\n% cd /etc/ipf\r\n% ls -l\r\n总数 4\r\n-rw-r--r-- 1 root sys 134 1月 20日 10:15 ipf.conf\r\n-rw-r--r-- 1 root sys 413 1月 20日 10:15 pfil.ap\r\n\r\n在ipf.conf文件中加入:\r\n\r\n如定义IP池:\r\ntable role = ipf type = tree number = 100 { 192.168.101.0/24, 10.71.0.0/16, !245.2.2.0/24 };\r\n\r\n如定义规则:\r\nblock in from pool/100 to any\r\n\r\n加载:\r\n# ippool -f /etc/ipf/ippool.conf\r\n\r\n其它,如禁止NFS:\r\nblock in on eri0 proto tcp/udp from any to any port = 2049 |
|