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

www/caddy [Feature request]: Ability to bind to selected ip addresses #4355

Open
QBANIN opened this issue Nov 14, 2024 · 1 comment
Open
Labels
support Community support

Comments

@QBANIN
Copy link

QBANIN commented Nov 14, 2024

Important notices
Before you add a new report, we ask you kindly to acknowledge the following:

Is your feature request related to a problem? Please describe.
I have multi-wan/multi-IP setup but I need caddy to listen only on one or two selected IP address.

Describe the solution you'd like
Could be something similar to haproxy implementation.

Describe alternatives you've considered
Moving back to HAproxy :)

Additional context
obraz

@Monviech
Copy link
Member

Monviech commented Nov 15, 2024

The current GUI implementation of the os-caddy plugin does not fit your specific use case.

It can be configured as custom configuration file but I do not actively support it. When it breaks it will not be a priority to fix it.

https://docs.opnsense.org/manual/how-tos/caddy.html#bind-caddy-to-interfaces

Most of the time there is no reason to only listen on one WAN interface. Look at the Layer 4 Proxy, you can match and send any kind of traffic and a lot of protocols anywhere you want. This can be configured smartly to get around the issue you might have.

https://docs.opnsense.org/manual/how-tos/caddy.html#caddy-layer4-proxy

Another method is to change the default listening ports of Caddy to e.g. 8080 and 8443 in the GUI and use Port Forward from WAN1 of 80 to localhost:8080 and 443 to localhost:8443.

Duplicate of: #4082

@Monviech Monviech added the support Community support label Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support Community support
Development

No branches or pull requests

2 participants