Re: Xephyr bug with Firefox

2013-04-22 Thread Jiri B
On Sun, Apr 21, 2013 at 04:12:59PM -0700, Robert Connolly wrote:
> Hello.
> 
> I use Xephyr with Firefox. I also run Firefox as a dedicated user.
> At seemingly random times, but on a regular basis, Firefox will
> behave oddly. Firefox will open links in a new window, scrolling up
> or down with my touchpad will cause the tab to go forward or
> backward through browser history, and sometimes capslock will be on
> when typing in Firefox, even though capslock is off.
> 
> Restarting Firefox does not fix these issues, but restarting Xephyr
> does. These issues typically happen when Firefox has been loaded and
> idle for many hours, although once it happened after only being
> loaded for a few minutes.
> 
> I'm guessing this is a memory corruption bug. Could any of you try
> to reproduce this bug, and could any of you suggest some simple ways
> (simple like strace) of debugging this? I would like to have
> something concrete to report to the Xephyr folks so that it gets
> fixed quickly.
> 
> I am running a recent snapshot on an AMD64 with 6GB of memory. I
> have no other problems with other software, so I think I can rule
> out damaged hardware.

Xephyr in Xenocara (OpenBSD X11) is quite old anyway.
Newer Xephyr incorporated long awaiting feature - resizable Xephyr
window.

jirib



Re: How many rounds to use for a pbkdf2 encrypted disk?

2013-04-22 Thread Peter Varga
On Sun, Apr 21, 2013 at 11:57:00PM -0400, Ted Unangst wrote:
> On Sun, Apr 21, 2013 at 19:00, and...@msu.edu wrote:
> > The example in vnconfig shows 20,000.  I picked 30K.
> > This is a 2.8G core2 duo machine, encrypting mail and
> > other stuff.
> > 
> > I haven't found sources on the net that have explained
> > what low security is, up to total paranoia with regards
> > # of rounds.
> > 
> > Ideas? URLs for good places to read?
> 
> As many as don't annoy you. 100k will be about half a second on a CPU.
> The problem is the bad guys aren't going to be using CPUs.

yes, thank you very much for pronouncing it. :-)



Very slow NFS writes

2013-04-22 Thread Mattieu Baptiste
Hi,

I'm currently trying to access files from my OpenBSD -current/amd64
workstation on a NAS under FreeNAS (8.3.1). On my workstation, the
filesystem is a read/write NFS mounted share. Its size is about 5.2TB.
While reading seems normal : about 45MB/s, writing is a lot slower
(fluctuates between 10MB/s and 20MB/s) before eventually stall (under
1MB/s). Note that at the start, my box is totally unresponsive. When the
writes fall below 1MB/s, the box became responsive again.

PF is disabled on my box and on both sides, I have em(4) interfaces
(autoneg at 1000 baseT).

With CIFS shares, the NAS can do a lot more throughput : above 50MB/s
writes.

I suspect problems with the OpenBSD NFS client since I saw problems like
that in the archive. Moreover, the behavior of my box which became
unresponsive when writing at 20MB/s seems strange.

Any clues ?

I'm sorry to not have more factual numbers... except the dmesg of my box.
The NAS isn't accessible to me all the time. I can provide more details in
the future.


