Temat: Problem z wget

Mam dziwny problem z NASem NSA310. Mianowicie na nie mogę pobierać żadnych plików przez wget. Czy to po wpisaniu adresu ip czy domeny. W związku z tym o instalacji z opkg mogę zapomnieć. Co może być przyczyną  takiego stanu rzeczy?

root@OpenWrt:~# opkg update
Downloading http://bartekk.pdg.pl/openwrt/kirkwood/packages/Packages.gz.
wget: can't connect to remote host (91.205.75.118): Network is unreachable
Downloading http://dl.eko.one.pl/attitude_adjustment/kirkwood/packages/Packages.                                                                                        gz.
wget: can't connect to remote host (178.235.241.16): Network is unreachable
Downloading http://downloads.openwrt.org/attitude_adjustment/12.09/kirkwood/gene                                                                                        ric/packages/Packages.gz.
wget: can't connect to remote host (78.24.191.177): Network is unreachable
Collected errors:
 * opkg_download: Failed to download http://bartekk.pdg.pl/openwrt/kirkwood/pack                                                                                        ages/Packages.gz, wget returned 1.
 * opkg_download: Failed to download http://dl.eko.one.pl/attitude_adjustment/ki                                                                                        rkwood/packages/Packages.gz, wget returned 1.
 * opkg_download: Failed to download http://downloads.openwrt.org/attitude_adjus                                                                                        tment/12.09/kirkwood/generic/packages/Packages.gz, wget returned 1.
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=48 time=46.870 ms
64 bytes from 8.8.8.8: seq=1 ttl=48 time=46.605 ms
64 bytes from 8.8.8.8: seq=2 ttl=48 time=54.836 ms
64 bytes from 8.8.8.8: seq=3 ttl=48 time=93.488 ms
64 bytes from 8.8.8.8: seq=4 ttl=48 time=47.992 ms
64 bytes from 8.8.8.8: seq=5 ttl=48 time=60.679 ms
64 bytes from 8.8.8.8: seq=6 ttl=48 time=55.410 ms
^C
--- 8.8.8.8 ping statistics ---
7 packets transmitted, 7 packets received, 0% packet loss
round-trip min/avg/max = 46.605/57.982/93.488 ms
root@OpenWrt:~# ping onet.pl
PING onet.pl (213.180.141.140): 56 data bytes
64 bytes from 213.180.141.140: seq=0 ttl=57 time=29.507 ms
64 bytes from 213.180.141.140: seq=1 ttl=57 time=29.942 ms
64 bytes from 213.180.141.140: seq=2 ttl=57 time=29.525 ms
64 bytes from 213.180.141.140: seq=3 ttl=57 time=29.623 ms
^C
--- onet.pl ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 29.507/29.649/29.942 ms
root@OpenWrt:~# root@OpenWrt:~# opkg update
-ash: root@OpenWrt:~#: not found
root@OpenWrt:~# Downloading http://bartekk.pdg.pl/openwrt/kirkwood/packages/Packages.gz.
-ash: Downloading: not found
root@OpenWrt:~# wget: can't connect to remote host (91.205.75.118): Network is unreachable
> Downloading http://dl.eko.one.pl/attitude_adjustment/kirkwood/packages/Packages.
  gz.
> wget: can't connect to remote host (178.235.241.16): Network is unreachable
-ash: syntax error: unexpected "("root@OpenWrt:~# ping onet.pl

root@OpenWrt:~# Downloading http://downloads.openwrt.org/attitude_adjustment/12.09/kirkwood/gene
                ric/packages/Packages.gz.
-ash: Downloading: not found
root@OpenWrt:~# wget: can't connect to remote host (78.24.191.177): Network is unreachable
> Collected errors:
>  * opkg_download: Failed to download http://bartekk.pdg.pl/openwrt/kirkwood/pack
  ages/Packages.gz, wget returned 1.
>  * opkg_download: Failed to download http://dl.eko.one.pl/attitude_adjustment/ki
  rkwood/packages/Packages.gz, wget returned 1.
>  * opkg_download: Failed to download http://downloads.openwrt.org/attitude_adjus
  tment/12.09/kirkwood/generic/packages/Packages.gz, wget returned 1.
