OpenWrt Forum Archive

Topic: Newbie problem -- can ping remote in SSH terminal but wget times out

The content of this topic has been archived on 7 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I have read through the common mistakes and the faq.

I have checked the wiki and seen and applied this firewall rule:

uci set firewall.@zone[0].forward=ACCEPT; uci commit firewall; /etc/init.d/firewall restart

from an ssh terminal command line as I read to do here:

http://wiki.openwrt.org/oldwiki/openwrt … figuration

Here is my configuration
root@OpenWrt:~# cat /etc/openwrt_version
8.09 (banner at ssh login says: KAMIKAZE (8.09.1, r16278) )

and user firewall
root@OpenWrt:~# cat /etc/firewall.user
# This file is interpreted as shell script.
# Put your custom iptables rules here, they will
# be executed with each firewall (re-)start.

I am running on a WRT54GS v. 2 which runs off of a Netgear FVS114

Basically, I  can ping any other machine on the network successfully while logged into the router as root via ssh, but when I attempt to use:

opkg update

I receive a timeout msg.

root@OpenWrt:~# opkg update
Downloading http://downloads.openwrt.org/kamikaze/8 … ackages.gz
Connecting to downloads.openwrt.org (195.56.146.238:80)
wget: cannot connect to remote host (195.56.146.238): Connection timed out

My network looks like this:

cable modem
|
netgear fvs114 via wan port-> wired machines on this network can access the internet and run the same wget command
|
wrt54gs via wan port -> wired/wireless machines on this network can access the internet and run the same wget command

When I ssh into the wrt54gs router itself, however, to run opkg update, for example, the connection times out.

Can anyone please suggest what I should do so that I can successfully run opkg update? The linksys must stay behind the netgear.

Thank you!

Piesia

EDIT: I reinstalled with an X-WRT image (openwrt-brcm-2.4-squashfs.trx) from luci's Update Firmware and am now running x-wrt.
The error msg is the same, but formatted slightly differently so I'll add it for completeness.

It is a slightly older version: 8.09, r15452, and /etc/firewall.user does NOT exist
----------------------
root@OpenWrt:~# opkg update
Downloading http://downloads.openwrt.org/kamikaze/8 … ackages.gz
Connecting to downloads.openwrt.org (195.56.146.238:80)
wget: cannot connect to remote host (195.56.146.238): Connection timed out
Downloading http://downloads.x-wrt.org/xwrt/kamikaz … s/Packages
Connecting to downloads.x-wrt.org (88.198.39.176:80)
wget: cannot connect to remote host (88.198.39.176): Connection timed out
Collected errors:
* opkg_download: ERROR: Command failed with return value 1: `wget --passive-ftp    -P /tmp/opkg-Zaqt23 http://downloads.openwrt.org/kamikaze/8.09/brcm-2.4/packages/Packages.gz'
* opkg_download: ERROR: Command failed with return value 1: `wget --passive-ftp    -P /tmp/opkg-Zaqt23 http://downloads.x-wrt.org/xwrt/kamikaze/8.09/brcm-2.4/packages/Packages'

P.

I can ssh into the router or get into x-wrt via a web browser while I am on a wired connection to the WRT54GS, but I cannot when attached to the netgear fvs114. Perhaps I just missed an option to administer the router via the wan port or perhaps this is also a symptom of the problem. I'm not sure so I mention it.

P.

(Last edited by piesia on 8 Aug 2009, 14:21)

(bump)

I have also tried something from here <https://forum.openwrt.org/viewtopic.php?id=21114>

route add default gw `uci get network.wan.gateway`

and

route add default gw (ip address of fvs114).

Nothing works so far. "opkg update" still reports:

root@OpenWrt:~# opkg update
Downloading http://downloads.openwrt.org/kamikaze/8 … ackages.gz
Connecting to downloads.openwrt.org (195.56.146.238:80)
wget: cannot connect to remote host (195.56.146.238): Connection timed out

My network settings are:

root@OpenWrt:/etc# cat /etc/config/network

config 'switch' 'eth0'
        option 'vlan0' '1 2 3 4 5*'
        option 'vlan1' '0 5'

config 'interface' 'loopback'
        option 'ifname' 'lo'
        option 'proto' 'static'
        option 'ipaddr' '127.0.0.1'
        option 'netmask' '255.0.0.0'

config 'interface' 'lan'
        option 'ifname' 'eth0.0'
        option 'proto' 'static'
        option 'netmask' '255.255.255.0'
        option 'macaddr' ''
        option 'ipaddr' '192.168.1.23'                                   <-- WRT54GS v 2
        option 'ip6addr' ''
        option 'gateway' '192.168.1.22'                                 <-- fvs114
        option 'ip6gw' ''
        option 'type' 'bridge'
        option 'dns' ' 192.168.1.22'

config 'interface' 'wan'
        option 'ifname' 'eth0.1'
        option 'proto' 'dhcp'
        option 'macaddr' ''
        option 'ipaddr' '192.168.1.147'           <--WRT54GS v 2
        option 'ip6addr' ''
        option 'netmask' '255.255.255.0'
        option 'gateway' '192.168.1.22'          <--fvs114
        option 'ip6gw' ''
        option 'dns' '208.67.222.222 208.67.220.220'
        option 'type' 'bridge'

Thanks for any help!

Piesia

(Last edited by piesia on 12 Aug 2009, 12:53)

(bump)

Any ideas, please?

P.

Same problem with opkg update, I also cannot directly download a file with wget either
e.g. wget http://downloads.openwrt.org/kamikaze/8 … ackages.gz

However, I could download the same file with the same wget command from a remote computer I have access to.
Also, the openwrt.org website sometimes is inaccessible, then later I can access it again. So I quick downloaded all the packages I thought I might want, and can copy them over later and install them locally.

Seems like others in the forum are having problems accessing openwrt.org

The discussion might have continued from here.