summaryrefslogtreecommitdiffstats
path: root/usr.sbin/hostapd/hostapd.conf.5
diff options
context:
space:
mode:
authorreyk <reyk@openbsd.org>2005-09-29 23:57:00 +0000
committerreyk <reyk@openbsd.org>2005-09-29 23:57:00 +0000
commit5ad5fd939721658278da35816095a5eb931e1dfa (patch)
tree82f7e675da648eac0fee0e4ea016ea2f6f104925 /usr.sbin/hostapd/hostapd.conf.5
parentsync (diff)
downloadwireguard-openbsd-5ad5fd939721658278da35816095a5eb931e1dfa.tar.xz
wireguard-openbsd-5ad5fd939721658278da35816095a5eb931e1dfa.zip
Add event rule examples
Diffstat (limited to 'usr.sbin/hostapd/hostapd.conf.5')
-rw-r--r--usr.sbin/hostapd/hostapd.conf.532
1 files changed, 31 insertions, 1 deletions
diff --git a/usr.sbin/hostapd/hostapd.conf.5 b/usr.sbin/hostapd/hostapd.conf.5
index 88310ca6d49..a606ec91a62 100644
--- a/usr.sbin/hostapd/hostapd.conf.5
+++ b/usr.sbin/hostapd/hostapd.conf.5
@@ -1,4 +1,4 @@
-.\" $OpenBSD: hostapd.conf.5,v 1.10 2005/09/12 09:32:42 jmc Exp $
+.\" $OpenBSD: hostapd.conf.5,v 1.11 2005/09/29 23:57:00 reyk Exp $
.\"
.\" Copyright (c) 2004, 2005 Reyk Floeter <reyk@vantronix.net>
.\"
@@ -513,6 +513,36 @@ A frame from the distribution system, the access point, to a station.
A frame direction used by wireless distribution systems (WDS) for
wireless access point to access point communication.
.El
+.Sh EVENT RULE EXAMPLES
+.Bd -literal
+# Log probe requests locally
+hostap handle type management subtype probe request \\
+ with log
+
+# Log rogue accesspoints via IAPP, limited to every second,
+# and skip further IAPP processing.
+hostap handle skip type management subtype beacon bssid !<myess> \\
+ with iapp type radiotap limit 1 sec
+
+# Send deauthentication frames to stations accociated to rogue APs
+hostap handle type data bssid !<myess> with frame type management \\
+ subtype deauth reason auth expire \\
+ from &bssid to &from bssid &bssid
+
+# Send authentication requests from random station addresses to
+# rogue accesspoints. This is common way to test the quality of
+# various hostap implementations.
+hostap handle skip type management subtype beacon bssid <pentest> \\
+ with frame type management subtype auth \\
+ from random to &bssid bssid &bssid
+
+# Re-inject a received IEEE 802.11 frame
+hostap handle type management subtype auth with resend
+
+# Remove a blacklisted node from the kernel node tree
+hostap handle type management subtype auth from <blacklist> \\
+ with node delete &from
+.Ed
.Sh GRAMMAR
Syntax for
.Nm