Temat: Padł system ?

Witam
Netgear 6220 i openwrt 21.02 przy próbie aktualizacji dowolnego pakietu mam coś takiego

Collected errors:
* wfopen: //usr/lib/opkg/info/luci-mod-network.control: Read-only file system.
* wfopen: //usr/lib/opkg/info/luci-mod-network.postinst: Read-only file system.
* wfopen: //usr/lib/opkg/info/luci-mod-network.postinst-pkg: Read-only file system.
* wfopen: //usr/lib/opkg/info/luci-mod-network.prerm: Read-only file system.
* wfopen: /etc/uci-defaults/50_luci-mod-admin-full: Read-only file system.
* wfopen: /usr/libexec/luci-peeraddr: Read-only file system.
* wfopen: /usr/share/luci/menu.d/luci-mod-network.json: Read-only file system.
* wfopen: /usr/share/rpcd/acl.d/luci-mod-network.json: Read-only file system.
* wfopen: /www/luci-static/resources/tools/network.js: Read-only file system.
* wfopen: /www/luci-static/resources/view/network/dhcp.js: Read-only file system.
* wfopen: /www/luci-static/resources/view/network/diagnostics.js: Read-only file system.
* wfopen: /www/luci-static/resources/view/network/hosts.js: Read-only file system.
* wfopen: /www/luci-static/resources/view/network/interfaces.js: Read-only file system.
* wfopen: /www/luci-static/resources/view/network/routes.js: Read-only file system.
* wfopen: /www/luci-static/resources/view/network/switch.js: Read-only file system.
* wfopen: /www/luci-static/resources/view/network/wireless.js: Read-only file system.
* pkg_write_filelist: Failed to open //usr/lib/opkg/info/luci-mod-network.list: Read-only file system.
* opkg_install_pkg: Failed to extract data files for luci-mod-network. Package debris may remain!
* opkg_install_cmd: Cannot install package luci-mod-network.
* pkg_write_filelist: Failed to open //usr/lib/opkg/info/luci-mod-network.list: Read-only file system.

Mogę coś jeszcze zrobić czy czeka mnie ponowna instalacja i konfiguracja >?

2

Odp: Padł system ?

System plików masz tylko do odczytu i nie może zapisać danych. Poniewaz to ubifs to zgraj sobie dane jeżeli chcesz coś tam zachować i zainstaluj obraz jeszcze raz.

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

3

Odp: Padł system ?

Czy w twoim najnowszym obrazie dla routera 6220 coś się zmieniło w dostępie do FTP?
Mam taki problem ze po wgraniu na nowo systemu i poustawianie wszystkiego na nowo ręcznie nie z kopi (przekierowania portów w zaporze) nie mogę z zewnątrz sieci dostać się do dysku. Np w kodi miałem dodane źródło z mojego dysku i teraz brak połączenia a w aplikacji na telefonie muszę przestawić opcje transfer mode z passiv na active i dopiero mogę się połączyć.

4

Odp: Padł system ?

U mnie w obrazie nie ma ftp. Cokolwiek doinstalowałeś to robiłeś to sam.

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

5

Odp: Padł system ?

Nic nie doinstalowywalem związanego z ftp ponieważ ten dysk jest na drugim routerze Przed awaria wszystko było ok. Dostęp do routerów z zewnątrz zarówno przez www jak i SSH działa poprawnie.

6

Odp: Padł system ?

To nadal - nic kompletnie nie ma tam związanego z ftp.

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

7

Odp: Padł system ?

Coś się musiało zmienić skoro kodi nie może połączyć się z dyskiem. Port 21 raczej jest odblokowany bo inaczej w aplikacji tez nie byłoby połączenia

8

Odp: Padł system ?

Czy całodniowa awaria prądu mogła spowodować ze router sam z siebie zablokował port 21 czy to dostawca internetu zrobił ? Wychodzi na to ze mimo publicznego IP mam zablokowany port 21 dlatego nie mogę połączyć się z dyskiem spoza sieci

9

Odp: Padł system ?

Czy to jest ten adres z którego piszesz? Jeżeli tak to masz connection refused. www działa, ftp odrzuca.

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

10

Odp: Padł system ?

Tak jeśli zaczyna się od 94

11

Odp: Padł system ?

