76

(255 odpowiedzi, napisanych Oprogramowanie / Software)

Przed restartem routera były na końcu te reguły, ale po restarcie routera (ich nie mam) mam coś takiego:

uci show firewall
firewall.@defaults[0]=defaults
firewall.@defaults[0].syn_flood='1'
firewall.@defaults[0].input='REJECT'
firewall.@defaults[0].output='ACCEPT'
firewall.@defaults[0].forward='REJECT'
firewall.@zone[0]=zone
firewall.@zone[0].name='lan'
firewall.@zone[0].network='lan'
firewall.@zone[0].input='ACCEPT'
firewall.@zone[0].output='ACCEPT'
firewall.@zone[0].forward='ACCEPT'
firewall.@zone[1]=zone
firewall.@zone[1].name='wan'
firewall.@zone[1].network='wan' 'wan6'
firewall.@zone[1].input='REJECT'
firewall.@zone[1].output='ACCEPT'
firewall.@zone[1].forward='REJECT'
firewall.@zone[1].masq='1'
firewall.@zone[1].mtu_fix='1'
firewall.@forwarding[0]=forwarding
firewall.@forwarding[0].src='lan'
firewall.@forwarding[0].dest='wan'
firewall.@rule[0]=rule
firewall.@rule[0].name='Allow-DHCP-Renew'
firewall.@rule[0].src='wan'
firewall.@rule[0].proto='udp'
firewall.@rule[0].dest_port='68'
firewall.@rule[0].target='ACCEPT'
firewall.@rule[0].family='ipv4'
firewall.@rule[1]=rule
firewall.@rule[1].name='Allow-Ping'
firewall.@rule[1].src='wan'
firewall.@rule[1].proto='icmp'
firewall.@rule[1].icmp_type='echo-request'
firewall.@rule[1].family='ipv4'
firewall.@rule[1].target='ACCEPT'
firewall.@rule[2]=rule
firewall.@rule[2].name='Allow-IGMP'
firewall.@rule[2].src='wan'
firewall.@rule[2].proto='igmp'
firewall.@rule[2].family='ipv4'
firewall.@rule[2].target='ACCEPT'
firewall.@rule[3]=rule
firewall.@rule[3].name='Allow-DHCPv6'
firewall.@rule[3].src='wan'
firewall.@rule[3].proto='udp'
firewall.@rule[3].dest_port='546'
firewall.@rule[3].family='ipv6'
firewall.@rule[3].target='ACCEPT'
firewall.@rule[4]=rule
firewall.@rule[4].name='Allow-MLD'
firewall.@rule[4].src='wan'
firewall.@rule[4].proto='icmp'
firewall.@rule[4].src_ip='fe80::/10'
firewall.@rule[4].icmp_type='130/0' '131/0' '132/0' '143/0'
firewall.@rule[4].family='ipv6'
firewall.@rule[4].target='ACCEPT'
firewall.@rule[5]=rule
firewall.@rule[5].name='Allow-ICMPv6-Input'
firewall.@rule[5].src='wan'
firewall.@rule[5].proto='icmp'
firewall.@rule[5].icmp_type='echo-request' 'echo-reply' 'destination-unreachable' 'packet-too-big' 'time-exceeded' 'bad-header' 'unknown-header-type' 'router-solicitation' 'neighbour-solicitation' 'router-advertisement' 'neighbour-advertisement'
firewall.@rule[5].limit='1000/sec'
firewall.@rule[5].family='ipv6'
firewall.@rule[5].target='ACCEPT'
firewall.@rule[6]=rule
firewall.@rule[6].name='Allow-ICMPv6-Forward'
firewall.@rule[6].src='wan'
firewall.@rule[6].dest='*'
firewall.@rule[6].proto='icmp'
firewall.@rule[6].icmp_type='echo-request' 'echo-reply' 'destination-unreachable' 'packet-too-big' 'time-exceeded' 'bad-header' 'unknown-header-type'
firewall.@rule[6].limit='1000/sec'
firewall.@rule[6].family='ipv6'
firewall.@rule[6].target='ACCEPT'
firewall.@rule[7]=rule
firewall.@rule[7].name='Allow-IPSec-ESP'
firewall.@rule[7].src='wan'
firewall.@rule[7].dest='lan'
firewall.@rule[7].proto='esp'
firewall.@rule[7].target='ACCEPT'
firewall.@rule[8]=rule
firewall.@rule[8].name='Allow-ISAKMP'
firewall.@rule[8].src='wan'
firewall.@rule[8].dest='lan'
firewall.@rule[8].dest_port='500'
firewall.@rule[8].proto='udp'
firewall.@rule[8].target='ACCEPT'
firewall.@ipset[0]=ipset
firewall.@ipset[0].name='dohipv4'
firewall.@ipset[0].match='dest_ip'
firewall.@ipset[0].loadfile='/root/DOHipv4.txt'
firewall.@ipset[0].family='ipv4'
firewall.@rule[9]=rule
firewall.@rule[9].name='Disable'
firewall.@rule[9].src='lan'
firewall.@rule[9].ipset='dohipv4'
firewall.@rule[9].target='REJECT'
firewall.@rule[9].proto='all'
firewall.@ipset[1]=ipset
firewall.@ipset[1].name='dohipv4'
firewall.@ipset[1].match='dest_ip'
firewall.@ipset[1].loadfile='/root/DOHipv4.txt'
firewall.@ipset[1].family='ipv4'
firewall.@rule[10]=rule
firewall.@rule[10].name='Disable'
firewall.@rule[10].src='lan'
firewall.@rule[10].dest='lan'
firewall.@rule[10].ipset='dohipv4'
firewall.@rule[10].target='REJECT'
firewall.@rule[10].proto='all'

