- 论坛徽章:
- 0
|
LZ,我看了ipf的帮助,好像要做好多事情哦\r\n\r\n Enabling Solaris IP Filter Feature\r\n Solaris IP Filter is installed with the Solaris operating\r\n system. However, packet filtering is not enabled by default.\r\n Use the following procedure to activate the Solaris IP\r\n Filter feature.\r\n\r\n 1. Assume a role that includes the IP Filter Management\r\n rights profile (see rbac(5)) or become superuser.\r\n\r\n 2. Edit the /etc/ipf/pfil.ap file. This file contains the\r\n names of network interface cards (NICs) on the host. By\r\n default, the names are commented out. Uncomment the dev-\r\n ice names that carry the network traffic you want to\r\n filter. See ipfilter(5) for an example of a portion of a\r\n pfil.ap file.-------------------------------------------------------配置pfil.ap文件\r\n\r\n 3. Activate your changes to the /etc/ipf/pfil.ap file by\r\n restarting the network/pfil service instance, as fol-\r\n lows:\r\n\r\n # scvadm restart network/pfil\r\n\r\n 4. Create a packet filtering rule set. See ipf(4).--------建包过滤规则\r\n\r\n 5. (Optional) Create a network address translation (NAT)\r\n configuration file. See ipnat.conf(4).-------------可选\r\n\r\n 6. (Optional) Create an address pool configuration file.\r\n See ippool(4).------------------------可选\r\n\r\n Create an ipool.conf file if you want to refer to a\r\n group of addresses as a single address pool. If you want\r\n the address pool configuration file to be loaded at boot\r\n time, create a file called /etc/ipf/ippool.conf in which\r\n to put the address pool. If you do not want the address\r\n pool configuration file to be loaded at boot time, put\r\n the ippool.conf file in a location other than /etc/ipf\r\n and manually activate the rules.\r\n\r\n 7. Enable Solaris IP Filter, as follows:\r\n\r\n # svcadm enable network/ipfilter\r\n\r\n 8. Activate Solaris IP Filter either by rebooting the\r\n machine or unplumbing and plumbing the network inter-\r\n faces on which you are filtering. Here is an example of\r\n unplumbing and plumbing:------------------------------------重启机器或删除添加网卡来激活IP filter\r\n\r\n # ifconfig hme0 unplumb\r\n # ifconfig hme0 plumb 172.16.32.15 netmask 255.255.255.0 up\r\n # ifconfig hme0 inet6 unplumb\r\n # ifconfig hme0 inet6 plumb fec3:f840::1/96 up |
|