Jeżeli zrobiłeś przekierowanie to zrób iptables -v -L -t nat, poszukaj reguły od przekierowania ftp i zobacz czy zwiększają się pierwsze cyferki - liczniki pakietów. Jeżeli tak to przekierowanie działa i nas nie odpowiada. Jeżeli nie to masz zablokowany port przez operatora. Jeżeli nie masz reguły to zepsułeś konfiguracje smile

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

12 (edytowany przez roratoga 2022-01-19 21:28:50)

Odp: Padł system ?

cos takiego mam

iptables -v -L -t nat
Chain PREROUTING (policy ACCEPT 8927 packets, 1488K bytes)
pkts bytes target     prot opt in     out     source               destination         
9210 1502K prerouting_rule  all  --  any    any     anywhere             anywhere             /* !fw3: Custom prerouting rule chain */
6746 1356K zone_lan_prerouting  all  --  br-lan any     anywhere             anywhere             /* !fw3 */
2464  146K zone_wan_prerouting  all  --  eth0.2 any     anywhere             anywhere             /* !fw3 */

Chain INPUT (policy ACCEPT 2657 packets, 191K bytes)
pkts bytes target     prot opt in     out     source               destination         

Chain OUTPUT (policy ACCEPT 1990 packets, 140K bytes)
pkts bytes target     prot opt in     out     source               destination         

Chain POSTROUTING (policy ACCEPT 115 packets, 9083 bytes)
pkts bytes target     prot opt in     out     source               destination         
4664  355K postrouting_rule  all  --  any    any     anywhere             anywhere             /* !fw3: Custom postrouting rule chain */
  115  9083 zone_lan_postrouting  all  --  any    br-lan  anywhere             anywhere             /* !fw3 */
4549  345K zone_wan_postrouting  all  --  any    eth0.2  anywhere             anywhere             /* !fw3 */

Chain postrouting_lan_rule (1 references)
pkts bytes target     prot opt in     out     source               destination         

Chain postrouting_rule (1 references)
pkts bytes target     prot opt in     out     source               destination         

Chain postrouting_wan_rule (1 references)
pkts bytes target     prot opt in     out     source               destination         

Chain prerouting_lan_rule (1 references)
pkts bytes target     prot opt in     out     source               destination         

Chain prerouting_rule (1 references)
pkts bytes target     prot opt in     out     source               destination         

Chain prerouting_wan_rule (1 references)
pkts bytes target     prot opt in     out     source               destination         

