Re: 3G not navigate

2009-05-22 Thread Stuart Henderson
thanks for the detailed information in your post! everything important
is there, with a good explanation of the problem, and it's collected in
a single email.

On 2009-05-22, Murilo da Silva Ijanc mur...@dotbsd.org wrote:
 Hello misc@,

 I am trying to use 3G technology in OpenBSD. Currently my problem is that
 I can not navigate, I modified the dns's, and exchanged some information
 from  /etc/ppp/options, still not provided. Below some information that
 might help in solving the problem:

 /etc/ppp/options

that file is used by pppd, not ppp.

 /etc/ppp/ppp.conf

this is the right one for the program you're using.

 4 packets transmitted, 4 packets received, 0.0% packet loss
 round-trip min/avg/max/std-dev = 494.942/593.611/679.708/70.161 ms

 lynx www.openbsd.org

 HTTP request sent; waiting for response.
  .. 10 min . 20 min

this might be a problem with Van Jacobson header compression.
some devices don't support it correctly, and the usual symptom
is that ping/udp work but tcp fails.

you can try adding this to ppp.conf:

 disable vjcomp
 deny vjcomp

does that help?



Re: 3G not navigate

2009-05-22 Thread Murilo da Silva Ijanc
Stuart Thanks for responding, sorry for the delay, different zones =]

I added the lines (vjcomp disable and deny vjcomp) in ppp.conf, however
still the same problem.

 thanks for the detailed information in your post! everything important
 is there, with a good explanation of the problem, and it's collected in
 a single email.

 On 2009-05-22, Murilo da Silva Ijanc mur...@dotbsd.org wrote:
 Hello misc@,

 I am trying to use 3G technology in OpenBSD. Currently my problem is
 that
 I can not navigate, I modified the dns's, and exchanged some information
 from  /etc/ppp/options, still not provided. Below some information that
 might help in solving the problem:

 /etc/ppp/options

 that file is used by pppd, not ppp.

 /etc/ppp/ppp.conf

 this is the right one for the program you're using.

 4 packets transmitted, 4 packets received, 0.0% packet loss
 round-trip min/avg/max/std-dev = 494.942/593.611/679.708/70.161 ms

 lynx www.openbsd.org

 HTTP request sent; waiting for response.
  .. 10 min . 20 min

 this might be a problem with Van Jacobson header compression.
 some devices don't support it correctly, and the usual symptom
 is that ping/udp work but tcp fails.

 you can try adding this to ppp.conf:

  disable vjcomp
  deny vjcomp

 does that help?




-- 
MuriloBSD
silc.dotbsd.org, dotbsd
http://www.dotbsd.org/



Re: 3G not navigate

2009-05-22 Thread Fred Crowson
On 5/22/09, Murilo da Silva Ijanc mur...@dotbsd.org wrote:
 Stuart Thanks for responding, sorry for the delay, different zones =]

 I added the lines (vjcomp disable and deny vjcomp) in ppp.conf, however
 still the same problem.


what happens when you do an nslookup(1) ?

Have you tried pppd(8)?  Does that give you a different result?

Thanks

Fred



Re: 3G not navigate

2009-05-22 Thread Murilo da Silva Ijanc
Hi Fred,
Hi Fred,

It seems that nslookup is normal, see:

# nslookup www.google.com
Server: 208.67.222.222
Address: 208.67.222.222 # 53

Non-authoritative answer:
Canonical name = www.google.com google.navigation.opendns.com.
Name: google.navigation.opendns.com
Address: 208.69.32.231
Name: google.navigation.opendns.com
Address: 208.69.32.230

# nslookup www.openbsd.org
Server: 208.67.222.222
Address: 208.67.222.222 # 53

Non-authoritative answer:
Name: www.openbsd.org
Address: 129.128.5.191

I had no opportunity to use pppd, I read the man or get information on
google on setting up 3G in pppd.

Thanks

 On 5/22/09, Murilo da Silva Ijanc mur...@dotbsd.org wrote:
 Stuart Thanks for responding, sorry for the delay, different zones =]

 I added the lines (vjcomp disable and deny vjcomp) in ppp.conf, however
 still the same problem.


 what happens when you do an nslookup(1) ?

 Have you tried pppd(8)?  Does that give you a different result?

 Thanks

 Fred




-- 
MuriloBSD
silc.dotbsd.org, dotbsd
http://www.dotbsd.org/



Re: 3G not navigate

