Commits
- Commit:
deb7f90ec4f0c1b07fd27881ed7879da4916319d- From:
- rsadowski <rsadowski@openbsd.org>
- Date:
Add missing OCSP token
Spotted and OK kirill
- Commit:
e9c398966c3cf9b821ba8aa353db97274b181522- From:
- kirill <kirill@openbsd.org>
- Date:
usr.sbin/relayd: support multiple resolveble addresses.
relayd supports interface name, DNS hostname or interface group at
listen on but it binds only to the first discovered IP address which is
usually IPv4.
Here I changed parser to create a dedicated listener for each discovered
and confiugred on a local inerface address.
This means that listen on egress port 80 binds to all IPv4 and IPv6
addresses on the egress group.
OK: rsadowski@
- Commit:
36dd1e7a7bf9f6dccf52a294d7d29221aef265f4- From:
- rsadowski <rsadowski@openbsd.org>
- Date:
relayd: allow explicit paths for certificates, keys and OCSP staples
Extend the "keypair" keyword in relayd.conf to support optional explicit paths.
Previously, relayd enforced a naming convention, looking up files in /etc/ssl
and /etc/ssl/private based on the keypair name.
This change allows other applications to manage their certificates without
having to comply with relayd's internal naming logic.
Input and OK kirill@, help form tb@
- Commit:
e64b43bec6df27f7e951b1c8878d1898928966b2- From:
- kirill <kirill@openbsd.org>
- Date:
relayd: support TLS with multiple listeners
Fix a bug in relay_inherit() which runs only
relay_load_certfiles(conf, rb, NULL) unconditionally which isn't
alligned with logic in parser when it parses relay block, where multiple
certificates are load as relay_load_certfiles(conf, rb, NULL) only if
here no tlscerts (for default host) and otherwise it loads keypairs.
OK: rsadowski@
- Commit:
18abd06bbeb3591e9b0d2b04d656879d2a33e186- From:
- rsadowski <rsadowski@openbsd.org>
- Date:
Set User-Agent for HTTP healthchecks
Joel Carnat (Thanks) notice that GoToSocial does not like it when we sent
no User-Agent and returns an HTTP/418.
Lloyd pointed to use RELAYD_SERVERNAME instead hardcoded "relayd"
OK sthen, claudio (diff without RELAYD_SERVERNAME)
- Commit:
6b5c4000434cc5dc67e202d8aede2f543b5b2bf3- From:
- rsadowski <rsadowski@openbsd.org>
- Date:
Standardize logging with bgpd
OK claudio@
- Commit:
80347df32a3fd8cd66aeaf059fbfd16c95a2ffe7- From:
- kirill <kirill@openbsd.org>
- Date:
usr.sbin/relayd: add support for PROXY protocol in TCP relays
patch from Christoph Liebender
OK: rsadowski@
- Commit:
c4efe747621091eebe4473e6bf136cb19c94288f- From:
- tb <tb@openbsd.org>
- Date:
relayd: add support for client certificates
This feature has been requested many times over the years. Various patches
were provided by Asherah Connor, Rivo Nurges, Markus Läll and maybe others.
These patches always stalled for various reasons.
From Sören Tempel, mostly based on Asherah's latest patch.
ok florian tb
- Commit:
062dadc0e3a555ed928a78a6285090b33cb11652- From:
- tb <tb@openbsd.org>
- Date:
relayd: improve config validation with -n
pf's rule names are limited by 32 characters, so lower the length bounds
for redirect names and tags that relayd accepts as valid config but would
later fail to load into pf. Also display the offending name on error.
from Mark Johnston
ok florian
- Commit:
199fb2838b1e1e60f573f1b61aa5db7e63b6013c- From:
- sashan <sashan@openbsd.org>
- Date:
Change adds a 'log' option to relayd.conf(5) rule. The relayd(8) then uses
the option to set corresponding `log` action in pf(4) rules it generates
to handle network traffic.
The patch comes from Giannis Kapetanakis (bilias _from_ edu.physics.uoc.gr).
OK sashan@
- Commit:
fba21fa43acf989eddaa8e24ce4e4ba95db9ef31- From:
- kn <kn@openbsd.org>
- Date:
Unmention/don't explain SSL, drop 9y old "ssl" keyword/deprecation warning
Switch "ssl" to "tls" in relayd.conf(5) if you haven't done so in the last
ten years, "ssl" is now an error.
Say "TLS" not "SSL/TLS" and drop the primer in the TLS RELAYS section.
OK benno
- Commit:
a47191178b2b2a80d88cf51690e186167bbc5326- From:
- claudio <claudio@openbsd.org>
- Date:
Use ibuf_data() instead of accessing ibuf->buf directly.
OK tb@
- Commit:
93b6fda0f44bd06394809f62c7a2491c90db0a3f- From:
- naddy <naddy@openbsd.org>
- Date:
Don't declare variables as "unsigned char *" that are passed to
functions that take "char *" arguments. Where such chars are
assigned to int or passed to ctype functions, explicitly cast them
to unsigned char.
For OpenBSD's clang, -Wpointer-sign has been disabled by default,
but when the parse.y code was built elsewhere, the compiler would
complain.
With help from millert@
ok benno@ deraadt@
- Commit:
6480c6df0bb2ef788767c8206f169dbf23cb5c14- From:
- rob <rob@openbsd.org>
- Date:
Don't leak host address. Found with clang static analyzer.
OK tb@
- Commit:
d498e80a114cd078ac00398a2d648ec0f9175e44- From:
- denis <denis@openbsd.org>
- Date:
Add 'strip' directive
Feedback by Olivier Cherrier, Hiltjo Posthuma, Mischa
OK benno@
- Commit:
0d85c79ece6d082af07a155d4f9940aa07236443- From:
- benno <benno@openbsd.org>
- Date:
getifaddrs() can return entries where ifa_addr is NULL. Check for this
before accessing anything in ifa_addr.
ok claudio@
- Commit:
c2be204918314ef9dde10796637ca92d57c6145f- From:
- martijn <martijn@openbsd.org>
- Date:
Remove deprecated snmp keyword.
OK denis@
- Commit:
189a23326dc4bc1df675c433b38ff4eef27e817f- From:
- martijn <martijn@openbsd.org>
- Date:
Let relayd make use of libagentx. No functional change intended.
OK tb@
Enthousiasm from Mischa Peters
- Commit:
fe4b71bd3d51e9a1ebb71c357e2bd451c482f86a- From:
- denis <denis@openbsd.org>
- Date:
Remove trailing spaces & tabs
- Commit:
04a2f9536b27f11bd789df2ae153cc14c073ce4b- From:
- martijn <martijn@openbsd.org>
- Date:
Rewrite the agentx code of relayd. This new framework should allow us
to add new objects easier if so desired and should handle a lot more
corner-cases.
This commit should also fix the following:
- On most (all) tables it omits the *Entry elements, making it not map to
OPENBSD-RELAYD-MIB.txt.
- sstolen returns the size of the sockaddr_in{,6}, instead of the
sin{,6}_addr resulting in garbage data to be put in the ip-field.
- relaydSessionPortIn and relaydSessionPortOut are swapped
- relaydSessions only uses relaydSessionIndex, while
OPENBSD-RELAYD-MIB.txt says it should have 2 indices
- miscellaneous minor things related to the AGENTX-protocol, like wonky
index handeling and returning NOSUCHINSTANCE where NOSUCHOBJECT
should be returned, etc.
This commit does remove traps, but it's large enough as is and I intent
on adding it soon(tm). It also deprecates the snmp keyword in favour of
an agentx keyword. The snmp keyword is still available, but will be
removed in the future.
Tweaks and OK denis@ on the relayd parts
Tweaks and OK claudio@ on the agentx parts
"Get it in" deraadt@
- Commit:
8d09c19145dba26c5186f5e11afc35004b0ee615- From:
- pvk <pvk@openbsd.org>
- Date:
Enable TLSv1.3 support in relayd(8)
with the help from tb@ jsing@; ok tb@
- Commit:
c4809a851ebaac8b1161305d2851731b481f3f84- From:
- benno <benno@openbsd.org>
- Date:
improve parsing of relay {} sections:
- Do not accept multiple protocol statements, as only one will be
used, it is better to error out if more arespecified.
- do not allow tcp and http options in dns protocol definitions, they
are ignored anyway.
Suggested by Nick (nick -AT- kousu -DOT- ca) thanks.
ok claudio@
- Commit:
8d46aaefb22a96725b7a9b62b6d0f741b99f31fb- From:
- benno <benno@openbsd.org>
- Date:
remove old log options 'log update/all' that were replaced with 'log
state changes/host checks/connection' some time ago. ok reyk@
claudio@ on first version, kn@ noticed that the tokens could be
removed too.
- Commit:
738b3cc9ee5e087ffe860159c9e5c5c0bd4d1d7e- From:
- rob <rob@openbsd.org>
- Date:
Add support for binary protocol health checking. Feedback and guidance from
benno@ and reky@. Man page tweaks from jmc@.
ok benno@
- Commit:
bf37b6848379ad25b008374bba2378c58fc52545- From:
- chrisz <chrisz@openbsd.org>
- Date:
fix error description on invalid forward ip.
OK benno@