Chain zone_lan_postrouting (1 references)
pkts bytes target     prot opt in     out     source               destination         
  115  9083 postrouting_lan_rule  all  --  any    any     anywhere             anywhere             /* !fw3: Custom lan postrouting rule chain */
    0     0 SNAT       tcp  --  any    any     10.0.1.0/24          10.0.1.20            tcp dpt:www /* !fw3: Most (reflection) */ to:10.0.1.1
    0     0 SNAT       udp  --  any    any     10.0.1.0/24          10.0.1.20            udp dpt:80 /* !fw3: Most (reflection) */ to:10.0.1.1
    0     0 SNAT       tcp  --  any    any     10.0.1.0/24          10.0.1.20            tcp dpt:8080 /* !fw3: Most (reflection) */ to:10.0.1.1
    0     0 SNAT       udp  --  any    any     10.0.1.0/24          10.0.1.20            udp dpt:8080 /* !fw3: Most (reflection) */ to:10.0.1.1
    0     0 SNAT       tcp  --  any    any     10.0.1.0/24          10.0.1.20            tcp dpt:ssh /* !fw3: Most (reflection) */ to:10.0.1.1
    0     0 SNAT       udp  --  any    any     10.0.1.0/24          10.0.1.20            udp dpt:ssh /* !fw3: Most (reflection) */ to:10.0.1.1
    0     0 SNAT       tcp  --  any    any     10.0.1.0/24          10.0.1.20            tcp dpt:https /* !fw3: Most (reflection) */ to:10.0.1.1
    0     0 SNAT       udp  --  any    any     10.0.1.0/24          10.0.1.20            udp dpt:https /* !fw3: Most (reflection) */ to:10.0.1.1
    0     0 SNAT       tcp  --  any    any     10.0.1.0/24          Duszek               tcp dpt:www /* !fw3: Router (reflection) */ to:10.0.1.1
    0     0 SNAT       udp  --  any    any     10.0.1.0/24          Duszek               udp dpt:80 /* !fw3: Router (reflection) */ to:10.0.1.1
    0     0 SNAT       tcp  --  any    any     10.0.1.0/24          Duszek               tcp dpt:8080 /* !fw3: Router (reflection) */ to:10.0.1.1
    0     0 SNAT       udp  --  any    any     10.0.1.0/24          Duszek               udp dpt:8080 /* !fw3: Router (reflection) */ to:10.0.1.1
    0     0 SNAT       tcp  --  any    any     10.0.1.0/24          Duszek               tcp dpt:ssh /* !fw3: Router (reflection) */ to:10.0.1.1
    0     0 SNAT       udp  --  any    any     10.0.1.0/24          Duszek               udp dpt:ssh /* !fw3: Router (reflection) */ to:10.0.1.1
    0     0 SNAT       tcp  --  any    any     10.0.1.0/24          10.0.1.20            tcp dpt:9100 /* !fw3: HP (reflection) */ to:10.0.1.1
    0     0 SNAT       udp  --  any    any     10.0.1.0/24          10.0.1.20            udp dpt:9100 /* !fw3: HP (reflection) */ to:10.0.1.1
    0     0 SNAT       tcp  --  any    any     10.0.1.0/24          10.0.1.2             tcp dpt:discard /* !fw3: WoL (reflection) */ to:10.0.1.1
    0     0 SNAT       udp  --  any    any     10.0.1.0/24          10.0.1.2             udp dpt:discard /* !fw3: WoL (reflection) */ to:10.0.1.1
    0     0 SNAT       tcp  --  any    any     10.0.1.0/24          Maczek.lan           tcp dpt:58015 /* !fw3: Torrenty (reflection) */ to:10.0.1.1
    0     0 SNAT       udp  --  any    any     10.0.1.0/24          Maczek.lan           udp dpt:58015 /* !fw3: Torrenty (reflection) */ to:10.0.1.1
    0     0 SNAT       tcp  --  any    any     10.0.1.0/24          10.0.1.20            tcp dpt:ftp /* !fw3: FTP (reflection) */ to:10.0.1.1
    0     0 SNAT       udp  --  any    any     10.0.1.0/24          10.0.1.20            udp dpt:21 /* !fw3: FTP (reflection) */ to:10.0.1.1