OpenBSD 5.3-current (GENERIC.MP) #12: Mon Apr 15 15:18:44 CEST 2013
matt...@kronenbourg.brimbelle.org:/usr/src/sys/arch/amd64/compile/
GENERIC.MP
real mem = 8571518976 (8174MB)
avail mem = 8335634432 (7949MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xf0710 (68 entries)
bios0: vendor American Megatrends Inc. version "2003" date 12/14/2010
bios0: ASUSTeK Computer INC. P7P55D
acpi0 at bios0: rev 2
acpi0: sleep states S0 S1 S3 S4 S5
acpi0: tables DSDT FACP APIC MCFG OEMB HPET DMAR ASPT OSFR
acpi0: wakeup devices P0P4(S4) BR1E(S4) UAR1(S4) PS2K(S4) PS2M(S4) EUSB(S4)
USB0(S4) USB1(S4) USB2(S4) USB3(S4) USBE(S4) USB4(S4) USB5(S4) USB6(S4)
BR21(S4) BR22(S4) BR23(S4) P0P1(S4) P0P3(S4) P0P5(S4) P0P6(S4) USB8(S4)
BR20(S4) BR24(S4) BR25(S4) BR26(S4) BR27(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5 CPU 660 @ 3.33GHz, 3374.33 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,AES,NXE,LONG,LAHF,PERF,ITSC
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
cpu0: apic clock running at 160MHz
cpu1 at mainbus0: apid 4 (application processor)
cpu1: Intel(R) Core(TM) i5 CPU 660 @ 3.33GHz, 3373.90 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,AES,NXE,LONG,LAHF,PERF,ITSC
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 2, package 0
cpu2 at mainbus0: apid 1 (application processor)
cpu2: Intel(R) Core(TM) i5 CPU 660 @ 3.33GHz, 3373.90 MHz
cpu2:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,AES,NXE,LONG,LAHF,PERF,ITSC
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 1, core 0, package 0
cpu3 at mainbus0: apid 5 (application processor)
cpu3: Intel(R) Core(TM) i5 CPU 660 @ 3.33GHz, 3373.90 MHz
cpu3:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,AES,NXE,LONG,LAHF,PERF,ITSC
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 1, core 2, package 0
ioapic0 at mainbus0: apid 6 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 1, remapped to apid 6
acpimcfg0 at acpi0 addr 0xf800, bus 0-63
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 7 (BR1E)
acpiprt2 at acpi0: bus -1 (BR21)
acpiprt3 at acpi0: bus -1 (BR22)
acpiprt4 at acpi0: bus -1 (BR23)
acpiprt5 at acpi0: bus 1 (P0P1)
acpiprt6 at acpi0: bus -1 (P0P3)
acpiprt7 at acpi0: bus -1 (P0P5)
acpiprt8 at acpi0: bus -1 (P0P6)
acpiprt9 at acpi0: bus 6 (BR20)
acpiprt10 at acpi0: bus 5 (BR24)
acpiprt11 at acpi0: bus 4 (BR25)
acpiprt12 at acpi0: bus 3 (BR26)
acpiprt13 at acpi0: bus 2 (BR27)
acpiec0 at acpi0
acpicpu0 at acpi0
acpicpu1 at acpi0
acpicpu2 at acpi0
acpicpu3 at acpi0
aibs0 at acpi0: GGRP GITM SITM
acpibtn0 at acpi0: PWRB
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Core Host" rev 0x12
ppb0 at pci0 dev 1 function 0 "Intel Core PCIE" rev 0x12: msi
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "ATI Radeon HD 4670" rev 0x00
radeondrm0 at vga1: apic 6 int 16
drm0 at radeondrm0
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
azalia0 at pci1 dev 0 function 1 "ATI Radeon HD 4000 HD Audio" rev 0x00: msi
azalia0: no supported codecs
ehci0 at pci0 dev 26 function 0 "Intel 3400 USB" rev 0x06: apic 6 int 16
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EH

Re: Very slow NFS writes

2013-04-22 Thread mxb
Have you tried to use jumbo frames (MTU 9000) on both client and server?
(If it is possible in your environment).

//mxb

On 22 apr 2013, at 14:46, Mattieu Baptiste  wrote:

> Hi,
> 
> I'm currently trying to access files from my OpenBSD -current/amd64
> workstation on a NAS under FreeNAS (8.3.1). On my workstation, the
> filesystem is a read/write NFS mounted share. Its size is about 5.2TB.
> While reading seems normal : about 45MB/s, writing is a lot slower
> (fluctuates between 10MB/s and 20MB/s) before eventually stall (under
> 1MB/s). Note that at the start, my box is totally unresponsive. When the
> writes fall below 1MB/s, the box became responsive again.
> 
> PF is disabled on my box and on both sides, I have em(4) interfaces
> (autoneg at 1000 baseT).
> 
> With CIFS shares, the NAS can do a lot more throughput : above 50MB/s
> writes.
> 
> I suspect problems with the OpenBSD NFS client since I saw problems like
> that in the archive. Moreover, the behavior of my box which became
> unresponsive when writing at 20MB/s seems strange.
> 
> Any clues ?
> 
> I'm sorry to not have more factual numbers... except the dmesg of my box.
> The NAS isn't accessible to me all the time. I can provide more details in
> the future.
> 
> 
> OpenBSD 5.3-current (GENERIC.MP) #12: Mon Apr 15 15:18:44 CEST 2013
>matt...@kronenbourg.brimbelle.org:/usr/src/sys/arch/amd64/compile/
> GENERIC.MP
> real mem = 8571518976 (8174MB)
> avail mem = 8335634432 (7949MB)
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xf0710 (68 entries)
> bios0: vendor American Megatrends Inc. version "2003" date 12/14/2010
> bios0: ASUSTeK Computer INC. P7P55D
> acpi0 at bios0: rev 2
> acpi0: sleep states S0 S1 S3 S4 S5
> acpi0: tables DSDT FACP APIC MCFG OEMB HPET DMAR ASPT OSFR
> acpi0: wakeup devices P0P4(S4) BR1E(S4) UAR1(S4) PS2K(S4) PS2M(S4) EUSB(S4)
> USB0(S4) USB1(S4) USB2(S4) USB3(S4) USBE(S4) USB4(S4) USB5(S4) USB6(S4)
> BR21(S4) BR22(S4) BR23(S4) P0P1(S4) P0P3(S4) P0P5(S4) P0P6(S4) USB8(S4)
> BR20(S4) BR24(S4) BR25(S4) BR26(S4) BR27(S4)
> acpitimer0 at acpi0: 3579545 Hz, 24 bits
> acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: Intel(R) Core(TM) i5 CPU 660 @ 3.33GHz, 3374.33 MHz
> cpu0:
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,AES,NXE,LONG,LAHF,PERF,ITSC
> cpu0: 256KB 64b/line 8-way L2 cache
> cpu0: smt 0, core 0, package 0
> cpu0: apic clock running at 160MHz
> cpu1 at mainbus0: apid 4 (application processor)
> cpu1: Intel(R) Core(TM) i5 CPU 660 @ 3.33GHz, 3373.90 MHz
> cpu1:
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,AES,NXE,LONG,LAHF,PERF,ITSC
> cpu1: 256KB 64b/line 8-way L2 cache
> cpu1: smt 0, core 2, package 0
> cpu2 at mainbus0: apid 1 (application processor)
> cpu2: Intel(R) Core(TM) i5 CPU 660 @ 3.33GHz, 3373.90 MHz
> cpu2:
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,AES,NXE,LONG,LAHF,PERF,ITSC
> cpu2: 256KB 64b/line 8-way L2 cache
> cpu2: smt 1, core 0, package 0
> cpu3 at mainbus0: apid 5 (application processor)
> cpu3: Intel(R) Core(TM) i5 CPU 660 @ 3.33GHz, 3373.90 MHz
> cpu3:
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,AES,NXE,LONG,LAHF,PERF,ITSC
> cpu3: 256KB 64b/line 8-way L2 cache
> cpu3: smt 1, core 2, package 0
> ioapic0 at mainbus0: apid 6 pa 0xfec0, version 20, 24 pins
> ioapic0: misconfigured as apic 1, remapped to apid 6
> acpimcfg0 at acpi0 addr 0xf800, bus 0-63
> acpihpet0 at acpi0: 14318179 Hz
> acpiprt0 at acpi0: bus 0 (PCI0)
> acpiprt1 at acpi0: bus 7 (BR1E)
> acpiprt2 at acpi0: bus -1 (BR21)
> acpiprt3 at acpi0: bus -1 (BR22)
> acpiprt4 at acpi0: bus -1 (BR23)
> acpiprt5 at acpi0: bus 1 (P0P1)
> acpiprt6 at acpi0: bus -1 (P0P3)
> acpiprt7 at acpi0: bus -1 (P0P5)
> acpiprt8 at acpi0: bus -1 (P0P6)
> acpiprt9 at acpi0: bus 6 (BR20)
> acpiprt10 at acpi0: bus 5 (BR24)
> acpiprt11 at acpi0: bus 4 (BR25)
> acpiprt12 at acpi0: bus 3 (BR26)
> acpiprt13 at acpi0: bus 2 (BR27)
> acpiec0 at acpi0
> acpicpu0 at acpi0
> acpicpu1 at acpi0
> acpicpu2 at acpi0
> acpicpu3 at acpi0
> aibs0 at acpi0: GGRP GITM SITM
> acpibtn0 at acpi0: PWRB
> pci0 at mainbus0 bus 0
> pchb0 at pci0 dev 0 function 0 "Intel Core Host" rev 0x12
> ppb0 at pci0 dev 1 function 0 "Intel Core PCIE" rev 0x12: msi
> pci1 at ppb0 bus 1
> vga1 at pci1 dev 0 function 0 "ATI Radeon HD 4670" rev 0x00
> radeondrm0 at vga1: apic 

Re: Very slow NFS writes

2013-04-22 Thread Stuart Henderson
On 2013-04-22, Mattieu Baptiste  wrote:
> Hi,
>
> I'm currently trying to access files from my OpenBSD -current/amd64
> workstation on a NAS under FreeNAS (8.3.1). On my workstation, the
> filesystem is a read/write NFS mounted share. Its size is about 5.2TB.
> While reading seems normal : about 45MB/s, writing is a lot slower
> (fluctuates between 10MB/s and 20MB/s) before eventually stall (under
> 1MB/s). Note that at the start, my box is totally unresponsive. When the
> writes fall below 1MB/s, the box became responsive again.

I had a lot of problems with NFS writes dragging the client to a halt
with NFSv3 on *some* systems which were greatly improved by switching to
NFSv2. On the other hand, other machines were perfectly OK with it... 

NFSv2 has other problems, not least a big write amplification effect
when NFS and disk block sizes don't match (at least with OpenBSD as a
server), also it limits files to 2GB which makes it unusable in some
situations, but it might be worth a try to see if the problem remains.



Re: Disappointing ISC BIND performance on OpenBSD 5.3 snapshot

2013-04-22 Thread Kostas Zorbadelos
Stuart Henderson  writes:

> On 2013-04-19, Kostas Zorbadelos  wrote:
>> root@dmeg-dns1 ~ # /usr/local/sbin/named -V BIND 9.9.2-P2 built with
>> --enable-shared' '--enable-threads'
>
> You could try rebuilding the port without --enable-threads and see if it's 
> any different.
>

I rebuilt the port without threads

root@dmeg-dns1 ~ # /usr/local/sbin/named -V
BIND 9.9.2-P2 built with '--enable-shared' '--with-libtool'
'--prefix=/usr/local' '--sysconfdir=/etc' '--mandir=/usr/local/man'
'--infodir=/usr/local/info' '--localstatedir=/var'
'--disable-silent-rules' 'CC=cc' 'CFLAGS=-O2 -pipe' 'CXX=c++'
'CXXFLAGS=-O2 -pipe'
using OpenSSL version: OpenSSL 1.0.1c 10 May 2012
using libxml2 version: 2.8.0

There was no great difference in performance. I could see in the
multi-threaded BIND version CPU utilization of up to 300% (Linux showed
up to 800% on the same tests).
In repeating tests with
resperf (to have a full cache) and giving more slack in the rampup time
of the queries (resperf -r 240 -s  -d ) I
was able to reach around 20K queries / sec on my hardware, half the
performance of Linux on the same hardware, BIND version and
configuration. PF disabled.

Might also test unbound. If I do, I will post the results.

PS: I think I saw a slight improvement using -U 4 (provided by the
port's init script)
 
-- 
Kostas Zorbadelos   
twitter:@kzorbadeloshttp://gr.linkedin.com/in/kzorba 

()  www.asciiribbon.org - against HTML e-mail & proprietary attachments
/\  



Re: Disappointing ISC BIND performance on OpenBSD 5.3 snapshot

2013-04-22 Thread Claudio Jeker
On Mon, Apr 22, 2013 at 04:50:52PM +0300, Kostas Zorbadelos wrote:
> Stuart Henderson  writes:
> 
> > On 2013-04-19, Kostas Zorbadelos  wrote:
> >> root@dmeg-dns1 ~ # /usr/local/sbin/named -V BIND 9.9.2-P2 built with
> >> --enable-shared' '--enable-threads'
> >
> > You could try rebuilding the port without --enable-threads and see if it's 
> > any different.
> >
> 
> I rebuilt the port without threads
> 
> root@dmeg-dns1 ~ # /usr/local/sbin/named -V
> BIND 9.9.2-P2 built with '--enable-shared' '--with-libtool'
> '--prefix=/usr/local' '--sysconfdir=/etc' '--mandir=/usr/local/man'
> '--infodir=/usr/local/info' '--localstatedir=/var'
> '--disable-silent-rules' 'CC=cc' 'CFLAGS=-O2 -pipe' 'CXX=c++'
> 'CXXFLAGS=-O2 -pipe'
> using OpenSSL version: OpenSSL 1.0.1c 10 May 2012
> using libxml2 version: 2.8.0
> 
> There was no great difference in performance. I could see in the
> multi-threaded BIND version CPU utilization of up to 300% (Linux showed
> up to 800% on the same tests).
> In repeating tests with
> resperf (to have a full cache) and giving more slack in the rampup time
> of the queries (resperf -r 240 -s  -d ) I
> was able to reach around 20K queries / sec on my hardware, half the
> performance of Linux on the same hardware, BIND version and
> configuration. PF disabled.
> 
> Might also test unbound. If I do, I will post the results.
> 
> PS: I think I saw a slight improvement using -U 4 (provided by the
> port's init script)
>  

Don't forget to increase the UDP recvbuffer space. The default is somewhat
small and will result in drops. At least you should invest some time to
play with that value and see if it helps.

-- 
:wq Claudio



faxing

2013-04-22 Thread Peter Fraser
Several years ago I put an OpenBSD system in as a firewall and mail server at a 
small charity that I volunteer at (kwaccessablility.ca)
that fixed nearly all the problems that they had with viruses, spam etc.

Last year I talked them in to switching to VOIP (on the OpenBSD server using 
Asterisk). Their phone costs dropped from over $250
per month to less than $30 per month (I used the service from unlimitel.ca). 
The change is costs per month made up for the costs 
of the new telephone equipment within the year.

Nearly all their communication that was done by fax is now done by email, 
except for one organization. That organization which is 
run by the city supplies transportation for physically handicapped. That 
organization is insisting on faxes. They will not take email.
The charity currently has an analog fax just for the purpose of arranging 
transportation, and that line is costing over $60 per month.

I looked at email to fax services, but I believe those queue the faxes up and 
send them as time is available.  The charity and
the transportation organization need immediate sending and receiving.  They 
carry out a conversation with hand written
notes (requiring the charity to type the responses would not be a problem).

Asterisk has a fax service, so I thought I could use that. But the Asterisk fax 
sending service requires TIFF in a directory
and receiving service puts a TIFF file in a directory. 

 The charity operates in a Windows environment. To the problem is: how does a 
person (probably a volunteer)
 on a Windows machine put a TIFF file into a directory on an OpenBSD, and in 
addition send the information 
as to where send the fax and get back a status on success or failure of sending 
a fax.

 I don't think receiving the fax will be that much of a problem; it should be 
easy to take the fax out the directory 
and send it as an email to a group mailbox. 

What I don't have is a good to solution for is how the person sitting at the 
Windows machine is to send a fax.
 There are some commercial solutions for Linux, but I have no idea if they 
operate OpenBSD. 
 The commercial solutions are generally of the format that an email gets sent 
and fax is extracted from the text of the message.

I would like to know if anyone has done something similar or any good 
suggestions on what I should do to
get faxing to work



Re: "no link" for athn(4) on Macbook2,1

2013-04-22 Thread Zé Loff
On Sun, Apr 14, 2013 at 04:33:55PM -0500, Carson Chittom wrote:
> I have an old Macbook2,1 (dmesg below) that I've slapped OpenBSD on for
> purposes of just having something to check my email from.  Its wireless
> card is picked up during the install as athn(4), the firmware was
> installed on first boot, and /etc/hostname.athn0 is configured with my
> local wireless network's details.  But when I boot the laptop, all I get
> is "athn0..no link" Though msk(4) of course works fine, so I used a
> wired connection to update to -stable, to see if that would fix things;
> it didn't.
> 
> I searched the archives for every combination of macbook, athn, and
> wireless I could think of, but I didn't see anything directly related
> (mostly I came up with stuff about weirdness with the intel driver under
> X, which I also see on this Macbook but don't care about since a console
> is sufficient to run Emacs and check my email).
> 
> Am I doing something wrong?  Should I upgrade to a snapshot?  Any advice
> welcome--I'd like for this laptop not to be tethered to a cable.
> 

Do you get any device timeouts? I just got a athn card on ebay whose MAC
address says it came from Apple, and that is all I get on an old(-ish)
Asus L3S and on a Soekris net4801.

Incidentally, the card turns out to be a bit of a current hog. The
net4801 doesn't even complete POST with a 9.9VA power source (which it
does without the card), but booted fine with 12VA.

-- 



Re: faxing

2013-04-22 Thread Sebastian Reitenbach
On Monday, April 22, 2013 19:30 CEST, Peter Fraser  wrote: 
 
> Several years ago I put an OpenBSD system in as a firewall and mail server at 
> a small charity that I volunteer at (kwaccessablility.ca)
> that fixed nearly all the problems that they had with viruses, spam etc.
> 
> Last year I talked them in to switching to VOIP (on the OpenBSD server using 
> Asterisk). Their phone costs dropped from over $250
> per month to less than $30 per month (I used the service from unlimitel.ca). 
> The change is costs per month made up for the costs 
> of the new telephone equipment within the year.
> 
> Nearly all their communication that was done by fax is now done by email, 
> except for one organization. That organization which is 
> run by the city supplies transportation for physically handicapped. That 
> organization is insisting on faxes. They will not take email.
> The charity currently has an analog fax just for the purpose of arranging 
> transportation, and that line is costing over $60 per month.
> 
> I looked at email to fax services, but I believe those queue the faxes up and 
> send them as time is available.  The charity and
> the transportation organization need immediate sending and receiving.  They 
> carry out a conversation with hand written
> notes (requiring the charity to type the responses would not be a problem).
> 
> Asterisk has a fax service, so I thought I could use that. But the Asterisk 
> fax sending service requires TIFF in a directory
> and receiving service puts a TIFF file in a directory. 
> 
>  The charity operates in a Windows environment. To the problem is: how does a 
> person (probably a volunteer)
>  on a Windows machine put a TIFF file into a directory on an OpenBSD, and in 
> addition send the information 
> as to where send the fax and get back a status on success or failure of 
> sending a fax.
> 
>  I don't think receiving the fax will be that much of a problem; it should be 
> easy to take the fax out the directory 
> and send it as an email to a group mailbox. 
> 
> What I don't have is a good to solution for is how the person sitting at the 
> Windows machine is to send a fax.
>  There are some commercial solutions for Linux, but I have no idea if they 
> operate OpenBSD. 
>  The commercial solutions are generally of the format that an email gets sent 
> and fax is extracted from the text of the message.
> 
> I would like to know if anyone has done something similar or any good 
> suggestions on what I should do to
> get faxing to work
> 

I haven't had a need for FAX yet, but maybe give hylafax together with iaxmodem 
a try. 
Both are in ports.
Or maybe read up here: http://www.voip-info.org/wiki/view/Asterisk+fax

cheers,
Sebastian



Re: OpenBSD 5.3 npppd pppoe segmantation fault

2013-04-22 Thread trick star

Dear Yasuoka.

Thanks for your suggestion. And test again.
Actually every thing going to be all right!:)

#today's process and log.
a)setup
#server
#/etc/hostname.bge0
-inet6
up
#/etc/npppd/npppd-users

taro:
:password=taro:
:framed-ip-address=10.0.0.2:

#/etc/npppd/npppd.conf
authentication LOCAL type local {
users-file "/etc/npppd/npppd-users"
}
tunnel PPPOE protocol pppoe {
listen on interface bge0
mru 1400
pipex yes
authentication-method pap pap mspapv2
}
ipcp IPCP {
pool-address 10.0.0.2-10.0.0.254
dns-servers 192.168.0.1
}
interface pppx0 address 10.0.0.1 ipcp IPCP
bind tunnel from PPPOE authenticated by LOCAL to pppx0

#client
#/etc/hostname.bge0
-inet6
up
#/etc/hostname.pppoe0
inet 0.0.0.0 255.255.255.255 NONE \
pppoedev bge0 authproto pap \
authname 'taro' authkey 'taro' up
dest 0.0.0.1
!/sbin/route add default -ifp pppoe0 0.0.0.1

b)reactive
#server
#terminal:ttyp1
tcpdump -pni bge0 proto 0x8863
#terminal:ttyp2
tcpdump -pni bge0 proto 0x8864
#terminal:ttyp0
npppd -df /etc/npppd.conf

#client
#terminal:ttyp1
tcpdump -pni bge0 proto 0x8863
#terminal:ttyp2
tcpdump -pni bge0 proto 0x8864
#terminal ttyC0
sh /etc/netstart pppoe0

