Commits
- Commit:
6b5c4000434cc5dc67e202d8aede2f543b5b2bf3- From:
- rsadowski <rsadowski@openbsd.org>
- Date:
Standardize logging with bgpd
OK claudio@
- 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:
004ef1c64c607292543107f42656d406d4577626- From:
- yasuoka <yasuoka@openbsd.org>
- Date:
Revert the previous. It was committed by my mistake.
- Commit:
f47c0bffaa48796d8841c2d265db38e7986b7640- From:
- yasuoka <yasuoka@openbsd.org>
- Date:
Clarify the interval after 30sec.
- Commit:
a02f2cfd7ad15bb363add9e3126a624339a8050e- From:
- sashan <sashan@openbsd.org>
- Date:
let check_table() also print table@anchor when it exits
unexpectedly via call to fatal()
OK claudio@
- Commit:
09e53feeaa2a7c28a81c8bac20bab18c68d83883- From:
- benno <benno@openbsd.org>
- Date:
use __func__ in log messages. fix some whitespace while here.
From Hiltjo Posthuma hiltjo -AT codemadness -DOT- org, thanks!
ok florian, claudio
- Commit:
731620555b5a9e9df17d53d8018195d73f868dd7- From:
- benno <benno@openbsd.org>
- Date:
move the opening of /dev/pf from the parent process to the pfe process
where it is used.
Currently pf is opened on every reload, that will no longer be
possible in the future with pledged programms that do ioctls.
This prepares relayd for that change.
ok deraadt@, meinetwegen reyk@
- Commit:
58fc320c602b00aed04b7887496e83d9892bed86- From:
- reyk <reyk@openbsd.org>
- Date:
Split "struct relayd" into two structs: "struct relayd" and "struct
relayd_config". This way we can send all the relevant global
configuration to the children, not just the flags and the opts.
With input from and
OK claudio@ benno@
- Commit:
3a342b20f6170a49ef823429c0897bd118135716- From:
- benno <benno@openbsd.org>
- Date:
Use pledge("pf") in pfe.c.
Move getrtable() from pfe to parent process, since its in the way of
pledge.
ok deraadt@, feedback from reyk@ on previous version.
- Commit:
d93c36af2b8111f07ff7645770d4714a2e5aef96- From:
- reyk <reyk@openbsd.org>
- Date:
Clean up the relayd headers with help of include-what-you-use and some
manual review. Based on common practice, relayd.h now includes the
necessary headers for itself.
OK benno@
- Commit:
63e504f7b640758736c4b123952ab9e96c9cb97f- From:
- reyk <reyk@openbsd.org>
- Date:
spacing
- Commit:
24b53830e63b5be2d28dff94b3489544e7cf5afc- From:
- deraadt <deraadt@openbsd.org>
- Date:
Include <netinet/in.h> before <net/pfvar.h>. In a future change when
ports is ready, <net/pfvar.h> will stop including a pile of balony.
- Commit:
2f6ec04dcc8d2ec0050455263b94308f36252825- From:
- deraadt <deraadt@openbsd.org>
- Date:
Adapt to <limits.h> universe.
ok millert
- Commit:
106385107161ce2613c3b938f5a28b17aa5fa8a9- From:
- reyk <reyk@openbsd.org>
- Date:
pf now supports source-hash and random with tables so we can allow it
in redirections. Thanks for help and input from jsg and yasuoka who
reminded me to dig out and update these old diffs for pf and relayd.
ok jsg@
- Commit:
983a954bece6bb9083b8685363d4bcc9d141b589- From:
- benno <benno@openbsd.org>
- Date:
time_t 64bit fixes for relayd and relayctl:
- fix statistics
- set INT_MAX limit on session timeouts
- make sure we dont use to large session timeouts in pf redirects and
openssl
tested with old and new time_t
ok florian@
- Commit:
d6c9879f73c8bad5cb7f6071fbe78882c3ecc0e1- From:
- reyk <reyk@openbsd.org>
- Date:
Support additional scheduling algorithms in the load balancer:
least-states, random, source-hash. least-states is currently only
supported for redirections and the other ones are currently only
supported by relays.
ok benno@
- Commit:
3a75ae459938780b1ef5af87f502a99c86e08af2- From:
- reyk <reyk@openbsd.org>
- Date:
spacing
- Commit:
75d875120286171e62e5c11e6406e5fcfcaad49f- From:
- henning <henning@openbsd.org>
- Date:
prio 0 is valid, therefore, I chose an "impossible" value for prio meaning
"not set" and used a PF_PRIO_NOTSET define for it. now that means that
everything that creates a struct pf_rule doesn't get away with bzero'ing it,
which turned out to be not so nice. so get rid of PF_PRIO_NOTSET, instead,
make a rule+state flag PFSTATE_SETPRIO which indicates wether the prio
should be set. ok benno claudio mikeb
- Commit:
4c8f6a4543be31cb3fbe400cc58934e58ca45c92- From:
- henning <henning@openbsd.org>
- Date:
rename prio in struct pf_rule and related structs to set_prio so it is
utterly clear this is not a filter criteria but a packet modification thing.
also preparation for upcoming changes, including one to unscrew this mess
(I should not have to touch half the tree for this - ifixitlater)
not user visible, ok gcc
- Commit:
aaeb831ef0bc5d88c50b19806b6e590ecccc85b3- From:
- benno <benno@openbsd.org>
- Date:
set onrdomain and prio when creating pf rules, found by Gabriel Linder.
ok henning@ phessler@ camield@ "looks good to me" mkb@
- Commit:
591e6ab59d9901a8a5a1eec8f4593ffc39656829- From:
- reyk <reyk@openbsd.org>
- Date:
Fix reload support in relayd(8) by reimplementing large parts of the
daemon infrastructure. The previous design made it fairly hard to
reload the complex data structures, especially relays and protocols.
One of the reasons was that the privsep'd relayd processes had two
ways of getting their configuration: 1) from memory after forking from
the parent process and 2) and (partially) via imsgs after reload. The
new implementation first forks the privsep'd children before the
parents loads the configuration and sends it via imsgs to them; so it
is only like 2) before. It is based on an approach that I first
implemented for iked(8) and I also fixed many bugs in the code.
Thanks to many testers including dlg@ sthen@ phessler@
ok pyr@ dlg@ sthen@
- Commit:
666bd316da38eef77379216e92680abfa93b938a- From:
- reyk <reyk@openbsd.org>
- Date:
Update all logging and debug functions to use the __func__ macro
instead of static function names. __func__ is C99 and perfectly fine
to use. It also avoids printing errors; for example if a statement
log_debug("foo:"..) was moved or copied from function foo() to bar()
and the log message was not updated...
- Commit:
9832d300b61f2aa8615dc76c5dfabc44e79db784- From:
- reyk <reyk@openbsd.org>
- Date:
redirects are loaded as "pass in quick ... rdr-to" pf rules by default. In
some cases it is desired to load the rules as "match in" without "quick"
to allow additional filtering or applying additional rule/state options,
eg. to add an overload table for DOS mitigation. Add the optional "match"
keyword for the redirect "tag" option to change the pf rule type accordingly.
ok jsg@ mikeb@
- Commit:
2e6003cf537a9fefd6d5cd1dad198f1a23292461- From:
- sobrado <sobrado@openbsd.org>
- Date:
remove trailing spaces and tabs from source code; no binary changes
(verified by both sthen@ and me).
ok sthen@; "just commit it" claudio@
- Commit:
1b676997367b106a769085140eac191c2b9f14ea- From:
- pyr <pyr@openbsd.org>
- Date:
DSR got broken with the move towards the new pf.
This fixes it.
Found out by Laurent Lavaud & myself.
"looks olrite" henning@
