Re: Ethernet configuration problem

2014-06-20 Thread Gustav Fransson Nyvell

On 06/20/14 07:45, Thuban wrote:

* Stuart Henderson s...@spacehopper.org le [20-06-2014 00:19:17 +]:

On 2014-06-18, Thuban thu...@yeuxdelibad.net wrote:

* Peter N. M. Hansteen pe...@bsdly.net le [18-06-2014 18:37:52 +0200]:

On Wed, Jun 18, 2014 at 06:21:24PM +0200, Thuban wrote:

 jme0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
 lladdr 00:90:f5:bc:7b:5E
 groups egress
 media: Ethernet autoselect (none)
 status: no carrier
 inet6 fe80::290:f5ff:febc:7b56%jme0 prefixlen 64 scopeid 0x1
 inet 192.168.1.70 netmask 0xff0 broadcast 192.168.1.255


Haha.
Cable is plugged.

I tried today to modify media to 10baseT, but the router's LED is still
off and I can't connect.

Try a different cable.

If you get status: no carrier with a cable plugged in, the most likely culprit 
is
the cable.

I am currently using this cable on my debian and connexion works

Are you saying here that the exact same hardware works with linux, but gets
a 'no carrier' with OpenBSD and FreeBSD? Is it possible to try booting with
Linux again (a live cd will do) and check link status?


Exactly. On linux, I can use the ethernet correctly. The linux's
ifconfig gives this :

 eth0  Link encap:Ethernet  HWaddr 00:90:f5:bc:7b:56
 inet adr:192.168.1.68  Bcast:192.168.1.255  Masque:255.255.255.0
 adr inet6: 2001:41d0:fe34:de00:290:f5ff:febc:7b56/64 Scope:Global
 adr inet6: fe80::290:f5ff:febc:7b56/64 Scope:Lien
 UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
 RX packets:266 errors:0 dropped:0 overruns:0 frame:0
 TX packets:263 errors:0 dropped:0 overruns:0 carrier:0
 collisions:0 lg file transmission:1000
 RX bytes:61935 (60.4 KiB)  TX bytes:31036 (30.3 KiB)
 Interruption:44

Regards

Given what vigdis said, I wonder:-

- what speed is the switch port you're using

- what speed does linux negotiate

- what speed is your NIC supposed to support? 10/100 or also gigabit?


I'm not sure how to give you the correct answers to theses questions.
The speed is 100Mb/s. Following, the output of ethtool on the linux box
:


 Settings for eth0:
 Supported ports: [ TP MII ]
 Supported link modes:   10baseT/Half 10baseT/Full
 100baseT/Half 100baseT/Full
 1000baseT/Half 1000baseT/Full
 Supported pause frame use: No
 Supports auto-negotiation: Yes
 Advertised link modes:  10baseT/Half 10baseT/Full
 100baseT/Half 100baseT/Full
 1000baseT/Half 1000baseT/Full
 Advertised pause frame use: No
 Advertised auto-negotiation: Yes
 Link partner advertised link modes:  10baseT/Half 10baseT/Full
 100baseT/Half 100baseT/Full
 Link partner advertised pause frame use: Symmetric
 Link partner advertised auto-negotiation: Yes
 Speed: 100Mb/s
 Duplex: Full
 Port: MII
 PHYAD: 1
 Transceiver: internal
 Auto-negotiation: on
 Supports Wake-on: pg
 Wake-on: g
 Current message level: 0x20c6 (8390)
 probe link rx_err tx_err hw
 Link detected: yes

Do not hesitate to give me some advice to find more interesting
informations.

Regards,


Hi,

What speed is your switch?

Can you give us the switch make and model and the NIC make and model?

//Gustav

--
This e-mail is confidential and may not be shared with anyone other than 
recipient(s) without written permission from sender.



Re: OpenBSD 5.5 on mSATA SSD unit in PC Engines APU.1C - bad dir ino 2 at offset 0: mangled entry kernel panic

2014-06-20 Thread Roger Wiklund
No problems so far with Intel mSATA 525 30GB.

On a side note I'm a bit worried about the CPU temperate, almost 70
degrees C during normal load.

On Thu, Jun 12, 2014 at 9:49 PM, Chris Cappuccio ch...@nmedia.net wrote:
 Happy to report that Plextor M6M (msata) passes all the tests so far,
 unlike msata Sandisk X110.



Re: OpenBSD 5.5 on mSATA SSD unit in PC Engines APU.1C - bad dir ino 2 at offset 0: mangled entry kernel panic

2014-06-20 Thread Nick Ryan
That seems to be normal. Mine is currently 61.5 degrees and it's 
currently not under any load.


Mine runs cooler if it's standing on its edge vertically, it just seems 
to help the airflow around the case at the expense of looking a bit odd.


Regards - Nick


On 20/06/2014 10:40, Roger Wiklund wrote:


No problems so far with Intel mSATA 525 30GB.

On a side note I'm a bit worried about the CPU temperate, almost 70
degrees C during normal load.

On Thu, Jun 12, 2014 at 9:49 PM, Chris Cappuccio ch...@nmedia.net 
wrote:


Happy to report that Plextor M6M (msata) passes all the tests so far, 
unlike msata Sandisk X110.




Re: OpenBSD 5.5 on mSATA SSD unit in PC Engines APU.1C - bad dir ino 2 at offset 0: mangled entry kernel panic

2014-06-20 Thread Zé Loff
On Fri, Jun 20, 2014 at 11:40:02AM +0200, Roger Wiklund wrote:
 No problems so far with Intel mSATA 525 30GB.
 
 On a side note I'm a bit worried about the CPU temperate, almost 70
 degrees C during normal load.

Same here: 70-75C, for a 0.2 average load. The case gets pretty hot, so
I'm guessing I installed the heatsink correctly... Does anyone have
(much) lower figures?



Re: Ethernet configuration problem

2014-06-20 Thread Thuban
* Gustav Fransson Nyvell gus...@nyvell.se le [20-06-2014 11:32:22 +0200]:
 On 06/20/14 07:45, Thuban wrote:
 * Stuart Henderson s...@spacehopper.org le [20-06-2014 00:19:17 +]:
 On 2014-06-18, Thuban thu...@yeuxdelibad.net wrote:
 * Peter N. M. Hansteen pe...@bsdly.net le [18-06-2014 18:37:52 +0200]:
 On Wed, Jun 18, 2014 at 06:21:24PM +0200, Thuban wrote:
  jme0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
  lladdr 00:90:f5:bc:7b:5E
  groups egress
  media: Ethernet autoselect (none)
  status: no carrier
  inet6 fe80::290:f5ff:febc:7b56%jme0 prefixlen 64 scopeid 0x1
  inet 192.168.1.70 netmask 0xff0 broadcast 192.168.1.255
 
 Haha.
 Cable is plugged.
 
 I tried today to modify media to 10baseT, but the router's LED is still
 off and I can't connect.
 Try a different cable.
 
 If you get status: no carrier with a cable plugged in, the most likely 
 culprit is
 the cable.
 I am currently using this cable on my debian and connexion works
 Are you saying here that the exact same hardware works with linux, but 
 gets
 a 'no carrier' with OpenBSD and FreeBSD? Is it possible to try booting 
 with
 Linux again (a live cd will do) and check link status?
 
 Exactly. On linux, I can use the ethernet correctly. The linux's
 ifconfig gives this :
 
  eth0  Link encap:Ethernet  HWaddr 00:90:f5:bc:7b:56
  inet adr:192.168.1.68  Bcast:192.168.1.255  
  Masque:255.255.255.0
  adr inet6: 2001:41d0:fe34:de00:290:f5ff:febc:7b56/64 
  Scope:Global
  adr inet6: fe80::290:f5ff:febc:7b56/64 Scope:Lien
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:266 errors:0 dropped:0 overruns:0 frame:0
  TX packets:263 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 lg file transmission:1000
  RX bytes:61935 (60.4 KiB)  TX bytes:31036 (30.3 KiB)
  Interruption:44
 
 Regards
 Given what vigdis said, I wonder:-
 
 - what speed is the switch port you're using
 
 - what speed does linux negotiate
 
 - what speed is your NIC supposed to support? 10/100 or also gigabit?
 
 I'm not sure how to give you the correct answers to theses questions.
 The speed is 100Mb/s. Following, the output of ethtool on the linux box
 :
 
 
  Settings for eth0:
  Supported ports: [ TP MII ]
  Supported link modes:   10baseT/Half 10baseT/Full
  100baseT/Half 100baseT/Full
  1000baseT/Half 1000baseT/Full
  Supported pause frame use: No
  Supports auto-negotiation: Yes
  Advertised link modes:  10baseT/Half 10baseT/Full
  100baseT/Half 100baseT/Full
  1000baseT/Half 1000baseT/Full
  Advertised pause frame use: No
  Advertised auto-negotiation: Yes
  Link partner advertised link modes:  10baseT/Half 10baseT/Full
  100baseT/Half 100baseT/Full
  Link partner advertised pause frame use: Symmetric
  Link partner advertised auto-negotiation: Yes
  Speed: 100Mb/s
  Duplex: Full
  Port: MII
  PHYAD: 1
  Transceiver: internal
  Auto-negotiation: on
  Supports Wake-on: pg
  Wake-on: g
  Current message level: 0x20c6 (8390)
  probe link rx_err tx_err hw
  Link detected: yes
 
 Do not hesitate to give me some advice to find more interesting
 informations.
 
 Regards,
 
 Hi,
 
 What speed is your switch?
 
 Can you give us the switch make and model and the NIC make and model?
 

The switch is on the router given by my internet access provider. The
router is a Thomson Gateway TG784n. Speed is at 100 Mb/s.
I'm not sure to understand correctly
what you need because of my poor english. :(

About the NIC :  
Ethernet controller: JMicron Technology Corp. JMC250
PCI Express Gigabit Ethernet Controller (rev 05)
Subsystem: CLEVO/KAPOK Computer Device 4140


Regards,
-- 
Thuban
PubKey : http://yeuxdelibad.net/Divers/thuban.pub



Re: OpenBSD 5.5 on mSATA SSD unit in PC Engines APU.1C - bad dir ino 2 at offset 0: mangled entry kernel panic

2014-06-20 Thread Liviu Daia
On 20 June 2014, Zé Loff zel...@zeloff.org wrote:
 On Fri, Jun 20, 2014 at 11:40:02AM +0200, Roger Wiklund wrote:
  No problems so far with Intel mSATA 525 30GB.
 
  On a side note I'm a bit worried about the CPU temperate, almost 70
  degrees C during normal load.

 Same here: 70-75C, for a 0.2 average load. The case gets pretty hot,
 so I'm guessing I installed the heatsink correctly...

The case itself is the sink. :)

 Does anyone have (much) lower figures?

No, this seems to be common.  I managed to lower the temperature a
little by rising the case legs, so that there's better air circulation
below it.  Room temperature makes a big difference too.

Regards,

Liviu Daia



mail.ssh with netstat command

2014-06-20 Thread Indunil Jayasooriya
Dear ALL,

netstat gives below output on my openbsd 5 64 bit firewall. it is a VM.

tcp  0128  mail.ssh   192.168.x.y.57850
 ESTABLISHED


I think it is unusual?

your comment?

How to find this mail.ssh ?



-- 
Thank you
Indunil Jayasooriya
http://www.theravadanet.net/
http://www.siyabas.lk/sinhala_how_to_install.html   -  Download Sinhala
Fonts



Re: mail.ssh with netstat command

2014-06-20 Thread Manuel Giraud
Indunil Jayasooriya induni...@gmail.com writes:

 How to find this mail.ssh ?

I'll start with a netstat -n
-- 
Manuel Giraud



Re: LAN vs VLAN interface performance

2014-06-20 Thread Boris Goldberg
Hello ML,

Thursday, June 19, 2014, 2:21:38 AM, you wrote:

Mm I have four /24 subnets and currently have one subnet per ethernet
Mm interface (1Gbit/s) on my openbsd firewall. Now I was wondering if in
Mm terms of performance (especially latency/pps) it is better to have one
Mm subnet per ethernet interface like I have now or to have the four
Mm subnets on one single interface using vlan interfaces?

Mm The traffic/bandwidth here is not really an issue and the one single
Mm interface would be a 10 Gbit/s interface anyway so it can accommodate
Mm the traffic of 4 VLANs without problem.

Mm Note here that I would also be using the trunk interface to aggregate
Mm two 10 Gbit/s interfaces for redundancy. So my four VLANs would be inside a 
trunk interface.

  Sorry for the OT, but haven't you had separated them for a reason on the
first place? There is no real security separation between vlans.

  Also OT - is OBSD handling 10 gigabit interfaces at full capacity
already?

-- 
Best regards,
 Borismailto:bo...@twopoint.com



Re: 8 port serial card connections

2014-06-20 Thread Craig R. Skinner
On 2014-06-14 Sat 16:33 PM |, Christian Weisgerber wrote:
 On 2014-06-14, Craig R. Skinner skin...@britvault.co.uk wrote:
 
  To connect a Moxa 8 port serial card with octopus cable to an i386
  serial port, do I need just a DB9 (2x female) gender changer, or a null
  modem cable/mini adapter as well?
 
 You need a null modem cable/adapter.  A gender changer is of no
 use.
 

Thanks. A bag of these ordered from ebay.co.uk @ ?2ea (incl delivery)
arrived today:

DB9 RS232 Serial Null Modem Adapter - F/F

http://www.startech.com/Cables/Serial-Parallel-PS-2/DB9-DB25/DB9-RS232-Serial-Null-Modem-Adapter-Female-to-Female~NM9FF

Works for me, apart from last 2, but the card isn't listed as supported.

/etc/remote:
# ...
# --

