lidsuspend does not work anymore on 5.8 snapshot, garbles screen, zzz suspend works fine (longer)

2015-07-29 Thread Jan Vlach
Hello misc@ team,

I'm running 5.8-current and closing the lid does not suspend the system
anymore, but garbles the screen and it's not possible to switch to text
console to do proper shutdown. suspending  resuming the system via zzz
works fine. 
Shutdown is only possible holding the powerbutton. Fsck is necesarry on
new boot. dmesg at the end of mail.

Power, wifi and battery leds all stay on if the lid is closed now. (with
zzz command, power starts to blink and wifi turns off)

The hardware is i386 netbook with intel atom. I have hyperthreading
because of heat production, but this is reproducible with GENERIC.MP too.
also, at the moment I have machdep.lidsuspend=0, so I don't kill the
system if I just close the lid.

I've experienced this at least on last 3 builds, I haven't upgraded for
quite some time before than.

if you imagine excel/calc sheet overlay on displayed image, then the
garbling looks like cell in every second row is moved down one row.
There are at least 8 collumns ... 

I'm in vacation now with netbook  dumb phone, so I have no way of
sending the photo I took. (Can do this on saturday earliest)

Is this known? Anything else I can do to track this further?

Thank you,
Jan

### DMESG

OpenBSD 5.8 (GENERIC) #1039: Tue Jul 28 22:58:09 MDT 2015
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Atom(TM) CPU N270 @ 1.60GHz (GenuineIntel 686-class) 1.61 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,PBE,NXE,SSE3,DTES64,MWAIT,DS-CPL,EST,TM2,SSSE3,xTPR,PDCM,MOVBE,LAHF,PERF
real mem  = 2138193920 (2039MB)
avail mem = 2082930688 (1986MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: date 06/11/09, BIOS32 rev. 0 @ 0xf0010, SMBIOS rev. 2.5 @ 
0xf0710 (30 entries)
bios0: vendor American Megatrends Inc. version 2103 date 06/11/2009
bios0: ASUSTeK Computer INC. 901
acpi0 at bios0: rev 0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC MCFG OEMB HPET SSDT
acpi0: wakeup devices P0P2(S4) P0P1(S4) P0P4(S4) P0P6(S4) P0P7(S4) P0P8(S4) 
P0P9(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 133MHz
cpu0: mwait min=22785, max=32960
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xe000, bus 0-63
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 5 (P0P4)
acpiprt2 at acpi0: bus 3 (P0P6)
acpiprt3 at acpi0: bus 1 (P0P7)
acpiprt4 at acpi0: bus -1 (P0P8)
acpiprt5 at acpi0: bus -1 (P0P9)
acpiprt6 at acpi0: bus 4 (P0P5)
acpiec0 at acpi0
acpicpu0 at acpi0
C2: state 2: substate 0 = num 0: C1(1000@1 mwait.1), PSS
acpitz0 at acpi0: critical temperature is 85 degC
acpibat0 at acpi0: BAT0 model 901 serial   type LION oem ASUS
acpiac0 at acpi0: AC unit online
acpiasus0 at acpi0
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibtn2 at acpi0: PWRB
bios0: ROM list: 0xc/0xec00!
cpu0: Enhanced SpeedStep 1601 MHz: speeds: 1600, 1333, 1067, 800 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 Intel 82945GME Host rev 0x03
vga1 at pci0 dev 2 function 0 Intel 82945GME Video rev 0x03
intagp0 at vga1
agp0 at intagp0: aperture at 0xd000, size 0x1000
inteldrm0 at vga1
drm0 at inteldrm0
inteldrm0: 1024x600
wsdisplay0 at vga1 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
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: msi
azalia0: codecs: Realtek ALC269
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x02: apic 1 int 16
pci1 at ppb0 bus 5
ppb1 at pci0 dev 28 function 1 Intel 82801GB PCIE rev 0x02: apic 1 int 17
pci2 at ppb1 bus 4
ale0 at pci2 dev 0 function 0 Attansic Technology L1E rev 0xb0: AR8113, msi, 
address 00:22:15:36:2d:7f
atphy0 at ale0 phy 0: F1 10/100/1000 PHY, rev. 9
ppb2 at pci0 dev 28 function 2 Intel 82801GB PCIE rev 0x02: apic 1 int 18
pci3 at ppb2 bus 3
ppb3 at pci0 dev 28 function 3 Intel 82801GB PCIE rev 0x02: apic 1 int 19
pci4 at ppb3 bus 1
ral0 at pci4 dev 0 function 0 Ralink RT2790 rev 0x00: apic 1 int 19, address 
00:15:af:bc:da:cb
ral0: MAC/BBP RT2872 (rev 0x0200), RF RT2720 (MIMO 1T2R)
uhci0 at pci0 dev 29 function 0 Intel 82801GB USB rev 0x02: apic 1 int 23
uhci1 at pci0 dev 29 function 1 Intel 82801GB USB rev 0x02: apic 1 int 22
uhci2 at pci0 dev 29 function 2 Intel 82801GB USB rev 0x02: apic 1 int 21
uhci3 at pci0 dev 29 function 3 Intel 82801GB USB rev 0x02: apic 1 int 20
ehci0 at pci0 dev 29 function 7 Intel 82801GB USB rev 0x02: apic 1 int 23
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
ppb4 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0xe2
pci5 at 

OpenBSD vs Notebook Speaker.

2015-07-29 Thread Mohammad BadieZadegan
Hi everybody,
I'm using multimedia on my OpenBSD with headphone but my Notebook speaker
don't sound!
How can I use my notebook speaker?
Is that any mixerctl  command to turn on built-in notebook speaker?
This is my mixerctl output:

$ mixerctl
outputs.mic_source=dac-0:1
inputs.mic=85,85
outputs.mic_dir=input-vr80
outputs.mic_boost=off
outputs.mic_eapd=on
outputs.hp_source=dac-0:1
outputs.hp_boost=off
outputs.hp_eapd=on
outputs.spkr_source=dac-2:3
outputs.spkr_eapd=on
outputs.line_source=dac-0:1
inputs.line=85,85
outputs.line_dir=output
outputs.line_eapd=on
outputs.mic2_source=dac-0:1
inputs.mic2=85,85
outputs.mic2_dir=input
outputs.mic2_eapd=on
inputs.mic3=85,85
inputs.dac-0:1_mute=off
inputs.dac-0:1=254,254
inputs.dac-2:3_mute=off
inputs.dac-2:3=126,126
record.adc-0:1_source=mic3
record.adc-0:1_mute=off
record.adc-0:1=119,119
record.adc-2:3_source=line
record.adc-2:3_mute=off
record.adc-2:3=119,119
inputs.sel3_source=dac-0:1
inputs.mix2_source=line,mic2,dac-0:1,dac-2:3,mic
inputs.mix2_line=120,120
inputs.mix2_mic2=120,120
inputs.mix2_dac-0:1=120,120
inputs.mix2_dac-2:3=120,120
inputs.mix2_mic=120,120
outputs.mix2_mute=off
outputs.mix2=120,120
inputs.beep_mute=off
inputs.beep=85
outputs.mic_sense=unplugged
outputs.hp_sense=unplugged
outputs.line_sense=unplugged
outputs.mic2_sense=unplugged
outputs.spkr_muters=mic,hp,line,mic2
outputs.master=255,255
outputs.master.mute=off
outputs.master.slaves=dac-0:1,dac-2:3
record.volume=119,119
record.volume.mute=off
record.volume.slaves=adc-0:1,adc-2:3
$



Re: OpenBSD vs Notebook Speaker.

2015-07-29 Thread Jan Stary
On Jul 29 23:20:40, mbzade...@gmail.com wrote:
 Hi everybody,
 I'm using multimedia on my OpenBSD with headphone but my Notebook speaker
 don't sound!
 How can I use my notebook speaker?
 Is that any mixerctl  command to turn on built-in notebook speaker?
 This is my mixerctl output:
 
 $ mixerctl
 outputs.mic_source=dac-0:1
 inputs.mic=85,85
 outputs.mic_dir=input-vr80
 outputs.mic_boost=off
 outputs.mic_eapd=on
 outputs.hp_source=dac-0:1
 outputs.hp_boost=off
 outputs.hp_eapd=on
 outputs.spkr_source=dac-2:3
 outputs.spkr_eapd=on
 outputs.line_source=dac-0:1
 inputs.line=85,85
 outputs.line_dir=output
 outputs.line_eapd=on
 outputs.mic2_source=dac-0:1
 inputs.mic2=85,85
 outputs.mic2_dir=input
 outputs.mic2_eapd=on
 inputs.mic3=85,85
 inputs.dac-0:1_mute=off
 inputs.dac-0:1=254,254
 inputs.dac-2:3_mute=off
 inputs.dac-2:3=126,126

Try turning this up to 255

 record.adc-0:1_source=mic3
 record.adc-0:1_mute=off
 record.adc-0:1=119,119
 record.adc-2:3_source=line
 record.adc-2:3_mute=off
 record.adc-2:3=119,119
 inputs.sel3_source=dac-0:1
 inputs.mix2_source=line,mic2,dac-0:1,dac-2:3,mic
 inputs.mix2_line=120,120
 inputs.mix2_mic2=120,120
 inputs.mix2_dac-0:1=120,120
 inputs.mix2_dac-2:3=120,120

and this

 inputs.mix2_mic=120,120
 outputs.mix2_mute=off
 outputs.mix2=120,120

and this.

 inputs.beep_mute=off
 inputs.beep=85
 outputs.mic_sense=unplugged
 outputs.hp_sense=unplugged
 outputs.line_sense=unplugged
 outputs.mic2_sense=unplugged
 outputs.spkr_muters=mic,hp,line,mic2
 outputs.master=255,255
 outputs.master.mute=off
 outputs.master.slaves=dac-0:1,dac-2:3
 record.volume=119,119
 record.volume.mute=off
 record.volume.slaves=adc-0:1,adc-2:3


On Jul 29 14:51:06, a...@h-i-r.net wrote:
 I'd start with the ones named Master because of reasons.

Because of reasons just became my favourite argument, thanks.

 outputs.spkr_muters=255
 Muters sounds like it might decrease volume... might also try setting it
 to 0.
 mixerctl outputs.spkr_muters=0

spkr_muters is a list of those that mute the speakers;
e.g. if you plug the headphones in, you want the speakers muted (or don't).
man azalia. Setting it to a number makes no sense.



Re: lidsuspend does not work anymore on 5.8 snapshot, garbles screen, zzz suspend works fine (longer)

2015-07-29 Thread Michael McConville
I'm having a similar issue on today's AMD64 snapshot on a ThinkPad X210.

When I opened it the screen stayed black and there were no signs of life
other than the battery indicator. Pressing keys did nothing. I had to
power cycle.

The only relevant syslog entry was:

 Jul 29 13:29:22 thinkpad apmd: system suspending

dmesg:

OpenBSD 5.8 (GENERIC.MP) #1206: Wed Jul 29 01:00:00 MDT 2015
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 4062691328 (3874MB)
avail mem = 3935670272 (3753MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xe0010 (78 entries)
bios0: vendor LENOVO version 6QET61WW (1.31 ) date 10/26/2010
bios0: LENOVO 3626FAU
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SSDT ECDT APIC MCFG HPET ASF! SLIC BOOT SSDT TCPA SSDT 
SSDT SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) IGBE(S4) EXP1(S4) EXP2(S4) EXP3(S4) 
EXP4(S4) EXP5(S4) EHC1(S3) EHC2(S3) HDEF(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiec0 at acpi0
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5 CPU M 540 @ 2.53GHz, 2793.40 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,PCID,SSE4.1,SSE4.2,POPCNT,AES,NXE,LONG,LAHF,PERF,ITSC,SENSOR,ARAT
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 132MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.1, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM) i5 CPU M 540 @ 2.53GHz, 2793.00 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,PCID,SSE4.1,SSE4.2,POPCNT,AES,NXE,LONG,LAHF,PERF,ITSC,SENSOR,ARAT
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 1, core 0, package 0
cpu2 at mainbus0: apid 4 (application processor)
cpu2: Intel(R) Core(TM) i5 CPU M 540 @ 2.53GHz, 2793.00 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,PCID,SSE4.1,SSE4.2,POPCNT,AES,NXE,LONG,LAHF,PERF,ITSC,SENSOR,ARAT
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 0, core 2, package 0
cpu3 at mainbus0: apid 5 (application processor)
cpu3: Intel(R) Core(TM) i5 CPU M 540 @ 2.53GHz, 2793.00 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,PCID,SSE4.1,SSE4.2,POPCNT,AES,NXE,LONG,LAHF,PERF,ITSC,SENSOR,ARAT
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 1, core 2, package 0
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 2, remapped to apid 1
acpimcfg0 at acpi0 addr 0xe000, bus 0-255
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEG_)
acpiprt2 at acpi0: bus 13 (EXP1)
acpiprt3 at acpi0: bus -1 (EXP2)
acpiprt4 at acpi0: bus -1 (EXP3)
acpiprt5 at acpi0: bus 5 (EXP4)
acpiprt6 at acpi0: bus 2 (EXP5)
acpicpu0 at acpi0: C3(350@245 mwait.3@0x20), C2(500@205 mwait.3@0x10), 
C1(1000@3 mwait.1), PSS
acpicpu1 at acpi0: C3(350@245 mwait.3@0x20), C2(500@205 mwait.3@0x10), 
C1(1000@3 mwait.1), PSS
acpicpu2 at acpi0: C3(350@245 mwait.3@0x20), C2(500@205 mwait.3@0x10), 
C1(1000@3 mwait.1), PSS
acpicpu3 at acpi0: C3(350@245 mwait.3@0x20), C2(500@205 mwait.3@0x10), 
C1(1000@3 mwait.1), PSS
acpipwrres0 at acpi0: PUBS, resource for EHC1, EHC2
acpitz0 at acpi0: critical temperature is 100 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model 42T4694 serial  1408 type LION oem SANYO
acpibat1 at acpi0: BAT1 not present
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
acpidock0 at acpi0: GDCK not docked (0)
cpu0: Enhanced SpeedStep 2793 MHz: speeds: 2534, 2533, 2399, 2266, 2133, 1999, 
1866, 1733, 1599, 1466, 1333, 1199 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 Intel Core Host rev 0x02
vga1 at pci0 dev 2 function 0 Intel HD Graphics rev 0x02
intagp0 at vga1
agp0 at intagp0: aperture at 0xd000, size 0x1000
inteldrm0 at vga1
drm0 at inteldrm0
inteldrm0: 1280x800
wsdisplay0 at vga1 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
Intel 3400 MEI rev 0x06 at pci0 dev 22 function 0 not configured
puc0 at pci0 dev 22 function 3 Intel 3400 KT rev 0x06: ports: 1 com
com4 at puc0 port 0 apic 1 int 17: ns16550a, 16 byte fifo
com4: probed fifo depth: 0 bytes
em0 at pci0 dev 25 function 0 Intel 82577LM rev 0x06: msi, address 
f0:de:f1:31:ca:8d
ehci0 at pci0 dev 26 function 0 Intel 

Re: OpenBSD vs Notebook Speaker.

2015-07-29 Thread Ax0n
I'd just try cranking up most of those xx,xx lines to 255, one at a time,
until your speakers emit something audible.

I'd start with the ones named Master because of reasons.
mixerctl outputs.master=255
mixerctl outputs.master.slaves=255

I know when I'm playing stuff on VLC, inputs.dac affects the volume there.
mixerctl inputs.dac-0:1=255
mixerctl inputs.dac-2:3=255

I don't have a mix2 or any muters on any of my OpenBSD machines. You
might want to crank these up, too.
mixerctl inputs.mix2_source=255
mixerctl inputs.mix2_dac-0:1=255
mixerctl inputs.mix2_dac-2:3=255
mixerctl outputs.mix2=255
outputs.spkr_muters=255

Muters sounds like it might decrease volume... might also try setting it
to 0.
mixerctl outputs.spkr_muters=0

Once you find out some sane settings that work well for your speakers and
headphones alike, I recommend adding them to /etc/mixerctl.conf. See
mixerctl.conf(5) for more info.

Additionally, I've had some laptops give me quite a bit of trouble with
audio. There may be nothing you can do from mixerctl to get it to work. You
may want to document the things you tried and send a dmesg and problem
report via sendbug only once you've ruled out everything else.

On Wed, Jul 29, 2015 at 1:50 PM, Mohammad BadieZadegan mbzade...@gmail.com
wrote:

 Hi everybody,
 I'm using multimedia on my OpenBSD with headphone but my Notebook speaker
 don't sound!
 How can I use my notebook speaker?
 Is that any mixerctl  command to turn on built-in notebook speaker?
 This is my mixerctl output:

 $ mixerctl
 outputs.mic_source=dac-0:1
 inputs.mic=85,85
 outputs.mic_dir=input-vr80
 outputs.mic_boost=off
 outputs.mic_eapd=on
 outputs.hp_source=dac-0:1
 outputs.hp_boost=off
 outputs.hp_eapd=on
 outputs.spkr_source=dac-2:3
 outputs.spkr_eapd=on
 outputs.line_source=dac-0:1
 inputs.line=85,85
 outputs.line_dir=output
 outputs.line_eapd=on
 outputs.mic2_source=dac-0:1
 inputs.mic2=85,85
 outputs.mic2_dir=input
 outputs.mic2_eapd=on
 inputs.mic3=85,85
 inputs.dac-0:1_mute=off
 inputs.dac-0:1=254,254
 inputs.dac-2:3_mute=off
 inputs.dac-2:3=126,126
 record.adc-0:1_source=mic3
 record.adc-0:1_mute=off
 record.adc-0:1=119,119
 record.adc-2:3_source=line
 record.adc-2:3_mute=off
 record.adc-2:3=119,119
 inputs.sel3_source=dac-0:1
 inputs.mix2_source=line,mic2,dac-0:1,dac-2:3,mic
 inputs.mix2_line=120,120
 inputs.mix2_mic2=120,120
 inputs.mix2_dac-0:1=120,120
 inputs.mix2_dac-2:3=120,120
 inputs.mix2_mic=120,120
 outputs.mix2_mute=off
 outputs.mix2=120,120
 inputs.beep_mute=off
 inputs.beep=85
 outputs.mic_sense=unplugged
 outputs.hp_sense=unplugged
 outputs.line_sense=unplugged
 outputs.mic2_sense=unplugged
 outputs.spkr_muters=mic,hp,line,mic2
 outputs.master=255,255
 outputs.master.mute=off
 outputs.master.slaves=dac-0:1,dac-2:3
 record.volume=119,119
 record.volume.mute=off
 record.volume.slaves=adc-0:1,adc-2:3
 $



Re: Collect logs with syslog +hostname

2015-07-29 Thread Atanas Vladimirov

On 29.07.2015 16:31, Gregory Edigarov wrote:

On 07/29/2015 03:46 PM, Atanas Vladimirov wrote:

Thanks for the hint.
Actually I modified syslog.conf to begin with

++wdr4900
*.* /var/log/w4900
+*

because I wanted all records from OpenWRT router to be in one place 
(/var/log/w4900).


It seems that the real problem/misunderstanding was the part with 
/etc/hosts.

Why syslogd doesn't use /etc/resolve.conf?

Because at the time of developing the patch (I was developing it for
myself) I wanted it to be as small and as less invasive as possible.
I could have made it work with the resolver, but that was:
1. more invasive
2. less secure
3. it wouldn't be accepted

I got it. Thanks for your work.



If you need more complex log processing, you _should_ look at
different projects like rsyslog, syslog-ng or nxlog.

I don't need anything more complex. That's why I use OpenBSD.
I think that it *may* be a good idea to add a note in SYSLOG.CONF(5) 
about /etc/hosts.




new (nasty) spam pattern

2015-07-29 Thread Steve Fairhead

Hi folks,

Am now seeing a recent (last few months) HEEEUUGE increase in spam to my 
(redirected mail) users with the following pattern:


 - spam sent to many email addresses with one-time-only domain, each of 
which has a barely traceable and mobile (and maybe temporary) IP, but 
with a whois record going back to a few repeating registrants (Batista 
Network, WhoisGuard in Panama, MXSPORT LLC, SHOUTMEDIA INC. being a few 
of several). Am happy to publish the list if this helps anyone else.


I'm not sure I can do better than what I do now: record the domains (or 
email patterns) to a database, from which I derive an access db for 
sendmail, and reject them with a fairly polite message - which doesn't 
happen often.


But when it does, I'd like to hurt them. I also run spamd; can't seem to 
find a way to tarpit based on domain rather than IP...


This is happening often enough now that gmail and yahoo are 
rate-limiting my servers because of spam... meep! Seems hugely unfair, 
and I shall cry.


Any cluebats?

Steve

--

--
  Steve Fairhead
fivetrees ltd - for the complete music service
   www: http://www.fivetrees.com
--



Re: lidsuspend does not work anymore on 5.8 snapshot, garbles screen, zzz suspend works

2015-07-29 Thread Gerald Hanuer
 Hello,

 When I opened it the screen stayed black and there were no signs of
 life other than the battery indicator. Pressing keys did nothing.
 I had to power cycle.

 I am seeing similar behavior with current built 7-28-15 and T450s.

 So suspend closing lid looks to work as expected.

 Opening lid, system wakes ( sshing in works ).

 The screen stays black and keyboard has no effect waking it.

 Tryed to test if the keyboard was functioning after suspend by

 turning on ( # wsconsctl keyboard.bell.volume=70 ) before closing

 lid for suspend but keyboard bell is not working.

 Audio does work but no keyboard bell ( it is turned on in bios ).



How would I go about collecting precise debug information
 specific to this issues.

 I would like to post the data


  Thanks,

  Gerald Hanuer

dmesg:
OpenBSD 5.8 (GENERIC.MP) #3: Tue Jul 28 00:28:49 UTC 2015
r...@jv4r7cvs.my.domain:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8277442560 (7893MB)
r...@jv4r7cvs.my.domain:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8277442560 (7893MB)
avail mem = 8022683648 (7651MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0x9cbfd000 (66 entries)
bios0: vendor LENOVO version JBET50WW (1.15 ) date 06/10/2015
bios0: LENOVO 20BXCTO1WW
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP ASF! HPET ECDT APIC MCFG SSDT SSDT SSDT SSDT SSDT
SSDT SSDT SSDT SSDT PCCT SSDT TCPA SS
DT UEFI MSDM BATB FPDT UEFI
acpi0: wakeup devices LID_(S4) SLPB(S3) IGBE(S4) EXP2(S4) XHCI(S3) EHC1(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpiec0 at acpi0
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i7-5600U CPU @ 2.60GHz, 798.27 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,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2AP
IC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,BMI1,HLE
,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,RDSEED,ADX,SMAP,SENSOR,ARAT
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE
cpu1 at mainbus0: apid 1 (application processor)

cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM) i7-5600U CPU @ 2.60GHz, 798.15 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,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2AP
IC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,BMI1,HLE
,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,RDSEED,ADX,SMAP,SENSOR,ARAT
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 1, core 0, package 0
cpu2 at mainbus0: apid 2 (application processor)
cpu2: Intel(R) Core(TM) i7-5600U CPU @ 2.60GHz, 798.16 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,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2AP
IC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,BMI1,HLE
,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,RDSEED,ADX,SMAP,SENSOR,ARAT
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 0, core 1, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Core(TM) i7-5600U CPU @ 2.60GHz, 798.16 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,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2AP
IC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,BMI1,HLE
,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,RDSEED,ADX,SMAP,SENSOR,ARAT
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 1, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 40 pins
acpimcfg0 at acpi0 addr 0xf800, bus 0-63
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEG_)
acpiprt2 at acpi0: bus 2 (EXP1)
acpiprt1 at acpi0: bus -1 (PEG_)
acpiprt2 at acpi0: bus 2 (EXP1)
acpiprt3 at acpi0: bus 3 (EXP2)
acpiprt4 at acpi0: bus -1 (EXP3)
acpicpu0 at acpi0: !C3(200@233 mwait.1@0x40), C2(200@148 mwait.1@0x33),
C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: !C3(200@233 mwait.1@0x40), C2(200@148 mwait.1@0x33),
C1(1000@1 mwait.1), PSS
acpicpu2 at acpi0: !C3(200@233 mwait.1@0x40), C2(200@148 mwait.1@0x33),
C1(1000@1 mwait.1), PSS
acpicpu3 at acpi0: !C3(200@233 mwait.1@0x40), C2(200@148 mwait.1@0x33),
C1(1000@1 mwait.1), 

Maintaining CAs not in cert.pem

2015-07-29 Thread trondd
I have my own CA for home use and my work also has their own CA and
intermediate certificates.  What is the correct way of maintaining the
certificates so that the system always knows about them?  I've been
appending them to /etc/ssl/cert.pem but it gets replaced every update (not
even maintained with sysmerge since it comes for libcrypto and not the etc
package).

Is there a place to put them that is automatically read in addition to
cert.pem?

Tim.



Re: lidsuspend does not work anymore on 5.8 snapshot, garbles screen, zzz suspend works

2015-07-29 Thread Michael McConville
Gerald Hanuer wrote:
  When I opened it the screen stayed black and there were no signs of
  life other than the battery indicator. Pressing keys did nothing.
  I had to power cycle.
 
  I am seeing similar behavior with current built 7-28-15 and T450s.

Seems that it's tentatively fixed:

https://marc.info/?l=openbsd-cvsm=143819481225921w=2

http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/sys/dev/acpi/acpi.c



Re: new (nasty) spam pattern

2015-07-29 Thread Quartz

Any cluebats?


Not sure if it will help your specific situation, but you could look 
into server side grey listing. This will cause your mail server to 
temporarily reject mail from them, forcing them to try again a couple 
hours later. Fly-by-night spam places almost never bother to resubmit, 
so it's pretty effective (it cut down my spam to under 5% literally 
overnight).


https://en.wikipedia.org/wiki/Greylisting



Re: lidsuspend does not work anymore on 5.8 snapshot, garbles screen, zzz suspend works fine

2015-07-29 Thread Gerald Hanuer
 Hello,

 Michael McConville wrote:

  Seems that it's tentatively fixed:
  https://marc.info/?l=openbsd-cvsm=143819481225921w=2
  http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/sys/dev/acpi/acpi.c


 Thanks for heads up.

 I am building cvs now.

 I will post results.


  Regards,

   Gerald Hanuer



Re: Sluggish/laggy browser behaviour

2015-07-29 Thread Nathan Van Ymeren
On Wed, 29 Jul 2015 02:35:39 -0400
Brad Smith b...@comstyle.com wrote:

 Give up. The developers don't care in a functional manner. They won't
 listen to the obvious issues (and there are) and would rather attack
 you then admit the obvious.
 

I don't think anyone's attacked me here, developer or not?

On Wed, 29 Jul 2015 00:20:46 -0600
Theo de Raadt dera...@cvs.openbsd.org wrote:

 Nope.  A non-developer is trying to preach their point of view to
 you.
 

Okay thanks for the clarification.



Re: Sluggish/laggy browser behaviour

2015-07-29 Thread Gilles Chehade
On Wed, Jul 29, 2015 at 12:46:01AM -0700, Nathan Van Ymeren wrote:
 On Wed, 29 Jul 2015 02:35:39 -0400
 Brad Smith b...@comstyle.com wrote:
 
  Give up. The developers don't care in a functional manner. They won't
  listen to the obvious issues (and there are) and would rather attack
  you then admit the obvious.
  
 
 I don't think anyone's attacked me here, developer or not?
 

Disregard, some people have trouble understanding that harsh reactions
are not really the result of reporting issues.

Some people report many issues and never get a harsh reaction, while a
few people always get harsh reactions when posting to the lists.

I guess it's simpler to assume the problem is with the other people on
the list rather than adjust a shitty attitude ;-)