Tak samo >ping 1.0.0.1 zwraca wyniki (a powinno byc to zablokowane)

Pinging 1.0.0.1 with 32 bytes of data:
Reply from 1.0.0.1: bytes=32 time=5ms TTL=57
Reply from 1.0.0.1: bytes=32 time=4ms TTL=57
Reply from 1.0.0.1: bytes=32 time=5ms TTL=57
Reply from 1.0.0.1: bytes=32 time=4ms TTL=57

Ping statistics for 1.0.0.1:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 4ms, Maximum = 5ms, Average = 4ms

77

(255 odpowiedzi, napisanych Oprogramowanie / Software)

Jeszcze raz wpisałem w routerze
    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

78

(255 odpowiedzi, napisanych Oprogramowanie / Software)

Jak usunąć tą jedną regułę ?

79

(255 odpowiedzi, napisanych Oprogramowanie / Software)

W ustawieniach karty sieciowej tcpipv4.

uci show firewall
firewall.@defaults[0]=defaults
firewall.@defaults[0].syn_flood='1'
firewall.@defaults[0].input='REJECT'
firewall.@defaults[0].output='ACCEPT'
firewall.@defaults[0].forward='REJECT'
firewall.@zone[0]=zone
firewall.@zone[0].name='lan'
firewall.@zone[0].network='lan'
firewall.@zone[0].input='ACCEPT'
firewall.@zone[0].output='ACCEPT'
firewall.@zone[0].forward='ACCEPT'
firewall.@zone[1]=zone
firewall.@zone[1].name='wan'
firewall.@zone[1].network='wan' 'wan6'
firewall.@zone[1].input='REJECT'
firewall.@zone[1].output='ACCEPT'
firewall.@zone[1].forward='REJECT'
firewall.@zone[1].masq='1'
firewall.@zone[1].mtu_fix='1'
firewall.@forwarding[0]=forwarding
firewall.@forwarding[0].src='lan'
firewall.@forwarding[0].dest='wan'
firewall.@rule[0]=rule
firewall.@rule[0].name='Allow-DHCP-Renew'
firewall.@rule[0].src='wan'
firewall.@rule[0].proto='udp'
firewall.@rule[0].dest_port='68'
firewall.@rule[0].target='ACCEPT'
firewall.@rule[0].family='ipv4'
firewall.@rule[1]=rule
firewall.@rule[1].name='Allow-Ping'
firewall.@rule[1].src='wan'
firewall.@rule[1].proto='icmp'
firewall.@rule[1].icmp_type='echo-request'
firewall.@rule[1].family='ipv4'
firewall.@rule[1].target='ACCEPT'
firewall.@rule[2]=rule
firewall.@rule[2].name='Allow-IGMP'
firewall.@rule[2].src='wan'
firewall.@rule[2].proto='igmp'
firewall.@rule[2].family='ipv4'
firewall.@rule[2].target='ACCEPT'
firewall.@rule[3]=rule
firewall.@rule[3].name='Allow-DHCPv6'
firewall.@rule[3].src='wan'
firewall.@rule[3].proto='udp'
firewall.@rule[3].dest_port='546'
firewall.@rule[3].family='ipv6'
firewall.@rule[3].target='ACCEPT'
firewall.@rule[4]=rule
firewall.@rule[4].name='Allow-MLD'
firewall.@rule[4].src='wan'
firewall.@rule[4].proto='icmp'
firewall.@rule[4].src_ip='fe80::/10'
firewall.@rule[4].icmp_type='130/0' '131/0' '132/0' '143/0'
firewall.@rule[4].family='ipv6'
firewall.@rule[4].target='ACCEPT'
firewall.@rule[5]=rule
firewall.@rule[5].name='Allow-ICMPv6-Input'
firewall.@rule[5].src='wan'
firewall.@rule[5].proto='icmp'
firewall.@rule[5].icmp_type='echo-request' 'echo-reply' 'destination-unreachable' 'packet-too-big' 'time-exceeded' 'bad-header' 'unknown-header-type' 'router-solicitation' 'neighbour-solicitation' 'router-advertisement' 'neighbour-advertisement'
firewall.@rule[5].limit='1000/sec'
firewall.@rule[5].family='ipv6'
firewall.@rule[5].target='ACCEPT'
firewall.@rule[6]=rule
firewall.@rule[6].name='Allow-ICMPv6-Forward'
firewall.@rule[6].src='wan'
firewall.@rule[6].dest='*'
firewall.@rule[6].proto='icmp'
firewall.@rule[6].icmp_type='echo-request' 'echo-reply' 'destination-unreachable' 'packet-too-big' 'time-exceeded' 'bad-header' 'unknown-header-type'
firewall.@rule[6].limit='1000/sec'
firewall.@rule[6].family='ipv6'
firewall.@rule[6].target='ACCEPT'
firewall.@rule[7]=rule
firewall.@rule[7].name='Allow-IPSec-ESP'
firewall.@rule[7].src='wan'
firewall.@rule[7].dest='lan'
firewall.@rule[7].proto='esp'
firewall.@rule[7].target='ACCEPT'
firewall.@rule[8]=rule
firewall.@rule[8].name='Allow-ISAKMP'
firewall.@rule[8].src='wan'
firewall.@rule[8].dest='lan'
firewall.@rule[8].dest_port='500'
firewall.@rule[8].proto='udp'
firewall.@rule[8].target='ACCEPT'
firewall.@ipset[0]=ipset
firewall.@ipset[0].name='dohipv4'
firewall.@ipset[0].match='dest_ip'
firewall.@ipset[0].loadfile='/root/DOHipv4.txt'
firewall.@ipset[0].family='ipv4'
firewall.@rule[9]=rule
firewall.@rule[9].name='Disable'
firewall.@rule[9].src='lan'
firewall.@rule[9].ipset='dohipv4'
firewall.@rule[9].target='REJECT'
firewall.@rule[9].proto='all'
firewall.@ipset[1]=ipset
firewall.@ipset[1].name='dohipv4'
firewall.@ipset[1].match='dest_ip'
firewall.@ipset[1].loadfile='/root/DOHipv4.txt'
firewall.@ipset[1].family='ipv4'
firewall.@rule[10]=rule
firewall.@rule[10].name='Disable'
firewall.@rule[10].src='lan'
firewall.@rule[10].dest='lan'
firewall.@rule[10].ipset='dohipv4'
firewall.@rule[10].target='REJECT'
firewall.@rule[10].proto='all'
root@OpenWrt:~# fw4 print | grep 53
                        103.28.53.16,
                        103.69.149.253,
                        104.21.10.53,
                        104.21.45.153,
                        104.21.48.253,
                        104.21.53.52,
                        104.21.80.53,
                        104.21.8.153,
                        104.21.85.253,
                        108.181.69.153,
                        109.123.253.27,
                        117.53.144.157,
                        120.53.53.53,
                        128.139.197.53,
                        129.153.112.204,
                        129.153.174.221,
                        129.153.224.48,
                        129.153.9.127,
                        129.154.217.53,
                        130.162.230.253,
                        139.162.153.123,
                        139.84.153.198,
                        140.83.53.18,
                        144.21.35.153,
                        144.22.53.207,
                        146.56.160.153,
                        152.53.0.31,
                        152.53.15.127,
                        153.127.67.108,
                        153.194.45.201,
                        153.31.113.36,
                        160.119.253.209,
                        162.159.140.153,
                        162.55.56.53,
                        167.253.158.187,
                        167.253.159.160,
                        17.253.14.115,
                        17.253.14.117,
                        17.253.52.119,
                        17.253.52.247,
                        172.67.153.158,
                        172.67.153.19,
                        172.67.153.48,
                        172.67.164.53,
                        172.67.167.53,
                        172.67.202.53,
                        176.165.111.253,
                        176.96.137.53,
                        178.162.228.53,
                        178.253.23.166,
                        178.253.43.231,
                        185.194.53.22,
                        185.199.108.153,
                        185.199.109.153,
                        185.199.110.153,
                        185.199.111.153,
                        185.223.163.153,
                        185.253.212.22,
                        188.165.53.130,
                        191.96.153.75,
                        192.53.175.62,
                        193.122.103.253,
                        193.122.96.153,
                        193.190.182.53,
                        193.238.153.17,
                        194.87.43.53,
                        203.153.116.132,
                        217.197.91.153,
                        23.137.253.24,
                        23.230.253.98,
                        2.58.53.236,
                        37.80.134.153,
                        38.242.153.19,
                        43.153.248.120,
                        45.138.53.244,
                        45.153.130.235,
                        45.154.109.53,
                        45.32.53.133,
                        45.77.25.253,
                        45.79.104.153,
                        47.79.20.153,
                        51.15.220.253,
                        5.161.118.253,
                        5.250.191.53,
                        5.53.124.108,
                        5.75.153.75,
                        61.153.200.30,
                        61.240.220.53,
                        65.21.253.73,
                        65.29.228.253,
                        66.118.244.253,
                        68.183.253.200,
                        70.253.80.157,
                        70.253.80.158,
                        74.48.0.53,
                        78.142.193.53,
                        85.214.72.153,
                        85.215.153.54,
                        85.215.53.142,
                        89.45.227.53,
                        92.53.116.105,
                        95.179.152.253,
                        95.215.19.53,
                        103.28.53.16,
                        103.69.149.253,
                        104.21.10.53,
                        104.21.45.153,
                        104.21.48.253,
                        104.21.53.52,
                        104.21.80.53,
                        104.21.8.153,
                        104.21.85.253,
                        108.181.69.153,
                        109.123.253.27,
                        117.53.144.157,
                        120.53.53.53,
                        128.139.197.53,
                        129.153.112.204,
                        129.153.174.221,
                        129.153.224.48,
                        129.153.9.127,
                        129.154.217.53,
                        130.162.230.253,
                        139.162.153.123,
                        139.84.153.198,
                        140.83.53.18,
                        144.21.35.153,
                        144.22.53.207,
                        146.56.160.153,
                        152.53.0.31,
                        152.53.15.127,
                        153.127.67.108,
                        153.194.45.201,
                        153.31.113.36,
                        160.119.253.209,
                        162.159.140.153,
                        162.55.56.53,
                        167.253.158.187,
                        167.253.159.160,
                        17.253.14.115,
                        17.253.14.117,
                        17.253.52.119,
                        17.253.52.247,
                        172.67.153.158,
                        172.67.153.19,
                        172.67.153.48,
                        172.67.164.53,
                        172.67.167.53,
                        172.67.202.53,
                        176.165.111.253,
                        176.96.137.53,
                        178.162.228.53,
                        178.253.23.166,
                        178.253.43.231,
                        185.194.53.22,
                        185.199.108.153,
                        185.199.109.153,
                        185.199.110.153,
                        185.199.111.153,
                        185.223.163.153,
                        185.253.212.22,
                        188.165.53.130,
                        191.96.153.75,
                        192.53.175.62,
                        193.122.103.253,
                        193.122.96.153,
                        193.190.182.53,
                        193.238.153.17,
                        194.87.43.53,
                        203.153.116.132,
                        217.197.91.153,
                        23.137.253.24,
                        23.230.253.98,
                        2.58.53.236,
                        37.80.134.153,
                        38.242.153.19,
                        43.153.248.120,
                        45.138.53.244,
                        45.153.130.235,
                        45.154.109.53,
                        45.32.53.133,
                        45.77.25.253,
                        45.79.104.153,
                        47.79.20.153,
                        51.15.220.253,
                        5.161.118.253,
                        5.250.191.53,
                        5.53.124.108,
                        5.75.153.75,
                        61.153.200.30,
                        61.240.220.53,
                        65.21.253.73,
                        65.29.228.253,
                        66.118.244.253,
                        68.183.253.200,
                        70.253.80.157,
                        70.253.80.158,
                        74.48.0.53,
                        78.142.193.53,
                        85.214.72.153,
                        85.215.153.54,
                        85.215.53.142,
                        89.45.227.53,
                        92.53.116.105,
                        95.179.152.253,
                        95.215.19.53,