> 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=48 time=46.870 ms
> 64 bytes from 8.8.8.8: seq=1 ttl=48 time=46.605 ms
> 64 bytes from 8.8.8.8: seq=2 ttl=48 time=54.836 ms
> 64 bytes from 8.8.8.8: seq=3 ttl=48 time=93.488 ms
> 64 bytes from 8.8.8.8: seq=4 ttl=48 time=47.992 ms
> 64 bytes from 8.8.8.8: seq=5 ttl=48 time=60.679 ms
> 64 bytes from 8.8.8.8: seq=6 ttl=48 time=55.410 ms
> ^C
> --- 8.8.8.8 ping statistics ---
> 7 packets transmitted, 7 packets received, 0% packet loss
> round-trip min/avg/max = 46.605/57.982/93.488 ms
> root@OpenWrt:~# ping onet.pl
> PING onet.pl (213.180.141.140): 56 data bytes
> 64 bytes from 213.180.141.140: seq=0 ttl=57 time=29.507 ms
> 64 bytes from 213.180.141.140: seq=1 ttl=57 time=29.942 ms
> 64 bytes from 213.180.141.140: seq=2 ttl=57 time=29.525 ms
> 64 bytes from 213.180.141.140: seq=3 ttl=57 time=29.623 ms
> ^C
> --- onet.pl ping statistics ---
> 4 packets transmitted, 4 packets received, 0% packet loss
> round-trip min/avg/max = 29.507/29.649/29.942 ms
> root@OpenWrt:~#
root@OpenWrt:~# opkg list-installed
alsa-lib - 1.0.24.1-1
alsa-utils - 1.0.24.2-2
aria2 - 1.15.1-1
base-files - 118.2-r40431
blkid - 2.21.2-1
block-mount - 0.2.0-9
busybox - 1.19.4-6
cups - 1.4.4-3
ddns-scripts - 1.0.0-21
dropbear - 2011.54-2
ethtool - 3.4.1-1
firewall - 2013-06-29
glib2 - 2.26.1-3
hdparm - 9.39-1
hotplug2 - 1.0-beta-4
iptables - 1.4.10-5
jshn - 2013-10-19-734d28eb1a46358743cf8837c91e5d46695c3b91
kernel - 3.3.8-1-bc9b88a351a28b383f285611067dd1ba
kmod-ata-core - 3.3.8-1
kmod-ata-marvell-sata - 3.3.8-1
kmod-crypto-aes - 3.3.8-1
kmod-crypto-core - 3.3.8-1
kmod-crypto-hash - 3.3.8-1
kmod-crypto-manager - 3.3.8-1
kmod-crypto-mv-cesa - 3.3.8-1
kmod-fs-ext4 - 3.3.8-1
kmod-fs-vfat - 3.3.8-1
kmod-fuse - 3.3.8-1
kmod-hwmon-core - 3.3.8-1
kmod-hwmon-lm85 - 3.3.8-1
kmod-hwmon-vid - 3.3.8-1
kmod-i2c-core - 3.3.8-1
kmod-i2c-mv64xxx - 3.3.8-1
kmod-input-core - 3.3.8-1
kmod-input-evdev - 3.3.8-1
kmod-input-gpio-keys - 3.3.8-1
kmod-ipt-conntrack - 3.3.8-1
kmod-ipt-core - 3.3.8-1
kmod-ipt-nat - 3.3.8-1
kmod-ipt-nathelper - 3.3.8-1
kmod-leds-gpio - 3.3.8-1
kmod-ledtrig-default-on - 3.3.8-1
kmod-ledtrig-heartbeat - 3.3.8-1
kmod-ledtrig-netdev - 3.3.8-1
kmod-ledtrig-timer - 3.3.8-1
kmod-ledtrig-usbdev - 3.3.8-1
kmod-lib-crc-ccitt - 3.3.8-1
kmod-lib-crc16 - 3.3.8-1
kmod-nls-base - 3.3.8-1
kmod-nls-cp437 - 3.3.8-1
kmod-nls-iso8859-1 - 3.3.8-1
kmod-r8169 - 3.3.8-1
kmod-rtc-marvell - 3.3.8-1
kmod-scsi-core - 3.3.8-1
kmod-sound-core - 3.3.8-1
kmod-usb-audio - 3.3.8-1
kmod-usb-core - 3.3.8-1
kmod-usb-printer - 3.3.8-1
kmod-usb-storage - 3.3.8-1
kmod-usb2 - 3.3.8-1
libapr - 1.4.5-2
libaprutil - 1.3.12-2
libblkid - 2.21.2-1
libblobmsg-json - 2013-10-19-734d28eb1a46358743cf8837c91e5d46695c3b91
libbz2 - 1.0.6-1
libc - 0.9.33.2-1
libcurl - 7.29.0-1
libevent2 - 2.0.19-1
libexif - 0.6.19-1
libexpat - 2.0.1-1
libffmpeg-mini - 0.8.7-2
libflac - 1.2.1-1
libfuse - 2.9.0-2
libgcc - 4.6-linaro-1
libiconv - 7
libid3tag - 0.15.1b-3
libip4tc - 1.4.10-5
libip6tc - 1.4.10-5
libiwinfo - 44
libiwinfo-lua - 44
libjpeg - 6b-1
libjson - 0.11-2
libjson-c - 0.11-2
libltdl - 2.4-1
liblua - 5.1.4-8
libmagic - 5.11-1
libmcrypt - 2.5.8-2
libminiupnpc - 1.8-1
libmysqlclient - 5.1.53-7
libncurses - 5.7-5
libncursesw - 5.7-5
libnl-tiny - 0.1-3
libogg - 1.1.4-2
libopenssl - 1.0.1h-1
libpcap - 1.1.1-2
libpcre - 8.11-2
libpng - 1.2.46-2
libpthread - 0.9.33.2-1
libreadline - 5.2-2
librpc - 0.9.32-rc2-0a2179bbc0844928f2a0ec01dba93d9b5d6d41a7
librt - 0.9.33.2-1
libsensors - 3.3.2-1
libsqlite2 - 2.8.17-2
libsqlite3 - 3071201-1
libstdcpp - 4.6-linaro-1
libsysfs - 2.1.0-2
libubox - 2013-10-19-734d28eb1a46358743cf8837c91e5d46695c3b91
libubus - 2013-08-08-b20a8a01c7faea5bcc9d34d10dcf7736589021b8
libubus-lua - 2013-08-08-b20a8a01c7faea5bcc9d34d10dcf7736589021b8
libuci - 2013-06-11.1-1
libuci-lua - 2013-06-11.1-1
libusb - 0.1.12-3
libusb-1.0 - 1.0.9-1
libuuid - 2.21.2-1
libvorbis - 1.2.3-1
libwrap - 7.6-1
libxml2 - 2.7.8-2
libxtables - 1.4.10-5
lighttpd - 1.4.30-2
lighttpd-mod-cgi - 1.4.30-2
lm-sensors - 3.3.2-1
lua - 5.1.4-8
luci - 0.11.1-1
luci-app-firewall - 0.11.1-1
luci-app-minidlna - 0.11.1-1
luci-app-p910nd - 0.11.1-1
luci-app-samba - 0.11.1-1
luci-i18n-english - 0.11+svn9974-1
luci-i18n-polish - 0.11.1-1
luci-lib-core - 0.11.1-1
luci-lib-ipkg - 0.11.1-1
luci-lib-nixio - 0.11.1-1
luci-lib-sys - 0.11.1-1
luci-lib-web - 0.11.1-1
luci-mod-admin-core - 0.11.1-1
luci-mod-admin-full - 0.11.1-1
luci-proto-core - 0.11.1-1
luci-proto-ppp - 0.11.1-1
luci-sgi-cgi - 0.11.1-1
luci-theme-base - 0.11.1-1
luci-theme-bootstrap - 0.11.1-1
luci-theme-openwrt - 0.11.1-1
mc - 4.7.5.3-2
minidlna - 1.0.24-1
mtd - 18.1
mysql-server - 5.1.53-7
nano - 2.2.6-1
netifd - 2013-07-16-2674941b06c1ec67f1aff1bff9212e1372106641
nmap - 6.01-4
ntfs-3g - 2011.4.12-1-fuseext
ntpclient - 2007_365-4
openssl-util - 1.0.1e-1
opkg - 9c97d5ecd795709c8584e972bfdf3aee3a5b846d-3
p910nd - 0.95-2
php5 - 5.4.5-3
php5-cgi - 5.4.5-3
php5-cli - 5.4.5-3
php5-mod-ctype - 5.4.5-3
php5-mod-dom - 5.4.5-3
php5-mod-exif - 5.4.5-3
php5-mod-fileinfo - 5.4.5-3
php5-mod-ftp - 5.4.5-3
php5-mod-gd - 5.4.5-3
php5-mod-hash - 5.4.5-3
php5-mod-iconv - 5.4.5-3
php5-mod-json - 5.4.5-3
php5-mod-mbstring - 5.4.5-3
php5-mod-mcrypt - 5.4.5-3
php5-mod-mysql - 5.4.5-3
php5-mod-mysqli - 5.4.5-3
php5-mod-openssl - 5.4.5-3
php5-mod-pdo - 5.4.5-3
php5-mod-pdo-mysql - 5.4.5-3
php5-mod-pdo-sqlite - 5.4.5-3
php5-mod-session - 5.4.5-3
php5-mod-simplexml - 5.4.5-3
php5-mod-sqlite - 5.4.5-3
php5-mod-sqlite3 - 5.4.5-3
php5-mod-xml - 5.4.5-3
php5-mod-zip - 5.4.5-3
proftpd - 1.3.4b-1
samba36-client - 3.6.5-3
samba36-server - 3.6.5-3
swap-utils - 2.21.2-1
sysfsutils - 2.1.0-2
terminfo - 5.7-5
transmission-daemon - 2.71-1
transmission-web - 2.71-1
uboot-envtools - 2012.04.01-1
ubus - 2013-08-08-b20a8a01c7faea5bcc9d34d10dcf7736589021b8
ubusd - 2013-08-08-b20a8a01c7faea5bcc9d34d10dcf7736589021b8
uci - 2013-06-11.1-1
uclibcxx - 0.2.4-1
uhttpd - 2012-10-30-e57bf6d8bfa465a50eea2c30269acdfe751a46fd
unixodbc - 2.3.1-1
wput - 0.6.2-1
zlib - 1.2.7-1
zoneinfo-core - 2011n-1
zoneinfo-europe - 2011n-1
root@OpenWrt:~#

