Seji64 / SniDust

SmartDNS Proxy to hide your GeoLocation. Based on DnsDist and nginx
GNU General Public License v3.0
156 stars 43 forks source link

not working without any error in logs #54

Closed meower1 closed 7 months ago

meower1 commented 7 months ago

Hi i've used snidust before and had been fine with it, now im trying to set it up again but its not working for some reason. heres what i've done:

i've made my docker compose file like so

version: '3.3'
services:
    snidust:
        container_name: snidust
        environment:
            - TZ=Europe/Bayren
            - 'ALLOWED_CLIENTS=127.0.0.1, 0.0.0.0'
            - 'EXTERNAL_IP=server_ip'
            - SPOOF_ALL_DOMAINS=true
        ports:
            - 443:8443
            - 80:8080
            - 53:5300/udp
        image: 'ghcr.io/seji64/snidust:main'

and have fixed port 53 being used following the referenced tutorial heres my resolv.conf

[Resolve]
# Some examples of DNS servers which may be used for DNS= and FallbackDNS=:
# Cloudflare: 1.1.1.1#cloudflare-dns.com 1.0.0.1#cloudflare-dns.com 2606:4700:4700::1111#cloudflare-dns.com 2606:4700:4700::1001#cloudflare-dns.com
# Google:     8.8.8.8#dns.google 8.8.4.4#dns.google 2001:4860:4860::8888#dns.google 2001:4860:4860::8844#dns.google
# Quad9:      9.9.9.9#dns.quad9.net 149.112.112.112#dns.quad9.net 2620:fe::fe#dns.quad9.net 2620:fe::9#dns.quad9.net
DNS=1.1.1.1
#FallbackDNS=
#Domains=
#DNSSEC=no
#DNSOverTLS=no
#MulticastDNS=no
#LLMNR=no
#Cache=no-negative
#CacheFromLocalhost=no
DNSStubListener=no
#DNSStubListenerExtra=
#ReadEtcHosts=yes
#ResolveUnicastSingleLabel=no

i'm not getting any startup errors heres the output of docker logs snidust:

[INFO] [SniDust] Adding domain chromecast-receiver.zattoo.com to list
[INFO] [SniDust] Adding domain box30030.wemfbox.ch to list
[INFO] [SniDust] Adding domain zattoo.wemfbox.ch to list
[INFO] [SniDust] Adding domain zatsslive-a.akamaihd.net to list
[INFO] [SniDust] Adding domain zattoo.com to list
[INFO] [SniDust] *** End of Domain List ***
[INFO] [SniDust] *** Domain List: /etc/snidust/domains.d/10-yallo.lst***
[INFO] [SniDust] Adding domain y3o.tv to list
[INFO] [SniDust] Adding domain yallo.tv to list
[INFO] [SniDust] *** End of Domain List ***
[INFO] [SniDust] *** Complete! ***
Added downstream server 8.8.8.8:853
Added downstream server 8.8.4.4:853
Added downstream server 1.1.1.1:443
Added downstream server 1.0.0.1:443
Listening on 0.0.0.0:5300
ACL allowing queries from: 0.0.0.0/32, home_ip/32, 127.0.0.1/32
Console ACL allowing connections from: 127.0.0.0/8, ::1/128
Marking downstream cloudflare-dns (1.1.1.1:443) as 'up'
Marking downstream cloudflare-dns (1.0.0.1:443) as 'up'
Marking downstream dns.google (8.8.8.8:853) as 'up'
Marking downstream dns.google (8.8.4.4:853) as 'up'
===================================================================
[INFO] SniDust started => Using server_ip - Point your DNS settings to this address
===================================================================

i've changed my server's ip to server_ip

i've also tried with DNS=127.0.0.1 and yes im trying to make the dns available to the public so im fine with ALLOWED_CLIENTS=127.0.0.1, 0.0.0.0

i've tried on two different servers, and my firewall is off

Seji64 commented 7 months ago

Your subnet is wrong. It should be 0.0.0.0/0 if you want to allow all Clients. Also Note 127.0.0.1 only Applies to the Container itself (Not your vps)

meower1 commented 7 months ago

worked flawlessly, thanks for the awesome project