201

Odp: Instalacja AdGuard Home na OpenWrt

Tak, użyj XMiR-Patcher'a i sobie wgraj system. Opisy jego masz w watku poświęconym AX3000T, więc jak będzie ci sprawiał kłopot to pisz w tamtym wątku lub załóż nowy, nie pisz w tym, bo ten dotyczy innej sprawy.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

202 (edytowany przez daarkknight87 2025-03-28 22:11:42)

Odp: Instalacja AdGuard Home na OpenWrt

Ok. Firmware wgrane. Wgrałem też Adguard Home i go skonfigurowałem. Wpisywałem też twoje polecenia na konfigurację routera pod Adguarda,j jednak dnsy się nie zmieniły. Są te same od operatora.


root@OpenWrt:~# udhcpc: started, v1.36.1
-ash: udhcpc:: not found
root@OpenWrt:~# udhcpc: broadcasting discover
-ash: udhcpc:: not found
root@OpenWrt:~# udhcpc: no lease, failing
-ash: udhcpc:: not found
root@OpenWrt:~#
root@OpenWrt:~# uci set network.wan.peerdns='0'
root@OpenWrt:~# root@OpenWrt:~# uci add_list dhcp.@dnsmasq[0].server='192.168.1.
1#5353'
-ash: root@OpenWrt:~#: not found
root@OpenWrt:~# root@OpenWrt:~# uci set network.wan.peerdns='0'
-ash: root@OpenWrt:~#: not found
root@OpenWrt:~# root@OpenWrt:~# uci set network.wan.dns='127.0.0.1'
-ash: root@OpenWrt:~#: not found
root@OpenWrt:~# root@OpenWrt:~# uci commit
-ash: root@OpenWrt:~#: not found
root@OpenWrt:~# root@OpenWrt:~# /etc/init.d/dnsmasq restart
-ash: root@OpenWrt:~#: not found
root@OpenWrt:~# udhcpc: started, v1.36.1
-ash: udhcpc:: not found
root@OpenWrt:~# udhcpc: broadcasting discover
-ash: udhcpc:: not found
root@OpenWrt:~# udhcpc: no lease, failing
-ash: udhcpc:: not found
root@OpenWrt:~#
root@OpenWrt:~# uci commit
root@OpenWrt:~# root@OpenWrt:~# uci add_list dhcp.@dnsmasq[0].server='192.168.1.
1#5353'
-ash: root@OpenWrt:~#: not found
-ash: root@OpenWrt:~#: not foundroot@OpenWrt:~# root@OpenWrt:~# uci set network.wan.peerdns='0'

