Bug 267731 - [NEW PORT] sysutils/egress-monitor: Set network interface groups based on default routes
Summary: [NEW PORT] sysutils/egress-monitor: Set network interface groups based on def...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Juraj Lutter
URL: https://github.com/mekanix/egress-mon...
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-12 19:36 UTC by Goran Mekić
Modified: 2022-11-15 18:01 UTC (History)
2 users (show)

See Also:


Attachments
egress-monitor.patch (3.79 KB, patch)
2022-11-12 19:38 UTC, Goran Mekić
no flags Details | Diff
egress-monitor.patch (3.83 KB, patch)
2022-11-12 19:48 UTC, Goran Mekić
no flags Details | Diff
egress-monitor.patch (3.83 KB, patch)
2022-11-12 19:49 UTC, Goran Mekić
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Goran Mekić 2022-11-12 19:36:51 UTC
QA:

  * portlint: OK (looks fine.)
  * testport: OK (poudriere: 14.0, amd64 tested)
Comment 1 Goran Mekić 2022-11-12 19:38:15 UTC
Created attachment 238035 [details]
egress-monitor.patch
Comment 2 Goran Mekić 2022-11-12 19:48:31 UTC
Created attachment 238036 [details]
egress-monitor.patch

Set service to start after NETWORK and before pf.
Comment 3 Goran Mekić 2022-11-12 19:49:40 UTC
Created attachment 238037 [details]
egress-monitor.patch

Just realized it's NETWORKING not NETWORK
Comment 4 dfr 2022-11-15 17:33:50 UTC
Tested this on 13.1-RELEASE-p3 with my use-case (container networking for podman and buildah) and it works perfectly.
Comment 5 commit-hook freebsd_committer freebsd_triage 2022-11-15 17:58:54 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=33e91dbbe19992d88fa70f0d303112b14882394b

commit 33e91dbbe19992d88fa70f0d303112b14882394b
Author:     Goran Mekić <meka@tilda.center>
AuthorDate: 2022-11-12 22:12:55 +0000
Commit:     Juraj Lutter <otis@FreeBSD.org>
CommitDate: 2022-11-15 17:57:08 +0000

    sysutils/egress-monitor: Add new port

    Add sysutils/egress-monitor, a tool that is watching for default routes
    changes and sets the interface group. When the default route is added,
    egress-monitor sets the group of that interface to appropriate egress.

    WWW: https://github.com/mekanix/egress-monitor

    PR:             267731
    Tested by:      dfr

 sysutils/Makefile                                  |  1 +
 sysutils/egress-monitor/Makefile (new)             | 22 ++++++++++++++++++++++
 sysutils/egress-monitor/distinfo (new)             |  3 +++
 .../egress-monitor/files/egress-monitor.in (new)   | 22 ++++++++++++++++++++++
 sysutils/egress-monitor/files/pkg-message.in (new) |  8 ++++++++
 sysutils/egress-monitor/pkg-descr (new)            |  4 ++++
 6 files changed, 60 insertions(+)
Comment 6 Juraj Lutter freebsd_committer freebsd_triage 2022-11-15 18:01:23 UTC
Committed, thanks.