Running 5 February amd64 snapshot on VMWare.
OpenBSD r1.mwlucas.org 6.0 GENERIC#162 amd64
Trying to use relayd's filtering on query strings.
According to the man page, I can block or pass specific query terms,
and values of those terms. Blocking the whole term works, but matching
the query value doesn't. I'm using the strings from relayd.conf(5):
query option [key [value value]]
Look up the entity as a query variable in the URL when using the
http protocol. This type is only available with the direction
request, for example:
# Will match /cgi-bin/example.pl?foo=bar&ok=yes
request query expect "bar" from "foo"
Here's my relayd.conf:
table <www> { 192.0.2.101 192.0.2.102 }
http protocol daft {
return error
block request query "foo"
pass request query expect "bar" from "foo"
}
relay www {
listen on 203.0.113.213 port 80
forward to <www> port http check http "/" code 200
protocol daft
}
Checking the file gives:
relayd.mini.conf:15: syntax error
relayd.mini.conf:21: no such protocol: daft
no actions, nothing to do
Am I missing something obvious here? Or did something else break?
Thanks,
==ml
--
Michael W. Lucas Twitter @mwlauthor
nonfiction: https://www.michaelwlucas.com/
fiction: https://www.michaelwarrenlucas.com/
blog: http://blather.michaelwlucas.com/