root@OpenWrt:~# root@OpenWrt:~# uci set network.wan.peerdns='0'
-ash: root@OpenWrt:~#: not found
root@OpenWrt:~# root@OpenWrt:~# uci set network.wan.dns='127.0.0.1'
root@OpenWrt:~# root@OpenWrt:~# uci add_list dhcp.@dnsmasq[0].server='192.168.1.
-ash: root@OpenWrt:~#: not found
1#5353'
root@OpenWrt:~# root@OpenWrt:~# uci commit
-ash: root@OpenWrt:~#: not found
root@OpenWrt:~# root@OpenWrt:~# /etc/init.d/dnsmasq restart
-ash: root@OpenWrt:~#: not found
-ash: root@OpenWrt:~#: not found
root@OpenWrt:~# udhcpc: started, v1.36.1
-ash: udhcpc:: not found
root@OpenWrt:~# udhcpc: no lease, failing
root@OpenWrt:~# udhcpc: broadcasting discover
-ash: udhcpc:: not found
root@OpenWrt:~# udhcpc: no lease, failing
-ash: udhcpc:: not found
root@OpenWrt:~# root@OpenWrt:~#
-ash: root@OpenWrt:~#: not found
root@OpenWrt:~# root@OpenWrt:~# uci add_list dhcp.@dnsmasq[0].server='192.168.1.
1#5353'
-ash: root@OpenWrt:~#: not found
root@OpenWrt:~# root@OpenWrt:~# uci set network.wan.peerdns='0'
-ash: root@OpenWrt:~#: not found
root@OpenWrt:~# root@OpenWrt:~# root@OpenWrt:~# uci add_list dhcp.@dnsmasq[0].se
rver='192.168.1.
> 1#5353'
-ash: root@OpenWrt:~#: not found
root@OpenWrt:~# -ash: root@OpenWrt:~#: not found
-ash: -ash:: not found
root@OpenWrt:~# root@OpenWrt:~# root@OpenWrt:~# uci set network.wan.peerdns='0'
-ash: root@OpenWrt:~#: not found
root@OpenWrt:~# -ash: root@OpenWrt:~#: not found
-ash: -ash:: not found
root@OpenWrt:~# root@OpenWrt:~# root@OpenWrt:~# uci set network.wan.dns='127.0.0
.1'
-ash: root@OpenWrt:~#: not found
root@OpenWrt:~# -ash: root@OpenWrt:~#: not found
-ash: -ash:: not found
root@OpenWrt:~# root@OpenWrt:~# root@OpenWrt:~# uci commit
-ash: root@OpenWrt:~#: not found
root@OpenWrt:~# -ash: root@OpenWrt:~#: not found
-ash: -ash:: not found
root@OpenWrt:~# root@OpenWrt:~# root@OpenWrt:~# /etc/init.d/dnsmasq restart
-ash: root@OpenWrt:~#: not found
root@OpenWrt:~# -ash: root@OpenWrt:~#: not found
-ash: -ash:: not found
root@OpenWrt:~# root@OpenWrt:~# udhcpc: started, v1.36.1
-ash: root@OpenWrt:~#: not found
root@OpenWrt:~# -ash: udhcpc:: not found
-ash: -ash:: not found
root@OpenWrt:~# root@OpenWrt:~# udhcpc: broadcasting discover
-ash: root@OpenWrt:~#: not found
root@OpenWrt:~# -ash: udhcpc:: not found
-ash: -ash:: not found
root@OpenWrt:~# root@OpenWrt:~# udhcpc: no lease, failing
-ash: root@OpenWrt:~#: not found
root@OpenWrt:~# -ash: udhcpc:: not found
-ash: -ash:: not found
root@OpenWrt:~# root@OpenWrt:~#
-ash: root@OpenWrt:~#: not found
root@OpenWrt:~# root@OpenWrt:~# uci set network.wan.peerdns='0'
-ash: root@OpenWrt:~#: not found
root@OpenWrt:~# root@OpenWrt:~# root@OpenWrt:~# uci add_list dhcp.@dnsmasq[0].se
rver='192.168.1.
> 1#5353'
-ash: root@OpenWrt:~#: not found
root@OpenWrt:~# -ash: root@OpenWrt:~#: not found
-ash: -ash:: not found
root@OpenWrt:~# root@OpenWrt:~# root@OpenWrt:~# uci set network.wan.peerdns='0'
-ash: root@OpenWrt:~#: not found
root@OpenWrt:~# -ash: root@OpenWrt:~#: not found
-ash: -ash:: not found
root@OpenWrt:~# root@OpenWrt:~# root@OpenWrt:~# uci set network.wan.dns='127.0.0
.1'
-ash: root@OpenWrt:~#: not found
root@OpenWrt:~# -ash: root@OpenWrt:~#: not found
-ash: -ash:: not found
root@OpenWrt:~# root@OpenWrt:~# root@OpenWrt:~# uci commit
-ash: root@OpenWrt:~#: not found
root@OpenWrt:~# -ash: root@OpenWrt:~#: not found
-ash: -ash:: not found
root@OpenWrt:~# root@OpenWrt:~# root@OpenWrt:~# /etc/init.d/dnsmasq restart
-ash: root@OpenWrt:~#: not found
root@OpenWrt:~# -ash: root@OpenWrt:~#: not found
-ash: -ash:: not found
root@OpenWrt:~# root@OpenWrt:~# udhcpc: started, v1.36.1
-ash: root@OpenWrt:~#: not found
root@OpenWrt:~# -ash: udhcpc:: not found
-ash: -ash:: not found
root@OpenWrt:~# root@OpenWrt:~# udhcpc: broadcasting discover
-ash: root@OpenWrt:~#: not found
root@OpenWrt:~# -ash: udhcpc:: not found
-ash: -ash:: not found
root@OpenWrt:~# root@OpenWrt:~# udhcpc: no lease, failing
-ash: root@OpenWrt:~#: not found
root@OpenWrt:~# -ash: udhcpc:: not found
-ash: -ash:: not found

