GithubHelp home page GithubHelp logo

junkurihara / doh-auth-proxy Goto Github PK

View Code? Open in Web Editor NEW
24.0 4.0 6.0 1012 KB

Local DNS proxy for DNS over HTTPS (DoH), Oblivious DoH (ODoH) and Multiple-relay-based ODoH extension (Mutualized ODoH; MODoH), which additionally supports domain-based filtering and proxy/resolver authentication

Home Page: https://junkurihara.github.io/dns

License: MIT License

Rust 94.41% Shell 4.50% Dockerfile 1.08%
dns rust doh odoh dns-over-https oblivious-doh mutualized-odoh ad-blocking domain-blocker domain-filtering

doh-auth-proxy's Issues

Windows support

I've tried to compile doh-auth-proxy for Windows target but I have no success:

$ cargo build --release --target x86_64-pc-windows-gnu
  Downloaded windows-targets v0.48.2
  Downloaded windows_x86_64_gnu v0.48.2
  Downloaded 2 crates (808.5 KB) in 3.12s
   Compiling cfg-if v1.0.0
   Compiling typenum v1.16.0
   Compiling generic-array v0.14.7
   Compiling zeroize v1.6.0
   Compiling subtle v2.5.0
   Compiling getrandom v0.2.10
   Compiling const-oid v0.9.5
   Compiling windows_x86_64_gnu v0.48.2
   Compiling once_cell v1.18.0
   Compiling windows-targets v0.48.2
   Compiling windows-sys v0.48.0
   Compiling rand_core v0.6.4
   Compiling block-buffer v0.10.4
   Compiling base64ct v1.6.0
   Compiling serde v1.0.183
   Compiling crypto-common v0.1.6
   Compiling winapi-x86_64-pc-windows-gnu v0.4.0
   Compiling digest v0.10.7
   Compiling itoa v1.0.9
   Compiling winapi v0.3.9
   Compiling pin-project-lite v0.2.12
   Compiling cpufeatures v0.2.9
   Compiling bytes v1.4.0
   Compiling futures-core v0.3.28
   Compiling hmac v0.12.1
   Compiling pem-rfc7468 v0.7.0
   Compiling der v0.7.8
   Compiling tracing-core v0.1.31
   Compiling smallvec v1.11.0
   Compiling ryu v1.0.15
   Compiling futures-sink v0.3.28
   Compiling spin v0.5.2
   Compiling futures-task v0.3.28
   Compiling serde_json v1.0.105
   Compiling lazy_static v1.4.0
   Compiling slab v0.4.8
   Compiling spki v0.7.2
   Compiling hkdf v0.12.3
   Compiling num_cpus v1.16.0
   Compiling ppv-lite86 v0.2.17
   Compiling base16ct v0.2.0
   Compiling libm v0.2.7
   Compiling serdect v0.2.0
   Compiling futures-util v0.3.28
   Compiling tracing v0.1.37
   Compiling pkcs8 v0.10.2
   Compiling rand_chacha v0.3.1
   Compiling ff v0.13.0
   Compiling inout v0.1.3
   Compiling tinyvec_macros v0.1.1
   Compiling pin-utils v0.1.0
   Compiling futures-channel v0.3.28
   Compiling tinyvec v1.6.0
   Compiling cipher v0.4.4
   Compiling num-traits v0.2.16
   Compiling group v0.13.0
   Compiling rand v0.8.5
   Compiling sec1 v0.7.3
   Compiling libc v0.2.147
   Compiling universal-hash v0.5.1
   Compiling crypto-bigint v0.5.2
   Compiling opaque-debug v0.3.0
   Compiling byteorder v1.4.3
   Compiling socket2 v0.5.3
   Compiling mio v0.8.8
   Compiling elliptic-curve v0.13.5
   Compiling thiserror v1.0.46
   Compiling ahash v0.8.3
   Compiling tokio v1.32.0
   Compiling unicode-normalization v0.1.22
   Compiling sha2 v0.10.7
   Compiling pem-rfc7468 v0.6.0
   Compiling percent-encoding v2.3.0
   Compiling fnv v1.0.7
   Compiling unicode-bidi v0.3.13
   Compiling http v0.2.9
   Compiling form_urlencoded v1.2.0
   Compiling der v0.6.1
   Compiling memchr v2.5.0
   Compiling indexmap v1.9.3
   Compiling num-integer v0.1.45
   Compiling rfc6979 v0.4.0
   Compiling signature v2.1.0
   Compiling allocator-api2 v0.2.16
   Compiling hashbrown v0.12.3
   Compiling native-tls v0.2.11
   Compiling httparse v1.8.0
   Compiling hashbrown v0.14.0
   Compiling tokio-util v0.7.8
   Compiling spki v0.6.0
   Compiling parking_lot_core v0.9.8
   Compiling lock_api v0.4.10
   Compiling num-iter v0.1.43
   Compiling ecdsa v0.16.8
   Compiling idna v0.4.0
   Compiling schannel v0.1.22
   Compiling polyval v0.6.1
   Compiling aead v0.5.2
   Compiling digest v0.9.0
   Compiling ipconfig v0.3.2
   Compiling match_cfg v0.1.0
   Compiling matches v0.1.10
   Compiling rand_core v0.5.1
   Compiling futures-io v0.3.28
   Compiling try-lock v0.2.4
   Compiling scopeguard v1.2.0
   Compiling want v0.3.1
   Compiling curve25519-dalek v3.2.0
   Compiling idna v0.2.3
   Compiling num-bigint-dig v0.8.4
   Compiling hostname v0.3.1
   Compiling ghash v0.5.0
   Compiling url v2.4.0
   Compiling aho-corasick v1.0.4
   Compiling h2 v0.3.20
   Compiling pkcs8 v0.9.0
   Compiling http-body v0.4.5
   Compiling primeorder v0.13.2
   Compiling winreg v0.50.0
   Compiling poly1305 v0.8.0
   Compiling chacha20 v0.9.1
   Compiling ctr v0.9.2
   Compiling aes v0.8.3
   Compiling socket2 v0.4.9
   Compiling quick-error v1.2.3
   Compiling regex-syntax v0.7.4
   Compiling data-encoding v2.4.0
   Compiling widestring v1.0.2
   Compiling winreg v0.10.1
   Compiling httpdate v1.0.3
   Compiling regex-syntax v0.6.29
   Compiling log v0.4.20
   Compiling ipnet v2.8.0
   Compiling equivalent v1.0.1
   Compiling tower-service v0.3.2
   Compiling linked-hash-map v0.5.6
   Compiling lru-cache v0.1.2
   Compiling trust-dns-proto v0.22.0
   Compiling hyper v0.14.27
   Compiling regex-automata v0.1.10
   Compiling anyhow v1.0.75
   Compiling indexmap v2.0.0
   Compiling regex-automata v0.3.6
   Compiling resolv-conf v0.7.0
   Compiling aes-gcm v0.10.2
   Compiling chacha20poly1305 v0.10.1
   Compiling pkcs1 v0.4.1
   Compiling parking_lot v0.12.1
   Compiling tikv-jemalloc-sys v0.5.4+5.3.0-patched
   Compiling x25519-dalek v2.0.0-pre.1
   Compiling tokio-native-tls v0.3.1
   Compiling terminal_size v0.2.6
   Compiling serde_spanned v0.6.3
   Compiling toml_datetime v0.6.3
   Compiling signature v1.6.4
   Compiling clap_lex v0.5.0
   Compiling overload v0.1.1
   Compiling winnow v0.5.12
   Compiling ct-codecs v1.1.1
   Compiling anstyle v1.0.1
   Compiling clap_builder v4.3.21
   Compiling toml_edit v0.19.14
   Compiling ed25519-compact v2.0.4
   Compiling nu-ansi-term v0.46.0
   Compiling rsa v0.7.2
   Compiling regex v1.9.3
   Compiling hyper-tls v0.5.0
   Compiling hpke v0.10.0 (https://github.com/junkurihara/rust-hpke.git#4dd82caf)
   Compiling trust-dns-resolver v0.22.0
   Compiling matchers v0.1.0
   Compiling tracing-log v0.1.3
   Compiling p384 v0.13.0
   Compiling p256 v0.13.2
   Compiling k256 v0.13.1
   Compiling serde_urlencoded v0.7.1
   Compiling coarsetime v0.1.23
   Compiling time v0.1.45
   Compiling sharded-slab v0.1.4
   Compiling hmac-sha512 v1.1.5
   Compiling hmac-sha256 v1.1.7
   Compiling thread_local v1.1.7
   Compiling encoding_rs v0.8.32
   Compiling binstring v0.1.1
   Compiling mime v0.3.17
   Compiling base64 v0.21.2
   Compiling hmac-sha1-compact v1.1.4
   Compiling jwt-simple v0.11.6
   Compiling tracing-subscriber v0.3.17
   Compiling reqwest v0.11.18
   Compiling chrono v0.4.26
   Compiling odoh-rs v1.0.1 (https://github.com/junkurihara/odoh-rs.git#25c3ed9a)
   Compiling clap v4.3.21
   Compiling toml v0.7.6
   Compiling futures v0.3.28
   Compiling hashlink v0.8.3
   Compiling cedarwood v0.4.6
   Compiling urlencoding v2.1.3
   Compiling rustc-hash v1.1.0
   Compiling dotenv v0.15.0
   Compiling tikv-jemallocator v0.5.4
error: could not find native static library `jemalloc`, perhaps an -L flag is missing?

error: could not compile `tikv-jemalloc-sys` (lib) due to previous error

@junkurihara

Is it possible to add support for compiling to Windows targets? Does it exist a similar library like tikv-jemallocator that compiles to Windows?

Feature request: Connectivity test and bootstrap resolvers

I thinking on using doh-auth-proxy with systemd and in some Windows 10 PCs as a service.

I want to use a list of 2 ODoH relays and 10 ODoH servers, sometimes some servers are down and I cannot predict this, if using doh-auth-proxy with systemd won't work if one of the servers are down.

A good feature would be an automatic network connectivity test: The app would wait until the network is up and a check in the relays/servers would be performed to select only online relays/servers. This option would make doh-auth-proxy work fine with systemd or as a Windows service. This feature is implemented in dnscrypt-proxy: https://github.com/DNSCrypt/dnscrypt-proxy/blob/master/dnscrypt-proxy/example-dnscrypt-proxy.toml#L282-L300

Another feature that would be good to be implemented is the ability of using bootstrap resolvers: If using doh-auth-proxy alone as a DNS forwarder for the network, it couldn't find any DNS server to resolve the hostnames of relays/servers. This feature is also implemented in dnscrypt-proxy: https://github.com/DNSCrypt/dnscrypt-proxy/blob/master/dnscrypt-proxy/example-dnscrypt-proxy.toml#L234-L279

These are my suggestions.

Renaming to `modoh-proxy`?

Yesterday, we published the DoH, ODoH and μODoH server application, modoh-server. The naming of modoh-server was from the original name of μODoH, Mutualized Oblivious DNS over HTTPS.

doh-auth-proxy was designed to fully leverage the functionalities of μODoH in addition to DoH and ODoH. IMHO, the naming convention of client and server software should be consistent, and hence the naming modoh-proxy would be better than doh-auth-proxy.

Any opinion?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.