Using PROXY Protocol on Technitium fronted with a layer-4 router #1099
skedastically
started this conversation in
Show and tell
Replies: 1 comment
-
Thanks for posting this here. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Just wanna share my configs for routing packets with PROXY Protocol enabled to Technitium. This helps with retrieving source IPs of DNS queries when Technitium can't do so natively (e.g. behind NAT). Also available as blog.
1. Enable the protocols
Technitium Homepage -> Settings -> Optional Protocols -> check on Enable DNS-over-TCP-PROXY and Enable DNS-over-UDP-PROXY. By default these ports are
538/tcp
and538/udp
, but you can change it if you want.If you're using Technitium in a container, make sure to expose these ports as well.
2. Configure a nginx service
Install nginx via container or on host. Add this/mount this to your
/etc/nginx/nginx.conf
.If nginx is on a different machine from Technitium, replace
127.0.0.1
with appropriate Technitium's IP address.Enable/Restart nginx.
3. Test the services
Using dog these should work:
And the correct client IP should be logged in Technitium.
PROXY Protocol helps with workarounds to some site-to-site DNS scenarios, which would make Split Horizon feasible. As per the docs, the same method can also be used for DoT as well.
Please correct and suggest improvements. Also please share configs for other routers/reverse proxies e.g. Caddy-L4 or HAProxy (Nginx is the only one I found working so far).
Beta Was this translation helpful? Give feedback.
All reactions