summaryrefslogtreecommitdiff
path: root/sbin/ifconfig/ifconfig.8
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2009-11-23 19:58:11 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2009-11-23 19:58:11 +0000
commitd3af9efc186435f3fb3a64f20b2e72bd0ae94a98 (patch)
treed49281924c1ce43f981188678ca8196086e5b796 /sbin/ifconfig/ifconfig.8
parentea64b95342840bfea50f8f7650624dddd8957c31 (diff)
rewrite the bridge "rule" option for clarity; tweaks/ok deraadt
Diffstat (limited to 'sbin/ifconfig/ifconfig.8')
-rw-r--r--sbin/ifconfig/ifconfig.812
1 files changed, 10 insertions, 2 deletions
diff --git a/sbin/ifconfig/ifconfig.8 b/sbin/ifconfig/ifconfig.8
index 631a5e35b7e..e3195a2327c 100644
--- a/sbin/ifconfig/ifconfig.8
+++ b/sbin/ifconfig/ifconfig.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: ifconfig.8,v 1.191 2009/11/23 10:32:00 deraadt Exp $
+.\" $OpenBSD: ifconfig.8,v 1.192 2009/11/23 19:58:10 jmc Exp $
.\" $NetBSD: ifconfig.8,v 1.11 1996/01/04 21:27:29 pk Exp $
.\" $FreeBSD: ifconfig.8,v 1.16 1998/02/01 07:03:29 steve Exp $
.\"
@@ -678,7 +678,15 @@ Disable point-to-point link status on
This should be disabled for a half duplex link and for an interface
connected to a shared network segment,
like a hub or a wireless network.
-.It Cm rule Ar "{ block|pass } { in|out| } on interface [src address] [dst address] [tag tagname]"
+.It Xo
+.Cm rule
+.Cm block Ns \*(Ba Ns Cm pass
+.Op Cm in \*(Ba out
+.Cm on Ar interface
+.Op Cm src Ar address
+.Op Cm dst Ar address
+.Op Cm tag Ar tagname
+.Xc
Add a filtering rule to an interface.
Rules have a similar syntax to those in
.Xr pf.conf 5 .