-
Notifications
You must be signed in to change notification settings - Fork 30
/
relayd.conf
73 lines (63 loc) · 1.77 KB
/
relayd.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# $OpenBSD: relayd.conf,v 1.5 2018/05/06 20:56:55 benno Exp $
#
# Macros
#
ext_IPv4="em0" # egress freedns.afraid.org
ext_IPv6="2001:470:b35c:ed9e::ace:face" # egress freedns.afraid.org
include "/etc/pf.conf.macro.relayd" # vether0 fallback/relay.vedetta.lan
# Redirect/Relay
#web1_IPv4="172.16.5.172" # vlan5 www1.vedetta.lan
#web1_IPv6="fd80:1fe9:fcee:acdc::bad:face" # vlan5 www1.vedetta.lan
#web2_IPv4="192.168.7.192" # vlan7 www2.vedetta.lan
#web2_IPv6="fd80:1fe9:fcee:baba::bad:face" # vlan7 www2.vedetta.lan
#ssh1_IPv4="" # carp0 router.vedetta.lan
#ssh1_IPv6="" # carp0 router.vedetta.lan
#
# Each table will be mapped to a pf table.
#
#table <dnshosts> {}
#table <dnshosts6> {}
#table <ntphosts> {}
#table <ntphosts6> {}
#table <webhosts> { $web1_IPv4 $web2_IPv4 }
#table <webhosts6> { $web1_IPv6 $web2_IPv6 }
table <fallback> { $fb1_IPv4 retry 2 }
table <fallback6> { $fb1_IPv6 retry 2 }
#table <apphosts> {}
#
# Global Options
#
# interval 10
# timeout 200
# prefork 3
log state changes
log connection #errors
#
# Map NTP to a rdr rule
#
include "/etc/relayd.conf.redirect.ntp"
#
# Map HTTP to a rdr rule
#
include "/etc/relayd.conf.redirect.http"
#
# Relay and protocol for HTTP layer 7 loadbalancing and SSL/TLS acceleration
#
include "/etc/relayd.conf.relay.https"
#
# DNS-sanitizing protocol: replace requested IDs in the DNS header with random values, and layer 7 loadbalancing
#
include "/etc/relayd.conf.relay.domain"
#
# Relay and protocol for simple TCP forwarding on layer 7
#
include "/etc/relayd.conf.relay.ssh"
#
# Relay and protocol for a transparent HTTP proxy
#
include "/etc/relayd.conf.proxy.http"
#
# Relay and protocol for a transparent HTTPS proxy
#
# (!) see https://github.com/vedetta-com/vedetta/issues/82
include "/etc/relayd.conf.proxy.https"