Przejdź do treści forum
eko.one.pl
OpenWrt, Linux, USB, notebooki i inne ciekawe rzeczy
Nie jesteś zalogowany. Proszę się zalogować lub zarejestrować.
Aktywne tematy Tematy bez odpowiedzi
Opcje wyszukiwania (Strona 1 z 2)
ZbiG napisał/a:misi3k napisał/a:Na nim chciałbym postawić transmission z podłączonym dyskiem i jakiś bloker reklam i vpn
Aczkolwiek nie wiem czy dobrze rozumiem że obsłuży 500/500Mbps d/u
Tak na 99% obstawiam, że nie poradzi sobie.
Tak sobie przemyślałem i chyba wezmę 600 na 9 miechow. A w tym czasie się zobaczy a jak się nie będzie dało to 1 gb a z routerem pokombinuje może na tego asus ax4200 bo tam jest 4 redzenie. ...
Cezary napisał/a:To jest mediatek 7621. 1Gbps jest na górnym skraju jego możliwości (po kablu). Nie wiem czy chcesz z takim sprzętem pchać się w gigabit.
No właśnie sam nie wiem i nad tym się głowie.
Witam Państwa.
Pojawiłem się na tym forum gdyż mam zagwozdke.
Otóż kończyć mi się będzie umowa w netii na sam internet. I teraz zastanawiam się czy ja przedłużyć gdyż chciałbym korzystać z własnego routera asus ax53u z owrt. A po wejściu na forum i przeczytaniu kilku wątków widzę że nie można podmienić netiowego routera na swój a co najwyżej ustawić go w bridge ....
W kwestii umowy mam dwie opcje albo 600 albo 1gb . I teraz czy asus poradzi sobie z 1gb czy może jest za słaby?
Na nim chciałbym postawić transmission z podłączonym dyskiem i jakiś bloker reklam i vpn
Aczkolwiek nie wiem czy dobrze rozumiem że obsłuży 500/500Mbps d/u
Cezary napisał/a:uci add_list firewall.@zone[1].network=qmi
uci commit
/etc/init.d/firewall restart
I qmi_4 się nie dodaje - ono się robi samo. I także w wifi nie zmienia sie z lan na qmi_4 ani się tego specjalnie nie dodaje. Ma zostać lan tak jak jest domyślnie.
Tak tak jeśli chodzi o qmi4 to jest automatycznie. To wiem z instrukcji .
Po wykonaniu komend pojawił się dostep do internetu ale po restarcie w sensie musiałem go wyłączyć i przenieść w właściwe miejsce routera znowu nie ma
Edit.
Kolejny restart już przywrócił internet.
Dziękuję
Focus napisał/a:Wcześniej pisałeś
misi3k napisał/a:Kurde muszę napisać jeszcze raz. Po wczorajszym przestawieniu na ipv4 nic nie grzebałem pomimo że nie świeciła dioda wifi .
Dzisiaj przed 10 minutami wywaliło internet zaczęła migać na zielono dioda 3g/4g więc postanowiłem zrobić mu reboot . Po wstaniu internetu nie ma ....
a teraz okazuje się, że grzebałeś i sam nie wiesz gdzie.
Przywróć ten router do stanu początkowego, zrób aby router działał i był internet i zrób na przyszłość kopię konfiguracji abyś łatwo mógł naprawić to co zepsułeś w konfigu.
Ogólnie chodziło mi o to że po tym jak Pan Cezary pomógł mi przywrócić internet to już nic nie robiłem. Dopiero po tym jak napisałem że przed 10 min wywaliło internet próbowałem go samodzielniecreanimowac . Ale mniejsza już z tym . Zrobię kopię po przywróceniu internetu
Na ten moment jestem po resecie . Ustawieniu haseł.
Wywaliłem wan i wan6 i utworzyłem qmi oraz qmi4
root@OpenWrt:~# uci show network
network.loopback=interface
network.loopback.device='lo'
network.loopback.proto='static'
network.loopback.ipaddr='127.0.0.1'
network.loopback.netmask='255.0.0.0'
network.globals=globals
network.globals.ula_prefix='fd43:1539:271c::/48'
network.@device[0]=device
network.@device[0].name='br-lan'
network.@device[0].type='bridge'
network.@device[0].ports='lan2' 'lan3' 'lan4'
network.lan=interface
network.lan.device='br-lan'
network.lan.proto='static'
network.lan.ipaddr='192.168.1.1'
network.lan.netmask='255.255.255.0'
network.lan.ip6assign='60'
network.qmi=interface
network.qmi.proto='qmi'
network.qmi.device='/dev/cdc-wdm0'
network.qmi.apn='internet'
network.qmi.auth='none'
network.qmi.pdptype='ipv4'
root@OpenWrt:~# ifstatus qmi
{
"up": true,
"pending": false,
"available": true,
"autostart": true,
"dynamic": false,
"uptime": 336,
"l3_device": "wwan0",
"proto": "qmi",
"updated": [
"data"
],
"metric": 0,
"dns_metric": 0,
"delegation": true,
"ipv4-address": [
],
"ipv6-address": [
],
"ipv6-prefix": [
],
"ipv6-prefix-assignment": [
],
"route": [
],
"dns-server": [
],
"dns-search": [
],
"neighbors": [
],
"inactive": {
"ipv4-address": [
],
"ipv6-address": [
],
"route": [
],
"dns-server": [
],
"dns-search": [
],
"neighbors": [
]
},
"data": {
"cid_4": "19",
"pdh_4": "1616743728"
}
}
root@OpenWrt:~# 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].input='ACCEPT'
firewall.@zone[0].output='ACCEPT'
firewall.@zone[0].forward='ACCEPT'
firewall.@zone[0].network='lan'
firewall.@zone[1]=zone
firewall.@zone[1].name='wan'
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'
root@OpenWrt:~# uci show dhcp
dhcp.@dnsmasq[0]=dnsmasq
dhcp.@dnsmasq[0].domainneeded='1'
dhcp.@dnsmasq[0].boguspriv='1'
dhcp.@dnsmasq[0].filterwin2k='0'
dhcp.@dnsmasq[0].localise_queries='1'
dhcp.@dnsmasq[0].rebind_protection='1'
dhcp.@dnsmasq[0].rebind_localhost='1'
dhcp.@dnsmasq[0].local='/lan/'
dhcp.@dnsmasq[0].domain='lan'
dhcp.@dnsmasq[0].expandhosts='1'
dhcp.@dnsmasq[0].nonegcache='0'
dhcp.@dnsmasq[0].cachesize='1000'
dhcp.@dnsmasq[0].authoritative='1'
dhcp.@dnsmasq[0].readethers='1'
dhcp.@dnsmasq[0].leasefile='/tmp/dhcp.leases'
dhcp.@dnsmasq[0].resolvfile='/tmp/resolv.conf.d/resolv.conf.auto'
dhcp.@dnsmasq[0].nonwildcard='1'
dhcp.@dnsmasq[0].localservice='1'
dhcp.@dnsmasq[0].ednspacket_max='1232'
dhcp.@dnsmasq[0].filter_aaaa='0'
dhcp.@dnsmasq[0].filter_a='0'
dhcp.@dnsmasq[0].confdir='/tmp/dnsmasq.d'
dhcp.lan=dhcp
dhcp.lan.interface='lan'
dhcp.lan.start='100'
dhcp.lan.limit='150'
dhcp.lan.leasetime='12h'
dhcp.lan.dhcpv4='server'
dhcp.lan.dhcpv6='server'
dhcp.lan.ra='server'
dhcp.lan.ra_slaac='1'
dhcp.lan.ra_flags='managed-config' 'other-config'
dhcp.odhcpd=odhcpd
dhcp.odhcpd.maindhcp='0'
dhcp.odhcpd.leasefile='/tmp/hosts/odhcpd'
dhcp.odhcpd.leasetrigger='/usr/sbin/odhcpd-update'
dhcp.odhcpd.loglevel='4'
root@OpenWrt:~#
Natomiast chyba znowu utykam na firewallu bo nie umiem tego dodać i połączyć qmi z wifi
Focus napisał/a:Wyszło nieporozumienie.
Ja miałem na myśli WAN jako port z tyłu routera, a Ty miałeś na myśli wan jako nazwa interfejsu.
Interfejs może nazywać się jak chcesz, może być qmi, może być wan, ważne aby później te same nazwy stosować i pamiętać, że qmi, to nie to samo co QMI.
Ok ok . Ja rozumiem co piszesz . I tak mialem na mysli WAN jako interfejs . A wcześniej gdzieś przeczytałem że linux rozróżnia wielkość liter i stąd to co wyczytałeś w moich logach dla Ciebie było dziwne .
Na dodatek nie wiem jakim cudem Wywaliłem jescze port 192.168.1.1 jest kicha bo korzystałem z ssh przez androidowa apke i jutro w sensie dzisiaj wrócę do tego po pracy bo trzeba go podpiąć do pc .
Focus napisał/a:Przy komórkowej transmisji danych LTE i tak nie korzystasz z WAN.
W oryginalnym sofcie z tyłu routera wszystkie 4 porty są LAN, a w OpenWrt 1 jest WAN, a 3 LAN.
Więc z tego WAN przy LTE nie korzystasz.
Czyli lepiej będzie jak zrobię nowe qmi ?a to usunę?
Focus napisał/a:Bo teraz interfejs nazwałeś wan, a nie qmi, a wcześniej miałeś QMI, a nie qmi.
Ok . Rozumiem . Bo chyba to jest teraz tak jakbym wyedytowal wan i ustawił na qmi tak jak to było w instrukcji
root@OpenWrt:~# ifstatus wan
{
"up": true,
"pending": false,
"available": true,
"autostart": true,
"dynamic": false,
"uptime": 1801,
"l3_device": "wwan0",
"proto": "qmi",
"updated": [
"data"
],
"metric": 0,
"dns_metric": 0,
"delegation": true,
"ipv4-address": [
],
"ipv6-address": [
],
"ipv6-prefix": [
],
"ipv6-prefix-assignment": [
],
"route": [
],
"dns-server": [
],
"dns-search": [
],
"neighbors": [
],
"inactive": {
"ipv4-address": [
],
"ipv6-address": [
],
"route": [
],
"dns-server": [
],
"dns-search": [
],
"neighbors": [
]
},
"data": {
"cid_4": "19",
"pdh_4": "332812704"
}
}
root@OpenWrt:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 100.82.127.85 0.0.0.0 UG 0 0 0 wwan0
100.82.127.84 0.0.0.0 255.255.255.252 U 0 0 0 wwan0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 br-lan
root@OpenWrt:~#
Pinguje również ale chyba nie mam wan dodanego do firewalla?
uci add_list firewall.@zone[1].network=wan ?
Focus napisał/a:Nie masz interfejsu qmi, tylko masz QMI, a w firewall masz dwa razy qmi.
Edit.
Według pingów masz internet ale to co pokazałeś wcześniej to jakbyś miał namieszane w konfigu.
Wywaliłem wszystko i wklepałem komendy bez pinu
# opkg install uqmi kmod-usb-net-qmi-wwan
# uci del network.wan
# uci set network.wan=interface
# uci set network.wan.proto=qmi
# uci set network.wan.device=/dev/cdc-wdm0
# uci set network.wan.pincode=1234
# uci set network.wan.apn=internet
# uci commit network
# reboot
Ale znowu nie ma qmi #ifstatus qmi
root@OpenWrt:~# uci show network
network.loopback=interface
network.loopback.device='lo'
network.loopback.proto='static'
network.loopback.ipaddr='127.0.0.1'
network.loopback.netmask='255.0.0.0'
network.globals=globals
network.globals.ula_prefix='fd3a:a82a:66f4::/48'
network.@device[0]=device
network.@device[0].name='br-lan'
network.@device[0].type='bridge'
network.@device[0].ports='lan2' 'lan3' 'lan4'
network.lan=interface
network.lan.device='br-lan'
network.lan.proto='static'
network.lan.ipaddr='192.168.1.1'
network.lan.netmask='255.255.255.0'
network.lan.ip6assign='60'
network.wan=interface
network.wan.proto='qmi'
network.wan.device='/dev/cdc-wdm0'
network.wan.apn='internet'
network.wan.auth='none'
network.wan.pdptype='ipv4'
root@OpenWrt:~# ifstatus qmi
Interface qmi not found
root@OpenWrt:~# 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].input='ACCEPT'
firewall.@zone[0].output='ACCEPT'
firewall.@zone[0].forward='ACCEPT'
firewall.@zone[0].network='lan' 'wan'
firewall.@zone[1]=zone
firewall.@zone[1].name='wan'
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.@zone[1].network='qmi' 'wan'
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'
root@OpenWrt:~# uci show dhcp
dhcp.@dnsmasq[0]=dnsmasq
dhcp.@dnsmasq[0].domainneeded='1'
dhcp.@dnsmasq[0].boguspriv='1'
dhcp.@dnsmasq[0].filterwin2k='0'
dhcp.@dnsmasq[0].localise_queries='1'
dhcp.@dnsmasq[0].rebind_protection='1'
dhcp.@dnsmasq[0].rebind_localhost='1'
dhcp.@dnsmasq[0].local='/lan/'
dhcp.@dnsmasq[0].domain='lan'
dhcp.@dnsmasq[0].expandhosts='1'
dhcp.@dnsmasq[0].nonegcache='0'
dhcp.@dnsmasq[0].cachesize='1000'
dhcp.@dnsmasq[0].authoritative='1'
dhcp.@dnsmasq[0].readethers='1'
dhcp.@dnsmasq[0].leasefile='/tmp/dhcp.leases'
dhcp.@dnsmasq[0].resolvfile='/tmp/resolv.conf.d/resolv.conf.auto'
dhcp.@dnsmasq[0].nonwildcard='1'
dhcp.@dnsmasq[0].localservice='1'
dhcp.@dnsmasq[0].ednspacket_max='1232'
dhcp.@dnsmasq[0].filter_aaaa='0'
dhcp.@dnsmasq[0].filter_a='0'
dhcp.@dnsmasq[0].confdir='/tmp/dnsmasq.d'
dhcp.lan=dhcp
dhcp.lan.interface='lan'
dhcp.lan.start='100'
dhcp.lan.limit='150'
dhcp.lan.leasetime='12h'
dhcp.lan.dhcpv4='server'
dhcp.lan.dhcpv6='server'
dhcp.lan.ra='server'
dhcp.lan.ra_slaac='1'
dhcp.lan.ra_flags='managed-config' 'other-config'
dhcp.odhcpd=odhcpd
dhcp.odhcpd.maindhcp='0'
dhcp.odhcpd.leasefile='/tmp/hosts/odhcpd'
dhcp.odhcpd.leasetrigger='/usr/sbin/odhcpd-update'
dhcp.odhcpd.loglevel='4'
root@OpenWrt:~#
Focus napisał/a:Zrób jeszcze sobie pingi w putty dla sprawdzenia
ping google.com
ping 8.8.8.8
A jak już zrobisz, że wszystko działa, to zrób sobie na przyszłość kopię zapasową samych konfigów network, wireless, firewall.
W razie namieszania i problemów z brakiem internetu przywracasz z kopii zapasowej i wszystko działa jak wcześniej.
Właśnie to zrobiłem I pinguje
Ale chyba znowu coś z tym firewallem . Usunąłem wszystko i zostawiłem lan i qmi I qmi_4 ale chyba z tym firewallem znowu .
root@OpenWrt:~# uci show network
network.loopback=interface
network.loopback.device='lo'
network.loopback.proto='static'
network.loopback.ipaddr='127.0.0.1'
network.loopback.netmask='255.0.0.0'
network.globals=globals
network.globals.ula_prefix='fd3a:a82a:66f4::/48'
network.@device[0]=device
network.@device[0].name='br-lan'
network.@device[0].type='bridge'
network.@device[0].ports='lan2' 'lan3' 'lan4'
network.lan=interface
network.lan.device='br-lan'
network.lan.proto='static'
network.lan.ipaddr='192.168.1.1'
network.lan.netmask='255.255.255.0'
network.lan.ip6assign='60'
network.QMI=interface
network.QMI.proto='qmi'
network.QMI.device='/dev/cdc-wdm0'
network.QMI.apn='internet'
network.QMI.auth='none'
network.QMI.pdptype='ipv4'
root@OpenWrt:~# ifstatus qmi
Interface qmi not found
root@OpenWrt:~# 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].input='ACCEPT'
firewall.@zone[0].output='ACCEPT'
firewall.@zone[0].forward='ACCEPT'
firewall.@zone[0].network='lan' 'QMI'
firewall.@zone[1]=zone
firewall.@zone[1].name='wan'
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.@zone[1].network='qmi' 'qmi'
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'
root@OpenWrt:~# uci show dhcp
dhcp.@dnsmasq[0]=dnsmasq
dhcp.@dnsmasq[0].domainneeded='1'
dhcp.@dnsmasq[0].boguspriv='1'
dhcp.@dnsmasq[0].filterwin2k='0'
dhcp.@dnsmasq[0].localise_queries='1'
dhcp.@dnsmasq[0].rebind_protection='1'
dhcp.@dnsmasq[0].rebind_localhost='1'
dhcp.@dnsmasq[0].local='/lan/'
dhcp.@dnsmasq[0].domain='lan'
dhcp.@dnsmasq[0].expandhosts='1'
dhcp.@dnsmasq[0].nonegcache='0'
dhcp.@dnsmasq[0].cachesize='1000'
dhcp.@dnsmasq[0].authoritative='1'
dhcp.@dnsmasq[0].readethers='1'
dhcp.@dnsmasq[0].leasefile='/tmp/dhcp.leases'
dhcp.@dnsmasq[0].resolvfile='/tmp/resolv.conf.d/resolv.conf.auto'
dhcp.@dnsmasq[0].nonwildcard='1'
dhcp.@dnsmasq[0].localservice='1'
dhcp.@dnsmasq[0].ednspacket_max='1232'
dhcp.@dnsmasq[0].filter_aaaa='0'
dhcp.@dnsmasq[0].filter_a='0'
dhcp.@dnsmasq[0].confdir='/tmp/dnsmasq.d'
dhcp.lan=dhcp
dhcp.lan.interface='lan'
dhcp.lan.start='100'
dhcp.lan.limit='150'
dhcp.lan.leasetime='12h'
dhcp.lan.dhcpv4='server'
dhcp.lan.dhcpv6='server'
dhcp.lan.ra='server'
dhcp.lan.ra_slaac='1'
dhcp.lan.ra_flags='managed-config' 'other-config'
dhcp.odhcpd=odhcpd
dhcp.odhcpd.maindhcp='0'
dhcp.odhcpd.leasefile='/tmp/hosts/odhcpd'
dhcp.odhcpd.leasetrigger='/usr/sbin/odhcpd-update'
dhcp.odhcpd.loglevel='4'
root@OpenWrt:~#
root@OpenWrt:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 100.73.79.146 0.0.0.0 UG 0 0 0 wwan0
100.73.79.144 0.0.0.0 255.255.255.252 U 0 0 0 wwan0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 br-lan
root@OpenWrt:~# ping google.com
PING google.com (172.217.16.46): 56 data bytes
64 bytes from 172.217.16.46: seq=0 ttl=114 time=21.770 ms
64 bytes from 172.217.16.46: seq=1 ttl=114 time=22.430 ms
64 bytes from 172.217.16.46: seq=2 ttl=114 time=21.146 ms
64 bytes from 172.217.16.46: seq=3 ttl=114 time=18.819 ms
64 bytes from 172.217.16.46: seq=4 ttl=114 time=20.580 ms
64 bytes from 172.217.16.46: seq=5 ttl=114 time=36.154 ms
64 bytes from 172.217.16.46: seq=6 ttl=114 time=18.795 ms
64 bytes from 172.217.16.46: seq=7 ttl=114 time=31.462 ms
64 bytes from 172.217.16.46: seq=8 ttl=114 time=22.078 ms
64 bytes from 172.217.16.46: seq=9 ttl=114 time=32.773 ms
64 bytes from 172.217.16.46: seq=10 ttl=114 time=22.454 ms
64 bytes from 172.217.16.46: seq=11 ttl=114 time=29.099 ms
64 bytes from 172.217.16.46: seq=12 ttl=114 time=18.780 ms
64 bytes from 172.217.16.46: seq=13 ttl=114 time=20.436 ms
64 bytes from 172.217.16.46: seq=14 ttl=114 time=20.040 ms
64 bytes from 172.217.16.46: seq=15 ttl=114 time=19.602 ms
64 bytes from 172.217.16.46: seq=16 ttl=114 time=19.283 ms
64 bytes from 172.217.16.46: seq=17 ttl=114 time=30.965 ms
64 bytes from 172.217.16.46: seq=18 ttl=114 time=32.556 ms
64 bytes from 172.217.16.46: seq=19 ttl=114 time=33.205 ms
64 bytes from 172.217.16.46: seq=20 ttl=114 time=19.830 ms
64 bytes from 172.217.16.46: seq=21 ttl=114 time=25.575 ms
64 bytes from 172.217.16.46: seq=22 ttl=114 time=19.134 ms
64 bytes from 172.217.16.46: seq=23 ttl=114 time=18.683 ms
64 bytes from 172.217.16.46: seq=24 ttl=114 time=19.282 ms
64 bytes from 172.217.16.46: seq=25 ttl=114 time=30.982 ms
64 bytes from 172.217.16.46: seq=26 ttl=114 time=27.537 ms
64 bytes from 172.217.16.46: seq=27 ttl=114 time=21.240 ms
64 bytes from 172.217.16.46: seq=28 ttl=114 time=25.796 ms
64 bytes from 172.217.16.46: seq=29 ttl=114 time=17.499 ms
64 bytes from 172.217.16.46: seq=30 ttl=114 time=28.151 ms
64 bytes from 172.217.16.46: seq=31 ttl=114 time=27.774 ms
64 bytes from 172.217.16.46: seq=32 ttl=114 time=27.320 ms
64 bytes from 172.217.16.46: seq=33 ttl=114 time=19.972 ms
64 bytes from 172.217.16.46: seq=34 ttl=114 time=19.634 ms
64 bytes from 172.217.16.46: seq=35 ttl=114 time=18.227 ms
64 bytes from 172.217.16.46: seq=36 ttl=114 time=26.856 ms
64 bytes from 172.217.16.46: seq=37 ttl=114 time=21.495 ms
64 bytes from 172.217.16.46: seq=38 ttl=114 time=23.179 ms
64 bytes from 172.217.16.46: seq=39 ttl=114 time=21.588 ms
root@OpenWrt:~# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: seq=0 ttl=114 time=48.756 ms
64 bytes from 8.8.8.8: seq=1 ttl=114 time=24.338 ms
64 bytes from 8.8.8.8: seq=2 ttl=114 time=22.033 ms
64 bytes from 8.8.8.8: seq=3 ttl=114 time=37.676 ms
64 bytes from 8.8.8.8: seq=4 ttl=114 time=22.387 ms
64 bytes from 8.8.8.8: seq=5 ttl=114 time=20.181 ms
64 bytes from 8.8.8.8: seq=6 ttl=114 time=19.656 ms
64 bytes from 8.8.8.8: seq=7 ttl=114 time=31.374 ms
64 bytes from 8.8.8.8: seq=8 ttl=114 time=21.954 ms
64 bytes from 8.8.8.8: seq=9 ttl=114 time=20.715 ms
64 bytes from 8.8.8.8: seq=10 ttl=114 time=22.382 ms
64 bytes from 8.8.8.8: seq=11 ttl=114 time=42.040 ms
64 bytes from 8.8.8.8: seq=12 ttl=114 time=21.619 ms
64 bytes from 8.8.8.8: seq=13 ttl=114 time=18.332 ms
64 bytes from 8.8.8.8: seq=14 ttl=114 time=19.012 ms
64 bytes from 8.8.8.8: seq=15 ttl=114 time=22.638 ms
64 bytes from 8.8.8.8: seq=16 ttl=114 time=21.382 ms
64 bytes from 8.8.8.8: seq=17 ttl=114 time=20.060 ms
64 bytes from 8.8.8.8: seq=18 ttl=114 time=27.852 ms
64 bytes from 8.8.8.8: seq=19 ttl=114 time=19.456 ms
64 bytes from 8.8.8.8: seq=20 ttl=114 time=18.070 ms
64 bytes from 8.8.8.8: seq=21 ttl=114 time=19.767 ms
64 bytes from 8.8.8.8: seq=22 ttl=114 time=20.384 ms
64 bytes from 8.8.8.8: seq=23 ttl=114 time=22.214 ms
64 bytes from 8.8.8.8: seq=24 ttl=114 time=22.833 ms
64 bytes from 8.8.8.8: seq=25 ttl=114 time=19.498 ms
64 bytes from 8.8.8.8: seq=26 ttl=114 time=37.202 ms
64 bytes from 8.8.8.8: seq=27 ttl=114 time=26.874 ms
64 bytes from 8.8.8.8: seq=28 ttl=114 time=18.442 ms
64 bytes from 8.8.8.8: seq=29 ttl=114 time=22.011 ms
64 bytes from 8.8.8.8: seq=30 ttl=114 time=20.681 ms
64 bytes from 8.8.8.8: seq=31 ttl=114 time=27.332 ms
64 bytes from 8.8.8.8: seq=32 ttl=114 time=21.014 ms
64 bytes from 8.8.8.8: seq=33 ttl=114 time=20.637 ms
64 bytes from 8.8.8.8: seq=34 ttl=114 time=19.243 ms
64 bytes from 8.8.8.8: seq=35 ttl=114 time=18.849 ms
64 bytes from 8.8.8.8: seq=36 ttl=114 time=19.492 ms
64 bytes from 8.8.8.8: seq=37 ttl=114 time=21.119 ms
64 bytes from 8.8.8.8: seq=38 ttl=114 time=19.751 ms
64 bytes from 8.8.8.8: seq=39 ttl=114 time=18.392 ms
64 bytes from 8.8.8.8: seq=40 ttl=114 time=18.163 ms
64 bytes from 8.8.8.8: seq=41 ttl=114 time=21.621 ms
64 bytes from 8.8.8.8: seq=42 ttl=114 time=19.216 ms
64 bytes from 8.8.8.8: seq=43 ttl=114 time=18.935 ms
64 bytes from 8.8.8.8: seq=44 ttl=114 time=23.463 ms
64 bytes from 8.8.8.8: seq=45 ttl=114 time=19.128 ms
64 bytes from 8.8.8.8: seq=46 ttl=114 time=19.636 ms
64 bytes from 8.8.8.8: seq=47 ttl=114 time=18.305 ms
64 bytes from 8.8.8.8: seq=48 ttl=114 time=29.852 ms
64 bytes from 8.8.8.8: seq=49 ttl=114 time=20.543 ms
64 bytes from 8.8.8.8: seq=50 ttl=114 time=19.214 ms
64 bytes from 8.8.8.8: seq=51 ttl=114 time=18.860 ms
64 bytes from 8.8.8.8: seq=52 ttl=114 time=23.487 ms
64 bytes from 8.8.8.8: seq=53 ttl=114 time=29.143 ms
64 bytes from 8.8.8.8: seq=54 ttl=114 time=18.806 ms
64 bytes from 8.8.8.8: seq=55 ttl=114 time=19.339 ms
64 bytes from 8.8.8.8: seq=56 ttl=114 time=19.000 ms
64 bytes from 8.8.8.8: seq=57 ttl=114 time=17.649 ms
Cezary napisał/a:Diody są sterowane sprzętowo przez modem.
Operatora widzi, jest zarejestrowany, jest lte. Przełóż kartę do telefonu i sprawdź czy się połączysz.
W telefonie karta działa. Nawet sprawdziłem na speedtest.net
Po włożeniu spowrotem do routera internetu brak. Pomimo połączenia z wifi
Diody na niebiesko . Zasieg na 4 kreski i wifi miga dość szybko .
Komendy ponowiłem
OpenWrt 23.05-SNAPSHOT, r23695-80ef582dee
-----------------------------------------------------
| Machine: ZTE MF286D |
| Uptime: 0d, 00:10:22 |
| Load: 0.08 0.12 0.10 |
| Flash: total: 12.1MB, free: 6.6MB, used: 43% |
| Memory: total: 242.4MB, free: 155.8MB, used: 35% |
| Leases: 3 |
| lan: static, 192.168.1.1 |
| wan6: dhcpv6, ? |
| qmi: qmi, ? |
| wan: qmi, ? |
| radio0: lan
qmi_4, mode: ap, ssid: OpenWrt-2.4Ghz, channel: 1, conn: 1 |
| radio1: lan
qmi_4, mode: ap, ssid: OpenWrt-5Ghz, channel: 36, conn: 2 |
-----------------------------------------------------
root@OpenWrt:~# ifdown qmi
root@OpenWrt:~# killall uqmi
root@OpenWrt:~# uqmi -d /dev/cdc-wdm0 --get-serving-system
{
"registration": "registered",
"plmn_mcc": 260,
"plmn_mnc": 6,
"plmn_description": "Virgin mobile",
"roaming": false
}
root@OpenWrt:~# uqmi -d /dev/cdc-wdm0 --get-signal-info
{
"type": "lte",
"rssi": -63,
"rsrq": -16,
"rsrp": -98,
"snr": -0.800000
}
Cezary napisał/a:Nie wiem dlaczego sądzisz że grzebanie po ustawieniach coś da. Skoro działało i jak mówisz że nic nie przestawiałeś to ma nadal działać, więc po co coś zmieniasz?
Zmiana kolory diody led to zmiana technologii. Wykonaj i Pokaż wyniki
ifdown qmi
killall uqmi
uqmi -d /dev/cdc-wdm0 --get-serving-system
uqmi -d /dev/cdc-wdm0 --get-signal-info
EDIT: często powodem jest także np. skończenie się środków na karcie SIM lub utrata jej ważności. Włóż kartę do telefonu i zobaczy czy nadal działa internet z niej.
root@OpenWrt:~# ifdown qmi
root@OpenWrt:~# killall uqmi
root@OpenWrt:~# uqmi -d /dev/cdc-wdm0 --get-serving-system
{
"registration": "registered",
"plmn_mcc": 260,
"plmn_mnc": 6,
"plmn_description": "Virgin mobile",
"roaming": false
}
root@OpenWrt:~# uqmi -d /dev/cdc-wdm0 --get-signal-info
{
"type": "lte",
"rssi": -62,
"rsrq": -15,
"rsrp": -96,
"snr": -4.000000
}
root@OpenWrt:~#
Środki są i ważność również gdyż mam podgląd na aplikacji . Poza tym włączałem 3 dni temu pakiet .
Jeśli chodzi o diody to nic nie grzebałem prócz tego że w easyconfig chciałem ustawić tryb nocny aby się wyłączały diody w nocy ale to zanim napisałem pierwszego posta wczoraj . Po tym jak Pan wczoraj pomógł nic nie zmieniałem póki teraz nie wywaliło go po restarcie .
A myślałem o easyconfig gdyż bardziej mam dostęp do smartfona niż do komputera ...
Kurde muszę napisać jeszcze raz. Po wczorajszym przestawieniu na ipv4 nic nie grzebałem pomimo że nie świeciła dioda wifi .
Dzisiaj przed 10 minutami wywaliło internet zaczęła migać na zielono dioda 3g/4g więc postanowiłem zrobić mu reboot . Po wstaniu internetu nie ma ....
root@OpenWrt:~# uci show network
network.loopback=interface
network.loopback.device='lo'
network.loopback.proto='static'
network.loopback.ipaddr='127.0.0.1'
network.loopback.netmask='255.0.0.0'
network.globals=globals
network.globals.ula_prefix='fd3a:a82a:66f4::/48'
network.@device[0]=device
network.@device[0].name='br-lan'
network.@device[0].type='bridge'
network.@device[0].ports='lan2' 'lan3' 'lan4'
network.lan=interface
network.lan.device='br-lan'
network.lan.proto='static'
network.lan.ipaddr='192.168.1.1'
network.lan.netmask='255.255.255.0'
network.lan.ip6assign='60'
network.wan6=interface
network.wan6.device='wan'
network.wan6.proto='dhcpv6'
network.qmi=interface
network.qmi.proto='qmi'
network.qmi.auth='none'
network.qmi.pdptype='ipv4'
network.qmi.device='/dev/cdc-wdm0'
network.qmi.apn='internet'
network.wan=interface
network.wan.proto='qmi'
network.wan.device='/dev/cdc-wdm0'
network.wan.apn='internet'
network.wan.auth='none'
network.wan.pdptype='ipv4v6'
root@OpenWrt:~# uci show dhcp
dhcp.@dnsmasq[0]=dnsmasq
dhcp.@dnsmasq[0].domainneeded='1'
dhcp.@dnsmasq[0].boguspriv='1'
dhcp.@dnsmasq[0].filterwin2k='0'
dhcp.@dnsmasq[0].localise_queries='1'
dhcp.@dnsmasq[0].rebind_protection='1'
dhcp.@dnsmasq[0].rebind_localhost='1'
dhcp.@dnsmasq[0].local='/lan/'
dhcp.@dnsmasq[0].domain='lan'
dhcp.@dnsmasq[0].expandhosts='1'
dhcp.@dnsmasq[0].nonegcache='0'
dhcp.@dnsmasq[0].cachesize='1000'
dhcp.@dnsmasq[0].authoritative='1'
dhcp.@dnsmasq[0].readethers='1'
dhcp.@dnsmasq[0].leasefile='/tmp/dhcp.leases'
dhcp.@dnsmasq[0].resolvfile='/tmp/resolv.conf.d/resolv.conf.auto'
dhcp.@dnsmasq[0].nonwildcard='1'
dhcp.@dnsmasq[0].localservice='1'
dhcp.@dnsmasq[0].ednspacket_max='1232'
dhcp.@dnsmasq[0].filter_aaaa='0'
dhcp.@dnsmasq[0].filter_a='0'
dhcp.@dnsmasq[0].confdir='/tmp/dnsmasq.d'
dhcp.lan=dhcp
dhcp.lan.interface='lan'
dhcp.lan.start='100'
dhcp.lan.limit='150'
dhcp.lan.leasetime='12h'
dhcp.lan.dhcpv4='server'
dhcp.lan.dhcpv6='server'
dhcp.lan.ra='server'
dhcp.lan.ra_slaac='1'
dhcp.lan.ra_flags='managed-config' 'other-config'
dhcp.odhcpd=odhcpd
dhcp.odhcpd.maindhcp='0'
dhcp.odhcpd.leasefile='/tmp/hosts/odhcpd'
dhcp.odhcpd.leasetrigger='/usr/sbin/odhcpd-update'
dhcp.odhcpd.loglevel='4'
root@OpenWrt:~# 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].input='ACCEPT'
firewall.@zone[0].output='ACCEPT'
firewall.@zone[0].forward='ACCEPT'
firewall.@zone[0].network='lan'
firewall.@zone[1]=zone
firewall.@zone[1].name='wan'
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.@zone[1].network='wan6' 'qmi'
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'
root@OpenWrt:~# ifstatus qmi
{
"up": false,
"pending": true,
"available": true,
"autostart": true,
"dynamic": false,
"proto": "qmi",
"data": {
}
}
root@OpenWrt:~#
W sekcji wan [qmi-wan] próbowałem pdptype zmieniać na ipv4 ipv6 lub ipv4/ipv6 ale to nic nie dało. Zostawilem na ipv4 .
Wyskakuje komunikat jakby chciał pinu a nie zakładałem go wcale ...
Cezary napisał/a:To wybierz ipv4. Najlepiej zostaw luci w spokoju, rób wszystko z konsoli.
Wystarczyło zmienić na ipv4
Już działa. Dziękuję.
Cezary napisał/a:Wywal to pdptype, ustaw tylko tak:
network.qmi.proto='qmi'
network.qmi.device='/dev/cdc-wdm0'
network.qmi.apn='internet'
I nic więcej sam nie ustawiaj, ew pin jak masz Zrestartuj router.
Mam tak
https://www.imghost.pl/images/1ea51a621b.jpg
Przy czym nie mam pinu i nie mam opcji kasowania pdptype bo jest do wyboru ipv4/ipv6 lub ipv4 lub ipv6
Focus napisał/a:No ale co tak? Masz qmi_4 w interfejsach, czy nie?
Tak . Mam mf286d . A pomimo restartu ta sekcja qmi_4 nie chce się pojawić
Cezary napisał/a:To jeszcze raz pokaż
uci show network
ifstatus qmi
uci show firewall
root@OpenWrt:~# uci show network
network.loopback=interface
network.loopback.device='lo'
network.loopback.proto='static'
network.loopback.ipaddr='127.0.0.1'
network.loopback.netmask='255.0.0.0'
network.globals=globals
network.globals.ula_prefix='fd3a:a82a:66f4::/48'
network.@device[0]=device
network.@device[0].name='br-lan'
network.@device[0].type='bridge'
network.@device[0].ports='lan2' 'lan3' 'lan4'
network.lan=interface
network.lan.device='br-lan'
network.lan.proto='static'
network.lan.ipaddr='192.168.1.1'
network.lan.netmask='255.255.255.0'
network.lan.ip6assign='60'
network.wan6=interface
network.wan6.device='wan'
network.wan6.proto='dhcpv6'
network.qmi=interface
network.qmi.proto='qmi'
network.qmi.auth='none'
network.qmi.pdptype='ipv6'
network.qmi.device='/dev/cdc-wdm0'
network.qmi.apn='internet'
root@OpenWrt:~# ifstatus qmi
{
"up": false,
"pending": true,
"available": true,
"autostart": true,
"dynamic": false,
"proto": "qmi",
"data": {
}
}
root@OpenWrt:~# 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].input='ACCEPT'
firewall.@zone[0].output='ACCEPT'
firewall.@zone[0].forward='ACCEPT'
firewall.@zone[0].network='lan'
firewall.@zone[1]=zone
firewall.@zone[1].name='wan'
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.@zone[1].network='wan6' 'qmi'
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'
root@OpenWrt:~#
Focus napisał/a:Ty masz MF286D? Zresetuj jeszcze interfejs qmi, żeby zrobił się qmi_4.
Tak. Pisałem niedawno w wątku z frameworkiem pod mf 286d i udało mi się to zrobić i nawet podbić do B12
Cezary napisał/a:- masz sekcję qmi, nie dodałeś jej do strefy wan w firewallu (masz teraz tylko wan6).
- usuń także linię w sekcji qmi z pdptype lub zmień ja na ipv6 - nie często się zdarza że operator dawał ipv6
- nie ustawiłeś apn w sekcji qmi - najczęsciej jest to "intertnet" albo coś innego, zależności czego używasz.
Wyedytowalem sekcje qmi zgodnie z Twoimi zaleceniami( pdptype >ipv6 oraz apn> internet ) oraz dodałem w podzakladce interfejsy>qmi>zapora sieciowa wybrałem wan6 i qmi ale nie pomogło
Dzien dobry .
Cholera zepsułem internet .
Zacząłem sobie dodawać pakiety jak transmission i obsługę dysków przez usb. Oraz sprawdzać jako drugi interfejs easyconfig i wysypałem internet bo nie mam go wcale.
Najpierw na stronie głównej luci zmienilo mi protokół
z qmi na umts/gprs/ev-do po czym chciałem to naprawić i ustawić spowrotem na qmi I dorobiłem tyle że usunolem a po dodaniu go od nowa nie działa.....
show network
show firewall
show dhcp
root@OpenWrt:~# uci show network
network.loopback=interface
network.loopback.device='lo'
network.loopback.proto='static'
network.loopback.ipaddr='127.0.0.1'
network.loopback.netmask='255.0.0.0'
network.globals=globals
network.globals.ula_prefix='fd3a:a82a:66f4::/48'
network.@device[0]=device
network.@device[0].name='br-lan'
network.@device[0].type='bridge'
network.@device[0].ports='lan2' 'lan3' 'lan4'
network.lan=interface
network.lan.device='br-lan'
network.lan.proto='static'
network.lan.ipaddr='192.168.1.1'
network.lan.netmask='255.255.255.0'
network.lan.ip6assign='60'
network.wan6=interface
network.wan6.device='wan'
network.wan6.proto='dhcpv6'
network.qmi=interface
network.qmi.proto='qmi'
network.qmi.auth='none'
network.qmi.pdptype='ipv4v6'
network.qmi.device='/dev/cdc-wdm0'
root@OpenWrt:~# 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].input='ACCEPT'
firewall.@zone[0].output='ACCEPT'
firewall.@zone[0].forward='ACCEPT'
firewall.@zone[0].network='lan'
firewall.@zone[1]=zone
firewall.@zone[1].name='wan'
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.@zone[1].network='wan6'
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'
root@OpenWrt:~# uci show dhcp
dhcp.@dnsmasq[0]=dnsmasq
dhcp.@dnsmasq[0].domainneeded='1'
dhcp.@dnsmasq[0].boguspriv='1'
dhcp.@dnsmasq[0].filterwin2k='0'
dhcp.@dnsmasq[0].localise_queries='1'
dhcp.@dnsmasq[0].rebind_protection='1'
dhcp.@dnsmasq[0].rebind_localhost='1'
dhcp.@dnsmasq[0].local='/lan/'
dhcp.@dnsmasq[0].domain='lan'
dhcp.@dnsmasq[0].expandhosts='1'
dhcp.@dnsmasq[0].nonegcache='0'
dhcp.@dnsmasq[0].cachesize='1000'
dhcp.@dnsmasq[0].authoritative='1'
dhcp.@dnsmasq[0].readethers='1'
dhcp.@dnsmasq[0].leasefile='/tmp/dhcp.leases'
dhcp.@dnsmasq[0].resolvfile='/tmp/resolv.conf.d/resolv.conf.auto'
dhcp.@dnsmasq[0].nonwildcard='1'
dhcp.@dnsmasq[0].localservice='1'
dhcp.@dnsmasq[0].ednspacket_max='1232'
dhcp.@dnsmasq[0].filter_aaaa='0'
dhcp.@dnsmasq[0].filter_a='0'
dhcp.@dnsmasq[0].confdir='/tmp/dnsmasq.d'
dhcp.lan=dhcp
dhcp.lan.interface='lan'
dhcp.lan.start='100'
dhcp.lan.limit='150'
dhcp.lan.leasetime='12h'
dhcp.lan.dhcpv4='server'
dhcp.lan.dhcpv6='server'
dhcp.lan.ra='server'
dhcp.lan.ra_slaac='1'
dhcp.lan.ra_flags='managed-config' 'other-config'
dhcp.odhcpd=odhcpd
dhcp.odhcpd.maindhcp='0'
dhcp.odhcpd.leasefile='/tmp/hosts/odhcpd'
dhcp.odhcpd.leasetrigger='/usr/sbin/odhcpd-update'
dhcp.odhcpd.loglevel='4'
Dzien dobry .
Cholera zepsułem internet .
Zacząłem sobie dodawać pakiety jak transmission i obsługę dysków przez usb. Oraz sprawdzać jako drugi interfejs easyconfig i wysypałem internet bo nie mam go wcale.
Najpierw na stronie głównej luci zmienilo mi protokół
z qmi na umts/gprs/ev-do po czym chciałem to naprawić i ustawić spowrotem na qmi I dorobiłem tyle że usunąć sie a po dodaniu go od nowa nie działa.....
MateuszCOMPANY napisał/a:Przewaliłem jeszcze trochę stron i doszedłem że można wgrywać przez web.
Wchodzę w system > flash firmware > Flash new firmware image
Z folderu "Nordic Modem Update (up to B12)" wybieram "imageB02naB05" i który plik jest obrazem?