c)log
#server
#terminal:ttyp1 ##couldn't get any things.
#terminal:ttyp2 ##couldn't get any things.
#terminal:ttyp3 ##added
npppctl session all
Ppp Id = 0
  Ppp Id  : 0
  Username: taro
  Realm Name  : LOCAL
  Concentrated Interface  : pppx0
  Assigned IPv4 Address   : 10.0.0.2
  Tunnel Protocol : PPPoE
  Tunnel From : aa:bb:cc:dd:ee:ff
  Start Time  : 2013/04/23 01:32:31
  Elapsed Time: 1 sec
  Input Bytes : 117
  Input Packets   : 7
  Input Errors: 4 (36.4%)
  Output Bytes: 171
  Output Packets  : 11
  Output Errors   : 0 (0.0%)

#again
npppctl session all
Ppp Id = 0
  Ppp Id  : 0
  Username: taro
  Realm Name  : LOCAL
  Concentrated Interface  : pppx0
  Assigned IPv4 Address   : 10.0.0.2
  Tunnel Protocol : PPPoE
  Tunnel From : aa:bb:cc:dd:ee:ff
  Start Time  : 2013/04/23 01:32:31
  Elapsed Time: 59 sec
  Input Bytes : 137
  Input Packets   : 9
  Input Errors: 8 (47.1%)
  Output Bytes: 203
  Output Packets  : 14
  Output Errors   : 0 (0.0%)

#terminal:ttyp0
npppd -df /etc/npppd/npppd.conf
2013-04-23 01:31:36:NOTICE: Starting npppd pid=27130 version=5.0.0
2013-04-23 01:31:36:NOTICE: Load configuration 
from='/etc/npppd/npppd.conf' successfully.

2013-04-23 01:31:36:INFO: pppx0 Started pppx
2013-04-23 01:31:36:INFO: Listening /var/run/npppd_ctl (npppd_ctl)
2013-04-23 01:31:36:INFO: ipcp=IPCP pool 
dyn_pool=[10.0.0.2/31,10.0.0.4/30,10.0.0.8/29,10.0.0.16/28,10.0.0.32/27,10.0.0.64/26,10.0.0.128/26,10.0.0.192/27,10.0.0.224/28,10.0.0.240/29,10.0.0.248/30,10.0.0.252/31,10.0.0.254/32] 
pool=[10.0.0.2/31,10.0.0.4/30,10.0.0.8/29,10.0.0.16/28,10.0.0.32/27,10.0.0.64/26,10.0.0.128/26,10.0.0.192/27,10.0.0.224/28,10.0.0.240/29,10.0.0.248/30,10.0.0.252/31,10.0.0.254/32]

