Browse Source

extend proxy example

OPENBSD_4_3
reyk 16 years ago
parent
commit
3d8e24d940
2 changed files with 12 additions and 2 deletions
  1. +6
    -1
      src/etc/hoststated.conf
  2. +6
    -1
      src/etc/relayd.conf

+ 6
- 1
src/etc/hoststated.conf View File

@ -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"


+ 6
- 1
src/etc/relayd.conf View File

@ -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"


Loading…
Cancel
Save