Chain zone_lan_prerouting (1 references)
pkts bytes target     prot opt in     out     source               destination         
6746 1356K prerouting_lan_rule  all  --  any    any     anywhere             anywhere             /* !fw3: Custom lan prerouting rule chain */
    0     0 DNAT       tcp  --  any    any     10.0.1.0/24          94.xxxxxx        tcp dpt:81 /* !fw3: Most (reflection) */ to:10.0.1.20:80
    0     0 DNAT       udp  --  any    any     10.0.1.0/24          94.xxxxxx        udp dpt:81 /* !fw3: Most (reflection) */ to:10.0.1.20:80
    0     0 DNAT       tcp  --  any    any     10.0.1.0/24          94.xxxxxxx        tcp dpt:8081 /* !fw3: Most (reflection) */ to:10.0.1.20:8080
    0     0 DNAT       udp  --  any    any     10.0.1.0/24          94.xxxxxx        udp dpt:8081 /* !fw3: Most (reflection) */ to:10.0.1.20:8080
    0     0 DNAT       tcp  --  any    any     10.0.1.0/24          94.xxxxxxx        tcp dpt:22221 /* !fw3: Most (reflection) */ to:10.0.1.20:22
    0     0 DNAT       udp  --  any    any     10.0.1.0/24          94.xxxxxxx        udp dpt:22221 /* !fw3: Most (reflection) */ to:10.0.1.20:22
    0     0 DNAT       tcp  --  any    any     10.0.1.0/24          94.xxxxxxx        tcp dpt:444 /* !fw3: Most (reflection) */ to:10.0.1.20:443
    0     0 DNAT       udp  --  any    any     10.0.1.0/24          94.xxxxxxx        udp dpt:444 /* !fw3: Most (reflection) */ to:10.0.1.20:443
    0     0 DNAT       tcp  --  any    any     10.0.1.0/24          94.xxxxxxx        tcp dpt:www /* !fw3: Router (reflection) */ to:10.0.1.1:80
    0     0 DNAT       udp  --  any    any     10.0.1.0/24          94.xxxxxxx        udp dpt:80 /* !fw3: Router (reflection) */ to:10.0.1.1:80
    0     0 DNAT       tcp  --  any    any     10.0.1.0/24          94.xxxxxxx        tcp dpt:8080 /* !fw3: Router (reflection) */ to:10.0.1.1:8080
    0     0 DNAT       udp  --  any    any     10.0.1.0/24          94.xxxxxxx        udp dpt:8080 /* !fw3: Router (reflection) */ to:10.0.1.1:8080
    0     0 DNAT       tcp  --  any    any     10.0.1.0/24          94.xxxxxxx        tcp dpt:22223 /* !fw3: Router (reflection) */ to:10.0.1.1:22
    0     0 DNAT       udp  --  any    any     10.0.1.0/24          94.xxxxxxx        udp dpt:22223 /* !fw3: Router (reflection) */ to:10.0.1.1:22
    0     0 DNAT       tcp  --  any    any     10.0.1.0/24          94.xxxxxxxx        tcp dpt:9100 /* !fw3: HP (reflection) */ to:10.0.1.20:9100
    0     0 DNAT       udp  --  any    any     10.0.1.0/24          94.xxxxxxx        udp dpt:9100 /* !fw3: HP (reflection) */ to:10.0.1.20:9100
    0     0 DNAT       tcp  --  any    any     10.0.1.0/24          94.xxxxxxx        tcp dpt:discard /* !fw3: WoL (reflection) */ to:10.0.1.2:9
    0     0 DNAT       udp  --  any    any     10.0.1.0/24          94.xxxxxxx        udp dpt:discard /* !fw3: WoL (reflection) */ to:10.0.1.2:9
    0     0 DNAT       tcp  --  any    any     10.0.1.0/24          94.xxxxxx        tcp dpt:58015 /* !fw3: Torrenty (reflection) */ to:10.0.1.3:58015
    0     0 DNAT       udp  --  any    any     10.0.1.0/24          94.xxxxxx        udp dpt:58015 /* !fw3: Torrenty (reflection) */ to:10.0.1.3:58015
    0     0 DNAT       tcp  --  any    any     10.0.1.0/24          94.xxxxxx        tcp dpt:22222 /* !fw3: FTP (reflection) */ to:10.0.1.20:21
    0     0 DNAT       udp  --  any    any     10.0.1.0/24          94.xxxxxx        udp dpt:22222 /* !fw3: FTP (reflection) */ to:10.0.1.20:21

Chain zone_wan_postrouting (1 references)
pkts bytes target     prot opt in     out     source               destination         
4549  345K postrouting_wan_rule  all  --  any    any     anywhere             anywhere             /* !fw3: Custom wan postrouting rule chain */
4549  345K MASQUERADE  all  --  any    any     anywhere             anywhere             /* !fw3 */

Chain zone_wan_prerouting (1 references)
pkts bytes target     prot opt in     out     source               destination         
    6   320 CONNMARK   tcp  --  any    any     anywhere             anywhere             tcp dpt:22223 CONNMARK or 0x80
    6   320 REDIRECT   tcp  --  any    any     anywhere             anywhere             tcp dpt:22223 redir ports 22
   31  1552 REDIRECT   tcp  --  any    any     anywhere             anywhere             tcp dpt:https redir ports 443
   40  2152 REDIRECT   tcp  --  any    any     anywhere             anywhere             tcp dpt:www redir ports 80
