pfconfig.8c

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 8C 代码 · 共 115 行

8C
115
字号
.TH pfconfig 8c.SH Namepfconfig \- configure packet filter parameters.SH Syntax  .B /usr/etc/pfconfig[.BR +/\-p [ romisc ]][.BR +/\-c [ opyall ]][.BR \-b [ acklog ].I nnn][.BR \-a [ ll ]].I [interface-name ...].SH Description.NXR "pfconfig command".NXR "packet filter" "configure parameters".NXR "packet filter" "pfconfig command"The.PN pfconfigcommand allows the system manager to configure certain parameters ofthe packet filter driver (see.MS packetfilter 4 ).These parameters are configured separately for each interface; theinterfaces are specified by name on the command line (forexample, .PN ln0 ,and.PN ni1 ).If more than one interface is specified, they are allgiven the same settings.  Alternatively, you can specify .B \-allto configure all the packet-filter interfaces on the system..PPYou can set the following parameters with .PN  pfconfig:.IP \fB+promisc\fR 1iAllows packet filter users to set the interface into promiscuous mode(receives all packets).  Whenever there is at least one packet filterdescriptor open with the ENPROMISC mode bit set, the interface is putinto promiscuous mode.  When no such descriptors are in use, the interfaceis returned to normal mode..IP \fB\-promisc\fR 1iThe interface is no longerput into promiscuous mode on behalf of packet filterusers; if the interface is in promiscuous mode when this command is given,it is returned to normal mode.  (The superuser may use.PN ifconfig (8c)to control promiscuous mode, overriding the mode set bynon-superusers.This is the default setting.).IP \fB+copyall\fR 1iAllows packet filter users to set the interface into copy-all mode(receives packets sent/received by the kernel-resident protocolsoftware [for example, IP, ARP, DECnet, LAT] on this host).Whenever there is at least one packet filterdescriptor open with the ENCOPYALL mode bit set, the interfaceis put into copy-all mode.  When no such descriptors are in use,the interface is returned to normal mode..IP \fB\-copyall\fR 1iThe interface is no longer put into copy-allmode on behalf of packet filter users;if the interface is in copy-all mode when this command is given,it is returned to normal mode.  (The superuser may use.MS ifconfig 8cto control copy-all mode, overriding the mode set bynon-superusers.This is the default setting.).IP "\fB\-backlog\fR \fInnn\fR" 1iSets the maximum backlog (packet filter input queue length)for non-superuser descriptors to thespecified number.  When a descriptor is opened, it is givena queue length limit of two. An application can increasethis backlog using the EIOCSETW ioctl request.  Superusers are allowedto increase their backlog up to a system-wide maximum; non-superusersare allowed to increase their backlog only up to the maximum set by thisprogram.  Note that allowing too large a backlog may result in vast amountsof kernel memory being tied up in the packet filter driver queues..PPIf no configuration parameters are specified, the.PN pfconfigcommand displays the current packet filter configurationfor the network interface(s)..PPOnly the superuser may use this command to change the configuration..SH ExamplesOn a system used for network monitoring, one might put this line into.PN /etc/rc.local :.EX/usr/etc/pfconfig \-a +promisc \-backlog 64.EEThis allows users to run promiscuous network monitoring applications,with a maximum input queue length per application of 64 packets, onany interface in the system..EX/usr/etc/pfconfig \-a +promisc +copyall \-backlog 64.EEThis allows promiscuous network monitoring applicationsto monitor communications to or from the local host, as well asthe rest of the local network..SH Diagnostics.NXR "pfconfig command" "diagnostics"Messages indicating the specified interface do not exist;an attempt to set a maximum backlog less than 1 or greater thanthe system-wide maximum;the user tried to alter an interface's configurationbut is not privileged..SH "See Also"netstat(1), intro(4n), packetfilter(4), ifconfig(8c), rc(8)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?