Wcześniej używałem twoich komend do blokowania DOH ip V4, ale sprawwdzałem ping IP 1.0.0.1 i zwraca wyniki, czyli nie jest zablokowany.

cd /root
wget https://raw.githubusercontent.com/jpgpi … OHipv4.txt
uci add firewall  ipset
uci set firewall.@ipset[-1].name=dohipv4
uci set firewall.@ipset[-1].match=dest_ip
uci set firewall.@ipset[-1].loadfile=/root/DOHipv4.txt
uci set firewall.@ipset[-1].family='ipv4'

uci add firewall rule
uci set firewall.@rule[-1].name='Disable'
uci set firewall.@rule[-1].src='lan'
uci set firewall.@rule[-1].dest='lan'
uci set firewall.@rule[-1].ipset='dohipv4'
uci set firewall.@rule[-1].target='REJECT'
uci set firewall.@rule[-1].proto=all
uci commit firewall
/etc/init.d/firewall restart

80

(255 odpowiedzi, napisanych Oprogramowanie / Software)

Tak, bez # zrobiłem i restartowałem cały router.

81

(255 odpowiedzi, napisanych Oprogramowanie / Software)

Wpisałem te komendy:

# 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

Jednak zmieniłem na kompie dnsy na google (8.8.8.8 i 8.8.4.4) i niestety dnsy google działają...