W luci widoczne jest coś takiego "DNSv4:89.161.65.142,89.161.65.146,89.161.65.144

"

203

Odp: Instalacja AdGuard Home na OpenWrt

Na razie to pokazałeś tylko bezsensowne kopiowane i wklejanie myszą przypadkowych linii. I nie, nie skonfigurowałeś tego wg poradnika, bo źle wkleiłeś polecenia.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

204

Odp: Instalacja AdGuard Home na OpenWrt

root@OpenWrt:~# # uci add_list dhcp.@dnsmasq[0].server='192.168.1.1#5353'
root@OpenWrt:~# # uci set network.wan.peerdns='0'
root@OpenWrt:~# # uci set network.wan.dns='127.0.0.1'
root@OpenWrt:~# # uci commit
root@OpenWrt:~# # /etc/init.d/dnsmasq restart

205

Odp: Instalacja AdGuard Home na OpenWrt

Też źle. Bez znaku # z przodu, przeczytaj faq na górze tej strony.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

206

Odp: Instalacja AdGuard Home na OpenWrt

root@OpenWrt:~# uci add_list dhcp.@dnsmasq[0].server='192.168.1.1#5353'
root@OpenWrt:~# uci set network.wan.peerdns='0'
root@OpenWrt:~# uci set network.wan.dns='127.0.0.1'
root@OpenWrt:~# uci commit
root@OpenWrt:~# /etc/init.d/dnsmasq restart

udhcpc: started, v1.36.1
udhcpc: broadcasting discover
udhcpc: no lease, failing

207

Odp: Instalacja AdGuard Home na OpenWrt

Ok, zrobiłeś.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

208 (edytowany przez daarkknight87 2025-03-28 22:32:50)

Odp: Instalacja AdGuard Home na OpenWrt

Ale dnsy się nie zmieniły. Nadal są te od operatora. Przykładowo w Adguard zablokowalem porno i wszystkie strony porno wchodzą. A adresy dnsy widnieją te od operatora.

209

Odp: Instalacja AdGuard Home na OpenWrt

Gdzie są dnsy operatora? Jeżeli je widzisz na wanie to zrób ifup wan

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

210

Odp: Instalacja AdGuard Home na OpenWrt

Internet
Internet
Internet IPv4

Połączony:tak

Czas pracy:0h 38m 38s

Protokół:Klient DHCP



DNSv4:89.161.65.142,89.161.65.146,89.161.65.14

211

Odp: Instalacja AdGuard Home na OpenWrt

Czyli na wanie. Zrestartuj bo masz połączenie od 38 minut, czyli tego nie zrobiłeś.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

212 (edytowany przez daarkknight87 2025-03-28 22:36:46)

Odp: Instalacja AdGuard Home na OpenWrt

router zrestartować ? Wpisałem ifup wan i jest dns 127.0.0.1, ale nadal nie działa.

213

Odp: Instalacja AdGuard Home na OpenWrt

Słuchaj, pełnymi zdaniami pisz. Co nie działa. ustawiłeś 127.0.0.1 na wanie i tak masz. Zainstalowałeś adguarda. Skonfigurowałeś go?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

214

Odp: Instalacja AdGuard Home na OpenWrt

Skonfigurowałem, zablokowałem strony dla dorosłych, włączyłem safefiltr i taka stronka np. pornhub.com się ładuje, ale nie wczytują się obrazki. A nie powinna w ogóle się ładować.

215

