opnsense / opnsense/plugins

Add http_proxy configuration option to DNSCrypt-Proxy plugin GUI

Open
#5,384 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
1.2k
Forks
863
Avg merge
2d 6h
Merged PRs (30d)
10

Description

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.
In isolated/air-gapped network environments without direct internet access, DNS traffic needs to be tunneled through an HTTP proxy. The DNSCrypt-Proxy plugin supports the http_proxy parameter natively, but it cannot be configured through the OPNsense GUI. The only workaround is to manually add the parameter to the Jinja2 template /usr/local/opnsense/service/templates/OPNsense/Dnscryptproxy/dnscrypt-proxy.toml, which gets overwritten on every plugin update and must be reapplied each time.

Describe the solution you'd like
I would like an input field in Services → DNSCrypt-Proxy → Configuration analogous to the existing SOCKS5 proxy field, which adds the http_proxy parameter to dnscrypt-proxy.toml.

Describe alternatives you've considered
Manually adding the http_proxy entry directly to the Jinja2 template after the SOCKS5 proxy block:

http_proxy = 'http://<proxy-host>:<port>'

This works but is not persistent across plugin updates.

Additional context
The http_proxy parameter is documented in the official dnscrypt-proxy configuration reference:
https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Configuration

This feature would benefit users in corporate environments where internet access is only available through an HTTP forwarding proxy chain (e.g. Fortigate → Squid → Internet).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at Services → DNSCrypt-Proxy → Configuration and find the existing SOCKS5 proxy field, then inspect /usr/local/opnsense/service/templates/OPNsense/Dnscryptproxy/dnscrypt-proxy.toml and its SOCKS5 proxy block. Add the corresponding HTTP proxy configuration so it persists through plugin updates, and verify that the generated dnscrypt-proxy.toml contains the configured http_proxy value.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend, frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.