82

(255 odpowiedzi, napisanych Oprogramowanie / Software)

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.

83

(255 odpowiedzi, napisanych Oprogramowanie / Software)

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

84

(255 odpowiedzi, napisanych Oprogramowanie / Software)

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

85

(255 odpowiedzi, napisanych Oprogramowanie / Software)

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

86

(255 odpowiedzi, napisanych Oprogramowanie / Software)

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.

87

(255 odpowiedzi, napisanych Oprogramowanie / Software)

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ć.

88

(255 odpowiedzi, napisanych Oprogramowanie / Software)

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

89

(255 odpowiedzi, napisanych Oprogramowanie / Software)

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

90

(255 odpowiedzi, napisanych Oprogramowanie / Software)

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.

91

(255 odpowiedzi, napisanych Oprogramowanie / Software)

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

92

(255 odpowiedzi, napisanych Oprogramowanie / Software)

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

93

(255 odpowiedzi, napisanych Oprogramowanie / Software)

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

"

94

(255 odpowiedzi, napisanych Oprogramowanie / Software)

Przyszedł. Na opakowaniu jest napisane RD03, czyli rozumiem, że mogę wgrać na nim soft z tego pierwszego linka w poprzednim poście ?

95

(255 odpowiedzi, napisanych Oprogramowanie / Software)

