1

Temat: Zepsułem internet

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'

2 (edytowany przez Cezary 2024-01-09 16:03:01)

Odp: Zepsułem internet

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

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

3

Odp: Zepsułem internet

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

4

Odp: Zepsułem internet

Ty masz MF286D? Zresetuj jeszcze interfejs qmi, żeby zrobił się qmi_4.

5

Odp: Zepsułem internet

To jeszcze raz pokaż

uci show network
ifstatus qmi
uci show firewall

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

6 (edytowany przez misi3k 2024-01-09 15:59:04)

Odp: Zepsułem internet

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

7

Odp: Zepsułem internet

No ale co tak? Masz qmi_4 w interfejsach, czy nie?

8

Odp: Zepsułem internet

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:~#

9 (edytowany przez misi3k 2024-01-09 16:00:51)

Odp: Zepsułem internet

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ć

10

Odp: Zepsułem internet

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.

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

11

Odp: Zepsułem internet

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

12

Odp: Zepsułem internet

To wybierz ipv4. Najlepiej zostaw luci w spokoju, rób wszystko z konsoli.

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

13

Odp: Zepsułem internet

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

14 (edytowany przez misi3k 2024-01-10 20:13:20)

Odp: Zepsułem internet

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

15 (edytowany przez Cezary 2024-01-10 20:23:17)

Odp: Zepsułem internet

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.

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

16

Odp: Zepsułem internet

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

17

Odp: Zepsułem internet

Diody są sterowane sprzętowo przez modem.

Operatora widzi, jest zarejestrowany, jest lte. Przełóż kartę do telefonu i sprawdź czy się połączysz.

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

18 (edytowany przez misi3k 2024-01-10 21:22:11)

Odp: Zepsułem internet

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
}

19

Odp: Zepsułem internet

Masz za dużo tych interfejsów z qmi. Jeden zrób tylko qmi lub wan. Ale jeden. I już pisałem o tym - wifi  ma być z siecią "lan" skojarzone, nie z lan i qmi_4  jak masz teraz.

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

20

Odp: Zepsułem internet

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.

21 (edytowany przez misi3k 2024-01-10 23:34:55)

Odp: Zepsułem internet

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

22 (edytowany przez Focus 2024-01-10 23:46:47)

Odp: Zepsułem internet

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.

23 (edytowany przez misi3k 2024-01-11 00:10:53)

Odp: Zepsułem internet

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:~#

24

Odp: Zepsułem internet

Bo teraz interfejs nazwałeś wan, a nie qmi, a wcześniej miałeś QMI, a nie qmi.

25 (edytowany przez misi3k 2024-01-11 00:29:56)

Odp: Zepsułem internet

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 ?