Odp: 3ginfo ze wsparciem dla modemów Huawei HiLink
99-hilink-pin.sh, próbowałem go wgrać przez SSH do routera ale wyświetla mi że strona dl.eko.one.pl nie istnieje
Nie jesteś zalogowany. Proszę się zalogować lub zarejestrować.
eko.one.pl → Oprogramowanie / Software → 3ginfo ze wsparciem dla modemów Huawei HiLink
Strony Poprzednia 1 2 3 4 5 6 … 11 Następna
Zaloguj się lub zarejestruj by napisać odpowiedź
99-hilink-pin.sh, próbowałem go wgrać przez SSH do routera ale wyświetla mi że strona dl.eko.one.pl nie istnieje
Istnieje albo nie masz połączenia z internetem albo nie wiem co. Pokaż jak to robisz.
przez putty, po podaniu loginu: root i hasla, pożniej wpisuję podaną linijkę:
wget -O /etc/hotplug.d/iface/99-hilink-pin.sh http://dl.eko.one.pl/projekty/hilink/99-hilink-pin.sh
----------------------------------------------------------------
| |
| Gargoyle PL 1.6.2.2 (b70bfc1) |
| OpenWrt Attitude Adjustment 12.09.1 (r42647) |
| Build time: 2014-09-27 09:44 CEST |
| |
| Cezary Jackiewicz (obsy), http://eko.one.pl |
| |
----------------------------------------------------------------
| Machine: TP-Link TL-MR3420 v1 |
| Uptime: 0d, 03:07:31 |
| Load: 0.08 0.03 0.05 |
| Flash: total: 320KB, free: 88KB, used: 73% |
| Memory: total: 28.5MB, free: 15.4MB, used: 46% |
| WAN: 192.168.8.100, proto: dhcp |
| LAN: 192.168.2.1 |
| WLAN: mode: ap, ssid: OpenWrt8, channel: 3, conn: 0 |
----------------------------------------------------------------
root@Gargoyle:~# wget -O /etc/hotplug.d/iface/99-hilink-pin.sh http://dl.eko.one.pl/projekty/99-hilink-pin.sh
wget: bad address 'dl.eko.one.pl'
root@Gargoyle:~#
root@Gargoyle:~#
A w ogóle masz to połączenie z internetem? Zrób
ping google.com
ping eko.one.pl
ping dl.eko.one.pl
Miałem połączenie na pewno, modem E3372 miałem wpięty bezpośrednio do komputera, z którego zresztą pisałem na forum. Router połączony kablem z kompem.
Sprawdzę pingi dzisiaj popołudniu.
Tak się zastanawiam czy to, że chyba miałem też uruchomione na kompie wifi podłączone do sieci bez internetu ma znaczenie...
A co ma do tego modem wpięty do komputera? Na routerze masz mieć internet, przecież plik chcesz ściągnąć z internetu na routerze. Chciesz to inaczej to ściągnij plik na komputerze i prześlij do routera przez winscp.
Ok, więc wpiąłem do routera stary modem 3G (E353) i skonfigurowałem przez gui, następnie przez SSH wgrałem skrypt i dodałem pin:
root@Gargoyle:~# wget -O /etc/hotplug.d/iface/99-hilink-pin.sh http://dl.eko.one.pl/projekty/hilink/99-hili
nk-pin.sh
Connecting to dl.eko.one.pl (178.235.241.16:80)
99-hilink-pin.sh 100% |**********************************************************| 1306 0:00:00 ETA
root@Gargoyle:~# uci set network.wan.pincode=1111
root@Gargoyle:~# uci commit
po restarcie przez gui skonfigurowałem pod modem Hilink: połączenie "Kablowe (DHCP)", interfejs eth2, po zapisaniu i odświeżeniu dzierżawy pokazał Aktualne IP:192.168.8.100 ale modem nie łączy się (miga na zielono).
Logi:
Jan 26 20:28:02 Gargoyle daemon.info dnsmasq[1727]: exiting on receipt of SIGTERM
Jan 26 20:28:03 Gargoyle kern.info kernel: [ 309.780000] device wlan0 left promiscuous mode
Jan 26 20:28:03 Gargoyle kern.info kernel: [ 309.790000] br-lan: port 2(wlan0) entered disabled state
Jan 26 20:28:04 Gargoyle kern.info kernel: [ 311.580000] eth0: link down
Jan 26 20:28:04 Gargoyle kern.info kernel: [ 311.580000] br-lan: port 1(eth0) entered disabled state
Jan 26 20:28:05 Gargoyle kern.info kernel: [ 312.650000] device eth0 left promiscuous mode
Jan 26 20:28:05 Gargoyle kern.info kernel: [ 312.660000] br-lan: port 1(eth0) entered disabled state
Jan 26 20:28:06 Gargoyle daemon.notice netifd: Interface 'lan' is now up
Jan 26 20:28:06 Gargoyle kern.info kernel: [ 313.710000] device eth0 entered promiscuous mode
Jan 26 20:28:07 Gargoyle daemon.notice netifd: Interface 'loopback' is now up
Jan 26 20:28:07 Gargoyle user.notice firewall: Reloading firewall due to ifup of lan (br-lan)
Jan 26 20:28:07 Gargoyle daemon.notice netifd: wan (2946): udhcpc (v1.19.4) started
Jan 26 20:28:07 Gargoyle daemon.notice netifd: wan (2946): Sending discover...
Jan 26 20:28:07 Gargoyle kern.info kernel: [ 314.310000] eth0: link up (1000Mbps/Full duplex)
Jan 26 20:28:07 Gargoyle kern.info kernel: [ 314.310000] br-lan: port 1(eth0) entered forwarding state
Jan 26 20:28:07 Gargoyle kern.info kernel: [ 314.320000] br-lan: port 1(eth0) entered forwarding state
Jan 26 20:28:07 Gargoyle daemon.notice netifd: wan (2946): Sending select for 192.168.8.100...
Jan 26 20:28:07 Gargoyle daemon.notice netifd: wan (2946): Lease of 192.168.8.100 obtained, lease time 86400
Jan 26 20:28:07 Gargoyle daemon.notice netifd: Interface 'wan' is now up
Jan 26 20:28:09 Gargoyle kern.info kernel: [ 316.320000] br-lan: port 1(eth0) entered forwarding state
Jan 26 20:28:11 Gargoyle kern.info kernel: [ 318.650000] device wlan0 entered promiscuous mode
Jan 26 20:28:12 Gargoyle kern.info kernel: [ 318.980000] br-lan: port 2(wlan0) entered forwarding state
Jan 26 20:28:12 Gargoyle kern.info kernel: [ 318.990000] br-lan: port 2(wlan0) entered forwarding state
Jan 26 20:28:12 Gargoyle daemon.info hostapd: wlan0: STA 54:27:1e:28:06:03 IEEE 802.11: authenticated
Jan 26 20:28:12 Gargoyle daemon.info hostapd: wlan0: STA 54:27:1e:28:06:03 IEEE 802.11: associated (aid 1)
Jan 26 20:28:12 Gargoyle daemon.info hostapd: wlan0: STA 54:27:1e:28:06:03 WPA: pairwise key handshake completed (WPA)
Jan 26 20:28:13 Gargoyle daemon.info hostapd: wlan0: STA 54:27:1e:28:06:03 WPA: group key handshake completed (WPA)
Jan 26 20:28:14 Gargoyle kern.info kernel: [ 320.990000] br-lan: port 2(wlan0) entered forwarding state
Jan 26 20:28:16 Gargoyle user.notice dnsmasq: DNS rebinding protection is active, will discard upstream RFC1918 responses!
Jan 26 20:28:16 Gargoyle user.notice dnsmasq: Allowing 127.0.0.0/8 responses
Jan 26 20:28:16 Gargoyle user.notice dnsmasq: Allowing RFC1918 responses for domain free.aero2.net.pl
Jan 26 20:28:19 Gargoyle daemon.info dnsmasq[3253]: started, version 2.66 cachesize 150
Jan 26 20:28:19 Gargoyle daemon.info dnsmasq[3253]: compile time options: no-IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth
Jan 26 20:28:19 Gargoyle daemon.info dnsmasq-dhcp[3253]: DHCP, IP range 192.168.2.100 -- 192.168.2.249, lease time 12h
Jan 26 20:28:19 Gargoyle daemon.info dnsmasq[3253]: using local addresses only for domain lan
Jan 26 20:28:19 Gargoyle daemon.info dnsmasq[3253]: reading /tmp/resolv.conf.auto
Jan 26 20:28:19 Gargoyle daemon.info dnsmasq[3253]: using nameserver 192.168.8.1#53
Jan 26 20:28:19 Gargoyle daemon.info dnsmasq[3253]: using nameserver 192.168.8.1#53
Jan 26 20:28:19 Gargoyle daemon.warn dnsmasq[3253]: ignoring nameserver 192.168.2.1 - local interface
Jan 26 20:28:19 Gargoyle daemon.info dnsmasq[3253]: using local addresses only for domain lan
Jan 26 20:28:19 Gargoyle daemon.info dnsmasq[3253]: read /etc/hosts - 2 addresses
Jan 26 20:28:19 Gargoyle daemon.info dnsmasq-dhcp[3253]: read /etc/ethers - 0 addresses
Jan 26 20:28:22 Gargoyle daemon.info dnsmasq-dhcp[3253]: DHCPREQUEST(br-lan) 192.168.2.167 54:27:1e:28:06:03
Jan 26 20:28:22 Gargoyle daemon.info dnsmasq-dhcp[3253]: DHCPACK(br-lan) 192.168.2.167 54:27:1e:28:06:03 BPW
Jan 26 20:28:24 Gargoyle daemon.info dnsmasq-dhcp[3253]: DHCPREQUEST(br-lan) 192.168.2.189 e0:3f:49:d3:c0:ff
Jan 26 20:28:24 Gargoyle daemon.info dnsmasq-dhcp[3253]: DHCPACK(br-lan) 192.168.2.189 e0:3f:49:d3:c0:ff BPW
Jan 26 20:28:34 Gargoyle daemon.warn dnsmasq[3253]: possible DNS-rebind attack detected: skydrive.wns.windows.com
Jan 26 20:28:34 Gargoyle daemon.warn dnsmasq[3253]: possible DNS-rebind attack detected: skydrive.wns.windows.com
Jan 26 20:28:38 Gargoyle user.notice firewall: Reloading firewall due to ifup of wan (eth2)
Jan 26 20:28:39 Gargoyle daemon.warn dnsmasq[3253]: possible DNS-rebind attack detected: fonts.googleapis.com
Jan 26 20:28:39 Gargoyle daemon.warn dnsmasq[3253]: possible DNS-rebind attack detected: fonts.googleapis.com
Jan 26 20:28:39 Gargoyle daemon.warn dnsmasq[3253]: possible DNS-rebind attack detected: fonts.googleapis.com
Jan 26 20:28:39 Gargoyle daemon.warn dnsmasq[3253]: possible DNS-rebind attack detected: fonts.googleapis.com
Jan 26 20:28:42 Gargoyle daemon.warn dnsmasq[3253]: possible DNS-rebind attack detected: 3.pool.ntp.org
Jan 26 20:28:42 Gargoyle daemon.warn dnsmasq[3253]: possible DNS-rebind attack detected: 2.pool.ntp.org
Jan 26 20:28:42 Gargoyle daemon.warn dnsmasq[3253]: possible DNS-rebind attack detected: 1.pool.ntp.org
Jan 26 20:28:42 Gargoyle daemon.warn dnsmasq[3253]: possible DNS-rebind attack detected: 0.pool.ntp.org
Jak pisałem - może masz firmware który wymaga wgeta żeby ten pin działał. To możesz sprawdzić ręcznie wykonując odpowiednie polecenia. Api hilinka jest dostępne, możesz sprawdzić czy tak jest.
Czy da się jakoś "zdublować" 3ginfo mając dwie karty w dwóch modemach? Chodzi o to, że np. pod mojadres.pl:81 byłaby obsługa jednego modemu a np. pod mojadres.pl:82 drugiego?
Jest coś takiego możliwe?
Domyślnie 3ginfo korzysta tylko z jednego modemu wpisanego w konfigu. Jak zrobisz sobie dwa skrypty wołające inne urządzenia to tak.
Można to w jakiś prosty sposób zrobić?
Edytując skrypty...
Czyli kupa roboty bo już to próbowałem i coś tam spieprzyłem, że nawet nie hulało Ok dzięki za odp.
Zrób tylko index2.html - w nim zamiast wołać 3ginfo to najpierw ustaw przez uci interfejs na ten drugi, wywołaj 3ginfo, zrób revert konfiga - bez uci commit. wtedy pod index.html masz jeden, pod index2.html masz drugi modem.
Nie bardzo rozumiem Mam utworzyć w usr\share\3ginfo index2.html z taką samą zawartością jak index.html zmieniam przez uci interfejs na odpowiedni bez uci commit wracam do pierwotnej konfiguracji tak?
tak
Niestety takie rozwiązanie nie działa wchodząc standardowo pod mójadres.pl:81 oraz pod mójadres.pl:81/index2.html zarówno pod jedną lokalizacją jak i pod drugą mam ten sam modem :-/
Więc nie zmieniasz interfejsu. Pokaż ten index2.html
Jest taki jak index.html niestety nie mogę załączyć tutaj bo przy próbie wysłania wiadomości pojawia się:
403
Forbidden
Access to this resource on the server is denied!
Ale możesz na pastebin wystawić.
No tak http://pastebin.com/KAA6Mzf9
I powiedź mi gdzie w tym masz zmianę interfejsu? Przecież on jest identyczny jak index.html, to jak chciałeś żeby wyświetlał coś innego? Ehh....
Patrz na linię <body onload="trzyginfo('cgi-bin/3ginfo.sh',0);">, tu jest wywołanie skryptu.
EDIT: Lepsza propozycja: zrób tu wywoałanie 3ginfo1.sh, skopiuj 3ginfo.sh jako 3ginfo1.sh w a nim zamiast odczytywać 3ginfo.@3ginfo[0].device czytaj 3ginfo.@3ginfo[0].device1. W konfigu ustawisz sobie dwa interfejsy które chcesz i będziesz miał dwie strony z parametrami różnych modemów.
Super dzięki działa, a czy obsługę limitu danych, smsów i ussd można jakoś zrealizować dla drugiego modemu? Bo w takiej konfiguracji to jest tylko strona czołowa z parametrami a jak chcę odczytać sms czy kod ussd to jest realizowany z podstawowego modemu tj. z 3ginfo.@3ginfo[0].device a nie z 3ginfo.@3ginfo[0].device1
Bo te inne skrypty też musisz powielić i zmienić. Zobacz je w katalogu 3ginfo.
Wszystko pozmieniałem na ***1 (z jedynką na końcu) oraz wszędzie tam gdzie było device czy scripts pozmieniałem z końcówką na ***1 oczywiście dublując wszystko i niestety jak sprawdzam pod mojadres.pl:81/index2.html smsy to przekierowuje mnie na mojadres.pl:81/cgi-bin/sms.sh i odczytuje smsy z device a nie device1
Strony Poprzednia 1 2 3 4 5 6 … 11 Następna
Zaloguj się lub zarejestruj by napisać odpowiedź
eko.one.pl → Oprogramowanie / Software → 3ginfo ze wsparciem dla modemów Huawei HiLink
Forum oparte o PunBB, wspierane przez Informer Technologies, Inc