Który model nie jest wspierany ? I czy nie da się nic z tym zrobić ?

96

(255 odpowiedzi, napisanych Oprogramowanie / Software)

Wielkie dzięki za odpowiedź. Spróbuję użyć tego sposobu do mojego nowego routera Xiaomi AX3000T, którego właśnie zamówiłem z aliexpress. Natknąłem się na narzędzie XMiR-Patcher. Którą wersję softu mu wgrać ?

Tą - https://dl.eko.one.pl/firmware/?version … er-ax3000t

Czy tą - https://dl.eko.one.pl/firmware/?version … t-ubootmod

Bo właściwie nie wiem czy one się różnią.

97

(255 odpowiedzi, napisanych Oprogramowanie / Software)

Nie bardzo wiem jak za to się zabrać. Muszę instalować jakieś dodatkowe pakiety na świeżym openwrt ? Jestem początkującym użytkownikiem. Co mam najpierw zrobić ? Chcę użyć tego ipset.

98

(255 odpowiedzi, napisanych Oprogramowanie / Software)

A co jest najlepsze ? Pewnie ipset tak ?

99

(255 odpowiedzi, napisanych Oprogramowanie / Software)

Cezary napisał/a:
#!/bin/sh
while read LINE; do
  echo tu robisz regule którą chcesz, w $LINE jest adres ip 
done < /tmp/plik-z-danymi.txt  

Choć to małe efektowe mieć tyle reguł, ipset jest do tego lepszy pod względem wydajności.

A iptables ?

100

(255 odpowiedzi, napisanych Oprogramowanie / Software)

Cezary napisał/a:

https://openwrt.org/docs/guide-user/fir … the_ip_set

https://openwrt.org/docs/guide-user/fir … ses_by_dns

Generalnie do tego służy ipset, ale ale nawet jak miał byś robić reguły - możesz to przecież skryptem zrobić a nie klikać w luci.

A jak to zrobić skryptem ? Sorry, ale jestem początkujący z openwrt...