2013-04-23 01:31:36:INFO: Loading pool config successfully.
2013-04-23 01:31:36:INFO: pppoed Listening on bge0 (PPPoE) [PPPOE] 
using=/dev/bpf0 address=00:11:22:33:44:55
2013-04-23 01:32:31:INFO: pppoed RecvPADI from=aa:bb:cc:dd:ee:ff 
service-name= host-uniq=4f38779d if=bge0
2013-04-23 01:32:31:INFO: pppoed SendPADO to=aa:bb:cc:dd:ee:ff 
serviceName= acName=00:11:22:33:44:55 hostUniq=4f38779d eol if=bge0
2013-04-23 01:32:31:INFO: pppoed if=bge0 session=5460 SendPADS 
serviceName= hostUniq=4f38779d
2013-04-23 01:32:31:NOTICE: pppoed if=bge0 session=5460 logtype=PPPBind 
ppp=0
2013-04-23 01:32:31:ERR: ppp id=0 layer=base getnameinfo() failed at 
ppp_set_tunnel_label
2013-04-23 01:32:31:INFO: ppp id=0 layer=base logtype=Started 
tunnel=PPPOE(0.0.0.0)
2013-04-23 01:32:31:INFO: ppp id=0 layer=lcp logtype=Opened 
mru=1492/1492 auth=MD5-pap magic=8040d42c/f6fb68ce
2013-04-23 01:32:31:INFO: ppp id=0 layer=pap proto=pap logtype=Success 
username="taro" realm=LOCAL
2013-04-23 01:32:31:INFO: ppp id=0 layer=base unhandled protocol ipv6cp, 
32855(8057)
2013-04-23 01:32:31:INFO: ppp id=0 layer=ipcp IP Address peer=0.0.0.0 
our=10.0.0.2.
2013-04-23 01:32:31:INFO: ppp id=0 layer=base unhandled protocol ipv6cp, 
32855(8057)
2013-04-23 01:32:31:INFO: ppp id=0 layer=ipcp logtype=Opened ip=10.0.0.2 
assignType=dynamic
2013-04-23 01:32:31:ERR: ppp id=0 layer=base getnameinfo() failed at 
ppp_set_tunnel_label
2013-04-23 01:32:31:NOTICE: ppp id=0 layer=base logtype=TUNNELSTART 
user="taro" duration=0sec layer2=PPPOE layer2from=0.0.0.0 auth=MD5-pap  
ip=10.0.0.2 iface=pppx0

2013-04-23 0

Re: "no link" for athn(4) on Macbook2,1

2013-04-22 Thread Zé Loff
On Mon, Apr 22, 2013 at 06:37:32PM +0100, Zé Loff wrote:
> On Sun, Apr 14, 2013 at 04:33:55PM -0500, Carson Chittom wrote:
> > I have an old Macbook2,1 (dmesg below) that I've slapped OpenBSD on for
> > purposes of just having something to check my email from.  Its wireless
> > card is picked up during the install as athn(4), the firmware was
> > installed on first boot, and /etc/hostname.athn0 is configured with my
> > local wireless network's details.  But when I boot the laptop, all I get
> > is "athn0..no link" Though msk(4) of course works fine, so I used a
> > wired connection to update to -stable, to see if that would fix things;
> > it didn't.
> > 
> > I searched the archives for every combination of macbook, athn, and
> > wireless I could think of, but I didn't see anything directly related
> > (mostly I came up with stuff about weirdness with the intel driver under
> > X, which I also see on this Macbook but don't care about since a console
> > is sufficient to run Emacs and check my email).
> > 
> > Am I doing something wrong?  Should I upgrade to a snapshot?  Any advice
> > welcome--I'd like for this laptop not to be tethered to a cable.
> > 
> 
> Do you get any device timeouts? I just got a athn card on ebay whose MAC
> address says it came from Apple, and that is all I get on an old(-ish)
> Asus L3S and on a Soekris net4801.
> 
> Incidentally, the card turns out to be a bit of a current hog. The
> net4801 doesn't even complete POST with a 9.9VA power source (which it
> does without the card), but booted fine with 12VA.

Strike that. Sunny weather brought a nice active link (on the
Soekris). Go figure.



Re: Fax -- IAXModem and hylafax

2013-04-22 Thread Peter Fraser
I looked at IAX modem, and most I know about it is from 
http://iaxmodem.sourceforge.net/faq.php

and as far as I can tell  IAXmodem doesn't do T.38 which 
I believe is the correct solution.

But I did get pointed to t38modem at SourceForge.net
which is not in ports. Again I have not tried it, 
and it may do the job to work with hylafax+.

I would like to know if any one had done this.

-Original Message-
From: owner-m...@openbsd.org [mailto:owner-m...@openbsd.org] On Behalf Of 
Sebastian Reitenbach
Sent: Monday, April 22, 2013 1:51 PM
To: misc@openbsd.org
Subject: Re: faxing

On Monday, April 22, 2013 19:30 CEST, Peter Fraser  wrote: 
 
> Several years ago I put an OpenBSD system in as a firewall and mail 
> server at a small charity that I volunteer at (kwaccessablility.ca) that 
> fixed nearly all the problems that they had with viruses, spam etc.
> 
> Last year I talked them in to switching to VOIP (on the OpenBSD server 
> using Asterisk). Their phone costs dropped from over $250 per month to 
> less than $30 per month (I used the service from unlimitel.ca). The change is 
> costs per month made up for the costs of the new telephone equipment within 
> the year.
> 
> Nearly all their communication that was done by fax is now done by 
> email, except for one organization. That organization which is run by the 
> city supplies transportation for physically handicapped. That organization is 
> insisting on faxes. They will not take email.
> The charity currently has an analog fax just for the purpose of arranging 
> transportation, and that line is costing over $60 per month.
> 
> I looked at email to fax services, but I believe those queue the faxes 
> up and send them as time is available.  The charity and the 
> transportation organization need immediate sending and receiving.  They carry 
> out a conversation with hand written notes (requiring the charity to type the 
> responses would not be a problem).
> 
> Asterisk has a fax service, so I thought I could use that. But the 
> Asterisk fax sending service requires TIFF in a directory and receiving 
> service puts a TIFF file in a directory.
> 
>  The charity operates in a Windows environment. To the problem is: how 
> does a person (probably a volunteer)  on a Windows machine put a TIFF 
> file into a directory on an OpenBSD, and in addition send the information as 
> to where send the fax and get back a status on success or failure of sending 
> a fax.
> 
>  I don't think receiving the fax will be that much of a problem; it 
> should be easy to take the fax out the directory and send it as an email to a 
> group mailbox.
> 
> What I don't have is a good to solution for is how the person sitting at the 
> Windows machine is to send a fax.
>  There are some commercial solutions for Linux, but I have no idea if they 
> operate OpenBSD. 
>  The commercial solutions are generally of the format that an email gets sent 
> and fax is extracted from the text of the message.
> 
> I would like to know if anyone has done something similar or any good 
> suggestions on what I should do to get faxing to work
> 

