All of lore.kernel.org
 help / color / mirror / Atom feed
From: Darren Hart <dvhart@linux.intel.com>
To: ofono@ofono.org
Subject: ofono-tests internet context: DNS works, ping wget and ssh do not (Connection Refused)
Date: Wed, 09 May 2012 16:06:37 -0700	[thread overview]
Message-ID: <4FAAF87D.7010201@linux.intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 4833 bytes --]

I have successfully used ofono-tests to  enable,online,activate,and
create-internet-context. I have an IP address and added the opendns servers. DNS
appears to be working and the route looks sane-ish.

However, ping, wget, and ssh all fail. ping just sits there, wget and ssh both
fail with Connection Refused.

Is there something obvious/common I might be running into?

I'm using ofono 1.5. The steps I took for context follow:

# ./enable-modem
Connecting modem /mbm_0...

# ./online-modem
Setting modem /mbm_0 online...

# ./activate-context

# ./create-internet-context
Found context /mbm_0/context1

# ifconfig usb0
usb0      Link encap:Ethernet  HWaddr 02:80:37:EC:02:00
          inet addr:10.25.40.80  Bcast:10.25.40.95  Mask:255.255.255.224
          inet6 addr: fe80::80:37ff:feec:200/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6 errors:0 dropped:0 overruns:0 frame:0
          TX packets:41 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:846 (846.0 B)  TX bytes:28270 (27.6 KiB)

# cat /etc/resolv.conf # Generated by Connection Manager
nameserver 208.67.222.222
nameserver 208.67.220.220
nameserver 127.0.0.1

# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         10.25.40.66     0.0.0.0         UG    0      0        0 usb0
10.25.40.64     0.0.0.0         255.255.255.224 U     0      0        0 usb0
10.25.40.66     0.0.0.0         255.255.255.255 UH    0      0        0 usb0
172.18.7.170    10.25.40.66     255.255.255.255 UGH   0      0        0 usb0

# ping dvhart.com                                     PING dvhart.com (184.154.165.98): 56 data bytes                                    ^C                                                                                 --- dvhart.com ping statistics ---                                                 1 packets transmitted, 0 packets received, 100% packet loss          
# wget http://www.dvhart.com/darren/hello             Connecting to www.dvhart.com (184.154.165.98:80)                                   wget: can't connect to remote host (184.154.165.98): Connection refused

# ssh dvhart(a)dvhart.com                               ssh: Exited: Error connecting: Connection refused

After disabling usb0 and bringup eth0, all of the above commands work as
expected.


And finally, I saved the output of list-modems off, but I don't recall
when in the process, but I'm including it for the modem information, etc:

# ./list-modems [ /mbm_0 ]
    Features = gprs net cbs ussd gps sms stk rat sim     Emergency = 0
    Powered = 1
    Lockdown = 0
    Interfaces = org.ofono.ConnectionManager org.ofono.NetworkRegistration org.ofono.CellBroadcast org.ofono.SupplementaryServices org.ofono.LocationReporting org.ofono.SmartMessaging org.ofono.PushNotification org.ofono.MessageManager org.ofono.SimToolkit org.ofono.RadioSettings org.ofono.SimManager     Online = 1
    Model = F5521gw
    Revision = R2A07(R2A07)
    Type = hardware
    Serial = 356215040140315
    Manufacturer = Ericsson
    [ org.ofono.ConnectionManager ]
        Powered = 1
        Attached = 1
        Bearer = none
        Suspended = 0
        RoamingAllowed = 0
    [ org.ofono.NetworkRegistration ]
        Status = registered
        Strength = 80
        Name = AT&T
        LocationAreaCode = 33998
        Mode = auto-only
        MobileCountryCode = 310
        Technology = hspa
        CellId = 13805302
        MobileNetworkCode = 410
    [ org.ofono.CellBroadcast ]
        Topics =         Powered = 1
    [ org.ofono.SupplementaryServices ]
        State = idle
    [ org.ofono.LocationReporting ]
        Type = nmea
        Enabled = 0
    [ org.ofono.SmartMessaging ]
    [ org.ofono.PushNotification ]
    [ org.ofono.MessageManager ]
        Alphabet = default
        UseDeliveryReports = 0
        Bearer = cs-preferred
        ServiceCenterAddress = +13123149810
    [ org.ofono.SimToolkit ]
        IdleModeIcon =         MainMenuTitle =         MainMenu =         MainMenuIcon =     [ org.ofono.RadioSettings ]
        TechnologyPreference = any
    [ org.ofono.SimManager ]
        Retries = [pin2 = 3] [puk2 = 10] [pin = 3] [puk = 10]         MobileCountryCode = 310
        FixedDialing = 0
        SubscriberNumbers =         PreferredLanguages = en         BarredDialing = 0
        CardIdentifier = 89014104254691314226
        LockedPins =         MobileNetworkCode = 410
        SubscriberIdentity = 310410469131422
        Present = 1
        PinRequired = none



Thanks,

-- 
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel

             reply	other threads:[~2012-05-09 23:06 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-09 23:06 Darren Hart [this message]
     [not found] <4FAAF3DB.2080007@linux.intel.com>
2012-05-10 15:33 ` ofono-tests internet context: DNS works, ping wget and ssh do not (Connection Refused) Denis Kenzior
2012-05-10 18:18   ` Darren Hart
2012-05-10 19:00     ` Denis Kenzior
2012-05-10 20:55       ` Darren Hart
2012-05-10 21:39         ` Denis Kenzior
2012-05-10 21:50         ` Darren Hart
2012-05-11  0:46           ` Denis Kenzior
2012-05-11  4:22             ` Darren Hart

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4FAAF87D.7010201@linux.intel.com \
    --to=dvhart@linux.intel.com \
    --cc=ofono@ofono.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.