Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
24.1 Legacy Series
»
[SOLVED] Question about Caddy configuration
« previous
next »
Print
Pages: [
1
]
Author
Topic: [SOLVED] Question about Caddy configuration (Read 597 times)
afX33800
Newbie
Posts: 12
Karma: 1
[SOLVED] Question about Caddy configuration
«
on:
July 11, 2024, 06:49:07 pm »
Hello,
I've a question about Caddy configuration.
I'm trying to configure on my opnsense (by the plugin), and I am searching about split DNS configuration.
For me I have to write a DNS override on Unbound, but what's is the target on A ?
A = 0.0.0.0 or on other address ?
tank's for your help.
«
Last Edit: July 17, 2024, 11:41:41 am by afX33800
»
Logged
Monviech (Cedrik)
Global Moderator
Hero Member
Posts: 1601
Karma: 176
Re: Question about Caddy configuration
«
Reply #1 on:
July 11, 2024, 07:51:14 pm »
Hello,
read this thread here, I explained how to configure the DNS properly in detail:
https://www.reddit.com/r/opnsense/comments/1dwbr88/issue_using_oscaddy_to_generate_wildcard_cert/
Logged
Hardware:
DEC740
afX33800
Newbie
Posts: 12
Karma: 1
Re: Question about Caddy configuration
«
Reply #2 on:
July 11, 2024, 09:20:51 pm »
Hello,
Thanks for your answer.
Just to be sure that I’ve a good understanding :
If I’ve domain.com, I setup a A record on my dns provider for subdomain.domain.com.
Then I setup Cname for app.subdomain.domain.com to my previously A record right ?
And no record on unbound.
But a point that I doublt. My reverse proxy hasn’t aim to serve app on external (or just one maybe). With this configuration when I try to Connect to app.subdomain.domain.com I will be see by OpnSense coming from external right ? So Acl to restrict to internal ip will always match so I Will never Access ?
Thanks for your informations
Logged
Monviech (Cedrik)
Global Moderator
Hero Member
Posts: 1601
Karma: 176
Re: Question about Caddy configuration
«
Reply #3 on:
July 11, 2024, 10:19:36 pm »
Yeah you understood right.
Just try it out. The ACL will match when your clients are in internal Networks behind the OPNsense (if you want to restrict access.)
The OPNsense will see the internal IP address reaching your external address.
Logged
Hardware:
DEC740
afX33800
Newbie
Posts: 12
Karma: 1
Re: Question about Caddy configuration
«
Reply #4 on:
July 17, 2024, 11:41:05 am »
thanks for you help.
It work, it's now solved.
Logged
Monviech (Cedrik)
Global Moderator
Hero Member
Posts: 1601
Karma: 176
Re: [SOLVED] Question about Caddy configuration
«
Reply #5 on:
July 17, 2024, 12:39:24 pm »
Great, thanks for checking back in.
Logged
Hardware:
DEC740
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
24.1 Legacy Series
»
[SOLVED] Question about Caddy configuration