I haven't had a need for FAX yet, but maybe give hylafax together with iaxmodem 
a try. 
Both are in ports.
Or maybe read up here: http://www.voip-info.org/wiki/view/Asterisk+fax

cheers,
Sebastian



Re: faxing

2013-04-22 Thread Mikkel C. Simonsen

Peter Fraser wrote:

I would like to know if anyone has done something similar or any good 
suggestions on what I should do to
get faxing to work


Connect the existing fax to a Linksys PAP2 (or whatever the current 
model is called), use the g711 codec, setup the PAP2 correctly, and 
faxing will work great. No need for a separate phone line anymore.


Best regards,

Mikkel C. Simonsen



Re: faxing

2013-04-22 Thread Peter Fraser
I believe I am trying to interface into a T38 gateway which is supported by my 
SIP supplier.
I expect but don't know, that if I don't uses T38 my Sip supplier will send the 
call on a SIP
call to any other client which will not recognize it as FAX.


-Original Message-
From: owner-m...@openbsd.org [mailto:owner-m...@openbsd.org] On Behalf Of 
Mikkel C. Simonsen
Sent: Monday, April 22, 2013 1:47 PM
To: OpenBSD misc
Subject: Re: faxing

Peter Fraser wrote:
> I would like to know if anyone has done something similar or any good 
> suggestions on what I should do to get faxing to work

Connect the existing fax to a Linksys PAP2 (or whatever the current model is 
called), use the g711 codec, setup the PAP2 correctly, and faxing will work 
great. No need for a separate phone line anymore.

Best regards,

Mikkel C. Simonsen



Re: faxing

2013-04-22 Thread Richard Toohey

On 04/23/13 05:30, Peter Fraser wrote:

[cut]

  The charity operates in a Windows environment. To the problem is: how does a 
person (probably a volunteer)
  on a Windows machine put a TIFF file into a directory on an OpenBSD, and in 
addition send the information
as to where send the fax and get back a status on success or failure of sending 
a fax.

[cut]
Sounds like a job for Samba - at least the putting a TIFF file from 
Windows onto an OpenBSD directory.




OBSD Router & FW's and Centos TCP DUP ACK issues

2013-04-22 Thread Keith
Hi, we recently switched our squid server from a OBSD server on VMware a 
Centos server on XEN but there appears to be an issue somewhere between 
the centos server and our OBSD Routers (DMZ) or our external OBSD firewalls.


If I log into the Centos server and run either wget or curl to an 
exnternal http server I get a kind of random 1 in 3 chance or it working 
or taking upto 30 seconds to complete. I've run tcpdump on the Centos 
box and on the router and have imported the results into wireshare and 
they both show lots of TCP Dup ACK's as shown below.


We don't have any issues with any of our other servers that are also on 
the same lan as this squid server so I think it's either a Centos, 
Centos/Xen, or a OBSD issue. does anyone have any ideas what might be 
going on here ?


This dump was captured on our OBSD router.

No. TimeSourceDestination Protocol Length Info
   3917 2.79731010.0.0.X   20.0.0.X   TCP 74 
35247 > http [SYN] Seq=0 Win=14600 Len=0 MSS=1460 SACK_PERM=1 
TSval=2936085 TSecr=0 WS=64
   3922 2.79941110.0.0.X   20.0.0.X   TCP 66 
35247 > http [ACK] Seq=1 Ack=1 Win=14656 Len=0 TSval=2936087 TSecr=0
   3923 2.79954310.0.0.X   20.0.0.X   HTTP 175
GET / HTTP/1.0
   3926 2.80133110.0.0.X   20.0.0.X   TCP 66 