# General definitions used in :tc=XXX: capabilities below
#
direct:\
:dc:

doshost:\
:oe=^Z:tc=unixhost:

unixhost:\
:pa=none:br#9600:el=^U^C^R^O^D^S^Q:ie=%$:oe=^D:

common:\
:tc=direct:tc=unixhost:be:

# com0:
# console (from teak) as per boot.conf
console:dv=/dev/tty00:common:

# com1:
teak:dv=/dev/tty01:common:

# No. 3 Moxa card port:
oak:dv=/dev/tty04:common:

# No. 4 Moxa card port:
birch:dv=/dev/tty05:common:

# No. 5 Moxa card port:
hickory:dv=/dev/tty06:common:

# No. 6 Moxa card port:
ash:dv=/dev/tty07:common:

# No. 7 Moxa card port:
moxa07:dv=/dev/tty08:common:

# No. 8 Moxa card port:
moxa08:dv=/dev/tty09:common:

# FIXME broken/unsupported (tried tty02, tty10-30)
# tip moxa09
# /dev/tty10: Device not configured
# link down
#
# From puc(4):
# Moxa Technologies Co., Ltd. PCI I/O Card 4S (4 port serial)
# Moxa Technologies Co., Ltd. C104H/PCI (4 port serial)
# Moxa Technologies Co., Ltd. CP104/PCI (4 port serial)
#
# From dmesg:
# puc0 at pci0 dev 18 function 0 Moxa C168H rev 0x01: ports: 8 com
#
# FIXME No. 9 Moxa card port:
moxa09:dv=/dev/tty10:common:

# FIXME No. 10 Moxa card port:
moxa10:dv=/dev/tty11:common:



Re: 8 port serial card connections

2014-06-20 Thread Maurice Janssen

skin...@britvault.co.uk schreef op 2014-06-20 16:08:
Works for me, apart from last 2, but the card isn't listed as 
supported.


/etc/remote:

snip

# FIXME No. 9 Moxa card port:
moxa09:dv=/dev/tty10:common:

# FIXME No. 10 Moxa card port:
moxa10:dv=/dev/tty11:common:


Try /dev/tty0a and /dev/tty0b

Maurice



Re: LAN vs VLAN interface performance

2014-06-20 Thread Henning Brauer
* Boris Goldberg bo...@twopoint.com [2014-06-20 15:51]:
 There is no real security separation between vlans.

sigh. stop spreading myths from the last century.

 Also OT - is OBSD handling 10 gigabit interfaces at full capacity
 already?

yes

-- 
Henning Brauer, h...@bsws.de, henn...@openbsd.org
BS Web Services GmbH, http://bsws.de, Full-Service ISP
Secure Hosting, Mail and DNS. Virtual  Dedicated Servers, Root to Fully Managed
Henning Brauer Consulting, http://henningbrauer.com/



Re: LAN vs VLAN interface performance

2014-06-20 Thread Adam Thompson
Yes, OT... But unless you've chosen to do something silly (like enabling MVRP, 
or blindly allowing all VLANs to an untrusted host) saying VLANs aren't 
secure is about as useful as ICMP isn't secure.
Please explain how VLANs are not secure when you have control of the devices on 
both ends of an 802.1Q-tagged link?  That's no more or less secure than having 
multiple links to a switch running un-tagged ports on different VLANs.  Or are 
you saying I should have a separate physical switch for each subnet?

I recall the performance question coming up at BSDCan, and Henning saying that 
under ideal circumstances, yes, OpenBSD could usefully fill a 10GE pipe, but 
that non-ideal circumstances would degrade performance faster than the 
equivalent $250k+ hardware 10GE router.

Reyk@ is, I believe, running an entire company predicated on high-performance 
routing, including multiple-10GE but that's second-hand knowledge.

Certainly OpenBSD is easily capable of pushing many gigabits per second of 
traffic, I just don't know what the absolute upper limits are today.

-Adam

On June 20, 2014 8:01:20 AM CDT, Boris Goldberg bo...@twopoint.com wrote:
Hello ML,

Thursday, June 19, 2014, 2:21:38 AM, you wrote:

Mm I have four /24 subnets and currently have one subnet per ethernet
Mm interface (1Gbit/s) on my openbsd firewall. Now I was wondering if
in
Mm terms of performance (especially latency/pps) it is better to have
one
Mm subnet per ethernet interface like I have now or to have the four
Mm subnets on one single interface using vlan interfaces?

Mm The traffic/bandwidth here is not really an issue and the one
single
Mm interface would be a 10 Gbit/s interface anyway so it can
accommodate
Mm the traffic of 4 VLANs without problem.

Mm Note here that I would also be using the trunk interface to
aggregate
Mm two 10 Gbit/s interfaces for redundancy. So my four VLANs would be
inside a trunk interface.

Sorry for the OT, but haven't you had separated them for a reason on
the
first place? There is no real security separation between vlans.

  Also OT - is OBSD handling 10 gigabit interfaces at full capacity
already?

-- 
Best regards,
 Borismailto:bo...@twopoint.com

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: OpenBSD 5.5 on mSATA SSD unit in PC Engines APU.1C - bad dir ino 2 at offset 0: mangled entry kernel panic

2014-06-20 Thread Roger Wiklund
Did some tests (cold Swedish midsummer around 12C outside)

Bedroom floor near open window
1:48PM  up  1:06, 1 user, load averages: 0.29, 0.17, 0.11
hw.sensors.km0.temp0=58.00 degC

Kitchen countertop, no open windows
3:01PM  up  1:09, 1 user, load averages: 0.11, 0.09, 0.08
hw.sensors.km0.temp0=64.25 degC

Closed closet where I have my other server/networking stuff
4:14PM  up  1:10, 1 user, load averages: 0.20, 0.11, 0.09
hw.sensors.km0.temp0=68.00 degC

Max temp for the CPU is 90C
http://www.amd.com/Documents/49282_G-Series_platform_brief.pdf

On Fri, Jun 20, 2014 at 2:11 PM, Liviu Daia liviu.d...@gmail.com wrote:
 On 20 June 2014, Zé Loff zel...@zeloff.org wrote:
 On Fri, Jun 20, 2014 at 11:40:02AM +0200, Roger Wiklund wrote:
  No problems so far with Intel mSATA 525 30GB.
 
  On a side note I'm a bit worried about the CPU temperate, almost 70
  degrees C during normal load.

 Same here: 70-75C, for a 0.2 average load. The case gets pretty hot,
 so I'm guessing I installed the heatsink correctly...

 The case itself is the sink. :)

 Does anyone have (much) lower figures?

 No, this seems to be common.  I managed to lower the temperature a
 little by rising the case legs, so that there's better air circulation
 below it.  Room temperature makes a big difference too.

 Regards,

 Liviu Daia



Re: OpenBSD 5.5 on mSATA SSD unit in PC Engines APU.1C - bad dir ino 2 at offset 0: mangled entry kernel panic

2014-06-20 Thread Mike Bregg

On 2014-06-20 04:14, Zé Loff wrote:

On Fri, Jun 20, 2014 at 11:40:02AM +0200, Roger Wiklund wrote:

No problems so far with Intel mSATA 525 30GB.

On a side note I'm a bit worried about the CPU temperate, almost 70
degrees C during normal load.


Same here: 70-75C, for a 0.2 average load. The case gets pretty hot, so
I'm guessing I installed the heatsink correctly... Does anyone have
(much) lower figures?


Mine sits in my basement on a shelf with the modem, switch, etc and it 
idles right around 57-58C, with an average load of around 0.2.




Re: mail.ssh with netstat command

2014-06-20 Thread patrick keshishian
On 6/20/14, Indunil Jayasooriya induni...@gmail.com wrote:
 Dear ALL,

 netstat gives below output on my openbsd 5 64 bit firewall. it is a VM.

 tcp  0128  mail.ssh   192.168.x.y.57850
  ESTABLISHED


 I think it is unusual?

you do not expect an ssh connection from 192.168.x.y
to the machine you ran netstat on, which has an interface
named mail?

--patrick



Re: 8 port serial card connections

2014-06-20 Thread Craig R. Skinner
On 2014-06-20 Fri 16:14 PM |, Maurice Janssen wrote:
 # FIXME No. 9 Moxa card port:
 moxa09:dv=/dev/tty10:common:
 
 # FIXME No. 10 Moxa card port:
 moxa10:dv=/dev/tty11:common:
 
 Try /dev/tty0a and /dev/tty0b
 

Perfect!


Here's a man page diff to sync with lines 1383-1397 of
/usr/src/sys/dev/pci/pucdata.c


Index: share/man/man4/puc.4
===
RCS file: /cvs/src/share/man/man4/puc.4,v
retrieving revision 1.47
diff -u -p -r1.47 puc.4
--- share/man/man4/puc.42 Feb 2014 19:39:55 -   1.47
+++ share/man/man4/puc.420 Jun 2014 17:00:27 -
@@ -85,6 +85,7 @@ The driver currently supports the follow
 .It Tn Moxa Technologies Co., Ltd. PCI I/O Card 4S (4 port serial)
 .It Tn Moxa Technologies Co., Ltd. C104H/PCI (4 port serial)
 .It Tn Moxa Technologies Co., Ltd. CP104/PCI (4 port serial)
+.It Tn Moxa Technologies Co., Ltd. C168H/PCI (8 port serial)
 .It Tn NEC PK-UG-X008 (serial)
 .It Tn NEC PK-UG-X001 K56flex PCI (modem)
 .It Tn NetMos 1P (1 port parallel)



Re: Ethernet configuration problem

2014-06-20 Thread noah pugsley
On Fri, Jun 20, 2014 at 4:38 AM, Thuban thu...@yeuxdelibad.net wrote:
 * Gustav Fransson Nyvell gus...@nyvell.se le [20-06-2014 11:32:22 +0200]:
 On 06/20/14 07:45, Thuban wrote:
 * Stuart Henderson s...@spacehopper.org le [20-06-2014 00:19:17 +]:
 On 2014-06-18, Thuban thu...@yeuxdelibad.net wrote:
 * Peter N. M. Hansteen pe...@bsdly.net le [18-06-2014 18:37:52 +0200]:
 On Wed, Jun 18, 2014 at 06:21:24PM +0200, Thuban wrote:
  jme0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
  lladdr 00:90:f5:bc:7b:5E
  groups egress
  media: Ethernet autoselect (none)
  status: no carrier
  inet6 fe80::290:f5ff:febc:7b56%jme0 prefixlen 64 scopeid 0x1
  inet 192.168.1.70 netmask 0xff0 broadcast 192.168.1.255
 
 Haha.
 Cable is plugged.
 
 I tried today to modify media to 10baseT, but the router's LED is still
 off and I can't connect.
 Try a different cable.
 
 If you get status: no carrier with a cable plugged in, the most likely 
 culprit is
 the cable.
 I am currently using this cable on my debian and connexion works
 Are you saying here that the exact same hardware works with linux, but 
 gets
 a 'no carrier' with OpenBSD and FreeBSD? Is it possible to try booting 
 with
 Linux again (a live cd will do) and check link status?
 
 Exactly. On linux, I can use the ethernet correctly. The linux's
 ifconfig gives this :
 
  eth0  Link encap:Ethernet  HWaddr 00:90:f5:bc:7b:56
  inet adr:192.168.1.68  Bcast:192.168.1.255  
  Masque:255.255.255.0
  adr inet6: 2001:41d0:fe34:de00:290:f5ff:febc:7b56/64 
  Scope:Global
  adr inet6: fe80::290:f5ff:febc:7b56/64 Scope:Lien
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:266 errors:0 dropped:0 overruns:0 frame:0
  TX packets:263 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 lg file transmission:1000
  RX bytes:61935 (60.4 KiB)  TX bytes:31036 (30.3 KiB)
  Interruption:44
 
 Regards
 Given what vigdis said, I wonder:-
 
 - what speed is the switch port you're using
 
 - what speed does linux negotiate
 
 - what speed is your NIC supposed to support? 10/100 or also gigabit?
 
 I'm not sure how to give you the correct answers to theses questions.
 The speed is 100Mb/s. Following, the output of ethtool on the linux box
 :
 
 
  Settings for eth0:
  Supported ports: [ TP MII ]
  Supported link modes:   10baseT/Half 10baseT/Full
  100baseT/Half 100baseT/Full
  1000baseT/Half 1000baseT/Full
  Supported pause frame use: No
  Supports auto-negotiation: Yes
  Advertised link modes:  10baseT/Half 10baseT/Full
  100baseT/Half 100baseT/Full
  1000baseT/Half 1000baseT/Full
  Advertised pause frame use: No
  Advertised auto-negotiation: Yes
  Link partner advertised link modes:  10baseT/Half 10baseT/Full
  100baseT/Half 100baseT/Full
  Link partner advertised pause frame use: Symmetric
  Link partner advertised auto-negotiation: Yes
  Speed: 100Mb/s
  Duplex: Full
  Port: MII
  PHYAD: 1
  Transceiver: internal
  Auto-negotiation: on
  Supports Wake-on: pg
  Wake-on: g
  Current message level: 0x20c6 (8390)
  probe link rx_err tx_err hw
  Link detected: yes
 
 Do not hesitate to give me some advice to find more interesting
 informations.
 
 Regards,
 
 Hi,

 What speed is your switch?

 Can you give us the switch make and model and the NIC make and model?


 The switch is on the router given by my internet access provider. The
 router is a Thomson Gateway TG784n. Speed is at 100 Mb/s.
 I'm not sure to understand correctly
 what you need because of my poor english. :(

 About the NIC :
 Ethernet controller: JMicron Technology Corp. JMC250
 PCI Express Gigabit Ethernet Controller (rev 05)
 Subsystem: CLEVO/KAPOK Computer Device 4140


 Regards,
 --
 Thuban
 PubKey : http://yeuxdelibad.net/Divers/thuban.pub


What happens under OpenBSD if you plug it into a known working port on
a device other than the provided router?

-Noah



Re: OpenBSD 5.5 on mSATA SSD unit in PC Engines APU.1C - bad dir ino 2 at offset 0: mangled entry kernel panic

2014-06-20 Thread Chris Cappuccio
Roger Wiklund [roger.wikl...@gmail.com] wrote:
 No problems so far with Intel mSATA 525 30GB.
 
 On a side note I'm a bit worried about the CPU temperate, almost 70
 degrees C during normal load.
 

I have two DNS/NTP/DHCP servers running on APUs in a cooled datacenter 
environment.
Unbound has caching turned up but the CPU usage is still tiny. (I don't think 
I'd
see any difference with an ALIX vs the APU.)
 
# sysctl hw.sensors 

hw.sensors.km0.temp0=59.50 degC

# sysctl hw.sensors 
  
hw.sensors.km0.temp0=64.00 degC

They both started up at 61.5 after 10 minutes or so. This is after several days.

If you cover the top with more APUs it sits higher than 70.

I bet if you put it upside down (where the heatsink joins the case would face
up) then the temp will stay cooler.

The heatsink pads that PC Engines ships to connect the CPU and chipset to the
heatsink and case are rated at 6 W/mK. 

You could buy ones that are rated at 17 W/mK to get greater heat dissipation.

http://173.254.28.23/~fujipoly/index.php?id=5

(I'm not sure that better pads are enough.)

Chris



sunfire x2200 m2 urtwn run crash

2014-06-20 Thread Mickael Torres

Hello,

I've recently got my hands on a sun fire x2200 m2, and run openbsd on 
it.
Everything is good except when I try to connect to wifi by the way of 
different USB adapters (2 urtwn and 1 run).
Every time I up the interface, after 5 to 10 seconds, the machine 
freezes without anything printed on the console, then reboot.

I've tried 5.5 release and -current, same thing happens.
I've tested the wifi adapters on my -current laptop, and they all work 
fine.

Wired network functions correctly.

Has that already happened to someone ?
Can it be a glitch with sun firmware/bios/whatever ?

Regards,
Mike

OpenBSD 5.5-current (GENERIC.MP) #215: Tue Jun 17 10:35:36 MDT 2014
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8573091840 (8175MB)
avail mem = 8336101376 (7949MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xfd350 (52 entries)
bios0: vendor Sun Microsystems version S39_3B10 date 10/26/2006
bios0: Sun Microsystems Sun Fire X2200 M2
acpi0 at bios0: rev 2
acpi0: sleep states S0 S1 S4 S5
acpi0: tables DSDT FACP APIC SPCR OEMB SRAT
acpi0: wakeup devices PS2K(S4) PS2M(S4) NSMB(S4) USB0(S1) USB2(S1) 
NMAC(S5) NMAD(S5) P0P1(S4) HDAC(S4) BR10(S5) BR11(S5) BR12(S5) BR1E(S5) 
BCM1(S5) BR13(S5) BR14(S5) [...]

acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Dual-Core AMD Opteron(tm) Processor 2210, 1809.52 MHz
cpu0: 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,SVM,EAPICSP,AMCR8
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB 
64b/line 16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully 
associative
cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully 
associative

mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 201MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Dual-Core AMD Opteron(tm) Processor 2210, 1809.28 MHz
cpu1: 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,SVM,EAPICSP,AMCR8
cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB 
64b/line 16-way L2 cache
cpu1: ITLB 32 4KB entries fully associative, 8 4MB entries fully 
associative
cpu1: DTLB 32 4KB entries fully associative, 8 4MB entries fully 
associative

cpu2 at mainbus0: apid 2 (application processor)
cpu2: Dual-Core AMD Opteron(tm) Processor 2210, 1809.28 MHz
cpu2: 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,SVM,EAPICSP,AMCR8
cpu2: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB 
64b/line 16-way L2 cache
cpu2: ITLB 32 4KB entries fully associative, 8 4MB entries fully 
associative
cpu2: DTLB 32 4KB entries fully associative, 8 4MB entries fully 
associative

cpu3 at mainbus0: apid 3 (application processor)
cpu3: Dual-Core AMD Opteron(tm) Processor 2210, 1809.28 MHz
cpu3: 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,SVM,EAPICSP,AMCR8
cpu3: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB 
64b/line 16-way L2 cache
cpu3: ITLB 32 4KB entries fully associative, 8 4MB entries fully 
associative
cpu3: DTLB 32 4KB entries fully associative, 8 4MB entries fully 
associative

ioapic0 at mainbus0: apid 4 pa 0xfec0, version 11, 24 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (P0P1)
acpiprt2 at acpi0: bus 7 (BR10)
acpiprt3 at acpi0: bus -1 (BR11)
acpiprt4 at acpi0: bus 5 (BR12)
acpiprt5 at acpi0: bus 6 (BR1E)
acpiprt6 at acpi0: bus 4 (BR13)
acpiprt7 at acpi0: bus 3 (BR14)
acpiprt8 at acpi0: bus 2 (BR15)
acpicpu0 at acpi0: PSS
acpicpu1 at acpi0: PSS
acpicpu2 at acpi0: PSS
acpicpu3 at acpi0: PSS
acpibtn0 at acpi0: SLPB
acpibtn1 at acpi0: PWRB
ipmi at mainbus0 not configured
cpu0: PowerNow! K8 1809 MHz: speeds: 1800 1000 MHz
pci0 at mainbus0 bus 0
NVIDIA MCP55 Memory rev 0xa2 at pci0 dev 0 function 0 not configured
pcib0 at pci0 dev 1 function 0 NVIDIA MCP55 ISA rev 0xa3
nviic0 at pci0 dev 1 function 1 NVIDIA MCP55 SMBus rev 0xa3
iic0 at nviic0
spdmem0 at iic0 addr 0x54: 1GB DDR2 SDRAM registered cmd/addr parity, 
data ECC PC2-5300CL5
spdmem1 at iic0 addr 0x55: 1GB DDR2 SDRAM 

Re: OpenBSD 5.5 on mSATA SSD unit in PC Engines APU.1C - bad dir ino 2 at offset 0: mangled entry

2014-06-20 Thread Mihai Popescu
 I bet if you put it upside down (where the heatsink joins the case would face
 up) then the temp will stay cooler.

Not by much.


 The heatsink pads that PC Engines ships to connect the CPU and chipset to the
 heatsink and case are rated at 6 W/mK.

 You could buy ones that are rated at 17 W/mK to get greater heat dissipation.
 http://173.254.28.23/~fujipoly/index.php?id=5 
 http://173.254.28.23/%7Efujipoly/index.php?id=5

 (I'm not sure that better pads are enough.)

The pads are rated for a specific thickness. If they thick, the data
is going against you.

If you need better cooling, the case needs aditional fins and it
should be mechanical precise in order to be able to use thinner silk
pads.

In passive cooling, to get decent temperatures for the chip with a low
surface heatsinks, 5 Watts is a real challenge (from my experience).



Re: sunfire x2200 m2 urtwn run crash

2014-06-20 Thread Mickael Torres

After some more tests, it seems that it is USB related.
I had the same problem after trying to mount an usb key, and when 
unplugging my usb keyboard (which btw worked fine).


What I don't understand is that there is no kernel messages, no output. 
Just a freeze and then a reboot.


Regards,
Mike

On 2014-06-20 18:40, Mickael Torres wrote:

Hello,

I've recently got my hands on a sun fire x2200 m2, and run openbsd on 
it.

Everything is good except when I try to connect to wifi by the way of
different USB adapters (2 urtwn and 1 run).
Every time I up the interface, after 5 to 10 seconds, the machine
freezes without anything printed on the console, then reboot.
I've tried 5.5 release and -current, same thing happens.
I've tested the wifi adapters on my -current laptop, and they all work 
fine.

Wired network functions correctly.

Has that already happened to someone ?
Can it be a glitch with sun firmware/bios/whatever ?

Regards,
Mike

OpenBSD 5.5-current (GENERIC.MP) #215: Tue Jun 17 10:35:36 MDT 2014

dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP

real mem = 8573091840 (8175MB)
avail mem = 8336101376 (7949MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xfd350 (52 entries)
bios0: vendor Sun Microsystems version S39_3B10 date 10/26/2006
bios0: Sun Microsystems Sun Fire X2200 M2
acpi0 at bios0: rev 2
acpi0: sleep states S0 S1 S4 S5
acpi0: tables DSDT FACP APIC SPCR OEMB SRAT
acpi0: wakeup devices PS2K(S4) PS2M(S4) NSMB(S4) USB0(S1) USB2(S1)
NMAC(S5) NMAD(S5) P0P1(S4) HDAC(S4) BR10(S5) BR11(S5) BR12(S5)
BR1E(S5) BCM1(S5) BR13(S5) BR14(S5) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Dual-Core AMD Opteron(tm) Processor 2210, 1809.52 MHz
cpu0:



E3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,SVM,EAPICSP,AMCR8
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB
64b/line 16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully 
associative
cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully 
associative

mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 201MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Dual-Core AMD Opteron(tm) Processor 2210, 1809.28 MHz
cpu1:



E3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,SVM,EAPICSP,AMCR8
cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB
64b/line 16-way L2 cache
cpu1: ITLB 32 4KB entries fully associative, 8 4MB entries fully 
associative
cpu1: DTLB 32 4KB entries fully associative, 8 4MB entries fully 
associative

cpu2 at mainbus0: apid 2 (application processor)
cpu2: Dual-Core AMD Opteron(tm) Processor 2210, 1809.28 MHz
cpu2:



E3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,SVM,EAPICSP,AMCR8
cpu2: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB
64b/line 16-way L2 cache
cpu2: ITLB 32 4KB entries fully associative, 8 4MB entries fully 
associative
cpu2: DTLB 32 4KB entries fully associative, 8 4MB entries fully 
associative

cpu3 at mainbus0: apid 3 (application processor)
cpu3: Dual-Core AMD Opteron(tm) Processor 2210, 1809.28 MHz
cpu3:



E3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,SVM,EAPICSP,AMCR8
cpu3: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB
64b/line 16-way L2 cache
cpu3: ITLB 32 4KB entries fully associative, 8 4MB entries fully 
associative
cpu3: DTLB 32 4KB entries fully associative, 8 4MB entries fully 
associative

ioapic0 at mainbus0: apid 4 pa 0xfec0, version 11, 24 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (P0P1)
acpiprt2 at acpi0: bus 7 (BR10)
acpiprt3 at acpi0: bus -1 (BR11)
acpiprt4 at acpi0: bus 5 (BR12)
acpiprt5 at acpi0: bus 6 (BR1E)
acpiprt6 at acpi0: bus 4 (BR13)
acpiprt7 at acpi0: bus 3 (BR14)
acpiprt8 at acpi0: bus 2 (BR15)
acpicpu0 at acpi0: PSS
acpicpu1 at acpi0: PSS
acpicpu2 at acpi0: PSS
acpicpu3 at acpi0: PSS
acpibtn0 at acpi0: SLPB
acpibtn1 at acpi0: PWRB
ipmi at mainbus0 not configured
cpu0: PowerNow! K8 1809 MHz: speeds: 1800 1000 MHz
pci0 at mainbus0 bus 0
NVIDIA MCP55 Memory rev 0xa2 at pci0 dev 0 function 0 not configured
pcib0 at pci0 dev 1 function 0 NVIDIA MCP55 ISA rev 0xa3
nviic0 at pci0 dev 1 function 1 NVIDIA MCP55 SMBus rev 0xa3
iic0 at nviic0
spdmem0 at iic0 addr 0x54: 1GB DDR2 SDRAM registered cmd/addr parity,
data ECC PC2-5300CL5
spdmem1 at iic0 addr 0x55: 1GB DDR2 SDRAM registered cmd/addr parity,
data ECC PC2-5300CL5
spdmem2 at iic0 addr 0x56: 1GB DDR2 SDRAM registered cmd/addr parity,
data ECC PC2-5300CL5
spdmem3 at iic0 addr 0x57: 1GB DDR2 SDRAM registered cmd/addr parity,
data ECC PC2-5300CL5
iic1 at nviic0
spdmem4 at iic1 addr 0x54: 1GB DDR2 SDRAM registered cmd/addr parity,
data ECC PC2-5300CL5
spdmem5 at iic1 addr 0x55: 1GB DDR2 SDRAM registered cmd/addr parity,
data ECC PC2-5300CL5
spdmem6 at iic1 addr 0x56: 1GB DDR2 SDRAM 

Re: OpenBSD 5.5 on mSATA SSD unit in PC Engines APU.1C - bad dir ino 2 at offset 0: mangled entry kernel panic

2014-06-20 Thread Pascal Stumpf
On Fri, 20 Jun 2014 11:14:31 +0100, =?iso-8859-1?Q?Z=E9?= Loff wrote:
 On Fri, Jun 20, 2014 at 11:40:02AM +0200, Roger Wiklund wrote:
  No problems so far with Intel mSATA 525 30GB.
  
  On a side note I'm a bit worried about the CPU temperate, almost 70
  degrees C during normal load.
 
 Same here: 70-75C, for a 0.2 average load. The case gets pretty hot, so
 I'm guessing I installed the heatsink correctly... Does anyone have
 (much) lower figures?
 
 

61.5C here at 0.14 load, but I flipped the case upside down so the
heatsink faces upwards.  Still gets up to 67C on a hot day.



BoringSSL

2014-06-20 Thread Martin Schröder
quote src=https://www.imperialviolet.org/2014/06/20/boringssl.html;
Earlier this year, before Apple had too many goto fails and GnuTLS had
too few, before everyone learnt that TLS heart-beat messages were a
thing and that some bugs are really old, I started a tidy up of the
OpenSSL code that we use at Google.

We have used a number of patches on top of OpenSSL for many years.
Some of them have been accepted into the main OpenSSL repository, but
many of them don’t mesh with OpenSSL’s guarantee of API and ABI
stability and many of them are a little too experimental.

But as Android, Chrome and other products have started to need some
subset of these patches, things have grown very complex. The effort
involved in keeping all these patches (and there are more than 70 at
the moment) straight across multiple code bases is getting to be too
much.

So we’re switching models to one where we import changes from OpenSSL
rather than rebasing on top of them. The result of that will start to
appear in the Chromium repository soon and, over time, we hope to use
it in Android and internally too.

There are no guarantees of API or ABI stability with this code: we are
not aiming to replace OpenSSL as an open-source project. We will still
be sending them bug fixes when we find them and we will be importing
changes from upstream. Also, we will still be funding the Core
Infrastructure Initiative and the OpenBSD Foundation.

But we’ll also be more able to import changes from LibreSSL and they
are welcome to take changes from us. We have already relicensed some
of our prior contributions to OpenSSL under an ISC license at their
request and completely new code that we write will also be so
licensed.

(Note: the name is aspirational and not yet a promise.)
/quote



Redundant ldapd (LDAP server)

2014-06-20 Thread Predrag Punosevac
I was wondering if people could share their experience on redundancy of
ldapd from the base. My understanding is that ldapd doesn't support
master-slave replication scheme unlike OpenLDAP. This is similar to
OpenVPN server daemon instances which also don't support state sharing.
However OpenVPN clients support 
1) automatically re-trying after getting disconnected from the server
2) connecting to a randomly-chosen server from a pre-defined list.

So what is recommended procedure for achieving redundancy with ldapd
daemons.

Thanks,
Predrag



relayd url redirection

2014-06-20 Thread Predrag Punosevac
I am seriously reading realyd man pages for the first time in my life.
Namely I am after url suffix redirection. I will try to explain little
bit better.

I have close to 10 virtual hosts running behind OpenBSD firewall which
has a single public IP address. My boss insists that all virtual hosts
be reachable on the port 80. Can relayd do url suffix redirection? What
I mean is a map:

www.autonlab.org   10.0.0.0 host
www.autonlab.org/web1  10.0.0.1 host
www.autonlab.org/web2  10.0.0.2 host
www.autonlab.org/web3  10.0.0.3 host

and so on. Until now I was using nginx as a proxy and port redirection

www.autonlab.org    10.0.0.0
www.autonlab.org:8080   10.0.0.1

and so on so forth.

Thanks for the input!

Predrag



dovecot issues

2014-06-20 Thread Edgar Pettijohn
I'm trying to setup dovecot with opensmtpd and I'm getting the following
errors for dovecot.

Jun 20 21:41:04 auth-worker(10932): Fatal:
pool_system_realloc(268435456): Out of memory
Jun 20 21:41:04 auth-worker(10932): Fatal: master: service(auth-worker):
child 10932 returned error 83 (Out of memory (service auth-worker {
vsz_limit=256 MB }, you may need to increase it) - set CORE_OUTOFMEM=1
environment to get core dump)
Jun 20 21:41:04 auth: Error: auth worker: Aborted request: Worker
process died unexpectedly
Jun 20 21:41:10 auth-worker(12071): Fatal:
pool_system_realloc(268435456): Out of memory
Jun 20 21:41:10 auth: Error: auth worker: Aborted request: Worker
process died unexpectedly
Jun 20 21:41:10 auth-worker(12071): Fatal: master: service(auth-worker):
child 12071 returned error 83 (Out of memory (service auth-worker {
vsz_limit=256 MB }, you may need to increase it) - set CORE_OUTOFMEM=1
environment to get core dump)

originally I was getting the following:

pipe() failed: Too many open files

but that was corrected by adding the following to /etc/login.conf:

dovecot:\
:openfiles-cur=512:\
:openfiles-max=2048:\
:tc=daemon:

I'm new to openbsd so go easy on me.

Thanks



Re: dovecot issues

2014-06-20 Thread Mike Bregg

On 2014-06-20 20:48, Edgar Pettijohn wrote:
I'm trying to setup dovecot with opensmtpd and I'm getting the 
following

errors for dovecot.

Jun 20 21:41:04 auth-worker(10932): Fatal:
pool_system_realloc(268435456): Out of memory
Jun 20 21:41:04 auth-worker(10932): Fatal: master: 
service(auth-worker):

child 10932 returned error 83 (Out of memory (service auth-worker {
vsz_limit=256 MB }, you may need to increase it) - set CORE_OUTOFMEM=1
environment to get core dump)
Jun 20 21:41:04 auth: Error: auth worker: Aborted request: Worker
process died unexpectedly
Jun 20 21:41:10 auth-worker(12071): Fatal:
pool_system_realloc(268435456): Out of memory
Jun 20 21:41:10 auth: Error: auth worker: Aborted request: Worker
process died unexpectedly
Jun 20 21:41:10 auth-worker(12071): Fatal: master: 
service(auth-worker):

child 12071 returned error 83 (Out of memory (service auth-worker {
vsz_limit=256 MB }, you may need to increase it) - set CORE_OUTOFMEM=1
environment to get core dump)


You could try increasing vsz_limit to something like 512 MB.  Do you 
have mailboxes with a large quantity of emails (as in thousands) that 
256 MB isn't enough?


Mike



Re: mail.ssh with netstat command

2014-06-20 Thread Indunil Jayasooriya
  netstat gives below output on my openbsd 5 64 bit firewall. it is a VM.
 
  tcp  0128  mail.ssh   192.168.x.y.57850
   ESTABLISHED
 
 
  I think it is unusual?

 you do not expect an ssh connection from 192.168.x.y
 to the machine you ran netstat on, which has an interface
 named mail?

 --patrick



Thank you. I got it.  this Openbsd box's /etc/host file says
mail.example.com



-- 
Thank you
Indunil Jayasooriya
http://www.theravadanet.net/
http://www.siyabas.lk/sinhala_how_to_install.html   -  Download Sinhala
Fonts



Re: dovecot issues

2014-06-20 Thread Edgar Pettijohn
On 06/20/2014 10:05 PM, Mike Bregg wrote:
 On 2014-06-20 20:48, Edgar Pettijohn wrote:
 I'm trying to setup dovecot with opensmtpd and I'm getting the following
 errors for dovecot.

 Jun 20 21:41:04 auth-worker(10932): Fatal:
 pool_system_realloc(268435456): Out of memory
 Jun 20 21:41:04 auth-worker(10932): Fatal: master: service(auth-worker):
 child 10932 returned error 83 (Out of memory (service auth-worker {
 vsz_limit=256 MB }, you may need to increase it) - set CORE_OUTOFMEM=1
 environment to get core dump)
 Jun 20 21:41:04 auth: Error: auth worker: Aborted request: Worker
 process died unexpectedly
 Jun 20 21:41:10 auth-worker(12071): Fatal:
 pool_system_realloc(268435456): Out of memory
 Jun 20 21:41:10 auth: Error: auth worker: Aborted request: Worker
 process died unexpectedly
 Jun 20 21:41:10 auth-worker(12071): Fatal: master: service(auth-worker):
 child 12071 returned error 83 (Out of memory (service auth-worker {
 vsz_limit=256 MB }, you may need to increase it) - set CORE_OUTOFMEM=1
 environment to get core dump)

 You could try increasing vsz_limit to something like 512 MB.  Do you
have mailboxes with a large quantity of emails (as in thousands) that
256 MB isn't enough?

 Mike

I felt like that was a clue, but have no idea how to set vsz_limit,
however there is no mail on the system.  I got those errors just testing
imap login from mutt.


Edgar



Re: dovecot issues

2014-06-20 Thread Mike Bregg

On 2014-06-20 21:14, Edgar Pettijohn wrote:

On 06/20/2014 10:05 PM, Mike Bregg wrote:

On 2014-06-20 20:48, Edgar Pettijohn wrote:
I'm trying to setup dovecot with opensmtpd and I'm getting the 
following

errors for dovecot.

Jun 20 21:41:04 auth-worker(10932): Fatal:
pool_system_realloc(268435456): Out of memory
Jun 20 21:41:04 auth-worker(10932): Fatal: master: 
service(auth-worker):

child 10932 returned error 83 (Out of memory (service auth-worker {
vsz_limit=256 MB }, you may need to increase it) - set 
CORE_OUTOFMEM=1

environment to get core dump)
Jun 20 21:41:04 auth: Error: auth worker: Aborted request: Worker
process died unexpectedly
Jun 20 21:41:10 auth-worker(12071): Fatal:
pool_system_realloc(268435456): Out of memory
Jun 20 21:41:10 auth: Error: auth worker: Aborted request: Worker
process died unexpectedly
Jun 20 21:41:10 auth-worker(12071): Fatal: master: 
service(auth-worker):

child 12071 returned error 83 (Out of memory (service auth-worker {
vsz_limit=256 MB }, you may need to increase it) - set 
CORE_OUTOFMEM=1

environment to get core dump)


You could try increasing vsz_limit to something like 512 MB.  Do you

have mailboxes with a large quantity of emails (as in thousands) that
256 MB isn't enough?


Mike


I felt like that was a clue, but have no idea how to set vsz_limit,
however there is no mail on the system.  I got those errors just 
testing

imap login from mutt.


Have a look through the config files in /etc/dovecot/conf.d

Mike



Re: dovecot issues

2014-06-20 Thread Edgar Pettijohn
On 06/20/2014 10:58 PM, Mike Bregg wrote:
 On 2014-06-20 21:14, Edgar Pettijohn wrote:
 On 06/20/2014 10:05 PM, Mike Bregg wrote:
 On 2014-06-20 20:48, Edgar Pettijohn wrote:
 I'm trying to setup dovecot with opensmtpd and I'm getting the
 following
 errors for dovecot.

 Jun 20 21:41:04 auth-worker(10932): Fatal:
 pool_system_realloc(268435456): Out of memory
 Jun 20 21:41:04 auth-worker(10932): Fatal: master:
 service(auth-worker):
 child 10932 returned error 83 (Out of memory (service auth-worker {
 vsz_limit=256 MB }, you may need to increase it) - set CORE_OUTOFMEM=1
 environment to get core dump)
 Jun 20 21:41:04 auth: Error: auth worker: Aborted request: Worker
 process died unexpectedly
 Jun 20 21:41:10 auth-worker(12071): Fatal:
 pool_system_realloc(268435456): Out of memory
 Jun 20 21:41:10 auth: Error: auth worker: Aborted request: Worker
 process died unexpectedly
 Jun 20 21:41:10 auth-worker(12071): Fatal: master:
 service(auth-worker):
 child 12071 returned error 83 (Out of memory (service auth-worker {
 vsz_limit=256 MB }, you may need to increase it) - set CORE_OUTOFMEM=1
 environment to get core dump)

 You could try increasing vsz_limit to something like 512 MB.  Do you
 have mailboxes with a large quantity of emails (as in thousands) that
 256 MB isn't enough?

 Mike

 I felt like that was a clue, but have no idea how to set vsz_limit,
 however there is no mail on the system.  I got those errors just testing
 imap login from mutt.

 Have a look through the config files in /etc/dovecot/conf.d

 Mike

Yeah I found it hiding out in 10-master.conf upped it to 512MB as
suggested with no luck.  Then just for fun I upped it to 5000M and still
no luck.

Edgar



Re: dovecot issues

2014-06-20 Thread Edgar Pettijohn
On 06/20/2014 11:20 PM, Edgar Pettijohn wrote:
 On 06/20/2014 10:58 PM, Mike Bregg wrote:
 On 2014-06-20 21:14, Edgar Pettijohn wrote:
 On 06/20/2014 10:05 PM, Mike Bregg wrote:
 On 2014-06-20 20:48, Edgar Pettijohn wrote:
 I'm trying to setup dovecot with opensmtpd and I'm getting the
 following
 errors for dovecot.

 Jun 20 21:41:04 auth-worker(10932): Fatal:
 pool_system_realloc(268435456): Out of memory
 Jun 20 21:41:04 auth-worker(10932): Fatal: master:
 service(auth-worker):
 child 10932 returned error 83 (Out of memory (service auth-worker {
 vsz_limit=256 MB }, you may need to increase it) - set CORE_OUTOFMEM=1
 environment to get core dump)
 Jun 20 21:41:04 auth: Error: auth worker: Aborted request: Worker
 process died unexpectedly
 Jun 20 21:41:10 auth-worker(12071): Fatal:
 pool_system_realloc(268435456): Out of memory
 Jun 20 21:41:10 auth: Error: auth worker: Aborted request: Worker
 process died unexpectedly
 Jun 20 21:41:10 auth-worker(12071): Fatal: master:
 service(auth-worker):
 child 12071 returned error 83 (Out of memory (service auth-worker {
 vsz_limit=256 MB }, you may need to increase it) - set CORE_OUTOFMEM=1
 environment to get core dump)
 You could try increasing vsz_limit to something like 512 MB.  Do you
 have mailboxes with a large quantity of emails (as in thousands) that
 256 MB isn't enough?
 Mike

 I felt like that was a clue, but have no idea how to set vsz_limit,
 however there is no mail on the system.  I got those errors just testing
 imap login from mutt.
 Have a look through the config files in /etc/dovecot/conf.d

 Mike

 Yeah I found it hiding out in 10-master.conf upped it to 512MB as
 suggested with no luck.  Then just for fun I upped it to 5000M and still
 no luck.

 Edgar

I just noticed in the log even after raising vsz_limit the error remains
the same claiming vsz_limit=256MB