Odp: Instalacja AdGuard Home na OpenWrt

To już kwestia jakie źródła dałeś do adgurada (albo czego nie działeś). Sam pakiet działa,  a teraz już u samego adguarda pytaj czemu po włączenie safefiltera nie został pornhub zablokowany.

Jeżeli tylko z tego powodu zainstalowałeś adguarda to bez sensu, w openwrt masz adblock z bardzo wieloma źródłami i możesz także ręcznie dodawać domeny do blokowania. No ale jak lubisz.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

216 (edytowany przez daarkknight87 2025-03-28 22:53:35)

Odp: Instalacja AdGuard Home na OpenWrt

A teraz jak zrobić by wymusić używania dnsów Adguard Home na wszsytkich urządzeniach ? Tak by inne dnsy nie działały. np. te nieszyfrowane dnsy z portem 53.

217

Odp: Instalacja AdGuard Home na OpenWrt

1. Jeżeli skonfigurowałeś jak powyżej - to urządzenia przez dhcp dostają adres routera jako adres dns. Na routerze ma dnsmasq, a dla niego wskazanym serwerem nadrzędnym jest coś na porcie 5353 czyli adguard
2. Możesz włączyć sobie przechwytywanie ruchu dns: https://eko.one.pl/?p=openwrt-dns#wymus … serweradns
3. Jeżeli ktoś ustawi sobie "bezpieczny dns" (zwłaszcza DoH - po 443) lub zrobi sobie jakieś tunelowane to nic z tym nie jesteś w stanie zrobić.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

218

Odp: Instalacja AdGuard Home na OpenWrt

Czyli muszę wpisać to, żeby na adguard przekierować ?

# uci set firewall.adblock_dns_53=redirect
    # uci set firewall.adblock_dns_53.src=lan
    # uci set firewall.adblock_dns_53.proto="tcp udp"
    # uci set firewall.adblock_dns_53.src_dport=53
    # uci set firewall.adblock_dns_53.dest_port=53
    # uci set firewall.adblock_dns_53.target=DNAT
    # uci commit firewall

219

Odp: Instalacja AdGuard Home na OpenWrt

Żeby przechwytywać ruch kierowany na port 53 do routera. Czyli zwykle dnsy.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

220 (edytowany przez daarkknight87 2025-03-28 23:06:16)

Odp: Instalacja AdGuard Home na OpenWrt

No tak chodzi mi o zwykłe dnsy. Trzeba jakoś przekierować port 53 na 5353 ? Czy wystarczą te komendy powyżej ?

221

Odp: Instalacja AdGuard Home na OpenWrt

Nie, nie musisz specjalnie bo w dnsmasq to wpisałeś.

Możesz oczywiście też wyłączyć dns masq (option port 0 w konfig) i skonfigurować adguarda żeby bezpośrednio sluchał na porcie 53 zamiast 5353.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

222

Odp: Instalacja AdGuard Home na OpenWrt

Jestem laikiem w tych tematach. Co radzisz mi zrobić ? Co mam wpisać w terminalu ?

223

Odp: Instalacja AdGuard Home na OpenWrt

Nic, zrobiles i działa. Jak będziesz miał inne potrzeby to wtedy będziesz myślał i zmianach.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

224 (edytowany przez daarkknight87 2025-03-28 23:45:14)

Odp: Instalacja AdGuard Home na OpenWrt

Chodzi mi o to by wszystkie serwery dnsy z portem 53 byly kierowane do Adguard Home. Tak by np. zmiana w ustawieniach na google dns np. na kompie nie powodowała odblokowania serwisów dla dorosłych. Chodzi mi o wymuszenie używania adguarda home i blokadę pozostałych nieszyfrowanych dnsów z portu 53. Bo dla próby zmieniłem dnsy na google na kompie i porno odpaliło.

225

Odp: Instalacja AdGuard Home na OpenWrt

Wiec zrób przechwytywanie portu 53. Tak aby każde odwołanie do dnsów trafiało na router. To co było napisane we wcześniejszych wątkach.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.