summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorreyk <reyk@openbsd.org>2007-11-28 15:16:18 +0000
committerreyk <reyk@openbsd.org>2007-11-28 15:16:18 +0000
commitc89312d5573d7c7ff251b7f28f7525cf64b476c1 (patch)
treeb950347f39d3c46559528973da67f10ba2c27655
parentinsert .WAIT so that stuff is built first, and checked afterwards, instead (diff)
downloadwireguard-openbsd-c89312d5573d7c7ff251b7f28f7525cf64b476c1.tar.xz
wireguard-openbsd-c89312d5573d7c7ff251b7f28f7525cf64b476c1.zip
extend proxy example
-rw-r--r--etc/hoststated.conf7
-rw-r--r--etc/relayd.conf7
2 files changed, 12 insertions, 2 deletions
diff --git a/etc/hoststated.conf b/etc/hoststated.conf
index 89e8e1a4b99..679a992c972 100644
--- a/etc/hoststated.conf
+++ b/etc/hoststated.conf
@@ -1,4 +1,4 @@
-# $OpenBSD: hoststated.conf,v 1.8 2007/11/19 15:09:32 reyk Exp $
+# $OpenBSD: hoststated.conf,v 1.9 2007/11/28 15:16:18 reyk Exp $
#
# Macros
#
@@ -93,10 +93,15 @@ relay sshgw {
protocol httpfilter {
protocol http
+ # Return HTTP/HTML error pages to the client
+ return error
+
# Block disallowed browsers
+ label "Please try a <em>different Browser</em>"
header filter "Mozilla/4.0 (compatible; MSIE *" from "User-Agent"
# Block some well-known Instant Messengers
+ label "Instant messenger disallowed!"
response header filter "application/x-msn-messenger" from "Content-Type"
response header filter "app/x-hotbar-xip20" from "Content-Type"
response header filter "application/x-icq" from "Content-Type"
diff --git a/etc/relayd.conf b/etc/relayd.conf
index 37707662794..f6f1c57d79c 100644
--- a/etc/relayd.conf
+++ b/etc/relayd.conf
@@ -1,4 +1,4 @@
-# $OpenBSD: relayd.conf,v 1.8 2007/11/19 15:09:32 reyk Exp $
+# $OpenBSD: relayd.conf,v 1.9 2007/11/28 15:16:18 reyk Exp $
#
# Macros
#
@@ -93,10 +93,15 @@ relay sshgw {
protocol httpfilter {
protocol http
+ # Return HTTP/HTML error pages to the client
+ return error
+
# Block disallowed browsers
+ label "Please try a <em>different Browser</em>"
header filter "Mozilla/4.0 (compatible; MSIE *" from "User-Agent"
# Block some well-known Instant Messengers
+ label "Instant messenger disallowed!"
response header filter "application/x-msn-messenger" from "Content-Type"
response header filter "app/x-hotbar-xip20" from "Content-Type"
response header filter "application/x-icq" from "Content-Type"