2387  142K prerouting_wan_rule  all  --  any    any     anywhere             anywhere             /* !fw3: Custom wan prerouting rule chain */
   92  5280 DNAT       tcp  --  any    any     anywhere             anywhere             tcp dpt:81 /* !fw3: Most */ to:10.0.1.20:80
    0     0 DNAT       udp  --  any    any     anywhere             anywhere             udp dpt:81 /* !fw3: Most */ to:10.0.1.20:80
    1    44 DNAT       tcp  --  any    any     anywhere             anywhere             tcp dpt:8081 /* !fw3: Most */ to:10.0.1.20:8080
    1    98 DNAT       udp  --  any    any     anywhere             anywhere             udp dpt:8081 /* !fw3: Most */ to:10.0.1.20:8080
    1    52 DNAT       tcp  --  any    any     anywhere             anywhere             tcp dpt:22221 /* !fw3: Most */ to:10.0.1.20:22
    0     0 DNAT       udp  --  any    any     anywhere             anywhere             udp dpt:22221 /* !fw3: Most */ to:10.0.1.20:22
    2    96 DNAT       tcp  --  any    any     anywhere             anywhere             tcp dpt:444 /* !fw3: Most */ to:10.0.1.20:443
    0     0 DNAT       udp  --  any    any     anywhere             anywhere             udp dpt:444 /* !fw3: Most */ to:10.0.1.20:443
    0     0 DNAT       tcp  --  any    any     anywhere             anywhere             tcp dpt:www /* !fw3: Router */ to:10.0.1.1:80
    0     0 DNAT       udp  --  any    any     anywhere             anywhere             udp dpt:80 /* !fw3: Router */ to:10.0.1.1:80
  101  4140 DNAT       tcp  --  any    any     anywhere             anywhere             tcp dpt:8080 /* !fw3: Router */ to:10.0.1.1:8080
    0     0 DNAT       udp  --  any    any     anywhere             anywhere             udp dpt:8080 /* !fw3: Router */ to:10.0.1.1:8080
    0     0 DNAT       tcp  --  any    any     anywhere             anywhere             tcp dpt:22223 /* !fw3: Router */ to:10.0.1.1:22
    0     0 DNAT       udp  --  any    any     anywhere             anywhere             udp dpt:22223 /* !fw3: Router */ to:10.0.1.1:22
    1    40 DNAT       tcp  --  any    any     anywhere             anywhere             tcp dpt:9100 /* !fw3: HP */ to:10.0.1.20:9100
    0     0 DNAT       udp  --  any    any     anywhere             anywhere             udp dpt:9100 /* !fw3: HP */ to:10.0.1.20:9100
    1    40 DNAT       tcp  --  any    any     anywhere             anywhere             tcp dpt:discard /* !fw3: WoL */ to:10.0.1.2:9
    0     0 DNAT       udp  --  any    any     anywhere             anywhere             udp dpt:discard /* !fw3: WoL */ to:10.0.1.2:9
    0     0 DNAT       tcp  --  any    any     anywhere             anywhere             tcp dpt:58015 /* !fw3: Torrenty */ to:10.0.1.3:58015
    0     0 DNAT       udp  --  any    any     anywhere             anywhere             udp dpt:58015 /* !fw3: Torrenty */ to:10.0.1.3:58015
    6   352 DNAT       tcp  --  any    any     anywhere             anywhere             tcp dpt:22222 /* !fw3: FTP */ to:10.0.1.20:21
    0     0 DNAT       udp  --  any    any     anywhere             anywhere             udp dpt:22222 /* !fw3: FTP */ to:10.0.1.20:21

13

Odp: Padł system ?

Przecież masz przekierowanie na ftp i o to działa:

$ ftp 94.xxxxxx 22222
Connected to 94.xxxxxx.
220 ftp server ready
Name (94.xxxxxxxxcezary): ftp
530 Permission denied.
Login failed.
ftp> 

Tylko zrobiłeś 22222 zamiast 21 po prostu.

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

14

Odp: Padł system ?

no tak ale wczesniej mialem 21 i dzialalo a teraz nie dziala bez tego przekierowania

15

Odp: Padł system ?

Nie rozumiem. Jeżeli chcesz na 21 to zrób na 21 po prostu a nie 22222.

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

16

Odp: Padł system ?

Tak miałem do tej pory i na porcie 21 mogłem się łączyć, po tej awari najpierw zainstalowałem od nowa openwrt nic to nie dało potem zmieniłem na gargoyle i także nic, dopiero spróbowałem przekierować port 21 na ten 22222 i dopiero zadziałało. Gdy usune to przekierowanie nie mogę się połączyć.

17

Odp: Padł system ?

Jakie przekierowanie 21 na 22222? Przecież ftp masz wystawiony na 21 a nie 22222? Zrób przekierowanie 21 na 21, i zobacz co się dzieje w regułą, tak jak pisałem.

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

18 (edytowany przez roratoga 2022-01-20 05:05:25)

Odp: Padł system ?

Przed awaria tak właśnie miałem 21 przekierowany na 21 i działało. Po przestało dlatego zrobiłem 21 na 22222. Jutro zrobię jeszcze raz 21 na 21 i wkleję wynik.
Edit
Dziwna sprawa
Ponownie port 21 zaczął działać  :-)