2

Odp: Problem z wget

route -n pokaż

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

3 (edytowany przez hakerozo 2016-04-17 12:45:09)

Odp: Problem z wget

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.1.2     0.0.0.0         UG    0      0        0 br-lan
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 br-lan

Brama domyślna to u mnie właśnie 192.168.1.2

4

Odp: Problem z wget

Zrób ping google.com

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

5

Odp: Problem z wget

ping google.com
PING google.com (216.58.209.78): 56 data bytes
64 bytes from 216.58.209.78: seq=0 ttl=57 time=25.780 ms
64 bytes from 216.58.209.78: seq=1 ttl=57 time=26.106 ms
64 bytes from 216.58.209.78: seq=2 ttl=57 time=25.874 ms
64 bytes from 216.58.209.78: seq=3 ttl=57 time=25.740 ms
64 bytes from 216.58.209.78: seq=4 ttl=57 time=25.215 ms
64 bytes from 216.58.209.78: seq=5 ttl=57 time=25.609 ms
64 bytes from 216.58.209.78: seq=6 ttl=57 time=25.768 ms
64 bytes from 216.58.209.78: seq=7 ttl=57 time=25.740 ms
64 bytes from 216.58.209.78: seq=8 ttl=57 time=26.201 ms
64 bytes from 216.58.209.78: seq=9 ttl=57 time=25.465 ms
^C
--- google.com ping statistics ---
10 packets transmitted, 10 packets received, 0% packet loss
round-trip min/avg/max = 25.215/25.749/26.201 ms
root@OpenWrt:~#