2009-05-22 Thread Murilo da Silva Ijanc
I tried using pppd do not succeed, it returns me to the log:

Murilo may 22 10:31:58 pppd [19228]: pppd 2.3.5 started by murilobsd, uid 0
Murilo may 22 10:32:01 pppd [19228]: Connect script failed
May 22 10:32:03 Murilo pppd: Exit.

My Settings:

/etc/ppp/chat-claro

ABORT BUSY
ABORT 'NO CARRIER'
ABORT ERROR
REPORT CONNECT
TIMEOUT 60
SAY Calling ... \n
'' ATZ
'' 'AT + COPS? 
'' AT_OPSYS = 3
'' 'AT + CSQ 
'' 'AT + CGDCONT = 1, ip, bandalarga.claro.com.br'
'' ATD * 99 *** 1 #
CONNECT \d\c

/etc/ppp/pap-secrets

# $ OpenBSD: pap-secrets, v 1.3 2002/06/09 06:15:15 todd Exp $

# Secrets for authentication using PAP
# Client server secret IP addresses
claro  *   pass

/etc/ppp/peers/claro

ttyU0
384000
idle 7200
lock
debug
crtscts
modem
noauth
defaultroute
ipcp-restart 10
ipcp-accept-local
ipcp-accept-remote
0.0.0.0:10.64.64.64
noipdefault
novj
connect /usr/sbin/chat -v -f /etc/ppp/chat-claro

# cu -l /dev/ttyU0
ATI
Manufacturer: huawei
Model: E156B
Revision: 11.609.05.00.150
IMEI: 358642020845993
+GCAP: +CGSM,+DS,+ES

OK
~
[EOT]
#

 Hi Fred,

 It seems that nslookup is normal, see:

 # nslookup www.google.com
 Server: 208.67.222.222
 Address: 208.67.222.222 # 53

 Non-authoritative answer:
 Canonical name = www.google.com google.navigation.opendns.com.
 Name: google.navigation.opendns.com
 Address: 208.69.32.231
 Name: google.navigation.opendns.com
 Address: 208.69.32.230

 # nslookup www.openbsd.org
 Server: 208.67.222.222
 Address: 208.67.222.222 # 53

 Non-authoritative answer:
 Name: www.openbsd.org
 Address: 129.128.5.191

 I had no opportunity to use pppd, I read the man or get information on
 google on setting up 3G in pppd.

 Thanks

 On 5/22/09, Murilo da Silva Ijanc mur...@dotbsd.org wrote:
 Stuart Thanks for responding, sorry for the delay, different zones =]

 I added the lines (vjcomp disable and deny vjcomp) in ppp.conf, however
 still the same problem.


 what happens when you do an nslookup(1) ?

 Have you tried pppd(8)?  Does that give you a different result?

 Thanks

 Fred




 --
 MuriloBSD
 silc.dotbsd.org, dotbsd
 http://www.dotbsd.org/



-- 
MuriloBSD
silc.dotbsd.org, dotbsd
http://www.dotbsd.org/



Re: 3G not navigate

2009-05-22 Thread Peter N. M. Hansteen
Murilo da Silva Ijanc mur...@dotbsd.org writes:

 I tried using pppd do not succeed, it returns me to the log:

 Murilo may 22 10:31:58 pppd [19228]: pppd 2.3.5 started by murilobsd, uid 0
 Murilo may 22 10:32:01 pppd [19228]: Connect script failed
 May 22 10:32:03 Murilo pppd: Exit.

Try enabling debug and edit your syslog.conf so the debug output
appears somewhere sensible.  tail -f of that log file will be quite
revealing.  To get my huawei e220 to work here I mainly followed
http://www.jensolsson.se/?p=123, fiddled more than I should when all
that was wrong was the device name, but anyway what I have is

$ cat /etc/ppp/peers/netcom
debug
/dev/cuaU0
crtscts
921600
defaultroute
noauth
:10.64.64.64
connect chat -v -f /etc/ppp/peers/netcom.chat

$ cat /etc/ppp/peers/netcom.chat
ABORT NO CARRIER
ABORT NO DIALTONE
ABORT ERROR
ABORT NO ANSWER
ABORT BUSY
ABORT Username/Password Incorrect
TIMEOUT 15
 ATZ
OK ATE1
OK ATQ0V1E1S0=0C1D2+FCLASS=0
OK `AT+CGDCONT=1,IP,internet.netcom.no`
OK ATDT*99***#
TIMEOUT 30
CONNECT \d\c