[TCP Dup ACK 3923#1] 35247 > http [ACK] Seq=110 Ack=1 Win=14656 Len=0 
TSval=2936089 TSecr=0
   3927 2.80133310.0.0.X   20.0.0.X   TCP 66 
[TCP Dup ACK 3923#2] 35247 > http [ACK] Seq=110 Ack=1 Win=14656 Len=0 
TSval=2936089 TSecr=0
   3930 2.80242310.0.0.X   20.0.0.X   TCP 66 
[TCP Dup ACK 3923#3] 35247 > http [ACK] Seq=110 Ack=1 Win=14656 Len=0 
TSval=2936090 TSecr=0
   3931 2.80242510.0.0.X   20.0.0.X   TCP 66 
[TCP Dup ACK 3923#4] 35247 > http [ACK] Seq=110 Ack=1 Win=14656 Len=0 
TSval=2936090 TSecr=0
   4140 3.00258510.0.0.X   20.0.0.X   HTTP 175
[TCP Retransmission] GET / HTTP/1.0
   4142 3.00339110.0.0.X   20.0.0.X   TCP 66 
[TCP Dup ACK 4140#1] 35247 > http [ACK] Seq=110 Ack=1 Win=14656 Len=0 
TSval=2936291 TSecr=0
   4663 3.41063210.0.0.X   20.0.0.X   HTTP 175
[TCP Retransmission] GET / HTTP/1.0
   4665 3.41145110.0.0.X   20.0.0.X   TCP 66 
[TCP Dup ACK 4663#1] 35247 > http [ACK] Seq=110 Ack=1 Win=14656 Len=0 
TSval=2936699 TSecr=0
   5538 4.22661110.0.0.X   20.0.0.X   HTTP 175
[TCP Retransmission] GET / HTTP/1.0
   5541 4.22744510.0.0.X   20.0.0.X   TCP 66 
[TCP Dup ACK 5538#1] 35247 > http [ACK] Seq=110 Ack=1 Win=14656 Len=0 
TSval=2937515 TSecr=0
   9846 5.84396110.0.0.X   20.0.0.X   TCP 66 
[TCP Dup ACK 5538#2] 35247 > http [ACK] Seq=110 Ack=1 Win=14656 Len=0 
TSval=2939132 TSecr=0
   9851 5.84481110.0.0.X   20.0.0.X   TCP 66 
[TCP Dup ACK 5538#3] 35247 > http [ACK] Seq=110 Ack=1 Win=14656 Len=0 
TSval=2939133 TSecr=0
   9861 5.85863310.0.0.X   20.0.0.X   HTTP 175
[TCP Retransmission] GET / HTTP/1.0
   9863 5.85943210.0.0.X   20.0.0.X   TCP 66 
[TCP Dup ACK 9861#1] 35247 > http [ACK] Seq=110 Ack=1 Win=14656 Len=0 
TSval=2939147 TSecr=0
  14821 9.12271810.0.0.X   20.0.0.X   HTTP 175
[TCP Retransmission] GET / HTTP/1.0
  14823 9.12352610.0.0.X   20.0.0.X   TCP 66 
[TCP Dup ACK 14821#1] 35247 > http [ACK] Seq=110 Ack=1 Win=14656 Len=0 
TSval=2942411 TSecr=0
  17858 11.859699   10.0.0.X   20.0.0.X   TCP 66 
[TCP Dup ACK 14821#2] 35247 > http [ACK] Seq=110 Ack=1 Win=14656 Len=0 
TSval=2945148 TSecr=0
  17863 11.860531   10.0.0.X   20.0.0.X   TCP 66 
[TCP Dup ACK 14821#3] 35247 > http [ACK] Seq=110 Ack=1 Win=14656 Len=0 
TSval=2945148 TSecr=0
  25393 15.650790   10.0.0.X   20.0.0.X   HTTP 175
[TCP Retransmission] GET / HTTP/1.0
  25395 15.651626   10.0.0.X   20.0.0.X   TCP 66 
[TCP Dup ACK 25393#1] 35247 > http [ACK] Seq=110 Ack=1 Win=14656 Len=0 
TSval=2948939 TSecr=0
  45327 23.890899   10.0.0.X   20.0.0.X   TCP 66 
[TCP Dup ACK 25393#2] 35247 > http [ACK] Seq=110 Ack=1 Win=14656 Len=0 
TSval=2957178 TSecr=0
  48330 25.906963   10.0.0.X   20.0.0.X   TCP 74 
35248 > http [SYN] Seq=0 Win=14600 Len=0 MSS=1460 SACK_PERM=1 
TSval=2959194 TSecr=0 WS=64
  48337 25.908983   10.0.0.X   20.0.0.X   TCP 66 
35248 > http [ACK] Seq=1 Ack=1 Win=14656 Len=0 TSval=2959197 TSecr=0
  48338 25.909077   10.0.0.X   20.0.0.X   HTTP 175
GET / HTTP/1.0
  48342 25.911184   10.0.0.X   20.0.0.X   TCP 66 
[TCP Dup ACK 48338#1] 35248 > http [ACK] Seq=110 Ack=1 Win=14656 Len=0 
TSval=2959199 TSecr=0
  48343 25.911186   10.0.0.X   20.0.0.X  

Re: faxing

2013-04-22 Thread Corey

On 04/22/13 12:30, Peter Fraser wrote:

Several years ago I put an OpenBSD system in as a firewall and mail server at a 
small charity that I volunteer at (kwaccessablility.ca)
that fixed nearly all the problems that they had with viruses, spam etc.

Last year I talked them in to switching to VOIP (on the OpenBSD server using 
Asterisk). Their phone costs dropped from over $250
per month to less than $30 per month (I used the service from unlimitel.ca). 
The change is costs per month made up for the costs
of the new telephone equipment within the year.

Nearly all their communication that was done by fax is now done by email, 
except for one organization. That organization which is
run by the city supplies transportation for physically handicapped. That 
organization is insisting on faxes. They will not take email.
The charity currently has an analog fax just for the purpose of arranging 
transportation, and that line is costing over $60 per month.

I looked at email to fax services, but I believe those queue the faxes up and 
send them as time is available.  The charity and
the transportation organization need immediate sending and receiving.  They 
carry out a conversation with hand written
notes (requiring the charity to type the responses would not be a problem).

Asterisk has a fax service, so I thought I could use that. But the Asterisk fax 
sending service requires TIFF in a directory
and receiving service puts a TIFF file in a directory.

  The charity operates in a Windows environment. To the problem is: how does a 
person (probably a volunteer)
  on a Windows machine put a TIFF file into a directory on an OpenBSD, and in 
addition send the information
as to where send the fax and get back a status on success or failure of sending 
a fax.

  I don't think receiving the fax will be that much of a problem; it should be 
easy to take the fax out the directory
and send it as an email to a group mailbox.

What I don't have is a good to solution for is how the person sitting at the 
Windows machine is to send a fax.
  There are some commercial solutions for Linux, but I have no idea if they 
operate OpenBSD.
  The commercial solutions are generally of the format that an email gets sent 
and fax is extracted from the text of the message.

I would like to know if anyone has done something similar or any good 
suggestions on what I should do to
get faxing to work

Have you tried connecting your analog fax machine to an ATA (analog 
telephone adapter) and then to your Asterisk box? It may not be what you 
are looking for, but my fax machine works fine over my VoIP (Voipo is 
the provider). I'm not using Asterisk, but if it's all SIP I wouldn't 
think that would matter.


Corey



Re: faxing

2013-04-22 Thread Andres Genovez
2013/4/22 Corey 

> On 04/22/13 12:30, Peter Fraser wrote:
>
>> Several years ago I put an OpenBSD system in as a firewall and mail
>> server at a small charity that I volunteer at (kwaccessablility.ca)
>> that fixed nearly all the problems that they had with viruses, spam etc.
>>
>> Last year I talked them in to switching to VOIP (on the OpenBSD server
>> using Asterisk). Their phone costs dropped from over $250
>> per month to less than $30 per month (I used the service from
>> unlimitel.ca). The change is costs per month made up for the costs
>> of the new telephone equipment within the year.
>>
>> Nearly all their communication that was done by fax is now done by email,
>> except for one organization. That organization which is
>> run by the city supplies transportation for physically handicapped. That
>> organization is insisting on faxes. They will not take email.
>> The charity currently has an analog fax just for the purpose of arranging
>> transportation, and that line is costing over $60 per month.
>>
>> I looked at email to fax services, but I believe those queue the faxes up
>> and send them as time is available.  The charity and
>> the transportation organization need immediate sending and receiving.
>>  They carry out a conversation with hand written
>> notes (requiring the charity to type the responses would not be a
>> problem).
>>
>> Asterisk has a fax service, so I thought I could use that. But the
>> Asterisk fax sending service requires TIFF in a directory
>> and receiving service puts a TIFF file in a directory.
>>
>>   The charity operates in a Windows environment. To the problem is: how
>> does a person (probably a volunteer)
>>   on a Windows machine put a TIFF file into a directory on an OpenBSD,
>> and in addition send the information
>> as to where send the fax and get back a status on success or failure of
>> sending a fax.
>>
>>   I don't think receiving the fax will be that much of a problem; it
>> should be easy to take the fax out the directory
>> and send it as an email to a group mailbox.
>>
>> What I don't have is a good to solution for is how the person sitting at
>> the Windows machine is to send a fax.
>>   There are some commercial solutions for Linux, but I have no idea if
>> they operate OpenBSD.
>>   The commercial solutions are generally of the format that an email gets
>> sent and fax is extracted from the text of the message.
>>
>> I would like to know if anyone has done something similar or any good
>> suggestions on what I should do to
>> get faxing to work
>>
>>  Have you tried connecting your analog fax machine to an ATA (analog
> telephone adapter) and then to your Asterisk box? It may not be what you
> are looking for, but my fax machine works fine over my VoIP (Voipo is the
> provider). I'm not using Asterisk, but if it's all SIP I wouldn't think
> that would matter.
>
> Corey
>
>
I think this is a clean solution, putting an ATA Works fine even for POS
Machines (Credit Cards) that require a land line.

--
Atentamente

Andrés Genovez Tobar / DTIT
Tel: 842388 ext 177
Perfil profesional http://lnkd.in/gcdhJE



Re: Xephyr bug with Firefox

2013-04-22 Thread Juan Francisco Cantero Hurtado
On Sun, Apr 21, 2013 at 04:12:59PM -0700, Robert Connolly wrote:
> Hello.
> 
> I use Xephyr with Firefox. I also run Firefox as a dedicated user.
> At seemingly random times, but on a regular basis, Firefox will
> behave oddly. Firefox will open links in a new window, scrolling up
> or down with my touchpad will cause the tab to go forward or
> backward through browser history, and sometimes capslock will be on
> when typing in Firefox, even though capslock is off.
> 
> Restarting Firefox does not fix these issues, but restarting Xephyr
> does. These issues typically happen when Firefox has been loaded and
> idle for many hours, although once it happened after only being
> loaded for a few minutes.
> 
> I'm guessing this is a memory corruption bug. Could any of you try
> to reproduce this bug, and could any of you suggest some simple ways
> (simple like strace) of debugging this? I would like to have

I can't help with your bug but ktrace(1) is the equivalent to strace.

> something concrete to report to the Xephyr folks so that it gets
> fixed quickly.
> 
> I am running a recent snapshot on an AMD64 with 6GB of memory. I
> have no other problems with other software, so I think I can rule
> out damaged hardware.
> 
> Thanks
> 

-- 
Juan Francisco Cantero Hurtado http://juanfra.info



Re: Very slow NFS writes

2013-04-22 Thread Tomas Bodzar
On Mon, Apr 22, 2013 at 2:46 PM, Mattieu Baptiste wrote:

> Hi,
>
> I'm currently trying to access files from my OpenBSD -current/amd64
> workstation on a NAS under FreeNAS (8.3.1). On my workstation, the
> filesystem is a read/write NFS mounted share. Its size is about 5.2TB.
> While reading seems normal : about 45MB/s, writing is a lot slower
> (fluctuates between 10MB/s and 20MB/s) before eventually stall (under
> 1MB/s). Note that at the start, my box is totally unresponsive. When the
> writes fall below 1MB/s, the box became responsive again.
>
> PF is disabled on my box and on both sides, I have em(4) interfaces
> (autoneg at 1000 baseT).
>
> With CIFS shares, the NAS can do a lot more throughput : above 50MB/s
> writes.
>
> I suspect problems with the OpenBSD NFS client since I saw problems like
> that in the archive. Moreover, the behavior of my box which became
> unresponsive when writing at 20MB/s seems strange.
>
> Any clues ?
>
> I'm sorry to not have more factual numbers... except the dmesg of my box.
> The NAS isn't accessible to me all the time. I can provide more details in
> the future.
>


You can start on client side as well to provide some numbers.

nfsstat -c
systat (check more screens)
vmstat
netstat -m
top
...



>
>
> OpenBSD 5.3-current (GENERIC.MP) #12: Mon Apr 15 15:18:44 CEST 2013
> matt...@kronenbourg.brimbelle.org:/usr/src/sys/arch/amd64/compile/
> GENERIC.MP
> real mem = 8571518976 (8174MB)
> avail mem = 8335634432 (7949MB)
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xf0710 (68 entries)
> bios0: vendor American Megatrends Inc. version "2003" date 12/14/2010
> bios0: ASUSTeK Computer INC. P7P55D
> acpi0 at bios0: rev 2
> acpi0: sleep states S0 S1 S3 S4 S5
> acpi0: tables DSDT FACP APIC MCFG OEMB HPET DMAR ASPT OSFR
> acpi0: wakeup devices P0P4(S4) BR1E(S4) UAR1(S4) PS2K(S4) PS2M(S4) EUSB(S4)
> USB0(S4) USB1(S4) USB2(S4) USB3(S4) USBE(S4) USB4(S4) USB5(S4) USB6(S4)
> BR21(S4) BR22(S4) BR23(S4) P0P1(S4) P0P3(S4) P0P5(S4) P0P6(S4) USB8(S4)
> BR20(S4) BR24(S4) BR25(S4) BR26(S4) BR27(S4)
> acpitimer0 at acpi0: 3579545 Hz, 24 bits
> acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: Intel(R) Core(TM) i5 CPU 660 @ 3.33GHz, 3374.33 MHz
> cpu0:
>
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,AES,NXE,LONG,LAHF,PERF,ITSC
> cpu0: 256KB 64b/line 8-way L2 cache
> cpu0: smt 0, core 0, package 0
> cpu0: apic clock running at 160MHz
> cpu1 at mainbus0: apid 4 (application processor)
> cpu1: Intel(R) Core(TM) i5 CPU 660 @ 3.33GHz, 3373.90 MHz
> cpu1:
>
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,AES,NXE,LONG,LAHF,PERF,ITSC
> cpu1: 256KB 64b/line 8-way L2 cache
> cpu1: smt 0, core 2, package 0
> cpu2 at mainbus0: apid 1 (application processor)
> cpu2: Intel(R) Core(TM) i5 CPU 660 @ 3.33GHz, 3373.90 MHz
> cpu2:
>
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,AES,NXE,LONG,LAHF,PERF,ITSC
> cpu2: 256KB 64b/line 8-way L2 cache
> cpu2: smt 1, core 0, package 0
> cpu3 at mainbus0: apid 5 (application processor)
> cpu3: Intel(R) Core(TM) i5 CPU 660 @ 3.33GHz, 3373.90 MHz
> cpu3:
>
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,AES,NXE,LONG,LAHF,PERF,ITSC
> cpu3: 256KB 64b/line 8-way L2 cache
> cpu3: smt 1, core 2, package 0
> ioapic0 at mainbus0: apid 6 pa 0xfec0, version 20, 24 pins
> ioapic0: misconfigured as apic 1, remapped to apid 6
> acpimcfg0 at acpi0 addr 0xf800, bus 0-63
> acpihpet0 at acpi0: 14318179 Hz
> acpiprt0 at acpi0: bus 0 (PCI0)
> acpiprt1 at acpi0: bus 7 (BR1E)
> acpiprt2 at acpi0: bus -1 (BR21)
> acpiprt3 at acpi0: bus -1 (BR22)
> acpiprt4 at acpi0: bus -1 (BR23)
> acpiprt5 at acpi0: bus 1 (P0P1)
> acpiprt6 at acpi0: bus -1 (P0P3)
> acpiprt7 at acpi0: bus -1 (P0P5)
> acpiprt8 at acpi0: bus -1 (P0P6)
> acpiprt9 at acpi0: bus 6 (BR20)
> acpiprt10 at acpi0: bus 5 (BR24)
> acpiprt11 at acpi0: bus 4 (BR25)
> acpiprt12 at acpi0: bus 3 (BR26)
> acpiprt13 at acpi0: bus 2 (BR27)
> acpiec0 at acpi0
> acpicpu0 at acpi0
> acpicpu1 at acpi0
> acpicpu2 at acpi0
> acpicpu3 at acpi0
> aibs0 at acpi0: GGRP GITM SITM
> acpibtn0 at acpi0: PWRB
> pci0 at mainbus0 bus 0
> pchb0 at pci0 dev 0 function 0 "Intel Core Host" rev 0x12
> ppb0 at pci0 dev 1 function 0 "Intel Core PCIE" rev 0x12: msi
> pci1 at ppb0 bus 1
> vga1 at pci1 dev 0 function 0 "ATI Radeon HD 4670" rev 0x00
> r