Przeczytaj jeszcze raz dokładnie a wyjdzie na jaw że to co wyczytałeś to jest update owrt a nie modemu . Fw modemu to nie Fw routera
MateuszCOMPANY napisał/a:Dzięki poszło.
Procedura stanęła na 99% ze statusem "Reset CPE"
Czy to ja muszę go teraz fizycznie zresetować?
EDIT: Stało na 99% przez pół godziny, zresetowałem go ręcznie ale dalej nie chce wskoczyć na 100%
Mam go odłączyć, czy czekać?
Miałem tak samo . Wymusiłem zatrzymanie zatrzymanie programu w menadżerze . Ale pp wpisaniu 192.168.1.1 już było openwrt. Potem zaktualizowałem owrt do najnowszej wersji .
Cezary napisał/a:Na łączu komórkowym będziesz tak miał. Polepszyć ping możesz przez wybranie mniej obciążonego BTSa lub znalezienie pasm które takie coś ci dadzą. Ale nie licz na jakieś poważne zejście na pingu.
Domyślam się że światłowód to to nie jest. Zauważyłem że play [virgin] ma lepsze niż t.mobile mimo że do bts jest podobna droga ok 1km
Cezary napisał/a:Nie działa po prostu ten serwer. Używasz jakiś randomowych serwerów i panikujesz że coś nie działa 
Ok ok . Nie panikuje tylko pytam . A komenta z instrukcji była więc nie tak randomowa.
A można jakoś polepszyć ping ? Pytam bo gram na konsoli i mam taki ping jak <35. <50. I więcej..
Znalezione posty: 1 do 25 z 42