at least it gives me the opportunity to move some bytes.  Could likely
be tweaked further but then I don't use it all that much

- Peter

-- 
Peter N. M. Hansteen, member of the first RFC 1149 implementation team
http://bsdly.blogspot.com/ http://www.bsdly.net/ http://www.nuug.no/
Remember to set the evil bit on all malicious network traffic
delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.



Re: 3G not navigate

2009-05-22 Thread Tero Koskinen
Hi,

On Fri, 22 May 2009 01:02:31 -0300 (BRT) Murilo da Silva Ijanc wrote:

 Hello misc@,
 
 I am trying to use 3G technology in OpenBSD.

I have Huawei E220. After a few days of tweaking, I got it working pretty
well. There are some caveats however. (See below)

 $ ping -c 4 www.google.com
 PING google.navigation.opendns.com (208.69.32.231): 56 data bytes
 64 bytes from 208.69.32.231: icmp_seq=0 ttl=51 time=679.708 ms

For some reason ping times are big with user space ppp.
(600+ ms vs. 150ms with in-kernel ppp)

 lynx www.openbsd.org
 
 HTTP request sent; waiting for response.
  .. 10 min . 20 min

With user space ppp, I had to set MTU to 900 before web browsing
worked. I think I did that using set mrru 900 in /etc/ppp/ppp.conf.

I recommend that you try kernel mode ppp using pppd. There you can
use bigger MTU/MRRU.

My setup is following:
$ cat /etc/ppp/mokkula
#!/bin/sh

ifconfig ppp0 destroy 1/dev/null 21
ifconfig ppp0 create
route delete default 1/dev/null 21
/usr/sbin/pppd /dev/cuaU0 460800 connect '/usr/sbin/chat -f 
/etc/ppp/peers/elisa2.chat'
sleep 12

$ cat /etc/ppp/peers/elisa2.chat
ABORT BUSY
ABORT ERROR
ABORT NO CARRIER
ABORT VOICE
ABORT NO DIALTONE
 AT
OK AT+CGDCONT=1,IP,internet,0.0.0.0,0,0
OK ATDT*99#
TIMEOUT 40
CONNECT \c

$ cat /etc/ppp/options
debug
/dev/cuaU0
460800
lock
persist
noauth
0.0.0.0:10.0.0.2
netmask 255.255.255.255
ipcp-accept-local
ipcp-accept-remote
noipdefault
crtscts
deflate 0
bsdcomp 0
noccp
novj
novjccomp
nopcomp
#nodetach
mru 1440
refuse-chap
connect '/usr/sbin/chat -f /etc/ppp/peers/elisa2.chat' 
$

Like others suggested, enabling debug option gives you some hints.
Also, using cu directly (cu -s 460800 -l /dev/cuaU0) and sending
AT commands gives you more hints. (For example, you might be required
to give PIN code with AT+CPIN command.)

-- 
Tero Koskinen tero.koski...@iki.fi



3G not navigate

2009-05-21 Thread Murilo da Silva Ijanc
Hello misc@,

I am trying to use 3G technology in OpenBSD. Currently my problem is that
I can not navigate, I modified the dns's, and exchanged some information
from  /etc/ppp/options, still not provided. Below some information that
might help in solving the problem:

uname:

OpenBSD murilo.dotbsd.org 4.5 BUDA#8 i386

dmesg:

OpenBSD 4.5-current (BUDA) #8: Fri May  8 14:49:24 UTC 2009
r...@murilo.dotbsd.org:/usr/src/sys/arch/i386/compile/BUDA
cpu0: Intel(R) Core(TM) Duo CPU T2350 @ 1.86GHz (GenuineIntel 686-class)
1.87 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,EST,TM2,xTPR
real mem  = 1063284736 (1014MB)
avail mem = 1019748352 (972MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 02/15/07, BIOS32 rev. 0 @ 0xfdc94,
SMBIOS rev. 2.4 @ 0xdc010 (38 entries)
bios0: vendor NEC COMPUTERS SAS version NOTE BIOS Version Q4A04 date
02/15/2007
bios0: NEC COMPUTERS SAS NEC VERSA M360
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP APIC HPET MCFG SLIC APIC BOOT SSDT SSDT SSDT
acpi0: wakeup devices LID0(S3) HDEF(S4) PXS1(S4) PXS2(S4) PXS3(S4)
PXS4(S4) PXS5(S4) PXS6(S4) USB1(S3) USB2(S3) USB3(S3) USB4(S3) USB7(S3)
LANC(S4) MODM(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 133MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM) Duo CPU T2350 @ 1.86GHz (GenuineIntel 686-class)
1.87 GHz
cpu1:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,EST,TM2,xTPR
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 2, remapped to apid 1
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEGP)
acpiprt2 at acpi0: bus -1 (RP01)
acpiprt3 at acpi0: bus -1 (RP02)
acpiprt4 at acpi0: bus -1 (RP03)
acpiprt5 at acpi0: bus -1 (RP04)
acpiprt6 at acpi0: bus -1 (RP05)
acpiprt7 at acpi0: bus -1 (RP06)
acpiprt8 at acpi0: bus 2 (PCIB)
acpiec0 at acpi0
acpicpu0 at acpi0
acpicpu1 at acpi0
acpitz0 at acpi0: critical temperature 100 degC
acpibtn0 at acpi0: LID0
acpibtn1 at acpi0: PWRB
acpibat0 at acpi0: BAT1 model EUP-K2-B-40 serial   type NiMH  oem NEC 
acpiac0 at acpi0: AC unit offline
acpivideo at acpi0 not configured
bios0: ROM list: 0xc/0xec00! 0xdc000/0x4000! 0xe/0x1c00!
cpu0: unknown Enhanced SpeedStep CPU, msr 0x06130e2c06000613
cpu0: using only highest and lowest power states
cpu0: Enhanced SpeedStep 800 MHz (1004 mV): speeds: 1867, 800 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel 82945GM Host rev 0x03
vga1 at pci0 dev 2 function 0 Intel 82945GM Video rev 0x03
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp0 at vga1
agp0 at intagp0: aperture at 0xc000, size 0x1000
inteldrm0 at vga1: apic 1 int 16 (irq 10)
drm0 at inteldrm0
Intel 82945GM Video rev 0x03 at pci0 dev 2 function 1 not configured
azalia0 at pci0 dev 27 function 0 Intel 82801GB HD Audio rev 0x02: apic
1 int 22 (irq 10)
azalia0: codecs: Realtek ALC262, ATT/Lucent/0x3026, using Realtek ALC262
audio0 at azalia0
uhci0 at pci0 dev 29 function 0 Intel 82801GB USB rev 0x02: apic 1 int
23 (irq 10)
uhci1 at pci0 dev 29 function 1 Intel 82801GB USB rev 0x02: apic 1 int
19 (irq 10)
uhci2 at pci0 dev 29 function 2 Intel 82801GB USB rev 0x02: apic 1 int
18 (irq 10)
uhci3 at pci0 dev 29 function 3 Intel 82801GB USB rev 0x02: apic 1 int
16 (irq 10)
ehci0 at pci0 dev 29 function 7 Intel 82801GB USB rev 0x02: apic 1 int
23 (irq 10)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
ppb0 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0xe2
pci1 at ppb0 bus 2
re0 at pci1 dev 0 function 0 Realtek 8169SC rev 0x10: RTL8169/8110SCd
(0x1800), apic 1 int 19 (irq 10), address 00:1b:24:1f:d4:7d
rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 2
cbb0 at pci1 dev 7 function 0 Ricoh 5C476 CardBus rev 0xb4: apic 1 int
16 (irq 255)
sdhc0 at pci1 dev 7 function 1 Ricoh 5C822 SD/MMC rev 0x18: apic 1 int
18 (irq 10)
sdmmc0 at sdhc0
Ricoh 5C843 MMC rev 0x00 at pci1 dev 7 function 2 not configured
Ricoh 5C592 Memory Stick rev 0x09 at pci1 dev 7 function 3 not configured
Ricoh 5C852 xD rev 0x04 at pci1 dev 7 function 4 not configured
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 3 device 0 cacheline 0x0, lattimer 0x20
pcmcia0 at cardslot0
ichpcib0 at pci0 dev 31 function 0 Intel 82801GBM LPC rev 0x02: PM disabled
pciide0 at pci0 dev 31 function 1 Intel 82801GB IDE rev 0x02: DMA,
channel 0 configured to compatibility, channel 1 configured to
compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: MATSHITA, UJ-850D, 1.10 ATAPI 5/cdrom
removable
cd0(pciide0:0:0): using PIO mode 4,