6

Odp: Problem z wget

wget -O - http://eko.one.pl/host.php

Działa?

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

7 (edytowany przez hakerozo 2016-04-17 13:10:15)

Odp: Problem z wget

Nie, to samo.

root@OpenWrt:~# wget -O - http://eko.one.pl/host.php
Connecting to eko.one.pl (185.23.21.123:80)
wget: can't connect to remote host (185.23.21.123): Network is unreachable
root@OpenWrt:~#

Moze to coś z firewallem ?

8

Odp: Problem z wget

Na 192.168.1.2 nie masz jakiś ograniczeń zrobionych?

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

9 (edytowany przez hakerozo 2016-04-17 13:16:03)

Odp: Problem z wget

Chyba tak, okazało się ze miałem zablokowany ruch przychodzący. Tylko nie kojarzę żebym to zmieniał. Mogło to się przestawić przy konfiguracji qos ?

Czy takie ustawienie firewalla jest w porządku? Oczywiście są też wyjątki dla poszczególnych protów.

config defaults
    option force_router_dns '1'
    option syn_flood '1'
    option input 'ACCEPT'
    option output 'ACCEPT'
    option forward 'REJECT'

config zone
    option name 'lan'
    option output 'ACCEPT'
    option network 'lan'
    option input 'ACCEPT'
    option forward 'REJECT'

config zone
    option name 'wan'
    option masq '1'
    option mtu_fix '1'
    option output 'ACCEPT'
    option network 'wan wan2'
    option forward 'REJECT'
    option input 'ACCEPT'

config include
    option path '/etc/firewall.user'

Firewall na routerze

10

Odp: Problem z wget

Mało tego masz. Zobacz w /rom/etc/config/firewall jak wygląda oryginał, nie masz np. zezwolenia na forwarding lan<>wan.

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

11

Odp: Problem z wget

Dzięki za pomoc. Pododaję co trzeba.