» »

[Alternatvni Firmware za router] Vprašanja in težave

[Alternatvni Firmware za router] Vprašanja in težave

BivšiUser2 ::

Na router sem si naložil vse potrebne pakete za odjemalec transmission, opazil pa sem, da se mi nastavitev v config datotekah resetirajo. Moti me, da se "resetira" settings.json datoteka. Pač hočem zmanjšati porabo RAM-a ruterja, ker mi video (predvsem na fonih in tablici) šteka)zato nastavljam, da se torrenti downloadajo ponoči. Cron jobi namreč ne prinesejo željenega rezultata. Preden sem servis štartal sem imel vsaj 60% RAM-a in video ni štekal, zvok pa se je normalno predvajal. Ponoči se ne gledajo videi in bi tisti čas rad vse porabil za torrente, po dnevi, pa bi rad nemoteno surfanje. Trenutno externi NAS ne pride v poštev.

Imam dve datoteki

  1. /etc/config/transmission


  2. config transmission
            option enabled '1'
            option alt_speed_enabled 'true'
            option bind_address_ipv4 '0.0.0.0'
            option bind_address_ipv6 '::'
            option blocklist_enabled 'false'
            option cache_size_mb '2'
            option dht_enabled 'true'
            option download_queue_enabled 'true'
            option encryption '1'
            option idle_seeding_limit_enabled 'false'
            option lazy_bitfield_enabled 'true'
            option lpd_enabled 'false'
            option message_level '1'
            option peer_limit_per_torrent '60'
            option peer_port '51413'
            option peer_port_random_on_start 'false'
            option peer_socket_tos 'default'
            option pex_enabled 'true'
            option port_forwarding_enabled 'true'
            option preallocation '1'
            option ratio_limit_enabled 'false'
            option rpc_authentication_required 'false'
            option rpc_bind_address '0.0.0.0'
            option rpc_enabled 'true'
            option rpc_port '9091'
            option rpc_url '/transmission/'
            option rpc_whitelist '127.0.0.1,192.168.1.*'
            option rpc_whitelist_enabled 'true'
            option script_torrent_done_enabled 'false'
            option seed_queue_enabled 'false'
            option speed_limit_down_enabled 'false'
            option speed_limit_up_enabled 'false'
            option umask '18'
            option upload_slots_per_torrent '14'
            option utp_enabled 'true'
            option scrape_paused_torrents 'true'
            option config_dir '/home/Config/transmission'
            option user 'root'
            option download_dir '/home/share/Torrenti/Prenosi'
            option incomplete_dir_enabled 'true'
            option incomplete_dir '/home/share/Torrenti/Prenosi'
            option rename_partial_files '1'
            option start_added_torrents 'false'
            option trash_original_torrent_files 'true'
            option watch_dir_enabled 'true'
            option watch_dir '/home/share/Torrenti/Novi'
            option peer_limit_global '100'
            option download_queue_size '1'
            option queue_stalled_enabled 'false'
            option scrape_paused_torrents_enabled 'false'

  3. /home/Config/transmission/settings.json

  4. {
        "alt-speed-down": 50,
        "alt-speed-enabled": false,
        "alt-speed-time-begin": 540,
        "alt-speed-time-day": 127,
        "alt-speed-time-enabled": false,
        "alt-speed-time-end": 1020,
        "alt-speed-up": 50,
        "bind-address-ipv4": "0.0.0.0",
        "bind-address-ipv6": "::",
        "blocklist-enabled": false,
        "blocklist-url": "http://www.example.com/blocklist",
        "cache-size-mb": 2,
        "dht-enabled": true,
        "download-dir": "/home/share/Torrenti/Prenosi",
        "download-queue-enabled": true,
        "download-queue-size": 1,
        "encryption": 1,
        "idle-seeding-limit": 30,
        "idle-seeding-limit-enabled": false,
        "incomplete-dir": "/home/share/Torrenti/Prenosi",
        "incomplete-dir-enabled": true,
        "invalid-key": false,
        "lazy-bitfield-enabled": true,
        "lpd-enabled": false,
        "message-level": 1,
        "peer-congestion-algorithm": "",
        "peer-id-ttl-hours": 6,
        "peer-limit-global": 100,
        "peer-limit-per-torrent": 60,
        "peer-port": 51413,
        "peer-port-random-high": 65535,
        "peer-port-random-low": 49152,
        "peer-port-random-on-start": false,
        "peer-socket-tos": "default",
        "pex-enabled": true,
        "port-forwarding-enabled": true,
        "preallocation": 1,
        "prefetch-enabled": 0,
        "queue-stalled-enabled": false,
        "queue-stalled-minutes": 30,
        "ratio-limit": 2,
        "ratio-limit-enabled": false,
        "rename-partial-files": true,
        "rpc-authentication-required": false,
        "rpc-bind-address": "0.0.0.0",
        "rpc-enabled": true,
        "rpc-password": "{3d2049e98205288660126c82d8b10e870e4be5ccgqd2RYZD",
        "rpc-port": 9091,
        "rpc-url": "/transmission/",
        "rpc-username": "",
        "rpc-whitelist": "127.0.0.1,192.168.1.*",
        "rpc-whitelist-enabled": true,
        "scrape-paused-torrents": true,
        "scrape-paused-torrents-enabled": false,
        "script-torrent-done-enabled": false,
        "script-torrent-done-filename": "",
        "seed-queue-enabled": false,
        "seed-queue-size": 10,
        "speed-limit-down": 100,
        "speed-limit-down-enabled": true,
        "speed-limit-up": 100,
        "speed-limit-up-enabled": true,
        "start-added-torrents": false,
        "trash-original-torrent-files": true,
        "umask": 18,
        "upload-slots-per-torrent": 14,
        "utp-enabled": true,
        "watch-dir": "/home/share/Torrenti/Novi",
        "watch-dir-enabled": true


Gledal sem Ta topic, pa ni glih v pomoč (pri meni log sekcija ne izpiše ama ništa v zvezi z odjemalcem), sem porbal nastaviti cron job, kar bi sicer stvar uredilo ampak, mi stvar še vedno uporabil več RAM-a.
ps -w output:
  PID USER       VSZ STAT COMMAND
    1 root      1408 S    /sbin/procd
    2 root         0 SW   [kthreadd]
    3 root         0 SW   [ksoftirqd/0]
    5 root         0 SW<  [kworker/0:0H]
    7 root         0 SW<  [khelper]
   33 root         0 SW<  [writeback]
   68 root         0 SW<  [bioset]
   71 root         0 SW<  [kblockd]
   73 root         0 SW   [kswapd0]
   75 root         0 SW   [fsnotify_mark]
   77 root         0 SW   [spi0]
  306 root         0 SW<  [deferwq]
  424 root         0 SW   [scsi_eh_0]
  425 root         0 SW<  [scsi_tmf_0]
  426 root         0 SW   [usb-storage]
  442 root         0 SW   [jbd2/sda2-8]
  443 root         0 SW<  [ext4-rsv-conver]
  551 root       892 S    /sbin/ubusd
  580 root       772 S    /sbin/askfirst /bin/ash --login
  766 root         0 SW<  [ipv6_addrconf]
  787 root         0 SW<  [cfg80211]
  796 root         0 SW<  [ath10k_wq]
  998 root      1044 S    /sbin/logd -S 16
 1007 root      1532 S    /sbin/rpcd
 1041 root      1568 S    /sbin/netifd
 1067 root      1164 S    /usr/sbin/odhcpd
 1085 root      1368 S    /usr/sbin/crond -f -c /etc/crontabs -l 8
 1147 root      1152 S    /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -a -p 192.168.1.1:xxxx -p fdaa:d996:1939::1:xxxx -K 300
 1171 root       784 S    /usr/bin/hd-idle -a sda -i 600
 1204 root      1128 S    /usr/bin/netserver
 1300 root      1360 S    udhcpc -p /var/run/udhcpc-eth0.pid -s /lib/netifd/dhcp.script -f -t 0 -i eth0 -C
 1322 root      2364 S    /usr/sbin/uhttpd -f -h /www -r OpenWrtAleksander -x /cgi-bin -u /ubus -t 60 -T 30 -k 20 -A 1 -n 3 -N 100
 1327 root       800 S    odhcp6c -s /lib/netifd/dhcpv6.script -Ntry -P0 -t120 eth0
 1408 root      1660 S    /usr/sbin/hostapd -P /var/run/wifi-phy1.pid -B /var/run/hostapd-phy1.conf
 1472 root      1364 S    /usr/sbin/ntpd -n -S /usr/sbin/ntpd-hotplug -p ntp1.arnes.si -p ntp2.arnes.si -p 2.openwrt.pool.ntp.org -
 1542 root      1648 S    /usr/sbin/hostapd -P /var/run/wifi-phy0.pid -B /var/run/hostapd-phy0.conf
 1965 root      1188 S    /usr/sbin/miniupnpd -f /var/etc/miniupnpd.conf
 4853 root         0 SW   [jbd2/sda3-8]
 4854 root         0 SW<  [ext4-rsv-conver]
 8199 root         0 SW<  [kworker/0:1H]
 9470 nobody    2232 S    /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf -k -x /var/run/dnsmasq/dnsmasq.pid
13287 root      2488 S    /usr/sbin/smbd -D
13289 root      2284 S    /usr/sbin/nmbd -D
14580 root         0 SW   [kworker/0:2]
14896 root         0 SW   [kworker/u2:1]
15023 root      3096 S    /usr/sbin/smbd -D
16303 root         0 SW   [kworker/0:1]
18246 root         0 SW   [kworker/u2:2]
18911 root      1220 R    /usr/sbin/dropbear -F -P /var/run/dropbear.1.pid -a -p 192.168.1.1:xxxx -p fdaa:d996:1939::1:xxxx -K 300
18912 root      1372 S    -ash
19672 root      1360 R    ps -w
 

Kaj lahko še killam ob rebootu (dhcpv6 sem)
Firmware je Open Wrt Chaos Calmer, router pa TP Link Archer C5 v1.2 .
Prav tako se bliža nevihta in ker glih nimam volje zamenjat ruter ga bom seveda izključil (predlog za kakšno varovalo), ga bo ta čas izklopil. Se mi pa zadnje čase dogaja, da moram ročno na novo ustvarjati interface in z njimi čarati po fwju. Prej mi to ni bilo potrebno, kvečjemu samo modem resetirat.
IPv4 settingsi
http://prntscr.com/c1xa2i

http://prntscr.com/c1xac1

http://prntscr.com/c1xb21

http://prntscr.com/c1xb84

Firewall
http://prntscr.com/c1xbl7

http://prntscr.com/c1xcnu

Za odgovor bi vam bil hvaležen. Lp.
SloTech - če nisi z nami, si persona non grata.

BivšiUser2 ::

Da si odgovorim na 1. vprašanje. Zadevo sem skonfiguriral tako, da sem servis ugasnil in v /etc/config/transmission dodal možnosti glede altspeed-a. Te možnosti se nato "preslikajo" v settings.json, me je pa zmedlo zaradi narekovajev in "-" ter "_". Je pa res, da določeni settingsi zgrabijo v "novo nastalem gui-u" (sem po dodanju možnosti naletel na čist drugačen settings gui.), tako da je bolj to igranje kot ne. Malo še tweakanja, pa bo popolno. Imam pa še eno novo vprašanje. Nikakor se ne morem na wireless povezati s telefonoma Lumia 63x (nevem, če je 0 ali 5) in Lumia 550 (oba na zadnjem official build WP8 oz 10). Vse sem že sprobal, pa se fona le občasno "odločita", da se povežeta. Z drugimi napravami med katerimi je tudi Lumia 930 (fast ring) ni problemov. Routera se mi trenutno ne da resetirati.

Lp
SloTech - če nisi z nami, si persona non grata.

BivšiUser2 ::

Mah, nekaj sem spet zjebal na firwallu in mi javi internal server error
/usr/lib/lua/luci/dispatcher.lua:433: Failed to execute function dispatcher target for entry '/admin/network/firewall'.
The called action terminated with an exception:
/usr/lib/lua/luci/dispatcher.lua:433: Failed to execute arcombine dispatcher target for entry '/admin/network/firewall/zones'.
The called action terminated with an exception:
/usr/lib/lua/luci/template.lua:97: Failed to execute template 'cbi/map'.
A runtime error occured: /usr/lib/lua/luci/template.lua:97: Failed to execute template 'cbi/tblsection'.
A runtime error occured: /usr/lib/lua/luci/template.lua:97: Failed to execute template 'cbi/firewall_zoneforwards'.
A runtime error occured: /usr/lib/lua/luci/model/firewall.lua:83: bad argument #2 to 'get' (string expected, got nil)
stack traceback:
	[C]: in function 'assert'
	/usr/lib/lua/luci/dispatcher.lua:433: in function 'dispatch'
	/usr/lib/lua/luci/dispatcher.lua:168: in function 

FW
config defaults
        option syn_flood '1'
        option input 'ACCEPT'
        option output 'ACCEPT'
        option forward 'ACCEPT'
config include
        option path '/etc/firewall.user'
config zone
        option 'vpn'
        option masq '1'
        option input 'ACCEPT'
        option forward 'ACCEPT'
        option output 'ACCEPT'
        option network 'vpn'
config forwarding
        option src 'vpn'
        option dest 'lan'
config include 'miniupnpd'
        option type 'script'
        option path '/usr/share/miniupnpd/firewall.include'
        option family 'any'
        option reload '1'
config rule
        option target 'ACCEPT'
config rule
        option target 'ACCEPT'
config rule
        option target 'ACCEPT'
config zone
        option input 'ACCEPT'
        option forward 'ACCEPT'
        option output 'ACCEPT'
        option network 'lan'
        option name 'lan'
        option masq '1'
        option mtu_fix '1'
config zone
        option name 'wan'
        option input 'ACCEPT'
        option forward 'ACCEPT'
        option output 'ACCEPT'
        option network 'wan'
        option masq '1'
        option mtu_fix '1'
config forwarding
        option dest 'lan'
        option src 'wan'
config forwarding
        option dest 'wan'
        option src 'lan'
config rule
        option name 'Dovoli-openvpn-inbound'
        option target 'ACCEPT'
        option src '*'
        option proto 'udp'
        option dest_port '1194'
config zone
        option name 'vpn'
        option input 'ACCEPT'
option masq '1'
        option forward 'ACCEPT'
        option output 'ACCEPT'
        option network 'vpn0'
config forwarding
        option src 'vpn'
        option dest 'wan'
config forwarding
        option src 'vpn'
        option dest 'lan'

Če ima kdo funkcionalen firewall bi ga prosil, če mi ga lahko pošlje ali pa objavu tu oziroma me zanima kako ga resetirati, brez, da bi resetiral in vse jovo na novo. Glede na to da je sistem na disku me zanima kako dostopati do flash-a pomnilnika kjer je verjetno še nedotaknjena FW datoteka.
SloTech - če nisi z nami, si persona non grata.

BivšiUser2 ::

Ravnokar sem zvedel, da se je opustil razvoj OpenWrtja in da od aprila teče projekt imenovan LEDE. Ima kdo to že nameščeno? Kaka je kompatibilnost z OWRT CC paketi pri nadgradnji (router je Archer C5 V1.2)?
SloTech - če nisi z nami, si persona non grata.

SloSlayer ::

Jaz. Sicer nisem upgradal, vendar bi moralo načeloma delati, saj je LEDE fork OpenWRT-ja.

BivšiUser2 ::

Za vsak slučaj sem vse purgal ter prefleshal na LEDE, opazna sprememva pa je samo kernel (4.4)
SloTech - če nisi z nami, si persona non grata.


Vredno ogleda ...

TemaSporočilaOglediZadnje sporočilo
TemaSporočilaOglediZadnje sporočilo
»

OpenWRT in OpenVPN (strani: 1 2 )

Oddelek: Omrežja in internet
797742 (5602) BivšiUser2
»

Debian Gnu/Linux kot workstation (strani: 1 2 3 437 38 39 40 )

Oddelek: Operacijski sistemi
1960110898 (26572) RedDrake
»

Ubuntu 7.04 + Pinnacle PCTV = slika super, zvoka ni - Linux n00b here (strani: 1 2 )

Oddelek: Operacijski sistemi
705893 (3334) Matthai
»

Težave Mythubuntu - ne dobim/izgubim sliko

Oddelek: Operacijski sistemi
171487 (1330) opeter
»

Ubuntu - par vprašanj

Oddelek: Operacijski sistemi
252139 (1557) 64202

Več podobnih tem