Re: ifconfig alias fails

2015-05-22 Thread Stuart Henderson
On 2015-05-19, Otto Moerbeek o...@drijf.net wrote:
 On Tue, May 19, 2015 at 03:29:20PM +0200, Heiko Zimmermann wrote:

 Hello OpenBSD Team,
 
 I try to add an ipv4 alias 176.9.157.yyy to re0
 (current from today).
 
 ifconfig re0 alias 176.9.157.yyy/27
 -- ifconfig: SIOCAIFADDR: File exists
 
 When I try: ifconfig re0 176.9.157.yyy 255.255.255.224
 -- no output

That syntax is not doing what you expect. ifconfig syntax isn't the
same as hostname.if syntax.

 But I don't see the alias ip with ifconfig -a
 
 Output is:
 re0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
 lladdr xx:xx:x:xx:xx:xx
 priority: 0
 groups: egress
 media: Ethernet autoselect (1000baseT full-duplex)
 status: active
 inet 176.9.175.xxx netmask 0xffe0 broadcast 176.9.157.zzz
 
 
 ping 176.9.157.yyy -- ping: unknown host: 176.9.157.9.yyy
 ping 176.9.157.xxx -- ok
 
 What I'm doing wrong?
 
 Thank you in advance.
 Heiko

 ifconfig -a != ifconfig -A != ifconfig re0 

 Also, an alias in the same net should get the mask 255.255.255.255

   -Otto



And there is something strange with the addressea; mixture of 157 and 175.



ikev2 road warrior setup not working

2015-05-22 Thread Yassen Damyanov
[Apologies if anyone gets this a second time --
 Sent twice but did not show up in the list]

5.7-stable.
Cannot get an ikev2 road warrior setup working for days now.

Read all relevant stuff but cannot see what I am doing wrong.
Other people report similar setup working, so it must be my fault.

The connection schema follows:

(Note: 57.57.57.57 is the OBSD-5.7 box ext interface;
81.81.81.81 is the ext interface of the router the win box
is behind.)

LAN (10.15.0.0/16) -- [ obsd 5.7 box (ext if 57.57.57.57) ] --
-- Internet -- router (81.81.81.81) -- win 8.1 box

The win box shows error 809 (remote server is not responding) on
connection attempt. (I never managed to get anything else.)


Client is Win8.1 Enterprise (behind nat, should not matter...?)
Connection properties:
-- General | Host name: 57.57.57.57
-- Security | Type of VPN: IKEv2
-- Security | Data Encryption: Require Encryption
-- Security | Authentication: use machine certificates
-- Networking | IPv4 (the only thing enabled):
set to IP 10.10.10.7, DNS 8.8.8.8

# sysctl net.inet.ip.forwarding=1
# pfctl -d # only to get ipsec tunnel working; then I'll set it up


# cat /etc/iked.conf:
ikev2 road-warriors passive esp \
  from 10.15.0.0/16 to 10.10.10.0/24 \
  local 57.57.57.57 peer 0.0.0.0/0 \
  srcid 57.57.57.57 \
  config address 10.10.10.7


Debug log from 'iked -vv -d' shown below.

Please, help me figure this out.
Any hints or directions are much appreciated!
-Yassen D.


P.S. Forgot to mention that the full CA dance has been properly done;
the Win box has the vpn CA cert and key (in Trusted Root Authorities)
and its own client certificate (in Personal) imported successfully.


# iked -vv -d

ikev2_recv: IKE_SA_INIT request from initiator 81.81.81.81:53392 to 
57.57.57.57:500 policy 'road-warriors' id 0, 880 bytes
ikev2_recv: ispi 0xc775b4390519c851 rspi 0x
ikev2_policy2id: srcid IPV4/57.57.57.57 length 8
ikev2_pld_parse: header ispi 0xc775b4390519c851 rspi 0x 
nextpayload SA version 0x20 exchange IKE_SA_INIT flags 0x08 msgid 0 length 880 
response 0
ikev2_pld_payloads: payload SA nextpayload KE critical 0x00 length 520
ikev2_pld_sa: more than one proposal specified
ikev2_pld_sa: more 2 reserved 0 length 40 proposal #1 protoid IKE spisize 0 
xforms 4 spi 0
ikev2_pld_xform: more 3 reserved 0 length 8 type ENCR id 3DES
ikev2_pld_xform: more 3 reserved 0 length 8 type INTEGR id HMAC_SHA1_96
ikev2_pld_xform: more 3 reserved 0 length 8 type PRF id HMAC_SHA1
ikev2_pld_xform: more 0 reserved 0 length 8 type DH id MODP_1024
ikev2_pld_payloads: payload KE nextpayload NONCE critical 0x00 length 136
ikev2_pld_ke: dh group MODP_1024 reserved 0
ikev2_pld_payloads: payload NONCE nextpayload NOTIFY critical 0x00 length 52
ikev2_pld_payloads: payload NOTIFY nextpayload NOTIFY critical 0x00 length 28
ikev2_pld_notify: protoid NONE spisize 0 type NAT_DETECTION_SOURCE_IP
ikev2_nat_detection: peer source 0xc775b4390519c851 0x 
81.81.81.81:53392
ikev2_pld_notify: NAT_DETECTION_SOURCE_IP detected NAT, enabling UDP 
encapsulation
ikev2_pld_payloads: payload NOTIFY nextpayload VENDOR critical 0x00 length 28
ikev2_pld_notify: protoid NONE spisize 0 type NAT_DETECTION_DESTINATION_IP
ikev2_nat_detection: peer destination 0xc775b4390519c851 0x 
57.57.57.57:500
ikev2_pld_payloads: payload VENDOR nextpayload VENDOR critical 0x00 length 24
ikev2_pld_payloads: payload VENDOR nextpayload VENDOR critical 0x00 length 20
ikev2_pld_payloads: payload VENDOR nextpayload VENDOR critical 0x00 length 20
ikev2_pld_payloads: payload VENDOR nextpayload NONE critical 0x00 length 24
sa_state: INIT - SA_INIT
ikev2_sa_negotiate: score 23
sa_stateok: SA_INIT flags 0x00, require 0x00
sa_stateflags: 0x00 - 0x10 sa (required 0x00 )
ikev2_sa_keys: SKEYSEED with 20 bytes
ikev2_sa_keys: S with 96 bytes
ikev2_prfplus: T1 with 20 bytes
ikev2_prfplus: T2 with 20 bytes
ikev2_prfplus: T3 with 20 bytes
ikev2_prfplus: T4 with 20 bytes
ikev2_prfplus: T5 with 20 bytes
ikev2_prfplus: T6 with 20 bytes
ikev2_prfplus: T7 with 20 bytes
ikev2_prfplus: T8 with 20 bytes
ikev2_prfplus: Tn with 160 bytes
ikev2_sa_keys: SK_d with 20 bytes
ikev2_sa_keys: SK_ai with 20 bytes
ikev2_sa_keys: SK_ar with 20 bytes
ikev2_sa_keys: SK_ei with 24 bytes
ikev2_sa_keys: SK_er with 24 bytes
ikev2_sa_keys: SK_pi with 20 bytes
ikev2_sa_keys: SK_pr with 20 bytes
ikev2_add_proposals: length 40
ikev2_next_payload: length 44 nextpayload KE
ikev2_next_payload: length 136 nextpayload NONCE
ikev2_next_payload: length 36 nextpayload NOTIFY
ikev2_nat_detection: local source 0xc775b4390519c851 0x5a9bb34a8d3b420e 
57.57.57.57:500
ikev2_next_payload: length 28 nextpayload NOTIFY
ikev2_nat_detection: local destination 0xc775b4390519c851 0x5a9bb34a8d3b420e 
81.81.81.81:53392
ikev2_next_payload: length 28 nextpayload CERTREQ
ikev2_add_certreq: type X509_CERT length 21
ikev2_next_payload: length 25 nextpayload NONE
ikev2_pld_parse: header ispi 0xc775b4390519c851 rspi 

Re: fiber optic NIC

2015-05-22 Thread Stuart Henderson
On 2015-05-19, Marek Czubenko marek.czube...@umk.pl wrote:
 Hi,

 I'm looking for a fiber optic NIC - PCI Express, LX/LC supported by OpenBSD 
 4.8 or newer.
 Could someone recommend me any?

ix(4) SFP+ 10GbE NICs also work with 1Gb SFPs. You may need a diff which
was committed to -current to avoid an artificial driver restriction denying
use of LX on some nics; it's an easy backport if you want to stick with 5.7
or you could just use a snapshot.

Alternatively there are SFP em(4) devices such as those made by HotLava,
but they are a bit harder to obtain.

ix0 at pci1 dev 0 function 0 Intel 82599 rev 0x01: msi, address 
00:1b:21:c0:25:bc
ix1 at pci1 dev 0 function 1 Intel 82599 rev 0x01: msi, address 
00:1b:21:c0:25:bd
# ifconfig ix1
ix1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr 00:1b:21:c0:25:bd
description: entanet to telehouse; terminates vlan730 in telehouse
priority: 0
groups: backbone entanet egress
media: Ethernet autoselect (1000baseLX full-duplex,rxpause,txpause)
status: active
snip



Re: Will mmap and the read buffer cache be unified, anyone working with it?

2015-05-22 Thread Tinker
Okay there's msync(). So this really doesn't look like a problem but let 
me think.


Any thoughts on this one welcome.

On 2015-05-22 12:57, Tinker wrote:

Hi,

Will mmap and the read buffer cache be unified, anyone working with it?

Some programs disable features on OBSD for this reason so would be
nice! (I admit though that a program combining mmap() and read() on
the same file sounds like a slightly quirky design choice to me.)

Thanks!
Tinker




Re: IPv6 is not working at Hetzner

2015-05-22 Thread Heiko Zimmermann
Hallo Thomas,

I get crazy. :/

Am 22.05.2015 um 22:15 schrieb Thomas Bohl: Please tryndp -an
 # route delete -inet6 default
 # route add -inet6 default fe80::1%re0

It worked one time until reboot.

I did a reboot to test again.


when I have this in mygate:
fe80::1

then I have NO default gw in inet6

# route add -inet6 default fe80::1%re0
# ping6 -vc 5 google.com

PING6(72=40+8+24 bytes) 2a01:4f8:160:4346::25 -- 2a00:1450:4001:80b::1000
32 bytes from 2a01:4f8::a:16:4: Neighbor Advertisement
32 bytes from 2a01:4f8::a:16:4: Neighbor Advertisement
32 bytes from 2a01:4f8::a:16:4: Neighbor Advertisement
80 bytes from 2a01:4f8:160:4346::25: Destination Host Unreachable
Vr TC  Flow Plen Nxt Hlim
 6 00 0 0020  3a   40
2a01:4f8:160:4346::25-2a00:1450:4001:80b::1000
ICMP6: type = 128, code = 0

# ndp -an
NeighborLinklayer Address  Netif ExpireS Flags
2a01:4f8:160:4346::2(incomplete) re0 permanent R l
2a01:4f8:160:4346::25   (incomplete) re0 permanent R l
2a01:4f8:160:4346::80   (incomplete) re0 permanent R l
fe80::5604:a6ff:feb4:99c2%re0  (incomplete)  re0 permanent R l


###
when I have this in /etc/mygate:
2a01:4f8:160:4346::1
fe80::1

!route add -inet6 default fe80::1%re0
was ignored in hostname.re0

then it is coming up with default gw 2a01:4f8:160:4346::1

$ route -n show -inet6
Routing tables
Internet6:
DestinationGatewayFlags
  Refs  Use   Mtu  Prio Iface
::/104 ::1UGRS
 00 32768 8 lo0
::/96  ::1UGRS
 00 32768 8 lo0
default2a01:4f8:160:4346::1   UGS
 00 - 8 re0
::1link#3 UHl
140 32768 1 lo0
::127.0.0.0/104::1UGRS
 00 32768 8 lo0
::224.0.0.0/100::1UGRS
 00 32768 8 lo0
::255.0.0.0/104::1UGRS
 00 32768 8 lo0
:::0.0.0.0/96  ::1UGRS
 00 32768 8 lo0
2002::/24  ::1UGRS
 00 32768 8 lo0
2002:7f00::/24 ::1UGRS
 00 32768 8 lo0
2002:e000::/20 ::1UGRS
 00 32768 8 lo0
2002:ff00::/24 ::1UGRS
 00 32768 8 lo0
2a01:4f8:160:4346::/64 link#1 UC
 10 - 4 re0
2a01:4f8:160:4346::1   link#1 UHLc
 10 - 4 re0
2a01:4f8:160:4346::2   link#1 HLl
 00 - 1 lo0
2a01:4f8:160:4346::25  link#1 HLl
 00 - 1 lo0
2a01:4f8:160:4346::80  link#1 HLl
 00 - 1 lo0
fe80::/10  ::1UGRS
 00 32768 8 lo0
fe80::%re0/64  link#1 UC
 00 - 4 re0
fe80::5604:a6ff:feb4:99c2%re0  link#1 HLl
 00 - 1 lo0
fe80::%lo0/64  link#3 U
 00 32768 4 lo0
fe80::1%lo0link#3 UHl
 00 32768 1 lo0
fec0::/10  ::1UGRS
 00 32768 8 lo0
ff01::/16  ::1UGRS
 00 32768 8 lo0
ff01::%re0/32  link#1 UC
 00 - 4 re0
ff01::%lo0/32  link#3 UC
 00 32768 4 lo0
ff02::/16  ::1UGRS
 00 32768 8 lo0
ff02::%re0/32  link#1 UC
 00 - 4 re0
ff02::%lo0/32  link#3 UC
 00 32768 4 lo0


$ ndp -an
Neighbor Linklayer Address  Netif Expire
S Flags
2a01:4f8:160:4346::1 (incomplete) re0 expired   N
2a01:4f8:160:4346::2 (incomplete) re0 permanent R l
2a01:4f8:160:4346::25(incomplete) re0 permanent R l
2a01:4f8:160:4346::80(incomplete) re0 permanent R l

Re: what to do with a uefi hp pavillion 10-f014au?

2015-05-22 Thread Joel Rees
2015/05/20 17:28 David Coppa dco...@gmail.com:

 On Wed, May 20, 2015 at 9:00 AM, Joel Rees joel.r...@gmail.com wrote:
  besides take it back to the store, I mean.
 
  I have it booted on a USB stick. The internal drive appears to be
  unpartitioned when I do a disklabel -- only c partition reported. fdisk
  does report it as EFI GPT.
 
  I read something about support in the kernel. Is there any hope of say,
  constructing a disklabel by hand and copying the file system over by
hand?
  (I have opened up an empty simple partition on the disk already.)

 You could try with a custom kernel compiled with the GPT option turned on.
 GPT support is currently commented out (see
 src/sys/arch/amd64/conf/GENERIC), but it may work...

I don't have the machine to do a custom kernel, so, I had the MSWindOS make
the recovery disks and checked that it would do the recovery. It allows a
minimum install, which is a lot more responsive. :-/ And now it will
disappear.

Now I'm doing an ordinary legacy style install. That should give me an
environment to build a custom kernel as you suggest. TBC.

Would appreciate additional pointers.

 Ciao,
 David
 --
 If you try a few times and give up, you'll never get there. But if
 you keep at it... There's a lot of problems in the world which can
 really be solved by applying two or three times the persistence that
 other people will.
 -- Stewart Nelson



SOLEVED Re: IPv6 is not working at Hetzner

2015-05-22 Thread Heiko Zimmermann
You are great!

That's it.

Thank you

 -Heiko

Am 23.05.2015 um 00:15 schrieb Thomas Bohl:
 Am 22.05.2015 um 23:55 schrieb Heiko Zimmermann:
 # route delete -inet6 default
 # route add -inet6 default fe80::1%re0

 It worked one time until reboot.
 
 That is a problem I have too:
 http://marc.info/?l=openbsd-miscm=142249632125559w=2
 
 You first need to ping fe80::1%re0 in order to get it into the address
 mapping table. I tried static entries without luck. Try to add
 
 @reboot sleep 10  ping6 -c 10 fe80::1\%re0  /dev/null
 
 into your crontab. Works for me.
 
 
 Could you advise me hostname.re0 and mygate ?
 
 I don't use mygate. Just
 
 !route add -inet6 default fe80::1%re0
 
 in hostname.re0



Re: IPv6 help needed

2015-05-22 Thread Mike Belopuhov
Hi,

Are you running 5.7-current or a -release?
Did you try running iked?  It has a -6 option (see the
description in the man page) that disables this behavior.
This was done in the light of F. Gont's RFC 7359.

Cheers.

On 22 May 2015 at 01:16, Chris Moody ch...@node-nine.com wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA512

 YOU ARE THE MAN

 That did it.  I never would've thought to look at that.

 =
 root@spike ~ # ping6 2001:470::255::254
 PING6(56=40+8+8 bytes) 2001:470::255::254 -- 2001:470::255::254
 16 bytes from 2001:470::255::254, icmp_seq=0 hlim=64 time=0.150 ms
 16 bytes from 2001:470::255::254, icmp_seq=1 hlim=64 time=0.276 ms
 ^C
 - --- 2001:470::255::254 ping6 statistics ---
 2 packets transmitted, 2 packets received, 0.0% packet loss
 round-trip min/avg/max/std-dev = 0.150/0.213/0.276/0.063 ms

 root@spike ~ # ping6 2001:470::255::11
 PING6(56=40+8+8 bytes) 2001:470::255::254 -- 2001:470::255::11
 16 bytes from 2001:470::255::11, icmp_seq=0 hlim=64 time=0.389 ms
 ^C
 - --- 2001:470::255::11 ping6 statistics ---
 1 packets transmitted, 1 packets received, 0.0% packet loss
 round-trip min/avg/max/std-dev = 0.389/0.389/0.389/0.000 ms
 =

 Is this something that persists across reboots? or does it require
 like an /etc/rc.conf.local setting to bypass?

 Thank you incredibly!!

 - -Chris

 On 5/21/15 3:23 PM, Mike Belopuhov wrote:
 ipsecctl -F
 -BEGIN PGP SIGNATURE-
 Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
 Comment: GPGTools - https://gpgtools.org

 iQEcBAEBCgAGBQJVXmdDAAoJEOO37M6Idh8NCkEIAJ2TA+/+gdi+Rx2L23PUdNjs
 ZjoTU0fedSowaJic8m2wl3cvyfdHNmc/PXqWVza+2FLmEdG3D08S5H1YuoMEGSJs
 GKfKxEnOOtna7am2Sfe4hHxRmhAdX40VEpsqs2g/jKi/5aMpsGxLpgwnSKZit0m7
 0nnbKG0r14nS3plUmE6n+6P/+mhQ2daBY2LfCbePz/VlFSQHea6WWj3VlVcGwPGx
 52siP6F++vc3Jm5HhlPaw/Ow5s/Cbi+ykB4znYWXupHfZmWDYG2lQ2a0+7I68OrA
 gtaVMQcYtm/g8fMrGnfyxW3TuFlz6fdMntckGq5RrzlN3z6EgxPEZhckEYoyIzU=
 =nuOm
 -END PGP SIGNATURE-



Re: IPv6 is not working at Hetzner

2015-05-22 Thread Thomas Bohl
Am 22.05.2015 um 21:54 schrieb Heiko Zimmermann:
 Hello Thomas,

 Am 22.05.2015 um 21:38 schrieb Thomas Bohl: A dedicated or a virtual
 server? One needs fe80::1%re0 the other
 2a01:4f8:160:::1%re0 as the default gateway.
 http://wiki.hetzner.de/index.php/Zusaetzliche_IP-Adressen/en#Gateway

 Dedicated.
 So my fe80::1 is correct?

Yes, but it's not in your routing table though.

 # route -n show -inet6

 Internet6:
 DestinationGatewayFlags
Refs  Use   Mtu  Prio Iface

 default2a01:4f8:160:4346::1   UGS
   05 - 8 re0

Please try
# route delete -inet6 default
# route add -inet6 default fe80::1%re0

[demime 1.01d removed an attachment of type application/pkcs7-signature which 
had a name of smime.p7s]



Re: IPv6 is not working at Hetzner

2015-05-22 Thread Thomas Bohl

Am 22.05.2015 um 23:55 schrieb Heiko Zimmermann:

# route delete -inet6 default
# route add -inet6 default fe80::1%re0


It worked one time until reboot.


That is a problem I have too:
http://marc.info/?l=openbsd-miscm=142249632125559w=2

You first need to ping fe80::1%re0 in order to get it into the address 
mapping table. I tried static entries without luck. Try to add


@reboot sleep 10  ping6 -c 10 fe80::1\%re0  /dev/null

into your crontab. Works for me.



Could you advise me hostname.re0 and mygate ?


I don't use mygate. Just

!route add -inet6 default fe80::1%re0

in hostname.re0



spamd and IPv6

2015-05-22 Thread Heiko Zimmermann
Hi OpenBSD Team,

are there any news about spamd and IPv6?

OpenSMTPD is working fine with IPv6. So there is a usecase for spamd and
IPv6 too.

This is the last status I found:
http://undeadly.org/cgi?action=articlesid=20131022072601

Could you give me a status update?

Thank you in advance.
 -Heiko



simple maiserver fail (postfix dovecot)

2015-05-22 Thread Tuyosi Takesima
Hi all

now it is hard to build mail server using postfix and dovecot for me .
previously i can do it postpix and pop with ease.

now i only can do on mail server
 telnet a.mydns.jp 25
Trying 192.168.100.101...
Connected to a.mydns.jp.
Escape character is '^]'.
220 a.mydns.jp ESMTP Postfix

but
# telnet a.mydns.jp 143
Trying 192.168.100.101...
Connected to a.mydns.jp.
Escape character is '^]'.
Connection closed by foreign host.
   ~

so , my setting files have mistakes.

please give me some advices.
i only aim simple setting because of only personal use .

/etc/postfix/main.cf
---
myhostname = a.mydns.jp - i use dnynamic dns .
mydomain = mydns.jp
myorigin = $myhostname
inet_interfaces = all
mydestination = $myhostname localhost.$mydomain
home_mailbox = Maildir/
mynetworks = 192.168.100.0/24, 127.0.0.0/8
queue_directory = /var/spool/postfix
command_directory = /usr/local/sbin
daemon_directory = /usr/local/libexec/postfix
data_directory = /var/postfix
mail_owner = _postfix
inet_protocols = all
unknown_local_recipient_reject_code = 550
debug_peer_level = 2
debugger_command =
 PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
 ddd $daemon_directory/$process_name $process_id  sleep 5
sendmail_path = /usr/local/sbin/sendmail
newaliases_path = /usr/local/sbin/newaliases
mailq_path = /usr/local/sbin/mailq
setgid_group = _postdrop
html_directory = /usr/local/share/doc/postfix/html
manpage_directory = /usr/local/man
sample_directory = /etc/postfix
readme_directory = /usr/local/share/doc/postfix/readme



 /etc/dovecot/dovecot.conf
-
protocols = imap
listen = *
mail_location = maildir:~/Maildir


 /etc/dovecot/conf.d/10-auth.conf
-
disable_plaintext_auth = no
auth_mechanisms = plain
!include auth-system.conf.ext

/etc/pf.conf
-
ext_if=run0
int_if=bge0
tcp_services={ 22, 80, 25, imap }
icmp_types=echoreq
set block-policy return
set loginterface $ext_if
set skip on lo
match out on $ext_if inet from !($ext_if:network) to any nat-to
($ext_if:0)
set reassemble yes no-df
block in log
pass out quick
antispoof quick for { lo $int_if }
pass in  on  $ext_if   inet proto tcp from any to  ( $ext_if:0 ) port
$tcp_services
pass in inet proto icmp all icmp-type $icmp_types
pass in on $int_if
pass in on $ext_if proto tcp to port 21
pass in on $ext_if proto tcp to port 49151:


/etc/dnsmasq.conf - is dns not nessesary ?

listen-address=127.0.0.1
listen-address=192.168.11.1
mx-host=mydns.jp, a.mydns.jp, 50

to start mail server ,

cp /etc/resolv.conf-127 /etc/resolv.conf
/etc/rc.d/dnsmasq  restart
/etc/rc.d/postfix  restart
/etc/rc.d/pop3d  stop
/etc/rc.d/dovecot  restart

/etc/resolv.conf-127
---
nameserver 127.0.0.1
nameserver 8.8.8.8
lookup file bind


i wonder 2 ponts.
1)
in  /usr/local/share/doc/dovecot/wiki/PasswordDatabase.PAM.txt
but no example about openBSD .

2)
in /etc/dovecot/conf.d/auth-system.conf.ext
# PAM authentication. Preferred nowadays by most systems.
# PAM is typically used with either userdb passwd or userdb static.
# REMEMBER: You'll need /etc/pam.d/dovecot file created for PAM
# authentication to actually work. doc/wiki/PasswordDatabase.PAM.txt

i donot know how to make /etc/pam.d/dovecot


regards



Re: IPv6 is not working at Hetzner

2015-05-22 Thread Heiko Zimmermann
Hello Thomas,

Am 22.05.2015 um 21:38 schrieb Thomas Bohl: A dedicated or a virtual
server? One needs fe80::1%re0 the other
 2a01:4f8:160:::1%re0 as the default gateway.
 http://wiki.hetzner.de/index.php/Zusaetzliche_IP-Adressen/en#Gateway

Dedicated.
So my fe80::1 is correct?


 $ ping6 ipv6.google.com
 PING6(72=40+8+24 bytes) 2a01:4f8:160:::25 --
 2a00:1450:4001:80c::1002
 ^C
 -- not working

 Please post the results of
 # ping6 -vc 5 google.com

PING6(72=40+8+24 bytes) 2a01:4f8:160:::25 -- 2a00:1450:4001:80b::1008
80 bytes from 2a01:4f8:160:::25: Destination Host Unreachable
Vr TC  Flow Plen Nxt Hlim
 6 b8 0 0020  3a   40
2a01:4f8:160:::25-2a00:1450:4001:80b::1008
ICMP6: type = 128, code = 0

80 bytes from 2a01:4f8:160:::25: Destination Host Unreachable
Vr TC  Flow Plen Nxt Hlim
 6 b8 0 0020  3a   40
2a01:4f8:160:::25-2a00:1450:4001:80b::1008
ICMP6: type = 128, code = 0

--- google.com ping6 statistics ---
5 packets transmitted, 0 packets received, 100.0% packet loss


 # route -n show -inet6

Internet6:
DestinationGatewayFlags
  Refs  Use   Mtu  Prio Iface
::/104 ::1UGRS
 00 32768 8 lo0
::/96  ::1UGRS
 00 32768 8 lo0
default2a01:4f8:160:4346::1   UGS
 05 - 8 re0
::1link#3 UHl
140 32768 1 lo0
::127.0.0.0/104::1UGRS
 00 32768 8 lo0
::224.0.0.0/100::1UGRS
 00 32768 8 lo0
::255.0.0.0/104::1UGRS
 00 32768 8 lo0
:::0.0.0.0/96  ::1UGRS
 00 32768 8 lo0
2002::/24  ::1UGRS
 00 32768 8 lo0
2002:7f00::/24 ::1UGRS
 00 32768 8 lo0
2002:e000::/20 ::1UGRS
 00 32768 8 lo0
2002:ff00::/24 ::1UGRS
 00 32768 8 lo0
2a01:4f8:160:4346::/64 link#1 UC
 00 - 4 re0
2a01:4f8:160:4346::2   link#1 UHLl
 00 - 1 lo0
2a01:4f8:160:4346::25  link#1 UHLl
 0   15 - 1 lo0
2a01:4f8:160:4346::80  link#1 UHLl
 00 - 1 lo0
fe80::/10  ::1UGRS
 00 32768 8 lo0
fe80::%re0/64  link#1 UC
 10 - 4 re0
fe80::1%re078:fe:3d:46:ed:9d  UHLc
 02 - 4 re0
fe80::5604:a6ff:feb4:99c2%re0  link#1 UHLl
 00 - 1 lo0
fe80::%lo0/64  link#3 U
 00 32768 4 lo0
fe80::1%lo0link#3 UHl
 00 32768 1 lo0
fec0::/10  ::1UGRS
 00 32768 8 lo0
ff01::/16  ::1UGRS
 00 32768 8 lo0
ff01::%re0/32  link#1 UC
 00 - 4 re0
ff01::%lo0/32  link#3 UC
 00 32768 4 lo0
ff02::/16  ::1UGRS
 00 32768 8 lo0
ff02::%re0/32  link#1 UC
 10 - 4 re0
ff02::1:ff00:1%re0 link#1 UHLc
 00 - 4 re0
ff02::%lo0/32  link#3 UC
 00 32768 4 lo0


 # ndp -an

Neighbor Linklayer Address  Netif Expire
S Flags
2a01:4f8:160:::2 (incomplete) re0 permanent R l
2a01:4f8:160:::25(incomplete) re0 permanent R l
2a01:4f8:160:::80(incomplete) re0 permanent R l
fe80::1%re0  78:fe:3d:46:ed:9dre0 23h50m20s S R
fe80::5604:a6ff:feb4:99c2%re0(incomplete) re0 permanent R l



## BTW #

I have a output from the predefined Linux Rescue console:

eth0  Link encap:Ethernet  Hardware Adresse 54:04:a6:b4:ZZ:ZZ
  inet Adresse:176.9.YYY.76  Bcast:176.9.YYY.ZZ
Maske:255.255.255.224
  

Re: Resolve names from chroot'ed OpenBSD httpd

2015-05-22 Thread Dain Bentley
Also check permissions on the files

On Thursday, May 21, 2015, Daniel Bolgheroni dbolgher...@gmail.com wrote:

 Hi,

 Any advice on resolving names from a chroot'ed httpd?

 OpenBSD 5.7, Wordpress downloaded from site, mariadb configured, paths
 set on httpd.conf. Also have /var/www/etc/hosts and
 /var/www/etc/resolv.conf in place.

 Works almost as expected, except for some functions like installing
 plugins/themes, which I get a lot of php_network_getaddresses:
 getaddrinfo failed: no address associated with name when activating
 Wordpress debug.

 Warning: stream_socket_client(): unable to connect to
 tcp://api.wordpress.org:80 (php_network_getaddresses: getaddrinfo
 failed: no address associated with name) in
 /htdocs/wordpress/wp-includes/class-http.php on line 1008

 Same problem with nginx from ports.

 Thank you.

 --
 db



fastcgi (without slowcgi)

2015-05-22 Thread Torsten
Hi!

I am trying to use fastcgi in OpenBSD 5.7 httpd but keep getting 500
Internal Server Error.

httpd.conf:
##
ext_addr=*
server www.domain.com {
listen on $ext_addr tls port 443
tls dhe auto
connection { max requests 500, timeout 3600 }
location /cgi-bin/* {
fastcgi socket /run/fcgi.socket
root /
}
root /htdocs/www.domain.com
}
##

/var/www/cgi-bin/fcgi-test.cgi:
##
#!/usr/bin/perl
  use CGI::Fast;
  $ENV{FCGI_SOCKET_PATH} = /run/fcgi.socket;
  $ENV{FCGI_LISTEN_QUEUE} = 100;
  my $cnt=0;
  while ($q = new CGI::Fast) {
   print Content-type: text/html\r\n\r\n;
   print head\ntitleFastCGI Demo Page (perl)/title\n/head\n;
   print  h1FastCGI Demo Page (perl)/h1\n;
   print This is coming from a FastCGI server.\nBR\n;
   $cnt++;
   print This is connection number $cnt\n;
  }
##

I was able to start a simple cgi (print hello world\n;) by using
slowcgi so I believe my perl environment in chroot is more or less OK.
Also the script itself seems to be OK:

# chroot /var/www /usr/bin/perl -c /cgi-bin/fcgi2.cgi
/cgi-bin/fcgi2.cgi syntax OK

Things that might be part of the problem:
- No socket file /run/fcgi.socket is being created when I start httpd.
- Nothing was ever written to /var/www/logs/error.log, not even when I
tried to start httpd with a boguous httpd.conf. However,
/var/www/logs/access.log has logs from access to static html.

Any hints about where to find out more about the 500 Internal Server
Error? I have no more hints to follow and I could not find one single
example of a working httpd.conf along with a perl fastcgi example in the
web. All discussions seem to explain how to use cgi with slowcgi
instead. But that's not what I'm looking for.

Thanks in advance!

T.



Re: seamonkey error

2015-05-22 Thread David Coppa
On Fri, May 22, 2015 at 3:28 PM, Eivind Eide xeno...@gmail.com wrote:
 From: L.R. D.S. arrowscript at mail.com
 Subject: Re: seamonkey error
 Date: 2015-04-17 22:21:28 GMT

 Solved on lastest snapshot.


 For me this has not changed. I still can't start seamonkey.
 I have uninstalled and reinstalled. Removed files in $HOME.
 I still get the same error:

 $ seamonkey
 XPCOMGlueLoad error for file
 /usr/local/lib/seamonkey-2.33.1/../../ldap/sdks/c-sdk/ldap/libraries/libldap/libldap60.so.41.0:
 File not found
 Couldn't load XPCOM.

Could you please try:

# pkg_add openldap-client

I suspect there's a missing runtime dependency on openldap.

Ciao!
David



Re: seamonkey error

2015-05-22 Thread Eivind Eide
 From: L.R. D.S. arrowscript at mail.com
 Subject: Re: seamonkey error
 Date: 2015-04-17 22:21:28 GMT

 Solved on lastest snapshot.


For me this has not changed. I still can't start seamonkey.
I have uninstalled and reinstalled. Removed files in $HOME.
I still get the same error:

$ seamonkey
XPCOMGlueLoad error for file
/usr/local/lib/seamonkey-2.33.1/../../ldap/sdks/c-sdk/ldap/libraries/libldap/libldap60.so.41.0:
File not found
Couldn't load XPCOM.

$ pkg_info | grep seamonkey
lightning-seamonkey-3.8p1v0 Mozilla Seamonkey calendar extension
seamonkey-2.33.1p0  Mozilla application suite
seamonkey-i18n-nb-NO-2.33.1 nb-NO language pack for Seamonkey

$ dmesg
OpenBSD 5.7-current (GENERIC) #852: Wed May 20 17:49:55 MDT 2015
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) 4 Mobile CPU 1.80GHz (GenuineIntel
686-class) 1.80 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PERF
real mem  = 2146852864 (2047MB)
avail mem = 2099519488 (2002MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: date 05/15/03, BIOS32 rev. 0 @ 0xffe90, SMBIOS rev.
2.3 @ 0xf7690 (61 entries)
bios0: vendor Dell Computer Corporation version A09 date 05/15/2003
bios0: Dell Computer Corporation Latitude C640
acpi0 at bios0: rev 0
acpi0: sleep states S0 S1 S3 S4 S5
acpi0: tables DSDT FACP
acpi0: wakeup devices LID_(S3) PBTN(S4) PCI0(S3) UAR1(S3) USB0(S1)
USB1(S1) USB2(S1) MODM(S3) PCIE(S3) MPCI(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (AGP_)
acpiprt2 at acpi0: bus 2 (PCIE)
acpiprt3 at acpi0: bus -1 (MPCI)
acpicpu0 at acpi0acpicpu0: struck PSS entry, core frequency equals  last
acpicpu0: struck PSS entry, core frequency equals  last
acpicpu0: invalid _PSS length
: C2
acpipwrres0 at acpi0: PADA, resource for ADPT
acpitz0 at acpi0: critical temperature is 99 degC
acpiac0 at acpi0: AC unit online
acpibat0 at acpi0: BAT0 model LIP8120DLP serial 5184 type LION oem
Sony Corp.
acpibat1 at acpi0: BAT1 not present
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: PBTN
acpibtn2 at acpi0: SBTN
acpidock0 at acpi0: GDCK not docked (0)
acpivideo0 at acpi0: VID_
bios0: ROM list: 0xc/0xf000 0xcf000/0x800! 0xcf800/0x800!
cpu0 at mainbus0: (uniprocessor)
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 Intel 82845 Host rev 0x04
intelagp0 at pchb0
agp0 at intelagp0: aperture at 0xe800, size 0x400
ppb0 at pci0 dev 1 function 0 Intel 82845 AGP rev 0x04
pci1 at ppb0 bus 1
radeondrm0 at pci1 dev 0 function 0 ATI Radeon Mobility M7 rev 0x00
drm0 at radeondrm0
radeondrm0: irq 11
uhci0 at pci0 dev 29 function 0 Intel 82801CA/CAM USB rev 0x02: irq 11
ppb1 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0x42
pci2 at ppb1 bus 2
xl0 at pci2 dev 0 function 0 3Com 3c905C 100Base-TX rev 0x78: irq
11, address 00:08:74:48:40:d6
exphy0 at xl0 phy 24: 3Com internal media interface
cbb0 at pci2 dev 1 function 0 TI PCI1420 CardBus rev 0x00: irq 11
cbb1 at pci2 dev 1 function 1 TI PCI1420 CardBus rev 0x00: irq 11
ath0 at pci2 dev 3 function 0 Atheros AR2413 rev 0x01: irq 11
ath0: AR2413 7.8 phy 4.5 rf 5.6 eeprom 5.2, WOR3W, address 00:16:cf:53:07:71
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 4 device 0 cacheline 0x8, lattimer 0x20
pcmcia0 at cardslot0
cardslot1 at cbb1 slot 1 flags 0
cardbus1 at cardslot1: bus 5 device 0 cacheline 0x8, lattimer 0x20
pcmcia1 at cardslot1
ichpcib0 at pci0 dev 31 function 0 Intel 82801CAM LPC rev 0x02
pciide0 at pci0 dev 31 function 1 Intel 82801CAM IDE rev 0x02: DMA,
channel 0 configured to compatibility, channel 1 configured to
compatibility
wd0 at pciide0 channel 0 drive 0: Hitachi HTS541080G9AT00
wd0: 16-sector PIO, LBA, 76319MB, 156301488 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
atapiscsi0 at pciide0 channel 1 drive 0
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0: TOSHIBA, DVD-ROM SD-C2612, 1D21 ATAPI
5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
auich0 at pci0 dev 31 function 5 Intel 82801CA/CAM AC97 rev 0x02:
irq 11, ICH3 AC97
ac97: codec id 0x4352595b (Cirrus Logic CS4205 rev 3)
ac97: codec features mic channel, tone, simulated stereo, bass boost,
20 bit DAC, 18 bit ADC, SRS 3D
audio0 at auich0
Intel 82801CA/CAM Modem rev 0x02 at pci0 dev 31 function 6 not configured
usb0 at uhci0: USB revision 1.0
uhub0 at usb0 Intel UHCI root hub rev 1.00/1.00 addr 1
isa0 at ichpcib0
isadma0 at isa0
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot): using irq 1
wskbd0 at pckbd0: console keyboard
pms0 at pckbc0 (aux slot): using irq 12
wsmouse0 at pms0 mux 0
wsmouse1 at pms0 mux 0
pms0: Synaptics touchpad, firmware 5.9
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt0 at 

Re: seamonkey error

2015-05-22 Thread Eivind Eide
No, sorry. I had openldap-client installed already, dependency of libreoffice.
But it doesn't change anything, the error remains the same...


2015-05-22 15:39 GMT+02:00 David Coppa dco...@gmail.com:
 On Fri, May 22, 2015 at 3:28 PM, Eivind Eide xeno...@gmail.com wrote:
 From: L.R. D.S. arrowscript at mail.com
 Subject: Re: seamonkey error
 Date: 2015-04-17 22:21:28 GMT

 Solved on lastest snapshot.


 For me this has not changed. I still can't start seamonkey.
 I have uninstalled and reinstalled. Removed files in $HOME.
 I still get the same error:

 $ seamonkey
 XPCOMGlueLoad error for file
 /usr/local/lib/seamonkey-2.33.1/../../ldap/sdks/c-sdk/ldap/libraries/libldap/libldap60.so.41.0:
 File not found
 Couldn't load XPCOM.

 Could you please try:

 # pkg_add openldap-client

 I suspect there's a missing runtime dependency on openldap.

 Ciao!
 David



-- 



Eivind Eide

ONLY THOSE WHO ATTEMPT THE IMPOSSIBLE WILL ACHIEVE THE ABSURD
- Oceania Association of Autonomous Astronauts



Panic UVM on educake

2015-05-22 Thread Jan Lambertz
Hi,

i've bought an new device. x86duino educake. there is a dmesg that
looks like it has worked with openbsd 5.4 [1].
I'm trying to run 5.7 release on it an getting a panic. any ideas ?


jan

[1] http://www2192ue.sakura.ne.jp/~uaa/gomitext/2014/20140219/dmesg.txt

 OpenBSD/i386 BOOT 3.26
boot
booting hd0a:/bsd: 9777628+1068236 [72+409680+404343]=0xb1ec54
entry point at 0x200120

[ using 814508 bytes of bsd ELF symbol table ]
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2015 OpenBSD. All rights reserved.  http://www.OpenBSD.org

OpenBSD 5.7 (GENERIC) #738: Sun Mar  8 10:59:31 MDT 2015
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
RTC BIOS diagnostic error bfixed_disk
cpu0: Vortex86 SoC  (686-class) 301 MHz
cpu0: FPU,TSC,CX8,SEP,CMOV,MMX,PERF
real mem  = 133246976 (127MB)
avail mem = 118726656 (113MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: date 06/23/99, BIOS32 rev. 0 @ 0xff046, SMBIOS rev.
2.7 @ 0x7fe1420 (6 entries)
bios0: vendor coreboot version 4.0-4750-g745041e date 09/02/2014
bios0: DMP Vortex86EX
acpi at bios0 function 0x0 not configured
pcibios0 at bios0: rev 2.1 @ 0xf/0x1
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf4d30/224 (12 entries)
pcibios0: no compatible PCI ICU found: ICU vendor 0x17f3 product 0x6011
pcibios0: Warning, unable to fix up PCI interrupt routing
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xef000/0x1000!
cpu0 at mainbus0: (uniprocessor)
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 RDC R6025 Host rev 0x01
ppb0 at pci0 dev 1 function 0 RDC R1031 PCIe rev 0x02: irq 15
pci1 at ppb0 bus 1
pcib0 at pci0 dev 7 function 0 RDC R6011 SB rev 0x01
pcib1 at pci0 dev 7 function 1 RDC R6011 SB rev 0x01
vte0 at pci0 dev 8 function 0 RDC R6040 Ethernet rev 0x00: irq 9,
address 00:1b:eb:64:ae:d4
ukphy0 at vte0 phy 1: Generic IEEE 802.3u media interface, rev. 0: OUI
0x000bb4, model 0x0005
ohci0 at pci0 dev 10 function 0 RDC R6060 USB rev 0x13: irq 14,
version 1.0, legacy support
ehci0 at pci0 dev 10 function 1 RDC R6061 USB2 rev 0x07: irq 10
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 RDC EHCI root hub rev 2.00/1.00 addr 1
pciide0 at pci0 dev 12 function 0 RDC R1012 IDE rev 0x03: DMA,
channel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide0: using irq 11 for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: SD04G D0 RDC SD-IDE HOST CONTROLLER
wd0: 1-sector PIO, LBA, 3781MB, 7744512 sectors
pciide0: channel 1 ignored (disabled)
azalia0 at pci0 dev 14 function 0 RDC R3010 HDA rev 0x02: irq 7
azalia0: codecs: Realtek ALC262
audio0 at azalia0
RDC R1060 USB Device rev 0x03 at pci0 dev 15 function 0 not configured
RDC R1331 MC rev 0x00 at pci0 dev 16 function 0 not configured
RDC R1710 SPI rev 0x01 at pci0 dev 16 function 1 not configured
RDC R1070 CAN rev 0x00 at pci0 dev 17 function 0 not configured
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
com2 at isa0 port 0x3e8/8 irq 5: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
pcic: does not support memory and I/O cards, ignored (ident=3)
pcic: does not support memory and I/O cards, ignored (ident=3)
pcic: does not support memory and I/O cards, ignored (ident=3)
pcic: does not support memory and I/O cards, ignored (ident=3)
isa at pcib1 not configured
usb1 at ohci0: USB revision 1.0
uhub1 at usb1 RDC OHCI root hub rev 1.00/1.00 addr 1
nvram: invalid checksum
uvm_fault(0xd0b984c0, 0x0, 0, 1) - e
kernel: page fault trap, code=0
Stopped at  wdcintr+0x85:   call*0(%edx)
ddb trace
wdcintr(d10385e4,0,1,0,0) at wdcintr+0x85
pciide_pci_intr(d1038000,d1034900) at pciide_pci_intr+0x69
Xrecurse_legacy11() at Xrecurse_legacy11+0xb9
--- interrupt ---Xspllower(d322c870) at Xddb show registers
ds  0x10
es  0x10
fs  0x20
gs 0
edi   0xd10385e4end+0x3e061c
esi   0xd10385e4end+0x3e061c
ebp   0xf1e0aed0
ebx   0xd1038508end+0x3e0540
edx0
ecx 0x10
eax0
eip   0xd0208315wdcintr+0x85
cs   0x8
eflags 0x256
esp   0xf1e0ae98
ss  0x10
wdcintr+0x85:   call*0(%edx)
spllower+0xe
Bad frame pointer: 0xd0d20e18



Re: HP LaserJet 1100 lpr printing?

2015-05-22 Thread Craig Skinner
On 2015-05-15 Fri 06:50 AM |, Edgar Pettijohn III wrote:
 On May 15, 2015, at 6:45 AM, Craig Skinner wrote:
 
  Hi folks,
  
  Any pointers on printing with an HP LaserJet 1100?
  
  This one is connected via a USB convertor to a 5.6 release box:
  
  $ dmesg | fgrep lp
  ulpt0 at uhub0 port 2 configuration 1 interface 0 Pr?lific Technology Inc. 
  IEEE-1284 Controller rev 1.00/2.00 addr 3
  ulpt0: using bi-directional mode
  
 
 Have you tried using hplip?  It shows to be a supported printer.
 


Thanks Edgar  Naddy for pointing out that package to me!

Progess has  been  made, but not printing yet.

The dbus_daemon  cupsd are running, /dev stuff chowned, ulpt disabled
in the kernel, rebooted  confirmed. 

With a CUPS webadmin 'Add Printer' Connection URI of: usb:/dev/usb1
cupsd generates a decent looking .ppd file,
but printing of a test page continues to stay at:
Waiting for printer to become available.


What I've fiddled about with so far is:



$ cd /usr/local/share/doc/pkg-readmes/
$ less hplip-common-* cups-* foomatic-*


$ uname -mrsv
OpenBSD 5.6 GENERIC#274 i386

$ dmesg | tail
uhidev0: iclass 3/1
ums0 at uhidev0: 3 buttons, Z dir
wsmouse1 at ums0 mux 0
uhidev1 at uhub1 port 1 configuration 1 interface 0 Dell Dell USB Keyboard 
rev 1.10/3.06 addr 2
uhidev1: iclass 3/1
ukbd0 at uhidev1: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
ulpt0 at uhub0 port 2 configuration 1 interface 0 Pr?lific Technology Inc.  
IEEE-1284 Controller rev 1.00/2.00 addr 3
ulpt0: using bi-directional mode

$ dmesg | fgrep ulpt
ulpt0 at uhub1 port 2 configuration 1 interface 0 Pr?lific Technology Inc.  
IEEE-1284 Controller rev 1.00/2.00 addr 3
ulpt0: using bi-directional mode


$ sudo usbdevs -vd
Controller /dev/usb0:
addr 1: high speed, self powered, config 1, EHCI root hub(0x),
Intel(0x8086), rev 1.00
  uhub4
 port 1 powered
 port 2 powered
 port 3 powered
 port 4 powered
 port 5 powered
 port 6 powered
 port 7 addr 2: high speed, power 500 mA, config 1, USB2.0-CRW(0x0158), 
Generic(0x0bda), rev 58.88, iSerialNumber 200711X0
   umass0
 port 8 addr 3: high speed, power 128 mA, config 1, Lenovo EasyCamera(0xb1b8), 
Chicony Corp.(0x04f2), rev 45.42
   uvideo0
Controller /dev/usb1:
addr 1: full speed, self powered, config 1, UHCI root hub(0x), 
Intel(0x8086), rev 1.00
  uhub0
 port 1 addr 2: low speed, power 98 mA, config 1, Usb Mouse(0x0034), 
SIGMACHIP(0x1c4f), rev 1.10
   uhidev0
 port 2 addr 3: full speed, power 100 mA, config 1, IEEE-1284 
Controller(0x2305), Pr?lific Technology Inc.(0x067b), rev 2.00
   ulpt0
Controller /dev/usb2:
addr


$ ls -l /dev/ugen0.* /dev/usb*
crw-rw  1 root  wheel   63,   0 Apr 13 21:13 /dev/ugen0.00
crw-rw  1 root  wheel   63,   1 Apr 13 21:13 /dev/ugen0.01
crw-rw  1 root  wheel   63,   2 Apr 13 21:13 /dev/ugen0.02
crw-rw  1 root  wheel   63,   3 Apr 13 21:13 /dev/ugen0.03
crw-rw  1 root  wheel   63,   4 Apr 13 21:13 /dev/ugen0.04
crw-rw  1 root  wheel   63,   5 Apr 13 21:13 /dev/ugen0.05
crw-rw  1 root  wheel   63,   6 Apr 13 21:13 /dev/ugen0.06
crw-rw  1 root  wheel   63,   7 Apr 13 21:13 /dev/ugen0.07
crw-rw  1 root  wheel   63,   8 Apr 13 21:13 /dev/ugen0.08
crw-rw  1 root  wheel   63,   9 Apr 13 21:13 /dev/ugen0.09
crw-rw  1 root  wheel   63,  10 Apr 13 21:13 /dev/ugen0.10
crw-rw  1 root  wheel   63,  11 Apr 13 21:13 /dev/ugen0.11
crw-rw  1 root  wheel   63,  12 Apr 13 21:13 /dev/ugen0.12
crw-rw  1 root  wheel   63,  13 Apr 13 21:13 /dev/ugen0.13
crw-rw  1 root  wheel   63,  14 Apr 13 21:13 /dev/ugen0.14
crw-rw  1 root  wheel   63,  15 Apr 13 21:13 /dev/ugen0.15
crw-rw  1 root  wheel   61,   0 Apr 13 21:13 /dev/usb0
crw-rw  1 root  wheel   61,   1 Apr 13 21:13 /dev/usb1
crw-rw  1 root  wheel   61,   2 Apr 13 21:13 /dev/usb2
crw-rw  1 root  wheel   61,   3 Apr 13 21:13 /dev/usb3
crw-rw  1 root  wheel   61,   4 Apr 13 21:13 /dev/usb4
crw-rw  1 root  wheel   61,   5 Apr 13 21:13 /dev/usb5
crw-rw  1 root  wheel   61,   6 Apr 13 21:13 /dev/usb6
crw-rw  1 root  wheel   61,   7 Apr 13 21:13 /dev/usb7


$ sudo chown _cups /dev/ugen0.* /dev/usb1

** FIXME: use hotplug! ***



$ ls -l /dev/ugen0.* /dev/usb*   
crw-rw  1 _cups  wheel   63,   0 Apr 13 21:13 /dev/ugen0.00
crw-rw  1 _cups  wheel   63,   1 Apr 13 21:13 /dev/ugen0.01
crw-rw  1 _cups  wheel   63,   2 Apr 13 21:13 /dev/ugen0.02
crw-rw  1 _cups  wheel   63,   3 Apr 13 21:13 /dev/ugen0.03
crw-rw  1 _cups  wheel   63,   4 Apr 13 21:13 /dev/ugen0.04
crw-rw  1 _cups  wheel   63,   5 Apr 13 21:13 /dev/ugen0.05
crw-rw  1 _cups  wheel   63,   6 Apr 13 21:13 /dev/ugen0.06
crw-rw  1 _cups  wheel   63,   7 Apr 13 21:13 /dev/ugen0.07
crw-rw  1 _cups  wheel   63,   8 Apr 13 21:13 /dev/ugen0.08
crw-rw  1 _cups  wheel   63,   9 Apr 13 21:13 /dev/ugen0.09
crw-rw  1 _cups  

Re: HP LaserJet 1100 lpr printing?

2015-05-22 Thread Antoine Jacoutot
On Fri, May 22, 2015 at 04:08:20PM +0100, Craig Skinner wrote:
 On 2015-05-22 Fri 17:01 PM |, Antoine Jacoutot wrote:
  
  What is the version of the cups package you are running?
  
 
 $ pkg_info -I cups cups-filters foomatic-db-engine hplip-common dbus
 cups-1.7.4p0Common Unix Printing System

Yeah that's probably the reason, you are not running the latest stable cups 
package.
You need at least p1.


 cups-filters-1.0.54p2 OpenPrinting CUPS filters
 foomatic-db-engine-4.0.11 Foomatic PPD generator
 hplip-common-3.14.6 HPLIP applications common files
 dbus-1.8.6v0message bus system
 
 Cheers Antoine.
 -- 
 The 80's -- when you can't tell hairstyles from chemotherapy.
 

-- 
Antoine



Re: seamonkey error

2015-05-22 Thread David Coppa
On Fri, May 22, 2015 at 4:20 PM, Eivind Eide xeno...@gmail.com wrote:
 No, sorry. I had openldap-client installed already, dependency of libreoffice.
 But it doesn't change anything, the error remains the same...

What about the workaround below?

# ln -s /usr/local/lib/libldap-2.4.so.13.0 /usr/local/lib/libldap60.so.41.0


-David



Re: seamonkey error

2015-05-22 Thread Eivind Eide
No. Still the same.


2015-05-22 16:39 GMT+02:00 David Coppa dco...@gmail.com:
 On Fri, May 22, 2015 at 4:20 PM, Eivind Eide xeno...@gmail.com wrote:
 No, sorry. I had openldap-client installed already, dependency of 
 libreoffice.
 But it doesn't change anything, the error remains the same...

 What about the workaround below?

 # ln -s /usr/local/lib/libldap-2.4.so.13.0 /usr/local/lib/libldap60.so.41.0


 -David



-- 



Eivind Eide

ONLY THOSE WHO ATTEMPT THE IMPOSSIBLE WILL ACHIEVE THE ABSURD
- Oceania Association of Autonomous Astronauts



Re: HP LaserJet 1100 lpr printing?

2015-05-22 Thread Craig Skinner
On 2015-05-22 Fri 17:01 PM |, Antoine Jacoutot wrote:
 
 What is the version of the cups package you are running?
 

$ pkg_info -I cups cups-filters foomatic-db-engine hplip-common dbus
cups-1.7.4p0Common Unix Printing System
cups-filters-1.0.54p2 OpenPrinting CUPS filters
foomatic-db-engine-4.0.11 Foomatic PPD generator
hplip-common-3.14.6 HPLIP applications common files
dbus-1.8.6v0message bus system

Cheers Antoine.
-- 
The 80's -- when you can't tell hairstyles from chemotherapy.



Re: Resolve names from chroot'ed OpenBSD httpd

2015-05-22 Thread Giancarlo Razzolini
On 21-05-2015 20:57, Daniel Bolgheroni wrote:
 Warning: stream_socket_client(): unable to connect to
 tcp://api.wordpress.org:80 (php_network_getaddresses: getaddrinfo
 failed: no address associated with name) in
 /htdocs/wordpress/wp-includes/class-http.php on line 1008
Do you have the relevant files in your chroot's etc directory? I believe
that you need at least a resolv.conf there. Also, a localtime is always
a good idea.

Cheers,
Giancarlo Razzolini



Re: Resolve names from chroot'ed OpenBSD httpd

2015-05-22 Thread Daniel Bolgheroni
On Fri, May 22, 2015 at 06:39:53AM -0400, Dain Bentley wrote:
 I had this issue a while back.  Have you tried restarting the server?

Sure, but didn't solve the problem.

http://marc.info/?l=openbsd-miscm=135603654831609w=2



Re: HP LaserJet 1100 lpr printing?

2015-05-22 Thread Antoine Jacoutot
On Fri, May 22, 2015 at 03:57:02PM +0100, Craig Skinner wrote:
 On 2015-05-15 Fri 06:50 AM |, Edgar Pettijohn III wrote:
  On May 15, 2015, at 6:45 AM, Craig Skinner wrote:
  
   Hi folks,
   
   Any pointers on printing with an HP LaserJet 1100?
   
   This one is connected via a USB convertor to a 5.6 release box:
   
   $ dmesg | fgrep lp
   ulpt0 at uhub0 port 2 configuration 1 interface 0 Pr?lific Technology 
   Inc. IEEE-1284 Controller rev 1.00/2.00 addr 3
   ulpt0: using bi-directional mode
   
  
  Have you tried using hplip?  It shows to be a supported printer.
  
 
 
 Thanks Edgar  Naddy for pointing out that package to me!
 
 Progess has  been  made, but not printing yet.

What is the version of the cups package you are running?


 
 The dbus_daemon  cupsd are running, /dev stuff chowned, ulpt disabled
 in the kernel, rebooted  confirmed. 
 
 With a CUPS webadmin 'Add Printer' Connection URI of: usb:/dev/usb1
 cupsd generates a decent looking .ppd file,
 but printing of a test page continues to stay at:
 Waiting for printer to become available.
 
 
 What I've fiddled about with so far is:
 
 
 
 $ cd /usr/local/share/doc/pkg-readmes/
 $ less hplip-common-* cups-* foomatic-*
 
 
 $ uname -mrsv
 OpenBSD 5.6 GENERIC#274 i386
 
 $ dmesg | tail
 uhidev0: iclass 3/1
 ums0 at uhidev0: 3 buttons, Z dir
 wsmouse1 at ums0 mux 0
 uhidev1 at uhub1 port 1 configuration 1 interface 0 Dell Dell USB Keyboard 
 rev 1.10/3.06 addr 2
 uhidev1: iclass 3/1
 ukbd0 at uhidev1: 8 variable keys, 6 key codes
 wskbd1 at ukbd0 mux 1
 wskbd1: connecting to wsdisplay0
 ulpt0 at uhub0 port 2 configuration 1 interface 0 Pr?lific Technology Inc.  
 IEEE-1284 Controller rev 1.00/2.00 addr 3
 ulpt0: using bi-directional mode
 
 $ dmesg | fgrep ulpt
 ulpt0 at uhub1 port 2 configuration 1 interface 0 Pr?lific Technology Inc.  
 IEEE-1284 Controller rev 1.00/2.00 addr 3
 ulpt0: using bi-directional mode
 
 
 $ sudo usbdevs -vd
 Controller /dev/usb0:
 addr 1: high speed, self powered, config 1, EHCI root hub(0x),
 Intel(0x8086), rev 1.00
   uhub4
  port 1 powered
  port 2 powered
  port 3 powered
  port 4 powered
  port 5 powered
  port 6 powered
  port 7 addr 2: high speed, power 500 mA, config 1, USB2.0-CRW(0x0158), 
 Generic(0x0bda), rev 58.88, iSerialNumber 200711X0
umass0
  port 8 addr 3: high speed, power 128 mA, config 1, Lenovo 
 EasyCamera(0xb1b8), Chicony Corp.(0x04f2), rev 45.42
uvideo0
 Controller /dev/usb1:
 addr 1: full speed, self powered, config 1, UHCI root hub(0x), 
 Intel(0x8086), rev 1.00
   uhub0
  port 1 addr 2: low speed, power 98 mA, config 1, Usb Mouse(0x0034), 
 SIGMACHIP(0x1c4f), rev 1.10
uhidev0
  port 2 addr 3: full speed, power 100 mA, config 1, IEEE-1284 
 Controller(0x2305), Pr?lific Technology Inc.(0x067b), rev 2.00
ulpt0
 Controller /dev/usb2:
 addr
 
 
 $ ls -l /dev/ugen0.* /dev/usb*
 crw-rw  1 root  wheel   63,   0 Apr 13 21:13 /dev/ugen0.00
 crw-rw  1 root  wheel   63,   1 Apr 13 21:13 /dev/ugen0.01
 crw-rw  1 root  wheel   63,   2 Apr 13 21:13 /dev/ugen0.02
 crw-rw  1 root  wheel   63,   3 Apr 13 21:13 /dev/ugen0.03
 crw-rw  1 root  wheel   63,   4 Apr 13 21:13 /dev/ugen0.04
 crw-rw  1 root  wheel   63,   5 Apr 13 21:13 /dev/ugen0.05
 crw-rw  1 root  wheel   63,   6 Apr 13 21:13 /dev/ugen0.06
 crw-rw  1 root  wheel   63,   7 Apr 13 21:13 /dev/ugen0.07
 crw-rw  1 root  wheel   63,   8 Apr 13 21:13 /dev/ugen0.08
 crw-rw  1 root  wheel   63,   9 Apr 13 21:13 /dev/ugen0.09
 crw-rw  1 root  wheel   63,  10 Apr 13 21:13 /dev/ugen0.10
 crw-rw  1 root  wheel   63,  11 Apr 13 21:13 /dev/ugen0.11
 crw-rw  1 root  wheel   63,  12 Apr 13 21:13 /dev/ugen0.12
 crw-rw  1 root  wheel   63,  13 Apr 13 21:13 /dev/ugen0.13
 crw-rw  1 root  wheel   63,  14 Apr 13 21:13 /dev/ugen0.14
 crw-rw  1 root  wheel   63,  15 Apr 13 21:13 /dev/ugen0.15
 crw-rw  1 root  wheel   61,   0 Apr 13 21:13 /dev/usb0
 crw-rw  1 root  wheel   61,   1 Apr 13 21:13 /dev/usb1
 crw-rw  1 root  wheel   61,   2 Apr 13 21:13 /dev/usb2
 crw-rw  1 root  wheel   61,   3 Apr 13 21:13 /dev/usb3
 crw-rw  1 root  wheel   61,   4 Apr 13 21:13 /dev/usb4
 crw-rw  1 root  wheel   61,   5 Apr 13 21:13 /dev/usb5
 crw-rw  1 root  wheel   61,   6 Apr 13 21:13 /dev/usb6
 crw-rw  1 root  wheel   61,   7 Apr 13 21:13 /dev/usb7
 
 
 $ sudo chown _cups /dev/ugen0.* /dev/usb1
 
 ** FIXME: use hotplug! ***
 
 
 
 $ ls -l /dev/ugen0.* /dev/usb*   
 crw-rw  1 _cups  wheel   63,   0 Apr 13 21:13 /dev/ugen0.00
 crw-rw  1 _cups  wheel   63,   1 Apr 13 21:13 /dev/ugen0.01
 crw-rw  1 _cups  wheel   63,   2 Apr 13 21:13 /dev/ugen0.02
 crw-rw  1 _cups  wheel   63,   3 Apr 13 21:13 /dev/ugen0.03
 crw-rw  1 _cups  wheel   63,   4 Apr 13 21:13 /dev/ugen0.04
 crw-rw  1 _cups  wheel   63,   5 Apr 13 21:13 /dev/ugen0.05
 crw-rw  1 

Re: Resolve names from chroot'ed OpenBSD httpd

2015-05-22 Thread Todd C. Miller
On Fri, 22 May 2015 11:54:10 -0300, Daniel Bolgheroni wrote:

 On Fri, May 22, 2015 at 06:39:53AM -0400, Dain Bentley wrote:
  I had this issue a while back.  Have you tried restarting the server?
 
 Sure, but didn't solve the problem.
 
 http://marc.info/?l=openbsd-miscm=135603654831609w=2

You should ktrace the process and see what files it is unable to
open.  That should tell you what is missing from the chroot.

 - todd



Will mmap and the read buffer cache be unified, anyone working with it?

2015-05-22 Thread Tinker

Hi,

Will mmap and the read buffer cache be unified, anyone working with it?

Some programs disable features on OBSD for this reason so would be nice! 
(I admit though that a program combining mmap() and read() on the same 
file sounds like a slightly quirky design choice to me.)


Thanks!
Tinker



Re: Resolve names from chroot'ed OpenBSD httpd

2015-05-22 Thread Dain Bentley
I had this issue a while back.  Have you tried restarting the server?

On Thursday, May 21, 2015, Daniel Bolgheroni dbolgher...@gmail.com wrote:

 Hi,

 Any advice on resolving names from a chroot'ed httpd?

 OpenBSD 5.7, Wordpress downloaded from site, mariadb configured, paths
 set on httpd.conf. Also have /var/www/etc/hosts and
 /var/www/etc/resolv.conf in place.

 Works almost as expected, except for some functions like installing
 plugins/themes, which I get a lot of php_network_getaddresses:
 getaddrinfo failed: no address associated with name when activating
 Wordpress debug.

 Warning: stream_socket_client(): unable to connect to
 tcp://api.wordpress.org:80 (php_network_getaddresses: getaddrinfo
 failed: no address associated with name) in
 /htdocs/wordpress/wp-includes/class-http.php on line 1008

 Same problem with nginx from ports.

 Thank you.

 --
 db



Re: CPU power consumption on thinkpad x201

2015-05-22 Thread Walter Alejandro Iglesias
On Wed, May 20, 2015 at 08:56:57PM -0600, Shaun Reiger wrote:
 Hello I'm trying to find out if the power consumption relating to the
 intel_powerclamp driver (Package Level C-state Idle Injection for
 Intel CPUs) was ever fixed. I'm current running 5.7 stable and I find
 my cpu is still consuming 6W of power in any state.  It was mentioned
 in the emails from last year that a Linux driver fixed this issue. Any
 updates on this issue would be great.

I had running OpenBSD in my Thinkpad T410 for some months suffering this
issue.

In the while I made tests with a Linux liveCD with 3.8 kernel.  With
intensive CPU usage, i.e. running mplayer without interruption, the
battery life (9 cell) was the same in both OSs, exactly two hours.  But
with light CPU usage (i.e. editing files with vi) OpenBSD still died
after two hours but with Linux I got around three and a half.

The 3.8 kernel hadn't the intel_powerclamp module.

Unfortunately I had to reinstall Linux.  Now running 3.10.17 with
intel_powerclamp module I get an average of three and a half hours of
battery life.  So it seems that it isn't the intel_powerclamp module
what make the difference, at least in T410 model.


Walter




-- 
PLEASE, LET'S PRESERVE GOOD EMAIL PRACTICES
- Use plain text (no HTML please).
- Separate paragraphs with empty lines.
- Use hard wrapped lines at no more than 72 columns.
- Avoid top-posting.
- You'll find the above easy to accomplish by using a decent email
  client (i.e. Thunderbird, Claws mail, Mutt).



IPv6 is not working at Hetzner

2015-05-22 Thread Heiko Zimmermann
Hello OpenBSD users,

I have a server at Hetzner, but IPv6 is not working. IPv4 is all fine.

My Net: 2a01:4f8:160::: 64

I tried this configuration:

hostname.re0

# IPv4
...
# IPv6
inet6 2a01:4f8:160:::2 64
inet6 alias 2a01:4f8:160:::80 64
inet6 alias 2a01:4f8:160:::25 64
!route add -inet6 default fe80::1%re0


mygate

176.9.YY.65
fe80::1
2a01:4f8:160:::1


pf.conf
--snip--
# for testing
pass inet6 proto icmp6
pass in on $if inet6 proto udp from any to any port 33433  33626 keep
state
--snip---


$ ifconfig -A
...
re0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr 54:04:a6:b4:XX:XX
priority: 0
groups: egress
media: Ethernet autoselect (1000baseT full-duplex)
status: active
... some IPv4 ...
inet6 fe80::5604:a6ff:feb4:99c2%re0 prefixlen 64 scopeid 0x1
inet6 2a01:4f8:160:::2 prefixlen 64
inet6 2a01:4f8:160:::80 prefixlen 64
inet6 2a01:4f8:160:::25 prefixlen 64
...


$ ping6 fe80::1%re0
PING6(72=40+8+24 bytes) fe80::5604:a6ff:feb4:99c2%re0 -- fe80::1%re0
32 bytes from fe80::1%re0, icmp_seq=0 hlim=64 time=1.408 ms
...

$ ping6 2a01:4f8:160:::1
PING6(72=40+8+24 bytes) 2a01:4f8:160:::2 -- 2a01:4f8:160:::1
^C
-- not working

$ ping6 ipv6.google.com
PING6(72=40+8+24 bytes) 2a01:4f8:160:::25 -- 2a00:1450:4001:80c::1002
^C
-- not working

pftop while ping:
ipv6-icmp Out 2a01:4f8:160:::2[3709] 2a01:4f8:160:::1[128]
 NO_TRAFFIC:NO_TRAFFIC  ... Rule 125
ipv6-icmp Out 2a01:4f8:160:::2[27870]2a01:4f8:160:::1[135]
 NO_TRAFFIC:NO_TRAFFIC  ... Rule 125

Rule 125: pass inet6 proto icmp6


I dont know how to fix it. This is my first try with IPv6. Sorry when I
did a silly mistake.

I use 5.7 current on amd64.

Thank you all for your help.
 -Heiko



Re: IPv6 is not working at Hetzner

2015-05-22 Thread Thomas Bohl

Hello,

Am 22.05.2015 um 20:33 schrieb Heiko Zimmermann:

I have a server at Hetzner, but IPv6 is not working. IPv4 is all fine.


A dedicated or a virtual server? One needs fe80::1%re0 the other 
2a01:4f8:160:::1%re0 as the default gateway.

http://wiki.hetzner.de/index.php/Zusaetzliche_IP-Adressen/en#Gateway



$ ping6 ipv6.google.com
PING6(72=40+8+24 bytes) 2a01:4f8:160:::25 -- 2a00:1450:4001:80c::1002
^C
-- not working


Please post the results of
# ping6 -vc 5 google.com
# route -n show -inet6
# ndp -an