Reporting issues is one of the best way for a non-developer to help us
and I think it's pretty clear to everyone that OpenBSD and all related
projects don't tend to hide issues under the carpet.

-- 
Gilles Chehade

https://www.poolp.org  @poolpOrg



Re: OpenBSD machine was hacked

2015-07-29 Thread Peter J. Philipp
On 07/29/15 03:33, Wong Peter wrote:
 Q:why do you believe that your machine was hacked?
 A: My pf rules was flushed.This can prove using pfctl -sr. The whoe
 firewall was not usable anymore. NO NAT nor packet filtering.

Hi Peter,

Can you let us know the version and architecture of OpenBSD you were
running, and any ports you might have installed.  What sort of programs
were facing the network ie. netstat -na would tell.

Also I gather you used ssh to access the machine.  Do you use a strong
password?  Does your ISP know your password?  If they installed snooping
mechanism they don't know your password per say, only if you've given it
to them.

You seem to have some trouble mounting a drive, indicating that you're
new to OpenBSD.  I don't want to call you a newbie but this is likely a
newbie mistake.  In regards to mounting the external harddrive use mount
to mount the drive first, it doesn't automatically get auto-mounted.

Right now I see a lot of guessing on what's going on and little fact. 
Help us with the facts so that _perhaps_ we can see an avenue of attack.

Regards,

-peter philipp





 Q: You say that whatever happened was done by your ISP even though you had
 no Internet connection.Why do you believe that to be true?
 A: Our ISP had implement monitoring like NSA or British CGHQ. Moreover,
 Hacking openBSD is not that easy. First hop hacking is much more easier
 than anyone.

 Q: Why do you believe that you had no Internet connection?
 A: No response when ping dns server and no IP address assign to pppoe0
 interface.

 Q:  If you had no Internet connection, how is it that someone at your ISP
 would have been able to access the machine?
 A: I had no idea. Thus, I was asked it here.

 Q: Where is the machine actually located?
 A: This is a home use firewall router sit behind a modem.

 Where to find log files regarding pf rule was flushed out using carp or
 pfsync?

 I'm understand you all want to help me and you all require information.
 I'm tried to extract the whole OS into zip file and copied to portable hard
 disk but it failed.
 It say no such file or directory.
 cp /home/user/bsd.tar.gz /mnt/obsd/

 What wrong with it?











 On Wed, Jul 29, 2015 at 8:26 AM, Daniel Boulet da...@matilda.com wrote:

 There is all sorts of information that you could provide:

 - why do you believe that your machine was hacked? You seem to think that
 someone at your ISP did whatever was done. Why do you believe that to be
 true? Why would someone at your ISP want to do this? Why would someone at
 you ISP be better able to do this than some random bad person out on the
 Internet?

 - you say that whatever happened was done by your ISP even though you had
 no Internet connection. Why do you believe that this is even possible? Why
 do you believe that you had no Internet connection? If you had no Internet
 connection, how is it that someone at your ISP would have been able to
 access the machine? Where is the machine actually located?

 - you say that your pf rules were flushed. Why do you believe that they
 were ever loaded in the first place? Can you demonstrate that the rules
 were in place at one point in time and that they are no longer in place
 later? Have you tried rebooting the machine and then immediately checking
 to see if the rules are there or not?

 - you say that you suspect that your ISP used some sort of “Layer 2 by
 using mac spoofing/mac target� technique. Please say more about “some
 sort
 of� - what sort of? Why do you believe that this technique, whatever it
 is,
 might work? Can you even provide a basic explanation of how this technique,
 whatever it is, might have been used to hack your machine or is this just a
 theory with no evidence to support it.

 There are lots of other questions you could answer. For example, what
 messages appear in your log files that support your theory? Even a list of
 the evidence that you see that supports your theory might help. It almost
 sounds like you are saying that you cannot figure out how whatever happened
 occurred so it must have been someone at your ISP. That is a pretty big
 leap to make without some evidence that actually points at your ISP.

 -Danny

 On Jul 28, 2015, at 18:00 , Wong Peter peterap...@gmail.com wrote:

 What information you all require?

 On Tue, Jul 28, 2015 at 10:28 PM, Giancarlo Razzolini 
 grazzol...@gmail.com
 wrote:

 Em 28-07-2015 06:17, Wong Peter escreveu:
 Dear All,

 Recently, I'm realized that my openbsd firewall router was not usable
 anymore due to pf rules had changed by using carp and pfsync mechanism.

 Here is my prove.

 I'm tried to reinstall the whole machine and plugged in the modem LAN
 cable
 to NIC card. All my written pf rules was flush and changed. This happen
 even without internet connection(No IP address assign).

 I'm suspected this is did by my ISP. I'm believed my openbsd machine
 was
 located same subnet with their machine.

 I'm even tried to disable carp protocol but my pf 

Re: OpenBSD machine was hacked

2015-07-29 Thread Stuart Henderson
On 2015-07-29, Wong Peter peterap...@gmail.com wrote:
 Where to find log files regarding pf rule was flushed out using carp or
 pfsync?

pfsync can only sync firewall state tables (pfctl -ss).

carp can't change anything to do with PF settings - not rules, not states.

There is no mechanism to sync or flush rules without logging in to the
machine.

If there's an error in your pf.conf file, default rules will be used
instead. Run pfctl -nf /etc/pf.conf and check for error messages.

What are the actual rules that were installed? Show pfctl -sr output.



Re: 'PermitRootLogin no' sshd_config default on latest snapshot even though ssh root key specified in install.conf

2015-07-29 Thread Stuart Henderson
On 2015-07-29, Seth l...@sysfu.com wrote:
 Today I ran an automated installation using the latest amd64 install58.iso  
 media.

 A root ssh key was specified in install.conf, and the key is being  
 correctly installed in /root/.ssh/authorized_keys.

 This method was working fine with the 5.7 release, but apparently 5.8 now  
 sets 'PermitRootLogin no' in /etc/ssh/sshd_config even when a root ssh key  
 is specified in install.conf.

 Looking through the relevant commits over the last few months [1], it  
 appears that the setting keeps getting 'twiddled' back and forth.

 What's the long term plan for this? My preference is that root ssh pubkey  
 logins are allowed on reboot.

 [1] http://freshbsd.org/search?project=openbsdq=permitrootlogin

There's a new question, Enable sshd(8) logins to root? which you should
answer in install.conf, it will then use PermitRootLogin without-password.



Re: Sluggish/laggy browser behaviour

2015-07-29 Thread Theo de Raadt
 OpenBSD doesn't have multithreading in the kernel and is tuned for
 correctness rather than performance.
 
 I take from that I should not expect to see any movement on this
 front...

Nope.  A non-developer is trying to preach their point of view to
you.



Re: Sluggish/laggy browser behaviour

2015-07-29 Thread David Coppa
-- Messaggio inoltrato --
Da: David Coppa dco...@gmail.com
Data: 29/lug/2015 12:21
Oggetto: Re: Sluggish/laggy browser behaviour
A: Nathan Van Ymeren nat...@vany.ca
Cc:


Il 24/lug/2015 19:23, Nathan Van Ymeren nat...@vany.ca ha scritto:

 Hi,

 I'm running the 19 July snapshot and am experiencing laggy tab
 behaviour in both Chromium and Firefox.  Specifically, when opening and
 closing tabs I regularly experience noticeable and irritating pauses.

 The system is a thinkpad X220T with an i7 and 8 GB of memory, and under
 different operating systems tabbing performance is acceptable.

 Has anyone experienced similar?

 dmesg follows:

 OpenBSD 5.8-beta (GENERIC.MP) #1171: Sun Jul 19 19:03:27 MDT 2015

...

 cpu0: Enhanced SpeedStep 2691 MHz: speeds: 2701, 2700, 2400, 2200,
 2000, 1800, 1600, 1400, 1200, 1000, 800 MHz pci0 at mainbus0 bus 0
 pchb0 at pci0 dev 0 function 0 Intel Core 2G Host rev 0x09
 vga1 at pci0 dev 2 function 0 Intel HD Graphics 3000 rev 0x09
 intagp at vga1 not configured

This is suspicious. Isn't it?

 inteldrm0 at vga1
 drm0 at inteldrm0
 inteldrm0: 1366x768
 wsdisplay0 at vga1 mux 1: console (std, vt100 emulation)
 wsdisplay0: screen 1-5 added (std, vt100 emulation)
 Intel 6 Series MEI rev 0x04 at pci0 dev 22 function 0 not configured
 puc0 at pci0 dev 22 function 3 Intel 6 Series KT rev 0x04: ports

Cheers!
David



Re: Intel Atom?

2015-07-29 Thread Quartz

yet the original poster is
obviously looking for COTS consumer electronics general purpose
inexpensive mini-ITX mainboards for home router project.


Off-the-shelf yes, home no, it's just a specialized setup with some odd 
requirements. We're fine with paying for good quality components but 
there's no need to overpay for something that offers a bunch of stuff we 
don't need, especially when we're going to be building several of these. 
I'm just trying to find the best balance, and I'm hoping that 
upper-mid-range Atoms are where it's at.




/tmp and /var/tmp in faq

2015-07-29 Thread Jan Stary
Is the /tmp and /var/tmp information in
http://www.openbsd.org/faq/faq4.html#Partitioning
still correct, now that /var/tmp is a link to /tmp ?

Jan



Re: sa(8) cpu time?

2015-07-29 Thread Craig Skinner
On 2015-07-29 Wed 13:13 PM |, Craig Skinner wrote:
 
 When checking the system accounting per-user stats,
 is the cpu time decimal, or minutes.seconds?
 

It must be decimal as I found these  .59 in the rotated old files:

operator   158   4.92cpu   12590tio  0k*sec
x 2152   2.79cpu7094tio  0k*sec

Cool.
-- 
Test-tube babies shouldn't throw stones.



Re: Collect logs with syslog +hostname

2015-07-29 Thread Atanas Vladimirov

On 28.07.2015 15:24, Gregory Edigarov wrote:

On 07/28/2015 03:20 PM, Gregory Edigarov wrote:

On 07/28/2015 02:41 PM, Atanas Vladimirov wrote:

Hi,
I tried the new feature of syslogd to collect log messages from other 
syslog capable devices (in this case an OpenWRT router).
I red syslog.conf many times, but I can't figure it why it doesn't 
work.


[ns]~$ cat /etc/syslog.conf
#   $OpenBSD: syslog.conf,v 1.17 2005/05/25 07:35:38 david Exp $
#

+wdr4900.bsdbg.net
*.* /var/log/w4900

move the above 2 lines to the end of your file.
remove next line:

+*


next,  add

192.168.1.18 wdr4900
to /etc/hosts


also, change the syslog rule as:
+ wdr4900
*.* /var/log/w4900


and things will work


Thanks for the hint.
Actually I modified syslog.conf to begin with

++wdr4900
*.* /var/log/w4900
+*

because I wanted all records from OpenWRT router to be in one place 
(/var/log/w4900).


It seems that the real problem/misunderstanding was the part with 
/etc/hosts.

Why syslogd doesn't use /etc/resolve.conf?
This box is configured as recursive dns server (unbound).



Re: Collect logs with syslog +hostname

2015-07-29 Thread koko
On Wed, 29 Jul 2015 15:46:46 +0300
Atanas Vladimirov vl...@bsdbg.net wrote:

 It seems that the real problem/misunderstanding was the part with 
 /etc/hosts.
 Why syslogd doesn't use /etc/resolve.conf?
 This box is configured as recursive dns server (unbound).
 
imho, /etc/hosts is much faster lookup than resolv.conf.



sa(8) cpu time?

2015-07-29 Thread Craig Skinner
Hi there,

When checking the system accounting per-user stats,
is the cpu time decimal, or minutes.seconds?

e.g:

$ sa -mi
root   825 9.13cpu67188tio   0k*sec
operator   106 0.04cpu   77tio   0k*sec
sshd62 0.16cpu0tio   0k*sec
_spamd 682 0.10cpu  153tio   0k*sec

..

Is root's cpu time 9 minutes  13 seconds,
or 9.13 minutes (i.e. 9 minutes  ~22 seconds)?

Cheers.
-- 
Your lucky number is 3552664958674928.  Watch for it everywhere.



Re: Default OpenBSD browser

2015-07-29 Thread trondd
On Tue, July 28, 2015 11:11 pm, Gerald Hanuer wrote:
  Hello,

Thoughts on Links+.

Code quality, security and generial usefulness.


   Regards

Gerald Hanuer


Links+ is my prefered light browser.  I find it renders the best for what
I use.  I periodically try and re-try all the small browsers and always
come back to Links.

One non-starter, though, is that it blindly accepts SSL connections with
no certificate verification.  So I added that myself using libtls (and I'm
not a developer).

Using it to send this email, actually.  It works will with squirrelmail
and the html version of gmail.

Tim.



Re: new (nasty) spam pattern

2015-07-29 Thread Chris Cappuccio
Quartz [qua...@sneakertech.com] wrote:
 Any cluebats?
 
 Not sure if it will help your specific situation, but you could look into
 server side grey listing. This will cause your mail server to temporarily
 reject mail from them, forcing them to try again a couple hours later.
 Fly-by-night spam places almost never bother to resubmit, so it's pretty
 effective (it cut down my spam to under 5% literally overnight).
 
 https://en.wikipedia.org/wiki/Greylisting

The spammers that he's talking about already handle greylisting, and
they have SPF records, so you need to involve some kind of collaborative
reporting system to block them quickly before they change colors again.