Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for binding to a specific interface for url previews #634

Merged
merged 1 commit into from
Dec 8, 2024

Conversation

JadedBlueEyes
Copy link
Contributor

This is helpful to, for example, bind to an interface that can only access the public internet. The resulting setup is less maintenance-heavy / error-prone than manually maintaining a deny/allowlist to protect internal resources.

In my setup, I'm using podman's macvlan driver to provide direct access to my host's eno1 interface, which accesses the public net, like so:

[Network]
DisableDNS=false
IPv6=true
Subnet=10.89.1.0/24
Gateway=10.89.1.1
Driver=macvlan
Options=parent=eno1

This means that the URL preview requests can't access any of my local services or my private network.

src/core/config/mod.rs Outdated Show resolved Hide resolved
This is helpful to, for example, bind to an interface that can
only access the public internet. The resulting setup is less
maintenance-heavy / error-prone than manually maintaining a deny/
allowlist to protect internal resources.

Signed-off-by: Jade Ellis <[email protected]>
@girlbossceo girlbossceo merged commit 52cee65 into girlbossceo:main Dec 8, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants