syspatch brought system to 7.1-stable (was Re: Sprurios errors from syspatch -c)

2022-04-23 Thread Marc Peters
On Fri, Apr 22, 2022 at 08:51:43PM -0600, Theo de Raadt wrote:
> And of course, the syspatch testing procedures will get another step or
> two to make sure this doesn't happen again
> 
> So just wait.

Thank you for explanation and clarification. Two of my systems were already hit 
by that mishap.

Best,
Marc



Re: Does OpenBSD support Carrier Grade Nat?

2020-08-07 Thread Marc Peters
On Fri, Aug 07, 2020 at 12:46:45PM +, Edward Carver wrote:
> Can you send me sample config please?
> 

What kind of config? There's no special config needed, as the IPv4 you get for 
your external interface is out of the range 100.64.0.0/10. I receive mine via 
dhcp, but some providers may use pppoe for this. Your router will not be 
reachable via v4, of course. It's only available via IPv6.

Best,
Marc



Re: Does OpenBSD support Carrier Grade Nat?

2020-08-07 Thread Marc Peters
On Fri, Aug 07, 2020 at 12:12:14PM +, Edward Carver wrote:
> Does OpenBSD support Carrier Grade Nat (cg-nat)?
> Thanks for helping..

My router sits behind one, so yes.

hth,
Marc



Re: Boot reboot issue after upgrade to 6.4 on amd64

2018-11-27 Thread Marc Peters
On Tue, Nov 27, 2018 at 11:48:38AM +0100, Riccardo Mottola wrote:
> Hi all,
> 
> I have a strange and blocking issue after upgrade to 6.4 on my x86-64
> laptop, which was running 6.3 just fine.
> 
> I got the bsd.rd kernel, booted it and installed, quick, easy no issue.
> Now, if I reboot, the kernel will reboot just after having written the first
> line of numbers on the screen.
> 
> The bad news is that both booting the new kernel as well as the bsd.rd
> kernel gives the issue, so the existing bsd.rd which for installation booted
> just fine.
> 
> The only thing I can think is that the boot blocks were updated and that
> they fail to load.
> 
> I also tried making an USB key with 64, I get to the bootloader prompt, but
> everything I try will make the laptop reboot, both booting from hd0a as
> wella s hd1a!
> I also tried making an USB key with 63, but that too fails the same way?
> 
> Windows partition continues to boot fine, or I would almost think of having
> some sort of hardware failure!!!
> 
> I did not make changes to the Bios, UEFI boot is still disabled. I found
> "Intel Anti-Theft" enabled and disabled it.
> 
> And now?

Please check, that you don't use only one big a partition, and if you do,
please backup and rearrange your disklabels. This approach is not
working with 6.4 anymore and was already discussed several times
recently on this very ML.

hth,
Marc



Re: Latest snapshot pkg_add issue

2018-10-06 Thread Marc Peters
On Sat, Oct 06, 2018 at 09:27:47AM -0400, Ken M wrote:
> I just installed the latest snapshot and when I run a pkg_add it doesn't find
> anything as it is trying to look in 6.4 for packages.
> 
> $ uname -r
> 6.4
> 
> Not sure if this is an issue in the latest snapshot or I stupidly missed some
> information.

It's looking in the not yet there release folder for 6.4. You can use -Dsnap to 
get snapshot packages. 

hth,
Marc



Re: PF possibly causing weird SSL issues ?

2018-09-19 Thread Marc Peters
On Tue, Sep 18, 2018 at 09:02:23PM +, Tim Jones wrote:

> My PF is simple as follows (there is no NAT here, its fully routable) :
> match in all scrub (no-df random-id)
> block drop
> set block-policy drop
> set syncookies always
> pass from  to any flags S/SA modulate state (pflow)
> 

Can you try your setup with a default pf.conf (you can find it in 
/etc/examples). If this works, then try adding the rules you've got one by one 
to see, if and which one is causing your troubles.

hth,
Marc



Re: unix hosting

2018-09-14 Thread Marc Peters
On Fri, Sep 14, 2018 at 11:00:04PM -0300, Friedrich Locke wrote:
> Dear OBSD friends,
> 
> right now i am hosting my site within geekisp. There i provided with a unix
> shell, using openbsd.
> 
> I am in need to change my hosting provider, may some here suggest an obsd
> hosting service that besides email, web (with php), mysql DBMS and unix
> shell ?
> 
> Of course, i am not looking for free service, just paid.
> 
> Thanks in advance.

There is OpenBSD Amsterdam https://openbsd.amsterdam. They provide
OpenBSD VMs, so you would need to do the configuration of the services
on your own.

hth,
Marc



Re: Downloadable CIDR network calculator

2018-09-12 Thread Marc Peters
On Tue, Sep 11, 2018 at 11:59:04AM -0600, Andrew wrote:
> 
> FWIW: a small network calculator without a python dependency is already
> in packages.
> 
> $> pkg_info ipcalc
> Information for inst:ipcalc-1.4p0
> 
> Comment:
> small network calculator
> 
> Description: ipcalc is a small tool that operates on IPv4 networks.  It
> can operate in one of four modes: network describing, netmask
> describing, finding or splitting.
> 
> Maintainer: The OpenBSD ports mailing-list 
> 
> WWW: https://github.com/pyr/ipcalc

If you need IPv6 functionality, there's sipcalc in packages without any
extra dependencies.



Re: How to implement CARP master/backup with IPv6 RAs from OpenBSD firewall pair?

2018-07-27 Thread Marc Peters
On Thu, Jul 26, 2018 at 04:57:09PM -0400, Martin Gignac wrote:
> Hi,
> 
> How does one implement a redundant OpenBSD firewall pair with IPv6?
> 
> With IPv4 I would use CARP to have one of the boxes be the
> master/active while the other one is backup/standby. But with IPv6 I
> want to use Router Advertisements so that hosts on the internal
> network can use SLAAC for IPv6 address autoconfiguration. Therefore
> hosts will receive RAs from both OpenBSD boxes and set both as
> possible default GWs in their routing table.
> 
> In that case, how do I get the internal hosts to send all traffic to
> the "primary" firewall? I've configured the CARP interface on the box
> with IPv6, but the RAs are still sent from both boxes (master and
> backup) so the RA-configured hosts don't end up using the IPv6 CARP
> VIP at all and I seem to end up with possible asymmetric firewall
> flows.
> 
> Thanks,
> -Martin

rtadvd will only start on the master, because the interface has to
be active. With ifstated, you can automate this (starting, stopping).
I don't know, if rad is also dependent on the interface, but once you
have the ifstated in place, you would just need to change the name of
the daemon and restart ifstated.

hth,
Marc



Re: cannot get re(4) to use 1000baseT

2018-07-18 Thread Marc Peters
On Wed, Jul 18, 2018 at 04:27:45PM +0200, Jan Stary wrote:
> This is 6.3-current on and amd64 PC (dmesg below), using
> 
> re0 at pci2 dev 0 function 0 "Realtek 8168" rev 0x06: RTL8168E/8111E-VL 
> (0x2c80), msi, address 50:e5:49:36:ec:0d
> 
> as the NIC. With a hostname.re0 that says
> 
>   inet 192.168.11.3 255.255.255.0
> 
> it gets configured fine, but only uses 100baseTX.
> Now that I got me this 1000Mbps switch, I would like to have 1000baseT.
> 
> Why is it that the autoselect chooses 100baseT
> when both the NIC and the switch it is connected to
> are capable of 1000Mbps?
> 
> When I change the hostname.re0 to
> 
>   inet 192.168.11.3 255.255.255.0 192.168.11.255 media 1000baseT
> 
> (and run 'doas sh /etc/netstart re0'), it becomes
> 
> re0: flags=8843 mtu 1500
>   lladdr 50:e5:49:36:ec:0d
>   index 1 priority 0 llprio 3
>   groups: egress
>   media: Ethernet 1000baseT (none)
>   status: no carrier
>   inet 192.168.11.3 netmask 0xff00 broadcast 192.168.11.255
> 
> and indeed, I lose all conectivity.
> 
> Is anyone seeing the same?
> Is there something obvious I am missing?
> 
> All I found on this was this old thread:
> http://openbsd-archive.7691.n7.nabble.com/Forcing-re-driver-to-1000baseT-no-connection-4-4-release-td79375.html
> 
>   Jan

Got a similar one running up until 6.2, when i switched to a intel
dualport without any problems.

As the other two said, check the cable. Both devices need to have the
same media settings, ie autoneg turned on or off. If you just turn it
off on the card, the switch maybe doesn't get it right and disables the
port. If you turn out the autoneg on the card, do so on the switchport,
too. The most common error is a broken cable or a "special" cable from a
vendor with only 4 cable cores for 100MBit without pins 4/5 and 7/8.

hth,
marc



Re: Enabling ngx_http_addition_module on OpenBSD?

2018-06-28 Thread Marc Peters
On Thu, Jun 28, 2018 at 10:26:12AM +0300, Özgür Kazancci wrote:
> I don't want to build Nginx from source. I cannot do that - it's a
> production server.
> 

If this server is that important, that you can't afford the downtime
for a restart (to load the new binaries), you should consider a
loadbalancer and a second nginx, which you can update. If you update the
other, the loadbalancer should recognize and don't forward any traffic.
If you don't have machines for this, you could even do it on the same
machine. Setup a local loadbalancer and two nginx instances to
loadbalance. If the hardware dies, you will have your downtime anyways.
But remember: Every downtime is your maintenance window ;).

hth,
Marc



protection fault trap with OpenBSD 6.3

2018-05-28 Thread Marc Peters
Hi List,

i am having issues with OpenBSD 6.3, latest patches as of today applied. We are 
using gif-tunnels between our datacenters, transport encryption and OpenBGPD to 
announce the prefixes between the datacenters. The boxes also have isakmpd 
tunnels on a carp interface to AWS and GCP. The setup is working fine with 
existing 6.1 boxes and there's no problem in pushing/receiving several 
100MBit/s (according to observium snmpd data, which gets constantly collected). 
Switching the traffic to the 6.3 hosts, we get a freeze on one of the boxes 
after about 45 minutes of transferring traffic (all IPv4 traffic in our case 
for now):

login: kernel: protection fault trap, code=0
Stopped at  export_sa+0x5c: movl0(%rcx),%ecx
ddb{0}> show panic  
the kernel did not panic
ddb{0}> bt  
export_sa(10,80002240c0b0) at export_sa+0x5c
pfkeyv2_expire(8095c400,8095c400) at pfkeyv2_expire+0x14e
tdb_timeout(80002240c260) at tdb_timeout+0x39
softclock_thread(0) at softclock_thread+0xc6 
end trace frame: 0x0, count: -4
ddb{0}> ps 
   PID TID   PPIDUID  S   FLAGS  WAIT  COMMAND
 72451  269194  73777  0  30x100083  ttyin ksh
 73777  173781  1  0  30x100080  kqreadtmux
 75976  220444  64078  0  30x100083  kqreadtmux
 64078  416346  52315  0  30x10008b  pause ksh 
 52315  192412  90927  0  30x92  selectsshd
 98917  236376  1  0  30x100083  ttyin getty
 88517   86024  1  0  30x100083  ttyin getty
 39458  242138  1  0  30x100083  ttyin getty
 16509  160463  1  0  30x100083  ttyin getty
  5741  397042  1  0  30x100083  ttyin getty
 39044  336292  1  0  30x100083  ttyin getty
 12648  371611  1  0  30x100098  poll  cron 
 64944  488151  1  0  30x90  selectbacula-fd
 64944   93309  1  0  3   0x490  fsleepbacula-fd
 90927  275325  1  0  30x80  selectsshd 
 30069  438532  1556  30x90  selectnrpe
 61921  464479  1 99  30x100090  poll  sndiod
 19307  265996  1110  30x100090  poll  sndiod
 67642   23609  35037 95  30x100092  kqreadsmtpd 
 30995  503192  35037103  30x100092  kqreadsmtpd
 30135  432207  35037 95  30x100092  kqreadsmtpd
 48369   40239  35037 95  30x100092  kqreadsmtpd
 15265   58238  35037 95  30x100092  kqreadsmtpd
 88554  334766  35037 95  30x100092  kqreadsmtpd
 35037  186739  1  0  30x100080  kqreadsmtpd
 96223  160438  58191 75  70x100052bgpd 
 90387   61271  58191 75  30x100092  poll  bgpd
 58191  101172  1  0  30x80  poll  bgpd
 42084  456307  1  0  30x100080  kqreadsnmpd
 18317  107917  1 91  30x100092  kqreadsnmpd
 44555  140946  1 91  30x92  kqreadsnmpd
 24182  166156  1  0  30x80  selectsshd 
 52767  308392  14070 68  70x50isakmpd
 14070   24576  1  0  30x80  netio isakmpd
 57007  139418  35428 83  30x100092  poll  ntpd   
 35428   91196  92310 83  30x100092  poll  ntpd
 92310  242928  1  0  30x100080  poll  ntpd
 77320  412385  65645 74  30x100092  bpf   pflogd
 65645  394793  1  0  30x80  netio pflogd
 30559  279846  77380 73  30x100090  kqreadsyslogd
 77380  496624  1  0  30x100082  netio syslogd
 98706   10022  77669115  30x100092  kqreadslaacd 
 11631   15638  77669115  30x100092  kqreadslaacd
 77669  211051  1  0  30x80  kqreadslaacd
 75393  324227  0  0  3 0x14200  pgzerozerothread
 9  431378  0  0  3 0x14200  aiodoned  aiodoned  
 39050  216833  0  0  3 0x14200  syncerupdate  
 97565  501358  0  0  3 0x14200  cleaner   cleaner
 96696  450450  0  0  3 0x14200  reaperreaper 
 39575  483587  0  0  3 0x14200  pgdaemon  pagedaemon
 67857   79140  0  0  3 0x14200  bored crynlk
 64493  339992  0  0  7 0x14200crypto
 40655  184052  0  0  3 0x14200  usbtskusbtask
 35598  495188  0  0  3 0x14200  usbatsk   usbatsk
 61415  132786  0  0  3  0x40014200  acpi0 acpi0  
 43475  414851  0  0  7  0x40014200idle11
 94572  515090  0  0  7  0x40014200idle10
 45748  

Re: dhclient expects IPv4 address in dhclient.conf

2018-05-03 Thread Marc Peters
On Thu, May 03, 2018 at 12:05:40PM +0200, Paul de Weerd wrote:
> Stick a v6 recursor in /etc/resolv.conf.tail.  When dhclient updates
> /etc/resolv.conf, it'll append the contents of /etc/resolv.conf.tail
> to it and you will have your v6 resolver availble that way.  You could
> even ignore the v4 nameserver and use your manually configured
> nameservers only.  See resolv.conf(5).
> 
> The only thing I don't think is possible with base tools is having
> your v6 recursor listed *before* the dhcp offered recursor.
> 
> Cheers,
> 
> Paul 'WEiRD' de Weerd

Thank you for your answers. Actually, i would like to keep them as
backup, when doing upgrades or the bind package is not working as
expected. I will take a deeper dive into resolv.conf to have a look. I
thought, that an /etc/resolv.conf.head file would do the trick, but it seems to 
be
ignored on OpenBSD.



Re: dhclient expects IPv4 address in dhclient.conf

2018-05-03 Thread Marc Peters
On Thu, May 03, 2018 at 10:31:27AM +0200, Janne Johansson wrote:
>Since manpage doesn't mention v6 namespace at all, I'd wager you would
>have to
>run something else to pick up v6 resolvers.

Yeah, that's right. Maybe, i stick to v4 resolvers for now or add it by
hand, when i reboot it.



Re: dhclient expects IPv4 address in dhclient.conf

2018-05-02 Thread Marc Peters
On Wed, May 02, 2018 at 04:24:50PM +0200, Janne Johansson wrote:
> Seems common on other dhcpd's too:
> https://lists.isc.org/pipermail/dhcp-users/2012-May/015511.html
> 

ah, the option has a different name for IPv6 nameservers. Does the base
dhclient recognize these different options, or do i have to give
isc-dhcp-client a try for this? 



Re: dhclient expects IPv4 address in dhclient.conf

2018-05-02 Thread Marc Peters
Am 2. Mai 2018 16:24:50 MESZ schrieb Janne Johansson <icepic...@gmail.com>:
>2018-05-02 16:06 GMT+02:00 Marc Peters <m...@mpeters.org>:
>
>> Hi misc,
>> dhclient hates me. I would like to prepend an IPv6 nameserver in the
>> dhclient configuration on my router when connecting to my ISP, but
>> dhclient gives me following error:
>>
>> em1: /etc/dhclient.conf line 17: expecting IPv4 address.
>> em1: prepend domain-name-servers "::1"
>> em1: ^
>> dhclient.conf ist plain simple:
>> ~ $ grep -v "#" /etc/dhclient.conf
>>
>> supersede host-name "router";
>>
>> prepend domain-name-servers 127.0.0.1;
>>
>> prepend domain-name-servers "::1";
>>
>> Is this intended?
>>
>>
>Seems common on other dhcpd's too:
>https://lists.isc.org/pipermail/dhcp-users/2012-May/015511.html

This looks like a server issue and fixed in the meantime, otherwise the Windows 
Clients won't get any v6 nameservers, as they don't get it from the RAs.

My issue is with dhclient setting something in /etc/resolve.conf.

-- 
Sent from my cell phone



dhclient expects IPv4 address in dhclient.conf

2018-05-02 Thread Marc Peters
Hi misc,

dhclient hates me. I would like to prepend an IPv6 nameserver in the
dhclient configuration on my router when connecting to my ISP, but
dhclient gives me following error:

em1: /etc/dhclient.conf line 17: expecting IPv4 address.
em1: prepend domain-name-servers "::1"
em1: ^

dhclient.conf ist plain simple:
~ $ grep -v "#" /etc/dhclient.conf  
  
supersede host-name "router";   
  
prepend domain-name-servers 127.0.0.1;  
  
prepend domain-name-servers "::1";

Is this intended?

Best,
Marc

--
dmesg:
OpenBSD 6.3 (GENERIC.MP) #1: Sat Apr 21 14:26:25 CEST 2018

r...@syspatch-63-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8151306240 (7773MB)
avail mem = 7897186304 (7531MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xeaf40 (52 entries)
bios0: vendor American Megatrends Inc. version "0306" date
08/18/2011
bios0: ASUSTeK Computer INC. E45M1-I DELUXE
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC MCFG HPET SSDT SSDT
acpi0: wakeup devices SBAZ(S4) UAR1(S4) P0PC(S4) UHC1(S4) UHC2(S4)
USB3(S4) UHC4(S4) USB5(S4) UHC6(S4) UHC7(S4) PE20(S4) PE21(S4)
RLAN(S4) PE22(S4) PE23(S4) BR14(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD E-450 APU with Radeon(tm) HD Graphics, 1650.41 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,SSSE3,CX16,POPCNT,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT,ITSC
cpu0: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache,
512KB 64b/line 16-way L2 cache
cpu0: 8 4MB entries fully associative
cpu0: DTLB 40 4KB entries fully associative, 8 4MB entries fully
associative
acpitimer0: recalibrated TSC frequency 1649918204 Hz
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 199MHz
cpu0: mwait min=64, max=64, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD E-450 APU with Radeon(tm) HD Graphics, 1649.93 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,SSSE3,CX16,POPCNT,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT,ITSC
cpu1: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache,
512KB 64b/line 16-way L2 cache
cpu1: 8 4MB entries fully associative
cpu1: DTLB 40 4KB entries fully associative, 8 4MB entries fully
associative
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 0 pa 0xfec0, version 21, 24 pins
, remapped to apid 0
acpimcfg0 at acpi0 addr 0xe000, bus 0-255
acpihpet0 at acpi0: 14318180 Hz
acpihpet0: recalibrated TSC frequency 1649928660 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 3 (PE20)
acpiprt2 at acpi0: bus 4 (PE21)
acpiprt3 at acpi0: bus -1 (PE22)
acpiprt4 at acpi0: bus -1 (PE23)
acpiprt5 at acpi0: bus -1 (BR15)
acpiprt6 at acpi0: bus -1 (PCE6)
acpiprt7 at acpi0: bus -1 (PCE7)
acpiprt8 at acpi0: bus -1 (PCE8)
acpiprt9 at acpi0: bus 1 (BR14)
acpicpu0 at acpi0: C2(0@100 io@0x1771), C1(@1 halt!), PSS
acpicpu1 at acpi0: C2(0@100 io@0x1771), C1(@1 halt!), PSS
acpibtn0 at acpi0: PWRB
"PNP0C14" at acpi0 not configured
cpu0: 1650 MHz: speeds: 1650 1320 825 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "AMD AMD64 14h Host" rev 0x00
radeondrm0 at pci0 dev 1 function 0 "ATI Radeon HD 6320" rev 0x00
drm0 at radeondrm0
radeondrm0: msi
azalia0 at pci0 dev 1 function 1 "ATI Radeon HD 6310 HD Audio" rev
0x00: msi
azalia0: no supported codecs
ppb0 at pci0 dev 4 function 0 "AMD AMD64 14h PCIE" rev 0x00: msi
pci1 at ppb0 bus 1
em0 at pci1 dev 0 function 0 "Intel 82576" rev 0x01: msi, address
90:e2:ba:e9:1a:3a
em1 at pci1 dev 0 function 1 "Intel 82576" rev 0x01: msi, address
90:e2:ba:e9:1a:3b
ahci0 at pci0 dev 17 function 0 "ATI SBx00 SATA" rev 0x40: apic 0
int 19, AHCI 1.2
ahci0: port 0: 6.0Gb/s
ahci0: port 1: 6.0Gb/s
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0:  SCSI3
0/direct fixed naa.50014ee60409ed8f
sd0: 953869MB, 512 bytes/sector, 1953525168 sectors
sd1 at scsibus1 targ 1 lun 0:  SCSI3
0/direct fixed naa.50014ee604099ed2
sd1: 953869MB, 512 bytes/sector, 1953525168 sectors
ohci0 at pci0 dev 18 function 0 "ATI SB700 USB" rev 0x00: apic 0 int
18, version 1.0, legacy support
ehci0 at pci0 dev 18 function 2 "ATI SB700 USB2" rev 0x00: apic 0
int 17
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "ATI EHCI root hub" rev
2.00/1.00 addr 1
ohci1 at pci0 dev 19 function 0 "ATI SB700 USB" rev 0x00: 

Re: SunBlade 150 to take at Lyon, France and ideas about 3 T1000 to replace, if possible.

2018-03-21 Thread Marc Peters
Am 21. März 2018 14:36:31 MEZ schrieb Tinker :
>Did Supermicro release non-AMD64 hardware recently? If I understood the
>OP right he wants non-AMD64.

Ah, missed that part.

-- 
Sent from my cell phone



Re: SunBlade 150 to take at Lyon, France and ideas about 3 T1000 to replace, if possible.

2018-03-21 Thread Marc Peters
On Tue, Mar 20, 2018 at 04:21:14PM +0100, Sylvain Maurin wrote:
> I am looking for OpenBSD hardware compatible 1/2U racks boxes, redondant PSU,
> with preference for another all but amd64 arch with LOM/RAC/IPMI management
> hardware, in less than 6kEUR budget range. 
> 
> Usually, my T1000 manage tunneling/forwarding for 20 ssh users, with 250Mb/s
> network streams. I suppose that most recent Loonsong or Octeon hardware would
> be able to do it easy, but I am unable to find any local resellers here, in
> France, outside for Ubiquity edgerouter that came without redundant PSU.
> I asked a quote to Rhino Labs for 2 Octeons SDNA boxes, without success. 
> Helas, SPARC with ORACLE offers are not in my budget.
> 

Hi,

you should look for supermicro boxes. They come with redundant power supplies, 
ipmi and should fit your budget (processor dependent). As an EU customer, you 
could also buy them in a different EU country (eg. Netherlands or Germany).

hth,
Marc



Re: ipv6 nd

2018-03-20 Thread Marc Peters
On Tue, Mar 20, 2018 at 11:27:30AM +0100, Mischa wrote:
> Interesting. So this would replace the dhcpclient in base?
> What is the difference between wide-dhcpv6 and dhcpcd?
> 
> Mischa
> 

I think you could do that, but i use it just for the DHCPv6 stuff and the base 
dhclient for other DHCP. The main difference would be, that dhcpcd is actively 
maintained ;).

Marc



Re: ipv6 nd

2018-03-20 Thread Marc Peters
On Tue, Mar 20, 2018 at 08:47:26AM +0100, Mischa wrote:
> > On 20 Mar 2018, at 08:41, Marc Peters <m...@mpeters.org> wrote:
> > 
> > I use dhcpcd for on the WAN Interface to receive the prefix delegation. On 
> > the internal network, i use slaac with rtadvd. The README for dhcpcd 
> > provides the necessary information.
> 
> Is dhcpd able to pickup IPv6? I thought this needed to be done with 
> wide-dhcpv6?
> The one thing I don't like about IPv6 at the moment, the trouble you need to 
> go through to get a IPv6 address on a PPPoE interface. :(
> 
> Mischa
> 

Yes, it is:
https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/ports/net/dhcpcd/pkg/README?rev=1.5=text/plain_with_tag=HEAD

At the moment, i only have a link-local address on the external interface 
configured, which gets it router via slaac and router advertisements. The 
external addresses are only on the internal facing interface and on these hosts.



Re: ipv6 nd

2018-03-20 Thread Marc Peters
On Mon, Mar 19, 2018 at 11:27:12PM +, Peter van Oord van der Vlies wrote:
> Hello Misc,
> 
> 
> Today i replaced my cisco 881 because it wasn't able to handle the bandwidth 
> anymore.
> 
> 
> I had a working ipv6 setup for years with the following relevant part from my 
> cisco wan interface
> 
> config part:
> 
>   ipv6 address autoconfig
> 
>   ipv6 enable
> 
>   ipv6 nd ra interval 30
> 
>   ipv6 dhcp client pd my_prefix rapid-commit
> 
> On my obsd wan interface i did ifconfig pppoe0 inet6 autoconf but i am not
> getting any global address.
> 
> Anyone here that can set me into the right direction ?

I use dhcpcd for on the WAN Interface to receive the prefix delegation. On the 
internal network, i use slaac with rtadvd. The README for dhcpcd provides the 
necessary information.

hth,
Marc



Re: OSPF over gif on top of IPsec transport -current

2018-03-13 Thread Marc Peters
On Tue, Mar 13, 2018 at 05:33:11PM +0100, Maxim Bourmistrov wrote:
> I moved over to etherip(4) some time ago. In transition to etherip, combo of 
> etherip on one side and gif on another worked well.
> I also remember announcement of gif(4) to be retired.
> 
> HISTORY
>  The gif device first appeared in WIDE hydrangea IPv6 kit.
> 
>  Previously, gif supported RFC 3378 EtherIP tunnels over bridge(4)
>  interfaces.  This is now handled by etherip(4).
> 

Yeah, gif interfaces as bridge members, but we don't use bridging here.



Re: OSPF over gif on top of IPsec transport -current

2018-03-13 Thread Marc Peters
On Tue, Mar 13, 2018 at 10:24:43AM +0100, Remi Locherer wrote:
> > and it is harder for traffic inside the tunnel
> > to leak out of ipsec. more specifically, gif handles 3 ip protocols,
> > ipv4, ipv6, and mpls, which are ip protocol numbers 4, 41, and 137
> > respectively. it is likely that people could set up ipsec to protect
> > ipv4, but forget about ipv6 and mpls. if you then configure v6 or mpls
> > on the gif interface, that traffic will leak.
> 
> I don't see the big difference here between gif and gre. To prevent traffic
> leave your box unprotected you have to setup pf rules in both cases.
> 
> > gre on the other hand is a single ip protocol, so more straightforward
> > to protect. there's also a very clear line in the sand between the
> > inner and outer traffic, which esp tunnel and transport mode lack.
> 
> But gre alone does not protect the traffic! You still need esp transport
> for protection.
> 
> My main point about this is:
> The setup described by Atanas used to work. There are setups out there
> (including mine) that are operational for years and rely on OSPF working
> via gif + esp transport. With the current state of gif these setups will
> break.

Our setup relies on gif interfaces and ipsec in transport mode, too. When 
setting this up, we had issues with the gre setup and gre packets itself brings 
in more headers, which would reduce the payload. That's why we are using ipsec 
(in transport mode) protected gif tunnels for ospf and bgp.

Best,
Marc



Roaming Laptop and slaacd

2017-12-19 Thread Marc Peters
Hi Florian,

i am sending this email also directly to you, as you are the author of slaacd 
and companions.

When roaming with my Laptop between offices/home or just different IPv6 enabled 
networks, i have to delete the remaining IPv6 addresses from the previous 
network by hand to get it working again. Is it possible, to mark the addresses 
not included in solicitations when stateless autoconfiguration for an interface 
is enabled as deprecated addresses (like the kernel did before) to have them 
not used when the location changed in suspend?
Another question is, that i have the line "/usr/sbin/slaacctl send solicitation 
trunk0" in /etc/apm/resume but need to fire this command again to get addresses 
and routers when resuming my laptop. If you would like me to test some code for 
this, just let me know and i will happily do.

Cheers,
Marc



Re: Need an advice about DHCP IPv6 server software

2017-12-09 Thread Marc Peters
On Sat, Dec 09, 2017 at 01:50:37PM +0300, Denis wrote:
> Can you share IPv6 part of PF.conf you're using for local network SLAAC?

Did you even bother to open the link Claus send? There is everything neatly 
documented you need IPv6 wise to get it up and running with pf.

hth,
Marc



Re: nobreak powers down openbsd

2017-10-24 Thread Marc Peters
On Mon, Oct 23, 2017 at 06:08:56PM +, Friedrich Locke wrote:
> When i wrote nobreak, i really meant UPS.
> I don't have a model; may some one  suggest a model that power off openbsd ?
> 
> Thanks.

You can use NUT (network UPS Tools). It's in ports and supports a lot of
different brands.

hth,
Marc



Re: tar: file is too long for ustar

2017-10-09 Thread Marc Peters
On Mon, Oct 09, 2017 at 10:23:08AM +, Max Power wrote:
> Hi guys.
> OpenBSD never ceases to amaze me...!!
> 
> Solved the problem about maximum compression with bzip2 by tar, there's 
> another...
> while tar run [tar cvvf - directory | bzip2 -9 -v > directory.tbz2], at a 
> certain point, return:
> tar: file is too long for ustar 
> The file that creates the problem is 30GB.
> 
> What happen? 
> How Can I fix this problem...?
> Thanks.

Base tar is only capable to pack files <10GB. You can switch to
archivers/gtar.



Re: the whole greylisting, spam filtering thing

2017-10-04 Thread Marc Peters
On Mon, Oct 02, 2017 at 07:16:43AM +, rosjat wrote:
> Hi there again,
> 
> so I will try to ask the question about implementing rspam on a dedicated
> machine oder at the mailsystem again because I don't know if it was lost in
> the converstion :).

How is you setup now? Do you do any analysis or antivirus checking at
all?

I would start to put it on the same machine, as it is designed to use
less resources. If the machine bogs down, take another one and implement
it there. Nobody knows your mail volume or your machines or your
actual setup you're running now except from you ;).

hth,
Marc

> 
> Is there some effort in NOT run rspamd on the same machine as the
> mailsystem? I was just wondering because it could make some transitioning a
> little easier but if the amount of "workarounds" to relays mails through
> another instance is not worth it then I will go with spamfilterting on the
> mailsystem.
> 
> regards
> 
> -- 
> Markus Rosjatfon: +49 351 8107223mail: ros...@ghweb.de
> 
> G+H Webservice GbR Gorzolla, Herrmann
> Königsbrücker Str. 70, 01099 Dresden
> 
> http://www.ghweb.de
> fon: +49 351 8107220   fax: +49 351 8107227
> 
> Bitte prüfen Sie, ob diese Mail wirklich ausgedruckt werden muss! Before you
> print it, think about your responsibility and commitment to the ENVIRONMENT
> 



Re: No 008 patch on ftp.eu.openbsd.org yet

2017-05-21 Thread Marc Peters
Am 05/21/17 um 10:28 schrieb Andreas Kusalananda Kähäri:
> Hi,
> 
> I had to switch to ftp.openbsd.org to get the 008 patch for -stable
> since my preferred mirror, ftp.eu.openbsd.org, doesn't seem to be
> updating.  The timestamp file says last update was run on 1495188001
> (Fri May 19 12:00:01 CEST 2017).
> 
> There is no contact address in
> https://ftp.eu.openbsd.org/pub/OpenBSD/README so I'm hoping that someone
> who know someone who knows how the mirroring is performed will spot this
> and get them to fix it.
> 
> I would also be interested in knowing how often this mirror is
> *supposed* to update (usually it's something like every two hours,
> right?).
> 
> 
> 
> Regards,
> Kusalananda
> 

unfortunately, same is true for
https://ftp.halifax.rwth-aachen.de/openbsd



Re: Adding default IPv6 route fails on 6.1

2017-04-19 Thread Marc Peters
Am 04/19/17 um 08:47 schrieb Harald Dunkel:
> On 04/18/17 17:05, Stuart Henderson wrote:
> 
>> Mine is in the pkg-readme.
> 
> 
> 
> A pkg-readme? Is this included in the binary package?

Try

$ less /usr/local/share/doc/pkg-readmes/dhcpcd-6.11.5



signature.asc
Description: OpenPGP digital signature


Re: Broken ipsecctl validation in 6.1 ("-n -f " flags) - illegal transform aes-256-gcm

2017-04-18 Thread Marc Peters
Am 04/18/17 um 14:08 schrieb Bob Jones:
> Hi,
> 
> I have the below in my ipsec.conf :
> ike esp from 198.51.100.0/24 to 10.20.30.0/24 \
> local 198.51.100.15 \
> peer 203.0.113.114 \
> main auth hmac-sha2-512 enc aes-256-gcm group modp8192 lifetime 14400 
> \
^^^
This is not supported. Look at ipsec.conf(5):

   aes-256-gcm 288 bits  [phase 2 only, IKE only]

in main, you can only use aes-256. To use aes-256-gcm, you need an
additional line like

 quick auth hmac-sha2-512 enc aes-256-gcm group modp8192 lifetime 14400


hth,
Marc

> srcid 198.51.100.15 dstid 203.0.113.114 \
> psk “MY_SECRET” \
> tag MY_TAG
> 
> Running "doas ipsecctl -nf /etc/ipsec.conf "  (to validate the config)
> yields no errors.
> 
> But running "doas ipsecctl -f /etc/ipsec.conf "  (to load the config) yields:
> 
> ipsecctl: illegal transform aes-256-gcm
> ipsecctl: failed to add ike rule 0
> 



Re: pf.conf: best practice for IP address lookup?

2017-04-16 Thread Marc Peters
Am 04/16/17 um 16:49 schrieb Florian Ermisch:
> But then I couldn't even say if an address change would trigger
> ifstated(8)…

In this case it would, because an IPv6 address change at Deutsche
Telekom is triggered by a reconnect. I use ifstated to trigger an
asterisk and pf reload.

> 
> Regards, Florian
> 
> [1]: https://tools.ietf.org/html/rfc4193
> [2]: https://www.mail-archive.com/misc@openbsd.org/msg142557.html



Output of netstat -m shows lower value with higher kern.maxclusters

2017-04-12 Thread Marc Peters
Hi,

after i updated from 6.0 to 6.1, i saw that kern.maxclusters was raised
and removed our local change to kern.maxclusters.

Although the value is now way higher, the output shows a lower number
than before:

before the upgrade:
~ # sysctl kern.maxclusters
kern.maxclusters=24578

~ # netstat -m
314 mbufs in use:
298 mbufs allocated to data
6 mbufs allocated to packet headers
10 mbufs allocated to socket names and addresses
296/2192/24584 mbuf 2048 byte clusters in use (current/peak/max)
0/8/24584 mbuf 4096 byte clusters in use (current/peak/max)
0/8/24584 mbuf 8192 byte clusters in use (current/peak/max)
0/14/24584 mbuf 9216 byte clusters in use (current/peak/max)
0/10/24580 mbuf 12288 byte clusters in use (current/peak/max)
0/8/24584 mbuf 16384 byte clusters in use (current/peak/max)
0/8/24584 mbuf 65536 byte clusters in use (current/peak/max)
1948 Kbytes allocated to network (34% in use)
0 requests for memory denied
0 requests for memory delayed
0 calls to protocol drain routines


after the upgrade:
~ # sysctl kern.maxclusters
kern.maxclusters=262144

~ # netstat -m
40 mbufs in use:
24 mbufs allocated to data
5 mbufs allocated to packet headers
11 mbufs allocated to socket names and addresses
21/168/64 mbuf 2048 byte clusters in use (current/peak/max)
0/0/120 mbuf 2112 byte clusters in use (current/peak/max)
0/8/64 mbuf 4096 byte clusters in use (current/peak/max)
0/0/64 mbuf 8192 byte clusters in use (current/peak/max)
0/0/112 mbuf 9216 byte clusters in use (current/peak/max)
0/0/80 mbuf 12288 byte clusters in use (current/peak/max)
0/0/64 mbuf 16384 byte clusters in use (current/peak/max)
0/0/64 mbuf 65536 byte clusters in use (current/peak/max)
420 Kbytes allocated to network (12% in use)
0 requests for memory denied
0 requests for memory delayed
0 calls to protocol drain routines


Is this just an output issue, or are the numbers now related to other
values?

Cheers,
Marc

dmesg:
OpenBSD 6.1 (GENERIC.MP) #20: Sat Apr  1 13:45:56 MDT 2017
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 25742729216 (24550MB)
avail mem = 24957874176 (23801MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xdf7fe000 (127 entries)
bios0: vendor HP version "P68" date 07/02/2013
bios0: HP ProLiant DL360 G7
acpi0 at bios0: rev 2
acpi0: sleep states S0 S4 S5
acpi0: tables DSDT FACP SPCR MCFG HPET  SPMI ERST APIC SRAT 
BERT HEST DMAR SSDT SSDT SSDT SSDT SSDT
acpi0: wakeup devices
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimcfg0 at acpi0 addr 0xe000, bus 0-63
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Xeon(R) CPU X5687 @ 3.60GHz, 3600.61 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,POPCNT,AES,NXE,PAGE1GB,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,ARAT
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: TSC frequency 3600606060 Hz
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 133MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.1, IBE
cpu1 at mainbus0: apid 32 (application processor)
cpu1: Intel(R) Xeon(R) CPU X5687 @ 3.60GHz, 3600.14 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,POPCNT,AES,NXE,PAGE1GB,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,ARAT
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 0, package 1
cpu2 at mainbus0: apid 20 (application processor)
cpu2: Intel(R) Xeon(R) CPU X5687 @ 3.60GHz, 3600.13 MHz
cpu2:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,POPCNT,AES,NXE,PAGE1GB,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,ARAT
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 0, core 10, package 0
cpu3 at mainbus0: apid 52 (application processor)
cpu3: Intel(R) Xeon(R) CPU X5687 @ 3.60GHz, 3600.13 MHz
cpu3:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,POPCNT,AES,NXE,PAGE1GB,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR,ARAT
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 0, core 10, package 1
cpu4 at mainbus0: apid 2 (application processor)
cpu4: Intel(R) Xeon(R) CPU X5687 @ 3.60GHz, 3600.13 MHz
cpu4:

Re: Please: Is there ANY chance that Linux binaries might run again???

2017-03-07 Thread Marc Peters
Am 03/07/17 um 23:32 schrieb Stefan Wollny:
> at home this is the way I go, too. But I have to travel to my client's
> place (by train!) and when working in the evening in the hotel room like
> tonight (as I have to leave the office building by 8 pm at the latest)
> it is somewhat inconvenient to take a second laptop with me.
> 

Have you considered Office 365? I used it to do my works Travel Expense,
because they are only providing an Excel File with a ton of Macros. Had
to upload it to OneDrive to open it, but it worked quite well.

Marc



Re: Manual update

2016-12-20 Thread Marc Peters
Am 12/19/16 um 19:01 schrieb Todd Carpenter:
> Hi All,
> 
> I recently installed 6.0 and was struggling to get my softraid0 stripe to
> build properly and or boot.  I went over section 14 carefully and did some
> research.  The part that I found was missing was the creation of a 100 meg
> partition on the A slice and how to successfully create a bootable raid
> stripe. (I'm sure there is something somewhere that I missed, but I thought
> it would be awesome to include step #2 and #3 in the raid setup)

That's not needed anymore. On the page you mention, it states clearly:

"[...] and booting from softraid devices isn't supported on all of them.
It's currently only possible to boot from RAID1, RAID5 and crypto
volumes on i386, amd64 and sparc64."

The same in the manpages:
http://man.openbsd.org/?query=boot=0=8=default=OpenBSD-current

As this already works for me on several systems, i assume that something
with your process is wrong here. Or you messed up your upgrade (yes, i
upgraded some of the machines).

Hth,
Marc



Re: IPv6 Setup not working on Hetzner server

2016-12-05 Thread Marc Peters
Am 12/02/16 um 13:39 schrieb Leo Unglaub:
> I just found out that since i changed my mygate up to your suggestion
> that i now have to ping6 fe80::1%em0 first and then i am able to
> connecto to other hosts via IPv6. But not before i pinged the
> fe80::1%em0. WTF?

i have the same setup at hetzner and as someone suggested, i am using in
my root crontab:

@reboot sleep 10 && ping6 -c 10 fe80::1\%em0 > /dev/null

works for me, at least.



Re: softraid(4) full-disk encryption on SSD

2016-11-16 Thread Marc Peters
Am 11/16/16 um 17:07 schrieb Ax0n:
> I'm less concerned about swap, and more concerned about how a fully
> encrypted softraid Solid State Disk is going to act. I can't find a lot
> about FDE on SSD.
> 

It acts as a normal harddisk would, just faster :). I had one in my
worklaptop i used before for about two years and i have one in my
worklaptop. No problems.



Re: 4th nic for pcengines apu2

2016-10-21 Thread Marc Peters
Am 10/20/16 um 18:26 schrieb Stuart Henderson:
> 
> You should find out if they have IPMI.  Standard config on many Supermicros
> is to have it enabled, sharing the first main network port if you don't have
> anything plugged into the dedicated one, with the same password on every
> machine.  You do not want this.
> 

Yeah, we have a couple of Supermicros, which have IPMI. Actually, the
IPMI will share any connected onboard nic, if the dedicated is not
connected. These machines at least don't have IPMI and i don't know, if
you can buy any equipped with IPMI.



Re: 4th nic for pcengines apu2

2016-10-20 Thread Marc Peters
Am 10/19/16 um 21:03 schrieb Marko Cupać:
> Hi,
> 
> I have a budget which is a few times the price of single apu2.
> Actually, initially I planned to use a pair of HPE ProLiant DL20 gen9
> for this purpose. Unfortunately, it appears DL20gen9s won't boot
> OpenBSD: [https://marc.info/?l=openbsd-misc=147611237327210=2]
> If someone has good experience with OpenBSD on entry level HPE ProLiant
> servers that are currently being sold new, please let me know.
> 
> One of requirements for this hardware is that it has to be purchased
> from a local distributor in Serbia, in order to avoid hassle with
> customs, import taxes, first import certification, guarantee period
> etc. PC Engines have distributor here, that's one of the reasons I buy
> their gear. The same with HP. I doubt Lanner and Jetway have
> distributor in Serbia, at least web search didn't return anything.
> 

What about Supermicros with four em(4)? We have a pair of

Product Name: X10SLM+-LN4F

in production for a branch office with couple of ipsec tunnels. They
have four copper nics onboard and PCIe expansion slots, if you are in
need of fiber or additional ports.
Afair, they don't have a raid controller onboard, but we use softraid
with RAID1 on them. I don't know if they have an IPMI, but you get they
idea :).

hth,
Marc



Re: Install OpenBSD on disks larger than 2TB

2016-08-05 Thread Marc Peters
Am 08/05/16 um 11:36 schrieb Leo Unglaub:
> Hey,
> 
> did you do anything special during the installation? Or did you simply
> follow the installer?
> 

dropped to a shell, created the raid by hand. followed the installer but
fixed the boundaries for disklabel as mentioned in an earlier version of
the FAQ which discussed installations on bigger disks way back when i
originally installed that box. You can still find it in the attic:

http://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/www/faq/faq14.html?rev=1.295=text/html#LargeDrive

There is also a section for "Disks larger than 2TB".

But you didn't answered the initial question by Alex, if you install on
a BIOS system or on a UEFI system? UEFI systems with GPT layout need
some addtional steps to get it off the ground correctly.



Re: T450s doesn't resume after suspend

2016-08-05 Thread Marc Peters
Am 08/05/16 um 10:10 schrieb Marc Peters:
> Hi,
> 
> i have a T450s which doesn't resume after suspended. When i close the
> lid, the laptop suspends correctly but doesn't resume at all. Opening
> the lid or pressing the button doesn't bring it back. I have to reset it.
> 
> An acpidump is available at http://www.mpeters.org/T450s_acpidump.tar.gz
> 
> Anything else needed?
> 
> 
> Marc

Disabling TPM as suggested off-list seems to do the trick.



T450s doesn't resume after suspend

2016-08-05 Thread Marc Peters
Hi,

i have a T450s which doesn't resume after suspended. When i close the
lid, the laptop suspends correctly but doesn't resume at all. Opening
the lid or pressing the button doesn't bring it back. I have to reset it.

An acpidump is available at http://www.mpeters.org/T450s_acpidump.tar.gz

Anything else needed?


Marc

dmesg:

 $ dmesg
OpenBSD 6.0-current (GENERIC.MP) #0: Wed Aug  3 15:01:44 CEST 2016
r...@mapet.home:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 12759285760 (12168MB)
avail mem = 12368117760 (11795MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xccbfd000 (66 entries)
bios0: vendor LENOVO version "JBET60WW (1.24 )" date 05/25/2016
bios0: LENOVO 20BX004DGE
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SLIC ASF! HPET ECDT APIC MCFG SSDT SSDT SSDT
SSDT SSDT SSDT SSDT SSDT SSDT PCCT SSDT TCPA SSDT UEFI MSDM BATB FPDT
UEFI DMAR
acpi0: wakeup devices LID_(S4) SLPB(S3) IGBE(S4) EXP2(S4) XHCI(S3) EHC1(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpiec0 at acpi0
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz, 2095.48 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,RDSEED,ADX,SMAP,PT,SENSOR,ARAT
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz, 2095.16 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,RDSEED,ADX,SMAP,PT,SENSOR,ARAT
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 1, core 0, package 0
cpu2 at mainbus0: apid 2 (application processor)
cpu2: Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz, 2095.16 MHz
cpu2:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,RDSEED,ADX,SMAP,PT,SENSOR,ARAT
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 0, core 1, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz, 2095.16 MHz
cpu3:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,RDSEED,ADX,SMAP,PT,SENSOR,ARAT
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 1, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 40 pins
acpimcfg0 at acpi0 addr 0xf800, bus 0-63
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEG_)
acpiprt2 at acpi0: bus 2 (EXP1)
acpiprt3 at acpi0: bus 3 (EXP2)
acpiprt4 at acpi0: bus -1 (EXP3)
acpicpu0 at acpi0: C3(200@233 mwait.1@0x40), C2(200@148 mwait.1@0x33),
C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: C3(200@233 mwait.1@0x40), C2(200@148 mwait.1@0x33),
C1(1000@1 mwait.1), PSS
acpicpu2 at acpi0: C3(200@233 mwait.1@0x40), C2(200@148 mwait.1@0x33),
C1(1000@1 mwait.1), PSS
acpicpu3 at acpi0: C3(200@233 mwait.1@0x40), C2(200@148 mwait.1@0x33),
C1(1000@1 mwait.1), PSS
acpipwrres0 at acpi0: PUBS, resource for XHCI, EHC1
acpipwrres1 at acpi0: NVP3, resource for PEG_
acpipwrres2 at acpi0: NVP2, resource for PEG_
acpitz0 at acpi0: critical temperature is 128 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
"LEN0071" at acpi0 not configured
"LEN200F" at acpi0 not configured
acpibat0 at acpi0: BAT0 model "45N1113" serial   227 type LION oem "LGC"
acpibat1 at acpi0: BAT1 model "45N1775" serial  2450 type LION oem "SANYO"
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
"SMO1200" at acpi0 not configured
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not configured
"INT340F" at acpi0 not configured
acpivideo0 at acpi0: VID_
acpivout at acpivideo0 not configured
cpu0: Enhanced SpeedStep 2095 MHz: 

Re: Install OpenBSD on disks larger than 2TB

2016-08-04 Thread Marc Peters
Am 08/04/16 um 12:20 schrieb Leo Unglaub:
> yes, thats true and it works fine. The problem here seams to be the raid
> 1. Booting from an Raid 1 with disks larger than 2 TB seams to be
> broken. Maybe its not intended to work, but i am unable to find a hint
> about that in the bioctl,bio,softraid manual page. (Maybe thats the
> wrong place?)
> 
> Greetings
> Leo
> 

Works for me:

~ $ sudo disklabel -p m sd2
# /dev/rsd2c:
type: SCSI
disk: SCSI disk
label: SR RAID 1
duid: 7e4e73c2d1d85347
flags:
bytes/sector: 512
sectors/track: 255
tracks/cylinder: 511
sectors/cylinder: 130305
cylinders: 44975
total sectors: 5860532576 # total bytes: 2861588.2M
boundstart: 256
boundend: 5860532576
drivedata: 0

16 partitions:
#size   offset  fstype [fsize bsize  cpg]
  a:  5153.5M  256  4.2BSD   2048 163841 # /
  b:  8144.1M 10554688swap   # none
  c:   2861588.2M0  unused
  d: 15397.4M 27233760  4.2BSD   2048 163841 # /usr
  e:  5090.0M 58767552  4.2BSD   2048 163841 # /tmp
  f: 10180.1M 69191936  4.2BSD   2048 163841 # /home
  g: 51154.9M 90040736  4.2BSD   2048 163841 # /var
  h:921551.5M194806016  4.2BSD   8192 655361 # /var/www
  i:921551.6M   2082143488  4.2BSD   8192 655361 # /mail
  j:923364.9M   3969481088  4.2BSD   8192 655361 # /dumps

hth,
Marc



Re: Random delay on incoming SMTP connection to OpenSMTPD

2016-06-13 Thread Marc Peters
Am 06/11/16 um 10:47 schrieb ML mail:
> This VM has 2 GB of RAM and 2 vCPUs and does only serve as a mail gateway,
> nothing else really. Does SpamAssassin really need so much resources?

Of course, it perl ;).

You could use something like amavis, which does additionally queueing
and invoking spamassassin or use something less resources consuming and
fast like rspamd, which does the job in C. A port for rspamd is there,
but not for rmilter.



Re: rdomain and dhcrelay

2016-05-09 Thread Marc Peters
Am 05/09/16 um 08:20 schrieb Holger Glaess:
> hi
> 
> is there an possiblity to forward dhcp request from
> an rdomain X to the runing dhcp server in rdomain 0 ?
> 
> 
> if i start the dhcrelay -i em1 192.168.131.250,
> 
> i see that he forward the request but never reach the server.
> 
> the clients in rdoamin 0 works with the dhcp server.
> 
> or it is need to modify the dhcrelay with an option ,
> 
> route -n -T 2 exec dhcrelay -i em1 -V 0 192.168.131.250
> 
> ?
> em1 is part of rdomain 2.
> 192.168.131.xxx ist part of rdomain 0
> 
> holger
> 

You can shove the packets to the correct rdomain with pf or pair(4)
maybe of help:

"Add pair(4), a vether-based virtual Ethernet driver to interconnect
rdomains and bridges on the local system."

http://www.openbsd.org/plus59.html


HTH,
Marc



Re: Industrial use of line printers, does/would your company/organization use them with our lpd?

2016-02-18 Thread Marc Peters
Am 02/18/16 um 06:28 schrieb Andy Bradford:
> 
> Anyway,  just  some  musings.  Is  there anyone  else  out  there  using
> lpr/lpd/lprm from base? Maybe I'm the only one?
> 
> Thanks,
> 
> Andy
> 

I've connected a Kyocera FS-920 to my router and all hosts (*bsd, mac,
win) do their printing on it (just b needed). Done the configuration
years ago with the help of apsfilter:

lp|PS;r=600x600;q=medium;c=gray;p=a4;m=auto:\
:lp=/dev/ulpt0:\
:if=/etc/apsfilter/basedir/bin/apsfilter:\
:sd=/var/spool/lpd/lp:\
:lf=/var/spool/lpd/lp/log:\
:af=/var/spool/lpd/lp/acct:\
:mx#0:\
:sh:

lpd is not very chatty when it comes to errors, though.

Marc



Re: vlan on trunk member not permitted

2016-02-11 Thread Marc Peters
Am 02/10/16 um 13:54 schrieb Stuart Henderson:
> 
> trunk is normally for interfaces which are completely interchangeable,
> i.e. configured identically from a layer-3 point of view (same
> subnets/vlans/etc).
> 
> If it used to work with em0 being both a vlandev and a trunkport,
> that was probably a bug, I would expect it to be rejected the same
> way that configuring an IP address on a trunkport is rejected.
> 
> For a normal wired-and-wireless setup with different subnets on each,
> you would normally just run dhclient on multiple interfaces.
> 

Thanks for your explanation. Changing vlandev to trunk0 works:

vlan6: flags=208843
mtu 1500
lladdr 3c:97:0e:ea:61:d1
priority: 0
vlan: 6 parent interface: trunk0
groups: vlan egress
status: active
inet6 fe80::3e97:eff:feea:61d1%vlan6 prefixlen 64 scopeid 0x9
inet6 2001:920:1846:1dc0:3e97:eff:feea:61d1 prefixlen 64
autoconf pltime 604797 vltime 2591997
inet6 2001:920:1846:1dc0:78a2:faf1:f165:8ef0 prefixlen 64
autoconf autoconfprivacy pltime 85969 vltime 604797



Re: vlan on trunk member not permitted

2016-02-10 Thread Marc Peters
Am 02/10/16 um 10:44 schrieb Kapetanakis Giannis:
> Maybe iwn0 does not support vlan?
> 
> I don't see anything relative on it's product brief sheet.
> http://www.intel.com/content/dam/www/public/us/en/documents/product-briefs/centrino-advanced-n-6205-brief.pdf
> 
> 
> Did you try to start vlan 6 on iwn0 (instead of em0) and see if it works.
> If both interfaces support vlan then vlan on top of trunk should not be
> a problem.
> I've used that configuration for both failover and lacp setups.

The vlan device should be em0 only, as this is the only interface i
define in the config and not trunk0. The vlan is only available on the
wire, so i would have no need to use trunk0 oder iwn0 as underlying device.



vlan on trunk member not permitted

2016-02-09 Thread Marc Peters
Hi list,

for my laptop, i created a trunk(4) interface with em0 and iwn0 as
members. IPv6 is provided on a separate vlan for now. Without trunking
the interfaces, the vlan interface comes up and everything's working fine:

~ $ ifconfig
lo0: flags=8049 mtu 32768
priority: 0
groups: lo
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
inet 127.0.0.1 netmask 0xff00
em0: flags=18843 mtu 1500
lladdr 3c:97:0e:ea:61:d1
priority: 0
groups: egress
media: Ethernet autoselect (1000baseT full-duplex)
status: active
inet 192.168.45.27 netmask 0xf000 broadcast 192.168.47.255
iwn0: flags=8802 mtu 1500
lladdr e0:9d:31:5f:e0:d4
priority: 4
groups: wlan
media: IEEE802.11 autoselect (HT-MCS7 mode 11n)
status: no network
ieee80211: nwid trvnet wpakey  wpaprotos
wpa1,wpa2 wpaakms psk wpaciphers tkip,ccmp wpagroupcipher tkip
enc0: flags=0<>
priority: 0
groups: enc
status: active
vlan6: flags=0<> mtu 1500
lladdr 00:00:00:00:00:00
priority: 0
groups: vlan
pflog0: flags=141 mtu 33144
priority: 0
groups: pflog

~ $ sudo /bin/sh /etc/netstart vlan6

~ $ ifconfig vlan6
vlan6: flags=208843
mtu 1500
lladdr 3c:97:0e:ea:61:d1
priority: 0
vlan: 6 parent interface: em0
groups: vlan egress
status: active
inet6 fe80::3e97:eff:feea:61d1%vlan6 prefixlen 64 scopeid 0x6
inet6 2001:920:1846:1dc0:3e97:eff:feea:61d1 prefixlen 64
autoconf pltime 604784 vltime 2591984
inet6 2001:920:1846:1dc0:49c:5dec:15c2:dc16 prefixlen 64
autoconf autoconfprivacy pltime 86366 vltime 604784


If the interface em0 is member of the trunk interface, the vlan
interface doesn't get configured:
~ $ ifconfig
lo0: flags=8049 mtu 32768
priority: 0
groups: lo
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
inet 127.0.0.1 netmask 0xff00
em0:
flags=18b43
mtu 1500
lladdr 3c:97:0e:ea:61:d1
priority: 0
trunk: trunkdev trunk0
media: Ethernet autoselect (1000baseT full-duplex)
status: active
iwn0: flags=8943 mtu 1500
lladdr 3c:97:0e:ea:61:d1
priority: 4
trunk: trunkdev trunk0
groups: wlan
media: IEEE802.11 autoselect (HT-MCS0 mode 11n)
status: active
ieee80211: nwid trvnet chan 48 bssid 68:9c:e2:f4:a3:2f -55dBm
wpakey  wpaprotos wpa1,wpa2 wpaakms psk wpaciphers
tkip,ccmp wpagroupcipher tkip
enc0: flags=0<>
priority: 0
groups: enc
status: active
pflog0: flags=141 mtu 33144
priority: 0
groups: pflog
trunk0: flags=208843
mtu 1500
lladdr 3c:97:0e:ea:61:d1
priority: 0
trunk: trunkproto failover
trunkport iwn0
trunkport em0 master,active
groups: trunk egress
media: Ethernet autoselect
status: active
inet6 fe80::3e97:eff:feea:61d1%trunk0 prefixlen 64 scopeid 0x8
inet 192.168.43.160 netmask 0xf000 broadcast 192.168.47.255

~ $ sudo /bin/sh /etc/netstart vlan6
ifconfig: SIOCSETVLAN: Protocol not supported
ifconfig: SIOCIFAFATTACH: Invalid argument
ifconfig: SIOCSIFXFLAGS: Invalid argument

~ $ ifconfig
lo0: flags=8049 mtu 32768
priority: 0
groups: lo
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
inet 127.0.0.1 netmask 0xff00
em0:
flags=18b43
mtu 1500
lladdr 3c:97:0e:ea:61:d1
priority: 0
trunk: trunkdev trunk0
media: Ethernet autoselect (1000baseT full-duplex)
status: active
iwn0: flags=8943 mtu 1500
lladdr 3c:97:0e:ea:61:d1
priority: 4
trunk: trunkdev trunk0
groups: wlan
media: IEEE802.11 autoselect (HT-MCS0 mode 11n)
status: active
ieee80211: nwid trvnet chan 48 bssid 68:9c:e2:f4:a3:2f -54dBm
wpakey  wpaprotos wpa1,wpa2 wpaakms psk wpaciphers
tkip,ccmp wpagroupcipher tkip
enc0: flags=0<>
priority: 0
groups: enc
status: active
pflog0: flags=141 mtu 33144
priority: 0
groups: pflog
trunk0: flags=208843
mtu 1500
lladdr 3c:97:0e:ea:61:d1
priority: 0
trunk: trunkproto failover
trunkport 

Re: Welcome-Mail

2015-11-16 Thread Marc Peters
Am 11/16/15 um 12:00 schrieb Stefan Wollny:
> Hi there,
> 
> I may be wrong but I thought usage of ftp to get information and to
> download packages is discouraged. I just noticed (after having done a
> fresh install of amd64-current) reading the welcome mail "Welcome to
> OpenBSD 5.8!" that the ftp-protocol is still given.
> 
> Instead
> ftp://ftp.openbsd.org/pub/OpenBSD/5.8/packages
> shouldn't this rather be
> http://ftp.openbsd.org/pub/OpenBSD/5.8/packages

ftp is still a valid option for packages. The installation via ftp is
not supported anymore.


Marc



Re: wifi profiles in hostname.if

2015-09-26 Thread Marc Peters
On 09/26/15 15:44, Chris Lobkowicz wrote:
> Good day, I am curious if there is the possibility of adding/using multiple
> profiles or network entries, much like ~/.ssh/config ?
> 

I use the scripts provided by afresh1@. They're available at
https://gist.github.com/afresh1/7149844


Marc

> eg:
> 
> In /etc/hostname.iwn0
> 
> nwid primary
> wpakey key
> dhcp
> 
> ​nwid ​secondary
> wpakey key
> dhcp
> 
> 
> Is this possible? I would imagine that wrapping some sort of
> identifiers/formatting around the network information would be required,
> much like the ssh/config parameters.
> 
> Net primary {
>   nwid primary
>   wpakey key
>   dhcp
> }
> Net secondary {
>   nwid secondary
>   wpakey key
>   dhcp
> }
> 
> 
> The manpage of hostname.if(5) does not specifically mention/allow for this.
> 
> 
> 
> My work-around for this is to have all my locations/ap's use the same nwid
> where possible. And where not, just use # comments in my hostname.if files
> and just manually edit the appropriate entries in/out, and rerun
> /etc/netstart.
> 
> Is it possible to bake this in, rather than going down the wpa_supplicant
> path as others have done? Or am I getting my hopes up for the sake of being
> lazy?
> 
> Thanks
> Chris



Re: Recommended Industrial PCs?

2015-08-27 Thread Marc Peters
Am 08/26/15 um 21:11 schrieb Martin Haufschild:
 Hello,
 
 can someone recommend me an Industrial PC (IPC) to use with OpenBSD? I
 would like to have a lot of hardware supported from this IPC by OpenBSD.
 
 Regards
 Martin
 

Soekris are small in form factor and are reliable devices; pretty
expensive, though.



Re: my experience with openbsdstore.com

2015-04-13 Thread Marc Peters
On 04/12/15 20:12, Jason Adams wrote:
 On 04/11/2015 06:01 AM, IMAP List Administration wrote:
 The trouble began immediately. I chose electronic wire transfer as the 
 payment
 method, 
 
 Its not 1929 any more. I'm utterly suprised the store still offers wire 
 transfer.
 
 In my day job, we refuse wire transfers.  We would rather lose a customer 
 than deal
 with it unless the invoice is several thousand dollars.  Its too much work 
 (on both ends)
 and one never gets the invoice amount, as the banks charge fees on both ends.

Not in Europe. Actually, the most money transfers here are done by wire
transfer, as it's for free.

 
 What should have been an automated order now requites human intervention on
 both ends, plus any transcription error along the way sends your money to 
 no-man's land.

Not in Europe and the process of matching the payments should be
automated anyway.

 
 Even the store's handling of PayPal is obsolete, requiring two steps, and 
 manual matching
 of orders to payments.

Should be an automated process, too.

 
 There are a dozen other payment methods that could be used on the store, but 
 it seems
 hopelessly stuck in 1996.
 

Yeah, and you go to a bank and throw papers in or send cheques? Where or
when do you live? In the 80's?



Re: Dovecot happy on 5.6?

2014-12-16 Thread Marc Peters
On 12/16/14 05:48, Rod Whitworth wrote:
 I have been trying out dovecot for some years and it has always had some 
 irritating bug or 
 limitation and I have seen a few gripes from others.
 
 It seems to have been very quiet lately so I thought I'd have another attempt 
 to get it running 
 whilst choosing options that look like ones to suit me.
 
 Any happy users? Absolute haters who have really tried hard? (Description of 
 problem?)
 
 Thanx,

Happy since June '12 (started with a -current and stayed with -stable since)

Marc



dhcpd log issues

2014-11-07 Thread Marc Peters
Hi misc@,

after upgrading our pair of dhcpd servers to 5.6(-stable), i am seeing
strange DHCPACKs in our logs (in both of them):

Nov  7 09:28:34 dhcpd2 dhcpd[9269]: DHCPINFORM from 192.168.20.251
Nov  7 09:28:34 dhcpd2 dhcpd[9269]: DHCPACK on null address to
5c:51:4f:56:81:c3 via em0
Nov  7 09:28:35 dhcpd2 dhcpd[9269]: DHCPDISCOVER from 60:67:20:a5:2b:3f
via em0
Nov  7 09:28:36 dhcpd2 dhcpd[9269]: DHCPOFFER on 192.168.21.79 to
60:67:20:a5:2b:3f via em0
Nov  7 09:28:37 dhcpd2 dhcpd[9269]: DHCPINFORM from 192.168.19.204
Nov  7 09:28:37 dhcpd2 dhcpd[9269]: DHCPACK on null address to
7c:7a:91:5e:d4:81 via em0
Nov  7 09:28:37 dhcpd2 dhcpd[9269]: DHCPINFORM from 192.168.19.203
Nov  7 09:28:37 dhcpd2 dhcpd[9269]: DHCPACK on null address to
28:d2:44:6a:a7:7b via em0
Nov  7 09:28:37 dhcpd2 dhcpd[9269]: DHCPINFORM from 192.168.19.38
Nov  7 09:28:37 dhcpd2 dhcpd[9269]: DHCPACK on null address to
74:27:ea:e5:68:68 via em0

The entries in the leasesfile are correct and the clients are getting
the right addresses, so this seems merely a logging issue to me.

dmesg dhcpd1 (kvm-host):
OpenBSD 5.6-stable (GENERIC.MP) #0: Thu Nov  6 13:20:20 CET 2014
r...@dhcpd1.trivago.trv:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 1056956416 (1007MB)
avail mem = 1020092416 (972MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xfd970 (11 entries)
bios0: vendor Bochs version Bochs date 01/01/2007
bios0: Bochs Bochs
acpi0 at bios0: rev 0
acpi0: sleep states S3 S4 S5
acpi0: tables DSDT FACP SSDT APIC HPET SSDT
acpi0: wakeup devices
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: QEMU Virtual CPU version 1.1.2, 2667.18 MHz
cpu0:
FPU,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,CX16,POPCNT,NXE,LONG,LAHF
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB
64b/line 16-way L2 cache
cpu0: ITLB 255 4KB entries direct-mapped, 255 4MB entries direct-mapped
cpu0: DTLB 255 4KB entries direct-mapped, 255 4MB entries direct-mapped
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 1000MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: QEMU Virtual CPU version 1.1.2, 2666.89 MHz
cpu1:
FPU,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,CX16,POPCNT,NXE,LONG,LAHF
cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB
64b/line 16-way L2 cache
cpu1: ITLB 255 4KB entries direct-mapped, 255 4MB entries direct-mapped
cpu1: DTLB 255 4KB entries direct-mapped, 255 4MB entries direct-mapped
cpu1: smt 0, core 0, package 1
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 11, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 2
acpihpet0 at acpi0: 1 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0
acpicpu1 at acpi0
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 Intel 82441FX rev 0x02
pcib0 at pci0 dev 1 function 0 Intel 82371SB ISA rev 0x00
pciide0 at pci0 dev 1 function 1 Intel 82371SB IDE rev 0x00: DMA,
channel 0 wired to compatibility, channel 1 wired to compatibility
pciide0: channel 0 disabled (no drives)
pciide0: channel 1 disabled (no drives)
uhci0 at pci0 dev 1 function 2 Intel 82371SB USB rev 0x01: apic 2 int 11
piixpm0 at pci0 dev 1 function 3 Intel 82371AB Power rev 0x03: apic 2
int 10
iic0 at piixpm0
iic0: addr 0x18 00=00 01=00 02=00 03=00 04=00 05=00 06=00 07=00 08=00
words 00= 01= 02= 03= 04= 05= 06= 07=
iic0: addr 0x1a 00=00 01=00 02=00 03=00 04=00 05=00 06=00 07=00 08=00
words 00= 01= 02= 03= 04= 05= 06= 07=
iic0: addr 0x29 00=00 01=00 02=00 03=00 04=00 05=00 06=00 07=00 08=00
words 00= 01= 02= 03= 04= 05= 06= 07=
iic0: addr 0x2b 00=00 01=00 02=00 03=00 04=00 05=00 06=00 07=00 08=00
words 00= 01= 02= 03= 04= 05= 06= 07=
iic0: addr 0x4c 00=00 01=00 02=00 03=00 04=00 05=00 06=00 07=00 08=00
words 00= 01= 02= 03= 04= 05= 06= 07=
iic0: addr 0x4e 00=00 01=00 02=00 03=00 04=00 05=00 06=00 07=00 08=00
words 00= 01= 02= 03= 04= 05= 06= 07=
vga1 at pci0 dev 2 function 0 Cirrus Logic CL-GD5446 rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
em0 at pci0 dev 3 function 0 Intel 82540EM rev 0x03: apic 2 int 11,
address 52:54:00:03:2b:7d
virtio0 at pci0 dev 4 function 0 Qumranet Virtio Storage rev 0x00:
Virtio Block Device
vioblk0 at virtio0
scsibus1 at vioblk0: 2 targets
sd0 at scsibus1 targ 0 lun 0: VirtIO, Block Device,  SCSI3 0/direct fixed
sd0: 20480MB, 512 bytes/sector, 41943040 sectors
virtio0: apic 2 int 11
virtio1 at pci0 dev 5 function 0 Qumranet Virtio Memory rev 0x00:
Virtio Memory Balloon Device
viomb0 

Re: Apache2 config on OpenBSD 5.5

2014-06-02 Thread Marc Peters
On 06/02/14 10:41, Markus Rosjat wrote:
 Hey there,
 
 its kinda confusing to see config files all over the place. I can find
 files in /etc/apache2 as well as in /var/www/conf. So first thing first.
 As I notices apache 1.3 insnt used in OpenBSD 5.5 right?  So I can asume
 there should be no apache 1.3 running at all. Second I installed the
 apache2 package and got the config files at /etc/apache2 but when I did
 some changes I noticed they are not applied after restarting apache so I
 took a look around and found config files under /var/www/conf too which
 where used by the apachectl script. Beisde this I check my phpinfo() _I
 and  got the info that Im running a apache 1.3 
 
 So what is the deal now, do I have a 1.3 installed by the default when I
 set up the system or is it just some weird mix up that happens because I
 installed the apache2 package? Another question would be the chroot, is
 the apache2 chrooted by the default still ?
 
 Oh and if someone has some helpful links on all this that would be
 extremly helpful.
 
 Regards
 
 Markus
 

Apache 1.3 is still installed. In -current and upcoming 5.6 it will be
substituted by nginx. I never used apache2 on OpenBSD, but i can imagine
that it lives in /usr/local and you should make sure to call apachectl
with an absolute path. The files in /var/www/conf are for the apache 1.3
in base.



Intel i210AT NICs

2014-02-06 Thread Marc Peters
Hi List,

we have a couple of Supermicro boxes with Supmicro X10SLM+-LN4F Boards.
These are featuring the Intel i210AT Chipsets. Are there any plans or
patches to get them working? Downloaded today's snapshot but they aren't
getting configured either.

Is anyone working on it (and have a patch for me to test ;))?

dmesg below.

Cheers,
Marc

dmesg:

OpenBSD 5.5-beta (GENERIC.MP) #284: Mon Feb  3 07:57:32 MST 2014
t...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8531181568 (8135MB)
avail mem = 8295866368 (7911MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xec090 (38 entries)
bios0: vendor American Megatrends Inc. version 1.1a date 11/01/2013
bios0: Supermicro X10SLM+-LN4F
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC FPDT LPIT SSDT SSDT SSDT SSDT MCFG PRAD
HPET SSDT SSDT SPMI DMAR EINJ ERST HEST BERT
acpi0: wakeup devices PXSX(S4) RP01(S4) PXSX(S4) RP02(S4) PXSX(S4)
RP03(S4) PXSX(S4) RP04(S4) PXSX(S4) RP05(S4) PXSX(S4) RP07(S4) PXSX(S4)
RP08(S4) GLAN(S4) EHC1(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Xeon(R) CPU E3-1220 v3 @ 3.10GHz, 3100.54 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Xeon(R) CPU E3-1220 v3 @ 3.10GHz, 3100.00 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 4 (application processor)
cpu2: Intel(R) Xeon(R) CPU E3-1220 v3 @ 3.10GHz, 3100.00 MHz
cpu2:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 0, core 2, package 0
cpu3 at mainbus0: apid 6 (application processor)
cpu3: Intel(R) Xeon(R) CPU E3-1220 v3 @ 3.10GHz, 3100.00 MHz
cpu3:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 0, core 3, package 0
ioapic0 at mainbus0: apid 8 pa 0xfec0, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xf800, bus 0-63
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (RP01)
acpiprt2 at acpi0: bus 3 (RP03)
acpiprt3 at acpi0: bus 4 (RP04)
acpiprt4 at acpi0: bus 5 (RP07)
acpiprt5 at acpi0: bus 6 (RP08)
acpiprt6 at acpi0: bus -1 (PEG0)
acpiec0 at acpi0: Failed to read resource settings
acpicpu0 at acpi0: C1, PSS
acpicpu1 at acpi0: C1, PSS
acpicpu2 at acpi0: C1, PSS
acpicpu3 at acpi0: C1, PSS
acpipwrres0 at acpi0: FN00, resource for FAN0
acpipwrres1 at acpi0: FN01, resource for FAN1
acpipwrres2 at acpi0: FN02, resource for FAN2
acpipwrres3 at acpi0: FN03, resource for FAN3
acpipwrres4 at acpi0: FN04, resource for FAN4
acpitz0 at acpi0: critical temperature is 105 degC
acpitz1 at acpi0: critical temperature is 105 degC
acpibat0 at acpi0: BAT0 not present
acpibat1 at acpi0: BAT1 not present
acpibat2 at acpi0: BAT2 not present
acpibtn0 at acpi0: PWRB
acpibtn1 at acpi0: LID0
acpivideo0 at acpi0: GFX0
acpivout0 at acpivideo0: DD1F
ipmi at mainbus0 not configured
cpu0: Enhanced SpeedStep 3100 MHz: speeds: 3101, 3100, 2900, 2800, 2600,
2400, 2300, 2100, 1900, 1800, 1600, 1500, 1300, 1100, 1000, 800 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 vendor Intel, unknown product 0x0c08
rev 0x06
Intel 8 Series xHCI rev 0x05 at pci0 dev 20 function 0 not configured
Intel 8 Series MEI rev 0x04 at pci0 dev 22 function 0 not configured
Intel 8 Series MEI rev 0x04 at pci0 dev 22 function 1 not configured
ehci0 at pci0 dev 26 function 0 Intel 

Re: Intel i210AT NICs

2014-02-06 Thread Marc Peters
On 02/06/14 12:52, Joerg Goltermann wrote:
 Hi,
 
 On 06.02.2014 10:26, Marc Peters wrote:
 Hi List,

 we have a couple of Supermicro boxes with Supmicro X10SLM+-LN4F Boards.
 These are featuring the Intel i210AT Chipsets. Are there any plans or
 patches to get them working? Downloaded today's snapshot but they aren't
 getting configured either.

 Is anyone working on it (and have a patch for me to test ;))?
 
 
 yesterday I got my I210 cards for testing and this is the first
 version of a patch. The card can be used but I did rare testing
 on it.
 
 I can't find an unknown ethernet device in your attached
 dmesg, maybe this device is attached on an unsupported
 pci bridge?

These are the cards:

ppb2 at pci0 dev 28 function 2 Intel 8 Series PCIE rev 0xd5: msi
pci3 at ppb2 bus 3
Intel I210 rev 0x03 at pci3 dev 0 function 0 not configured
ppb3 at pci0 dev 28 function 3 Intel 8 Series PCIE rev 0xd5: msi
pci4 at ppb3 bus 4
Intel I210 rev 0x03 at pci4 dev 0 function 0 not configured
ppb4 at pci0 dev 28 function 6 Intel 8 Series PCIE rev 0xd5: msi
pci5 at ppb4 bus 5
Intel I210 rev 0x03 at pci5 dev 0 function 0 not configured
ppb5 at pci0 dev 28 function 7 Intel 8 Series PCIE rev 0xd5: msi
pci6 at ppb5 bus 6
Intel I210 rev 0x03 at pci6 dev 0 function 0 not configured

It's a quad core onboard.

I will give your patch a try, thanks.

 
 
 
 It would be really cool if we can get do the split of the em
 driver in e1000 and igb to get closer to the original Intel code.
 Which will make further updates easier and support a lot of
 new features like multiple queues 
 
 
 
 
 Index: if_em.c
 ===
 RCS file: /cvs/src/sys/dev/pci/if_em.c,v
 retrieving revision 1.275
 diff -u -p -r1.275 if_em.c
 --- if_em.c28 Dec 2013 03:34:54 -1.275
 +++ if_em.c6 Feb 2014 10:49:24 -
 @@ -144,6 +144,13 @@ const struct pci_matchid em_devices[] =
  { PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_I350_FIBER },
  { PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_I350_SERDES },
  { PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_I350_SGMII },
 +{ PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_I210_COPPER },
 +{ PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_I210_FIBER },
 +{ PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_I210_SERDES },
 +{ PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_I210_SGMII },
 +{ PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_I210_COPPER_NF },
 +{ PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_I210_SERDES_NF },
 +{ PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_I211_COPPER },
  { PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_ICH8_82567V_3 },
  { PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_ICH8_IFE },
  { PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_ICH8_IFE_G },
 @@ -408,6 +415,8 @@ em_attach(struct device *parent, struct
  case em_82575:
  case em_82580:
  case em_i350:
 +case em_i210:
 +case em_i211:
  case em_ich9lan:
  case em_ich10lan:
  case em_80003es2lan:
 @@ -475,7 +484,8 @@ em_attach(struct device *parent, struct
  }
 
  if (sc-hw.mac_type == em_80003es2lan || sc-hw.mac_type ==
 em_82575 ||
 -sc-hw.mac_type == em_82580 || sc-hw.mac_type == em_i350) {
 +sc-hw.mac_type == em_82580 || sc-hw.mac_type == em_i350 ||
 +sc-hw.mac_type == em_i210 || sc-hw.mac_type == em_i211 ) {
  uint32_t reg = EM_READ_REG(sc-hw, E1000_STATUS);
  sc-hw.bus_func = (reg  E1000_STATUS_FUNC_MASK) 
  E1000_STATUS_FUNC_SHIFT;
 @@ -776,6 +786,10 @@ em_init(void *arg)
  case em_i350:
  pba = E1000_PBA_32K; /* 32K for Rx, 16K for Tx */
  break;
 +case em_i210:
 +case em_i211:
 +pba = E1000_PBA_34K;
 +break;
  case em_82573: /* 82573: Total Packet Buffer is 32K */
  /* Jumbo frames not supported */
  pba = E1000_PBA_12K; /* 12K for Rx, 20K for Tx */
 @@ -1119,7 +1133,8 @@ em_encap(struct em_softc *sc, struct mbu
  goto fail;
 
  if (sc-hw.mac_type = em_82543  sc-hw.mac_type != em_82575 
 -sc-hw.mac_type != em_82580  sc-hw.mac_type != em_i350)
 +sc-hw.mac_type != em_82580  sc-hw.mac_type != em_i350 
 +sc-hw.mac_type != em_i210  sc-hw.mac_type != em_i211)
  em_transmit_checksum_setup(sc, m_head, txd_upper, txd_lower);
  else
  txd_upper = txd_lower = 0;
 @@ -1758,7 +1773,9 @@ em_hardware_init(struct em_softc *sc)
sc-hw.mac_type == em_82572 ||
sc-hw.mac_type == em_82575 ||
sc-hw.mac_type == em_82580 ||
 -  sc-hw.mac_type == em_i350)) {
 +  sc-hw.mac_type == em_i350 ||
 +  sc-hw.mac_type == em_i210 ||
 +  sc-hw.mac_type == em_i211)) {
  uint16_t phy_tmp = 0;
 
  /* Speed up time to link by disabling smart power down */
 @@ -1838,13 +1855,15 @@ em_setup_interface(struct em_softc *sc)
  ifp-if_capabilities = IFCAP_VLAN_MTU;
 
  #if NVLAN  0
 -if (sc-hw.mac_type != em_82575  sc-hw.mac_type != em_82580 
 -sc

Re: Intel i210AT NICs

2014-02-06 Thread Marc Peters
On 02/06/14 13:58, Marc Peters wrote:
 On 02/06/14 12:52, Joerg Goltermann wrote:
 
 These are the cards:
 
 ppb2 at pci0 dev 28 function 2 Intel 8 Series PCIE rev 0xd5: msi
 pci3 at ppb2 bus 3
 Intel I210 rev 0x03 at pci3 dev 0 function 0 not configured
 ppb3 at pci0 dev 28 function 3 Intel 8 Series PCIE rev 0xd5: msi
 pci4 at ppb3 bus 4
 Intel I210 rev 0x03 at pci4 dev 0 function 0 not configured
 ppb4 at pci0 dev 28 function 6 Intel 8 Series PCIE rev 0xd5: msi
 pci5 at ppb4 bus 5
 Intel I210 rev 0x03 at pci5 dev 0 function 0 not configured
 ppb5 at pci0 dev 28 function 7 Intel 8 Series PCIE rev 0xd5: msi
 pci6 at ppb5 bus 6
 Intel I210 rev 0x03 at pci6 dev 0 function 0 not configured
 
 It's a quad core onboard.
 
 I will give your patch a try, thanks.
 

Cards are working and cvs checkout looked good. Will test a bit more and
report success or failure.



Re: Request for Funding our Electricity

2014-01-18 Thread Marc Peters

Am 2014-01-17 16:55, schrieb Stefan Wollny:

Am Fri, 17 Jan 2014 16:08:07 +0100
schrieb Lars Peter Cleary l...@publius.ch:


I agree this is a very good idea, instant feedback and gratification.

Nevertheless, I've just now donated CAD 100.- and invite everybody
else to do the same.

Kind regards
Lars




Yepp - let's face it: Until some bigger company decides to join in and
supports the project 'we the users' have to take responsibility and
donate some extra money right now! The developers already donate a lot
more - time, efforts and know-how.

Besides donating a little amount each month on a subscription basis I
just donated EUR 120,- additionally. It is a darn good investment!

Cheers,
STEFAN


I am in with 100€, donated last night and will donate instead of buying 
CDs, but maybe i do both at the same time ;)


My company uses SPARC64 and a couple of amd64 for dhcp, named and 
nagios. We are planning to use more for VPN concentrators to shift some 
load from the internal firewalls (Junipers) at our office.


I am a long term user at home and a not so long term user at my root 
server. Hopefully, i will see many more releases in the future.


Marc



IPv6 static routing to a different subnet

2013-12-13 Thread Marc Peters
Hi list,

i have a difficult time reaching my default IPv6 default gateway in a
different subnet. Asking Google brought up some threads from early 2011.
Most of the solutions where switching the prefixlen to reach the gateway
but this didn't work out for me. The mentioned route commands didn't
work out for me, too. The support said, as they don't provide OpenBSD on
their machines, they don't support it. They told me, to set up one IP
from my network and add a host route to the gateway.

My network is 2001:4ba0::00ab::0 /64

The gateway is 2001:4ba0::1:beef::1


The provided example for FreeBSD (not verfied):

route add -inet6 [ipv6-gateway] -iface [interface]
ndp -s [ipv6-gateway] [mac-gateway]
route add -inet6 default [ipv6-gateway]

The provided example for Linux (verfied with provided rescue console):

~ # ip -6 route add 2001:4ba0::1:beef::1 dev eth0
~ # ip -6 route add default via 2001:4ba0::1:beef::1
~ # ip -6 route show
2001:4ba0::1:beef::1 dev eth0  metric 1024
2001:4ba0::ab::/64 dev eth0  proto kernel  metric 256
fe80::/64 dev eth0  proto kernel  metric 256
default via 2001:4ba0::1:beef::1 dev eth0  metric 1024
~ # ping6 ipv6.google.com
PING ipv6.google.com(la-in-x6a.1e100.net) 56 data bytes
64 bytes from la-in-x6a.1e100.net: icmp_seq=1 ttl=54 time=39.5 ms
64 bytes from la-in-x6a.1e100.net: icmp_seq=2 ttl=54 time=39.3 ms
64 bytes from la-in-x6a.1e100.net: icmp_seq=3 ttl=54 time=38.8 ms
64 bytes from la-in-x6a.1e100.net: icmp_seq=4 ttl=54 time=39.1 ms
^C

That's what i did on OpenBSD:

~ # ifconfig em0 inet6 2001:4ba0::ab::1 prefixlen 64
~ # ifconfig em0
em0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr 00:25:90:e0:20:c6
priority: 0
groups: egress
media: Ethernet autoselect (1000baseT full-duplex,rxpause,txpause)
status: active
inet 217.79.184.47 netmask 0xff80 broadcast 217.79.184.127
inet6 fe80::225:90ff:fee0:20c6%em0 prefixlen 64 scopeid 0x1
inet6 2001:4ba0::ab::1 prefixlen 64
~ # route add -inet6 -iface -ifp em0 -host 2001:4ba0::1:beef::1 \
-prefixlen 64 2001:4ba0::ab::1
add host 2001:4ba0::1:beef::1: gateway 2001:4ba0::ab::1
~ # route add -inet6 default 2001:4ba0::1:beef::1
add net default: gateway 2001:4ba0::1:beef::1
~ # route -n show -inet6
Routing tables

Internet6:
DestinationGatewayFlags
  Refs  Use   Mtu  Prio Iface
::/104 ::1UGRS
 00 - 8 lo0
::/96  ::1UGRS
 00 - 8 lo0
default2001:4ba0::1:beef::1UGS
  00 - 8 em0
::1::1UH
140 33144 4 lo0
::127.0.0.0/104::1UGRS
 00 - 8 lo0
::224.0.0.0/100::1UGRS
 00 - 8 lo0
::255.0.0.0/104::1UGRS
 00 - 8 lo0
:::0.0.0.0/96  ::1UGRS
 00 - 8 lo0
2001:4ba0::1:beef::12001:4ba0::ab::1UHS
   10 - 8 em0
2001:4ba0::ab::/64 link#1 UC
 00 - 4 em0
2001:4ba0::ab::1   00:25:90:e0:20:c6  HL
 00 - 4 lo0
2002::/24  ::1UGRS
 00 - 8 lo0
2002:7f00::/24 ::1UGRS
 00 - 8 lo0
2002:e000::/20 ::1UGRS
 00 - 8 lo0
2002:ff00::/24 ::1UGRS
 00 - 8 lo0
fe80::/10  ::1UGRS
 00 - 8 lo0
fe80::%em0/64  link#1 UC
 00 - 4 em0
fe80::225:90ff:fee0:20c6%em0   00:25:90:e0:20:c6  HL
 00 - 4 lo0
fe80::%lo0/64  fe80::1%lo0U
 00 - 4 lo0
fe80::1%lo0link#4 UHL
 00 - 4 lo0
fec0::/10  ::1UGRS
 00 - 8 lo0
ff01::/16  ::1UGRS
 00 - 8 lo0
ff01::%em0/32  link#1 UC
 00 - 4 em0
ff01::%lo0/32  fe80::1%lo0UC
 00 - 4 lo0
ff02::/16  ::1   

Re: IPv6 static routing to a different subnet

2013-12-13 Thread Marc Peters
On 12/13/13 16:59, Martin Brandenburg wrote:
 Marc Peters m...@mpeters.org wrote:
 
 Hi list,

 i have a difficult time reaching my default IPv6 default gateway in a
 different subnet. Asking Google brought up some threads from early 2011.
 Most of the solutions where switching the prefixlen to reach the gateway
 but this didn't work out for me. The mentioned route commands didn't
 work out for me, too. The support said, as they don't provide OpenBSD on
 their machines, they don't support it. They told me, to set up one IP
 from my network and add a host route to the gateway.

 My network is 2001:4ba0::00ab::0 /64

 The gateway is 2001:4ba0::1:beef::1
 
 Your provider has a stupid network. There are way more than enough to
 allocate an entire /64 just to route your real /64 to as e.g. HE's
 tunnelbroker.net does.
 
 The provided example for FreeBSD (not verfied):


 route add -inet6 [ipv6-gateway] -iface [interface]
 ndp -s [ipv6-gateway] [mac-gateway]
 route add -inet6 default [ipv6-gateway]
 
 This hints at the correct thing to do. Your gateway's public IP address
 isn't on your network, but you share a link-local address.
 
 Run
   ifconfig em0 inet6 2001:4ba0::00ab:: prefixlen 64
   route add -inet6 default [link-local address of gateway]
 
 The link local address of the gateway looks like
 fe80::dead:beef:cafe:babe%em0. You may be able to get it from ndp -a
 or tcpdump, but you can ask the provider if all else fails. From the
 example above, you have the MAC address. I believe there are also
 several converters online, or it's in RFC 4291. This is easier than
 messing around with -iface because IPv6's NDP won't recognize that.

The provider won't tell me, already tried that, some sort of ;). ndp -a
doesn't show any interfaces beside the one from the server itself:

~ # ndp -a
Neighbor Linklayer Address  Netif Expire
S Flags
malkier.mpeters.org  0:25:90:e0:20:c6 em0 permanent R
fe80::225:90ff:fee0:20c6%em0 0:25:90:e0:20:c6 em0 permanent R
fe80::1%lo0  (incomplete) lo0 permanent R

With tpcdump there is only one other link local address sending to
multicast addresses. This link local address is strange, though. It is
not a converted one from the original mac address, which the provider
provides as mac address from the gateway (00:0c:db:51:45:00) nor from
the mac address, which shows up after adding the one as link local
gateway in ndp:

~ # ndp -a
Neighbor Linklayer Address  Netif Expire
S Flags
malkier.mpeters.org  0:25:90:e0:20:c6 em0 permanent R
fe80::225:90ff:fee0:20c6%em0 0:25:90:e0:20:c6 em0 permanent R
/fe80::d555:905d:9f64:da3d%em00:25:90:c7:a7:2  em0 23h57m23s S /
fe80::1%lo0  (incomplete) lo0 permanent R

I tried both link local addresses, just to be sure
(fe80::d555:905d:9f64:da3d%em0 which showed up in the tcpdump and the
generated one from the mac provided fe80::20c:dbff:fe51:4500%em0).
Neither worked. Later one showed no mac in ndp:

~ # ndp -a
Neighbor Linklayer Address  Netif Expire
S Flags
malkier.mpeters.org  0:25:90:e0:20:c6 em0 permanent R
fe80::20c:dbff:fe51:4500%em0 (incomplete) em0 1sI  3
fe80::225:90ff:fee0:20c6%em0 0:25:90:e0:20:c6 em0 permanent R
fe80::1%lo0  (incomplete) lo0 permanent R

What i don't really get, is that's working with the other system, but
not with OpenBSD when it is set up in a similar way :(

Marc

 
 Since with IPv6 you get an entire network, it would be beneficial if
 your provider didn't have to use one for their router. The usual
 solution is to allocate a /64 for their router and your endpoint, and
 then route your network to your endpoint. You have the same thing,
 except the point-to-point link is using link-local instead of global
 addresses.
 
 - Martin



Dovecot out of memory right at startup

2013-11-20 Thread Marc Peters
Hi List,

i wanted to move my main mailserver from one to another. To avoid update
hassles i jumped directly to a recent -current from the beginning of
this month (full dmesg below):

OpenBSD 5.4-current (GENERIC.MP) #145: Sun Nov 10 22:55:43 MST 2013
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP

The older one is running 5.4-STABLE.

I installed dovecot from packages, moved the configuration over and
vimdiffed the files.

When i started dovecot, i got out of memory errors right at startup from
the master process:

Nov 20 10:50:55 master: Fatal: pool_system_realloc(8589934592): Out of
memory

A search at Google yielded nothing related to the master process, only
for other processes like imap, auth or Managesieve.

The relevant lines were added to login.conf and rebuilded it:

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

I even tried to raise the stacksize for dovecot, but to no avail (the
message doesn't change, so it must be something different).

Does anybody has an idea where to look?

Marc

The relevant infos:

/etc/dovecot # dovecot --version
2.2.7

/etc/dovecot # dovecot -n
# 2.2.7: /etc/dovecot/dovecot.conf
# OS: OpenBSD 5.4 amd64
auth_mechanisms = plain login digest-md5
auth_socket_path = /var/dovecot/auth-userdb
first_valid_gid = 2000
first_valid_uid = 2000
hostname = mail.mpeters.org
imap_client_workarounds = delay-newmail tb-extra-mailbox-sep tb-lsub-flags
imap_idle_notify_interval = 26 mins
last_valid_gid = 2000
  prefix =
}
passdb {
  args = /etc/dovecot/dovecot-sql.conf.ext
  driver = sql
}
plugin {
  sieve = /mail/vhosts/%d/%n/.dovecot.sieve
  sieve_dir = ~/sieve
}
pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
protocols = imap pop3 sieve
sendmail_path = /usr/local/sbin/sendmail
service auth-worker {
  user = $default_internal_user
}
service auth {
  unix_listener /var/spool/postfix/private/auth {
group = _postfix
mode = 0660
user = _postfix
  }
  unix_listener auth-userdb {
group = vmail
mode = 0660
user = vmail
  }
}
service imap-login {
  inet_listener imaps {
port = 993
ssl = yes
  }
  process_min_avail = 5
  service_count = 0
  vsz_limit = 512 M
}
service managesieve-login {
  inet_listener sieve {
port = 4190
  }
  inet_listener sieve_deprecated {
port = 2000
  }
}
ssl = required
ssl_cert = /etc/ssl/dovecotcert.pem
ssl_key = /etc/ssl/private/dovecot.pem
userdb {
  driver = prefetch
}
userdb {
  args = /etc/dovecot/dovecot-sql.conf.ext
  driver = sql
}
protocol lda {
  mail_plugins =  sieve
}
protocol imap {
  mail_max_userip_connections = 100
}

/etc/dovecot # dmesg
OpenBSD 5.4-current (GENERIC.MP) #145: Sun Nov 10 22:55:43 MST 2013
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 17144807424 (16350MB)
avail mem = 16680284160 (15907MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0x9ac00 (26 entries)
bios0: vendor American Megatrends Inc. version 1.0a date 05/22/2013
bios0: Supermicro AS -3012MA-H12TRF-MM001
acpi0 at bios0: rev 2
acpi0: sleep states S0 S1 S4 S5
acpi0: tables DSDT FACP APIC MCFG OEMB HPET SSDT EINJ BERT ERST HEST
acpi0: wakeup devices PC02(S4) PC03(S4) SBAZ(S4) PSKE(S4) PSMS(S4)
ECIR(S4) P0PC(S4) UHC1(S4) UHC2(S4) UHC3(S4) USB4(S4) UHC5(S4) UHC6(S4)
UHC7(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 16 (boot processor)
cpu0: AMD Opteron(tm) Processor 3365 , 2300.31 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,NODEID,TBM,TOPEXT,ITSC,BMI1
cpu0: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB
64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
cpu0: ITLB 48 4KB entries fully associative, 24 4MB entries fully
associative
cpu0: DTLB 64 4KB entries fully associative, 64 4MB entries fully
associative
cpu0: smt 0, core 0, package 0
cpu0: apic clock running at 199MHz
cpu0: mwait min=64, max=64, C-substates=0.0.0.0.0, IBE
cpu1 at mainbus0: apid 17 (application processor)
cpu1: AMD Opteron(tm) Processor 3365 , 2300.00 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,NODEID,TBM,TOPEXT,ITSC,BMI1
cpu1: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB
64b/line 16-way L2 cache, 8MB 64b/line 64-way L3 cache
cpu1: ITLB 48 4KB entries fully associative, 24 4MB entries fully
associative
cpu1: DTLB 64 4KB entries fully associative, 64 4MB entries fully
associative
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 18 (application processor)
cpu2: AMD 

Re: Problems receiving IP with dhclient

2013-11-05 Thread Marc Peters
On 11/05/13 14:47, Kenneth R Westerback wrote:
 
 There were many changes to dhclient, but this problem was obviously
 not intended.
 
 What would help is
 
 1) Your dhclient.conf

supersede host-name router;
supersede domain-name mpeters.org home;
supersede domain-name-servers 127.0.0.1;

 2) Any command line options you start dhclient with

just the interface name, ie. re0.

 3) A tcdump of the conversation. Something like
 
 tcpdump -i blah -s 2000 -vv -X 
 
 if you want to capture the text output, or
 
 tcpdump -i blah -s 2000 -w file to send me
 
 if you want to just capture the packets.

Will try both, when it doesn't come up again. It is running fine atm

Marc

 
  Ken



Problems receiving IP with dhclient

2013-11-04 Thread Marc Peters
Hi misc,

i upgraded my Router at home from 5.3-STABLE to 5.4-RELEASE on Friday.
After some hours, dhclient has problems to receive the DHCPOFFER
anymore. Surfing the logs shows a lot of DHCPREQUEST without an IP.
Sometimes the dhclient gets the DHCPOFFER, but more often not. When i
restart dhclient, it receives it immediatly and sits there happily for
some hours. Then i have to restart it again.

From the daemon logs (grepping for dhclient):

Nov  5 05:16:53 router dhclient[4382]: DHCPREQUEST on re0 to
10.156.128.1 port 67
Nov  5 05:20:06 router dhclient[4382]: DHCPREQUEST on re0 to
10.156.128.1 port 67
Nov  5 05:34:20 router dhclient[4382]: DHCPREQUEST on re0 to
10.156.128.1 port 67
Nov  5 05:35:18 router dhclient[4382]: DHCPREQUEST on re0 to
10.156.128.1 port 67
Nov  5 05:38:49 router dhclient[4382]: DHCPREQUEST on re0 to
10.156.128.1 port 67
Nov  5 05:42:06 router dhclient[4382]: DHCPREQUEST on re0 to
255.255.255.255 port 67
Nov  5 05:42:06 router dhclient[4382]: DHCPACK from 10.156.128.1
(1c:df:0f:02:2f:d9)
Nov  5 05:42:06 router dhclient[4382]: bound to 37.201.79.205 -- renewal
in 1800 seconds.

[rotated]

Nov  5 06:12:06 router dhclient[4382]: DHCPREQUEST on re0 to
10.156.128.1 port 67
Nov  5 06:12:26 router dhclient[4382]: DHCPREQUEST on re0 to
10.156.128.1 port 67
Nov  5 06:12:45 router dhclient[4382]: DHCPREQUEST on re0 to
10.156.128.1 port 67
Nov  5 06:25:01 router dhclient[4382]: DHCPREQUEST on re0 to
10.156.128.1 port 67
Nov  5 06:26:00 router dhclient[4382]: DHCPREQUEST on re0 to
10.156.128.1 port 67
Nov  5 06:35:44 router dhclient[4382]: DHCPREQUEST on re0 to
255.255.255.255 port 67
Nov  5 06:35:44 router dhclient[4382]: DHCPACK from 10.156.128.1
(1c:df:0f:02:2f:d9)
Nov  5 06:35:44 router dhclient[4382]: bound to 37.201.79.205 -- renewal
in 1800 seconds.
Nov  5 07:05:44 router dhclient[4382]: DHCPREQUEST on re0 to
10.156.128.1 port 67
Nov  5 07:17:24 router dhclient[4382]: DHCPREQUEST on re0 to
10.156.128.1 port 67
Nov  5 07:17:52 router dhclient[4382]: DHCPREQUEST on re0 to
10.156.128.1 port 67
Nov  5 07:30:37 router dhclient[4382]: DHCPREQUEST on re0 to
255.255.255.255 port 67
Nov  5 07:30:37 router dhclient[4382]: DHCPACK from 10.156.128.1
(1c:df:0f:02:2f:d9)
Nov  5 07:30:37 router dhclient[4382]: bound to 37.201.79.205 -- renewal
in 1800 seconds.
Nov  5 08:00:37 router dhclient[4382]: DHCPREQUEST on re0 to
10.156.128.1 port 67
Nov  5 08:02:52 router dhclient[4382]: DHCPREQUEST on re0 to
10.156.128.1 port 67
Nov  5 08:03:40 router dhclient[4382]: DHCPREQUEST on re0 to
10.156.128.1 port 67
Nov  5 08:03:43 router dhclient[4382]: Terminated; exiting
Nov  5 08:03:43 router dhclient[3901]: Terminated; exiting
Nov  5 08:03:48 router dhclient[8521]: DHCPREQUEST on re0 to
255.255.255.255 port 67
Nov  5 08:03:48 router dhclient[8521]: DHCPACK from 10.156.128.1
(1c:df:0f:02:2f:d9)
Nov  5 08:03:48 router dhclient[8521]: bound to 37.201.79.205 -- renewal
in 1800 seconds.

I didn't notice this behaviour on 5.3. Where there any changes to
dhclient or should i talk to my ISP?

Cheers,
Marc

dmesg:

OpenBSD 5.4 (GENERIC.MP) #41: Tue Jul 30 15:30:02 MDT 2013
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8151306240 (7773MB)
avail mem = 7926591488 (7559MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xeaf40 (52 entries)
bios0: vendor American Megatrends Inc. version 0306 date 08/18/2011
bios0: ASUSTeK Computer INC. E45M1-I DELUXE
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC MCFG HPET SSDT SSDT
acpi0: wakeup devices SBAZ(S4) PS2K(S4) PS2M(S4) UAR1(S4) P0PC(S4)
UHC1(S4) UHC2(S4) USB3(S4) UHC4(S4) USB5(S4) UHC6(S4) UHC7(S4) PE20(S4)
PE21(S4) RLAN(S4) PE22(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD E-450 APU with Radeon(tm) HD Graphics, 1650.12 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,SSSE3,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT,ITSC
cpu0: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB
64b/line 16-way L2 cache
cpu0: 8 4MB entries fully associative
cpu0: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu0: smt 0, core 0, package 0
cpu0: apic clock running at 199MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD E-450 APU with Radeon(tm) HD Graphics, 1649.90 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,SSSE3,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT,ITSC
cpu1: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB
64b/line 16-way L2 cache
cpu1: 8 4MB entries fully associative
cpu1: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu1: smt 0, core 1, package 0
ioapic0 at 

Re: respawn-like behaviour ?

2013-07-17 Thread Marc Peters
On 07/17/13 04:44, Илья Шипицин wrote:
 well, vnc repeater (which I'd like to run that way) crashes about once a week.
 I'm already debugging it (-ggdb + core dump settings).
 
 I need some way to respawn it until I'll find out the reason it crashes.
 

You can try monit. It's in ports.



Re: dhclient could not allocate memory

2013-03-31 Thread Marc Peters
On 02/28/2013 06:58 PM, Marc Peters wrote:
 Hi misc,
 
 i am using OpenBSD on my home router connected to cable internet. A re
 nic is facing the wild and gets its public IP via DHCP from my ISP. I
 have running a 5.3-beta from Feb. 1st, as this one has the powersaving
 fix for athn in HostAP (realised it then, was committed already in
 August). This router was running happily 5.2-RELEASE until then, 24/7,
 without any issues. However, this night dhclient died unexpectedly and
 /var/log/daemon says:
 
 Feb 27 22:05:56 router dhclient[22805]: sysctl retrieval of routes:
 Cannot allocate memory
 Feb 27 22:05:56 router dhclient[10969]: dispatch_imsg in main: pipe closed
 
 dhclient gone and with it my internet connection, too.
 
 I wonder, what could have caused this. The machine has two AMD APUs and
 8GB of memory (dmesg attached) and dhclient shouldn't run out of it (and
 it had no issues like that before with 5.1 and 5.2), but maybe i am
 totally wrong and looking in the wrong place at all.
 
 I know that Realtek cards have had a great history (joking!) and i try
 to avoid them, but this one is onboard and Intel NICs with double
 interfaces aren't as cheap as the PCIe one port desktop grade card i
 already added.
 
 mbufs are also unremarkable:
 marc@router
 ~ $ netstat -m
 133 mbufs in use:
 87 mbufs allocated to data
 14 mbufs allocated to packet headers
 32 mbufs allocated to socket names and addresses
 22/356/6144 mbuf 2048 byte clusters in use (current/peak/max)
 64/73/6144 mbuf 4096 byte clusters in use (current/peak/max)
 0/8/6144 mbuf 8192 byte clusters in use (current/peak/max)
 0/8/6144 mbuf 9216 byte clusters in use (current/peak/max)
 0/8/6144 mbuf 12288 byte clusters in use (current/peak/max)
 0/8/6144 mbuf 16384 byte clusters in use (current/peak/max)
 0/8/6144 mbuf 65536 byte clusters in use (current/peak/max)
 1284 Kbytes allocated to network (25% in use)
 0 requests for memory denied
 0 requests for memory delayed
 0 calls to protocol drain routines
 
 Maybe someone can shed some light on it and knows which knob to turn.
 
 Cheers,
 Marc
 
 
 Uptime provided for reference, not measurement of private parts ;)
 
 marc@router
 ~ $ uptime
  6:54PM  up 24 days,  2:41, 1 user, load averages: 0.24, 0.19, 0.1
 
 dmesg:
 OpenBSD 5.3-beta (GENERIC.MP) #25: Fri Feb  1 16:29:00 MST 2013
 t...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
 real mem = 8167034880 (7788MB)
 avail mem = 7927136256 (7559MB)
 mainbus0 at root
 bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xeaf40 (52 entries)
 bios0: vendor American Megatrends Inc. version 0306 date 08/18/2011
 bios0: ASUSTeK Computer INC. E45M1-I DELUXE
 acpi0 at bios0: rev 2
 acpi0: sleep states S0 S3 S4 S5
 acpi0: tables DSDT FACP APIC MCFG HPET SSDT SSDT
 acpi0: wakeup devices SBAZ(S4) PS2K(S4) PS2M(S4) UAR1(S4) P0PC(S4)
 UHC1(S4) UHC2(S4) USB3(S4) UHC4(S4) USB5(S4) UHC6(S4) UHC7(S4) PE20(S4)
 PE21(S4) RLAN(S4) PE22(S4) PE23(S4) BR14(S4) PWRB(S4)
 acpitimer0 at acpi0: 3579545 Hz, 32 bits
 acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
 cpu0 at mainbus0: apid 0 (boot processor)
 cpu0: AMD E-450 APU with Radeon(tm) HD Graphics, 1650.36 MHz
 cpu0:
 FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,SSSE3,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT,ITSC
 cpu0: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB
 64b/line 16-way L2 cache
 cpu0: 8 4MB entries fully associative
 cpu0: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
 cpu0: apic clock running at 199MHz
 cpu1 at mainbus0: apid 1 (application processor)
 cpu1: AMD E-450 APU with Radeon(tm) HD Graphics, 1649.90 MHz
 cpu1:
 FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,SSSE3,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT,ITSC
 cpu1: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB
 64b/line 16-way L2 cache
 cpu1: 8 4MB entries fully associative
 cpu1: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
 ioapic0 at mainbus0: apid 0 pa 0xfec0, version 21, 24 pins
 ioapic0: misconfigured as apic 3, remapped to apid 0
 acpimcfg0 at acpi0 addr 0xe000, bus 0-255
 acpihpet0 at acpi0: 14318180 Hz
 acpiprt0 at acpi0: bus 0 (PCI0)
 acpiprt1 at acpi0: bus 3 (PE20)
 acpiprt2 at acpi0: bus 4 (PE21)
 acpiprt3 at acpi0: bus -1 (PE22)
 acpiprt4 at acpi0: bus -1 (PE23)
 acpiprt5 at acpi0: bus -1 (BR15)
 acpiprt6 at acpi0: bus -1 (PCE6)
 acpiprt7 at acpi0: bus -1 (PCE7)
 acpiprt8 at acpi0: bus -1 (PCE8)
 acpiprt9 at acpi0: bus 1 (BR14)
 acpicpu0 at acpi0: C2, PSS
 acpicpu1 at acpi0: C2, PSS
 acpibtn0 at acpi0: PWRB
 cpu0: 1650 MHz: speeds: 1650 1320 825 MHz
 pci0 at mainbus0 bus 0
 pchb0 at pci0 dev 0 function 0 AMD AMD64 14h Host rev 0x00
 vga1 at pci0 dev 1 function 0 ATI Radeon

dhclient could not allocate memory

2013-02-28 Thread Marc Peters
Hi misc,

i am using OpenBSD on my home router connected to cable internet. A re
nic is facing the wild and gets its public IP via DHCP from my ISP. I
have running a 5.3-beta from Feb. 1st, as this one has the powersaving
fix for athn in HostAP (realised it then, was committed already in
August). This router was running happily 5.2-RELEASE until then, 24/7,
without any issues. However, this night dhclient died unexpectedly and
/var/log/daemon says:

Feb 27 22:05:56 router dhclient[22805]: sysctl retrieval of routes:
Cannot allocate memory
Feb 27 22:05:56 router dhclient[10969]: dispatch_imsg in main: pipe closed

dhclient gone and with it my internet connection, too.

I wonder, what could have caused this. The machine has two AMD APUs and
8GB of memory (dmesg attached) and dhclient shouldn't run out of it (and
it had no issues like that before with 5.1 and 5.2), but maybe i am
totally wrong and looking in the wrong place at all.

I know that Realtek cards have had a great history (joking!) and i try
to avoid them, but this one is onboard and Intel NICs with double
interfaces aren't as cheap as the PCIe one port desktop grade card i
already added.

mbufs are also unremarkable:
marc@router
~ $ netstat -m
133 mbufs in use:
87 mbufs allocated to data
14 mbufs allocated to packet headers
32 mbufs allocated to socket names and addresses
22/356/6144 mbuf 2048 byte clusters in use (current/peak/max)
64/73/6144 mbuf 4096 byte clusters in use (current/peak/max)
0/8/6144 mbuf 8192 byte clusters in use (current/peak/max)
0/8/6144 mbuf 9216 byte clusters in use (current/peak/max)
0/8/6144 mbuf 12288 byte clusters in use (current/peak/max)
0/8/6144 mbuf 16384 byte clusters in use (current/peak/max)
0/8/6144 mbuf 65536 byte clusters in use (current/peak/max)
1284 Kbytes allocated to network (25% in use)
0 requests for memory denied
0 requests for memory delayed
0 calls to protocol drain routines

Maybe someone can shed some light on it and knows which knob to turn.

Cheers,
Marc


Uptime provided for reference, not measurement of private parts ;)

marc@router
~ $ uptime
 6:54PM  up 24 days,  2:41, 1 user, load averages: 0.24, 0.19, 0.1

dmesg:
OpenBSD 5.3-beta (GENERIC.MP) #25: Fri Feb  1 16:29:00 MST 2013
t...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8167034880 (7788MB)
avail mem = 7927136256 (7559MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xeaf40 (52 entries)
bios0: vendor American Megatrends Inc. version 0306 date 08/18/2011
bios0: ASUSTeK Computer INC. E45M1-I DELUXE
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC MCFG HPET SSDT SSDT
acpi0: wakeup devices SBAZ(S4) PS2K(S4) PS2M(S4) UAR1(S4) P0PC(S4)
UHC1(S4) UHC2(S4) USB3(S4) UHC4(S4) USB5(S4) UHC6(S4) UHC7(S4) PE20(S4)
PE21(S4) RLAN(S4) PE22(S4) PE23(S4) BR14(S4) PWRB(S4)
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD E-450 APU with Radeon(tm) HD Graphics, 1650.36 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,SSSE3,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT,ITSC
cpu0: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB
64b/line 16-way L2 cache
cpu0: 8 4MB entries fully associative
cpu0: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu0: apic clock running at 199MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD E-450 APU with Radeon(tm) HD Graphics, 1649.90 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,SSSE3,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT,ITSC
cpu1: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB
64b/line 16-way L2 cache
cpu1: 8 4MB entries fully associative
cpu1: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
ioapic0 at mainbus0: apid 0 pa 0xfec0, version 21, 24 pins
ioapic0: misconfigured as apic 3, remapped to apid 0
acpimcfg0 at acpi0 addr 0xe000, bus 0-255
acpihpet0 at acpi0: 14318180 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 3 (PE20)
acpiprt2 at acpi0: bus 4 (PE21)
acpiprt3 at acpi0: bus -1 (PE22)
acpiprt4 at acpi0: bus -1 (PE23)
acpiprt5 at acpi0: bus -1 (BR15)
acpiprt6 at acpi0: bus -1 (PCE6)
acpiprt7 at acpi0: bus -1 (PCE7)
acpiprt8 at acpi0: bus -1 (PCE8)
acpiprt9 at acpi0: bus 1 (BR14)
acpicpu0 at acpi0: C2, PSS
acpicpu1 at acpi0: C2, PSS
acpibtn0 at acpi0: PWRB
cpu0: 1650 MHz: speeds: 1650 1320 825 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 AMD AMD64 14h Host rev 0x00
vga1 at pci0 dev 1 function 0 ATI Radeon HD 6320 rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
radeondrm0 at vga1: apic 0 

Re: dhclient could not allocate memory

2013-02-28 Thread Marc Peters
On 02/28/2013 06:58 PM, Marc Peters wrote:
 Hi misc,
 
 i am using OpenBSD on my home router connected to cable internet. A re
 nic is facing the wild and gets its public IP via DHCP from my ISP. I
 have running a 5.3-beta from Feb. 1st, as this one has the powersaving
 fix for athn in HostAP (realised it then, was committed already in
 August). This router was running happily 5.2-RELEASE until then, 24/7,
 without any issues. However, this night dhclient died unexpectedly and
 /var/log/daemon says:
 
 Feb 27 22:05:56 router dhclient[22805]: sysctl retrieval of routes:
 Cannot allocate memory
 Feb 27 22:05:56 router dhclient[10969]: dispatch_imsg in main: pipe closed
 
 dhclient gone and with it my internet connection, too.
 
 I wonder, what could have caused this. The machine has two AMD APUs and
 8GB of memory (dmesg attached) and dhclient shouldn't run out of it (and
 it had no issues like that before with 5.1 and 5.2), but maybe i am
 totally wrong and looking in the wrong place at all.
 
 I know that Realtek cards have had a great history (joking!) and i try
 to avoid them, but this one is onboard and Intel NICs with double
 interfaces aren't as cheap as the PCIe one port desktop grade card i
 already added.
 
 mbufs are also unremarkable:
 marc@router
 ~ $ netstat -m
 133 mbufs in use:
 87 mbufs allocated to data
 14 mbufs allocated to packet headers
 32 mbufs allocated to socket names and addresses
 22/356/6144 mbuf 2048 byte clusters in use (current/peak/max)
 64/73/6144 mbuf 4096 byte clusters in use (current/peak/max)
 0/8/6144 mbuf 8192 byte clusters in use (current/peak/max)
 0/8/6144 mbuf 9216 byte clusters in use (current/peak/max)
 0/8/6144 mbuf 12288 byte clusters in use (current/peak/max)
 0/8/6144 mbuf 16384 byte clusters in use (current/peak/max)
 0/8/6144 mbuf 65536 byte clusters in use (current/peak/max)
 1284 Kbytes allocated to network (25% in use)
 0 requests for memory denied
 0 requests for memory delayed
 0 calls to protocol drain routines
 
 Maybe someone can shed some light on it and knows which knob to turn.
 
 Cheers,
 Marc
 
 
 Uptime provided for reference, not measurement of private parts ;)
 
 marc@router
 ~ $ uptime
  6:54PM  up 24 days,  2:41, 1 user, load averages: 0.24, 0.19, 0.1
 
 dmesg:
 OpenBSD 5.3-beta (GENERIC.MP) #25: Fri Feb  1 16:29:00 MST 2013
 t...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
 real mem = 8167034880 (7788MB)
 avail mem = 7927136256 (7559MB)
 mainbus0 at root
 bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xeaf40 (52 entries)
 bios0: vendor American Megatrends Inc. version 0306 date 08/18/2011
 bios0: ASUSTeK Computer INC. E45M1-I DELUXE
 acpi0 at bios0: rev 2
 acpi0: sleep states S0 S3 S4 S5
 acpi0: tables DSDT FACP APIC MCFG HPET SSDT SSDT
 acpi0: wakeup devices SBAZ(S4) PS2K(S4) PS2M(S4) UAR1(S4) P0PC(S4)
 UHC1(S4) UHC2(S4) USB3(S4) UHC4(S4) USB5(S4) UHC6(S4) UHC7(S4) PE20(S4)
 PE21(S4) RLAN(S4) PE22(S4) PE23(S4) BR14(S4) PWRB(S4)
 acpitimer0 at acpi0: 3579545 Hz, 32 bits
 acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
 cpu0 at mainbus0: apid 0 (boot processor)
 cpu0: AMD E-450 APU with Radeon(tm) HD Graphics, 1650.36 MHz
 cpu0:
 FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,SSSE3,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT,ITSC
 cpu0: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB
 64b/line 16-way L2 cache
 cpu0: 8 4MB entries fully associative
 cpu0: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
 cpu0: apic clock running at 199MHz
 cpu1 at mainbus0: apid 1 (application processor)
 cpu1: AMD E-450 APU with Radeon(tm) HD Graphics, 1649.90 MHz
 cpu1:
 FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,SSSE3,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT,ITSC
 cpu1: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB
 64b/line 16-way L2 cache
 cpu1: 8 4MB entries fully associative
 cpu1: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
 ioapic0 at mainbus0: apid 0 pa 0xfec0, version 21, 24 pins
 ioapic0: misconfigured as apic 3, remapped to apid 0
 acpimcfg0 at acpi0 addr 0xe000, bus 0-255
 acpihpet0 at acpi0: 14318180 Hz
 acpiprt0 at acpi0: bus 0 (PCI0)
 acpiprt1 at acpi0: bus 3 (PE20)
 acpiprt2 at acpi0: bus 4 (PE21)
 acpiprt3 at acpi0: bus -1 (PE22)
 acpiprt4 at acpi0: bus -1 (PE23)
 acpiprt5 at acpi0: bus -1 (BR15)
 acpiprt6 at acpi0: bus -1 (PCE6)
 acpiprt7 at acpi0: bus -1 (PCE7)
 acpiprt8 at acpi0: bus -1 (PCE8)
 acpiprt9 at acpi0: bus 1 (BR14)
 acpicpu0 at acpi0: C2, PSS
 acpicpu1 at acpi0: C2, PSS
 acpibtn0 at acpi0: PWRB
 cpu0: 1650 MHz: speeds: 1650 1320 825 MHz
 pci0 at mainbus0 bus 0
 pchb0 at pci0 dev 0 function 0 AMD AMD64 14h Host rev 0x00
 vga1 at pci0 dev 1 function 0 ATI Radeon

Re: Installing Openbsd 5.2 as KVM guest

2013-02-14 Thread Marc Peters
On 02/14/2013 08:54 AM, Xavier Naveira wrote:
 Hi everyone,
 
 I'm trying to install OpenBSD 5.2 as KVM guest but I can't get passed the
 installation process because the disk and the network are not being
 detected correctly.
 
 When configuring the network I'm only presented one network interface
 called 'vlan0', if I select it then I get asked which tag the vlan
 interface will be on, the default is ':1', whatever I choose (default or
 not) I get the message Invalid interface choice: ' '
 
 If I write 'done' leaving the network config for later and answer the
 coming questions when I get to the point where I should configure the disks
 partitions, there is no disk available.
 
 The xml file for virsh look like this:
 
disk type='block' device='disk'
   driver name='qemu' type='raw'/
   source dev='/dev/vgntap02_more/identifiers'/
   target dev='vda' bus='virtio'/
   alias name='virtio0'/
   address type='pci' domain='0x' bus='0x00' slot='0x04'
 function='0x0'/
 /disk
 interface type='bridge'
   mac address='00:50:5x:x5:xx:xx'/
   source bridge='brxxx'/
   target dev='vnet60'/
   model type='virtio'/
   address type='pci' domain='0x' bus='0x00' slot='0x03'
 function='0x0'/
 /interface
 
 This is a managed system so I have no control over the devices used for the
 machine, what I do know is that the harddrive is a SAN volume thus the
 /dev/vgntap02... device.
 
 The hypervisors run on Redhat 5.5
 
 Is it possible at all to install OpenBSD in such a machine?
 
 Thank you!
 
 Xavier
 

Yes, we have it running here (on debian, though), but no virtio-drivers
are used:

disk type='file' device='disk'
  driver name='qemu' type='qcow2'/
  source file='/appdata/virtual_hosts/images/openbsd_dhcp.img'/
  target dev='hda' bus='ide'/
  address type='drive' controller='0' bus='0' unit='0'/
/disk
[snip]
interface type='bridge'
  mac address='52:54:00:51:f8:86'/
  source bridge='br0'/
  target dev='vnet2'/
  model type='e1000'/
  address type='pci' domain='0x' bus='0x00' slot='0x03'
function='0x0'/
/interface

working fine for our purposes (ntp, dns, dhcp).

Marc



Kernel panic with lenovo L420 on -current

2012-12-30 Thread Marc Peters
Hi List,

i am seeing kernel panics on a Lenovo L420 on 5.2 and -current from
28th, December. The machine freezes right at boot time, when acpi gets
loaded. Disabling acpi in UKC lets the system start. I photographed the
ddb, a trace, a ps and produced an acpidump and tarred it together with
a dmesg. It is available at https://www.mpeters.org/lenovo_L420.tar.xz.

Anyone seen this so far? Is it a known problem?

The latest BIOS is from 12/02/12.

Cheers,
Marc

dmesg:

$ dmesg
OpenBSD 5.2-current (GENERIC.MP) #0: Fri Dec 28 19:47:51 CET 2012
r...@trivago-110.trivago.trv:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 4126040064 (3934MB)
avail mem = 3993702400 (3808MB)
User Kernel Config
UKC disable acpi
345 acpi0 disabled
UKC exit
Continuing...
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xe0010 (49 entries)
bios0: vendor LENOVO version 8GET43WW (1.20 ) date 10/25/2012
bios0: LENOVO 78544UG
acpi at bios0 not configured
mpbios0 at bios0: Intel MP Specification 1.4
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz, 2494.67 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,LONG,LAHF,PERF,ITSC
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: apic clock running at 99MHz
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz, 2494.34 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,NXE,LONG,LAHF,PERF,ITSC
cpu1: 256KB 64b/line 8-way L2 cache
mpbios0: bus 0 is type PCI
mpbios0: bus 3 is type PCI
mpbios0: bus 4 is type PCI
mpbios0: bus 9 is type PCI
mpbios0: bus 10 is type ISA
ioapic0 at mainbus0: apid 4 pa 0xfec0, version 20, 24 pins
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 Intel Core 2G Host rev 0x09
vga1 at pci0 dev 2 function 0 Intel HD Graphics 3000 rev 0x09
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp0 at vga1
agp0 at intagp0: aperture at 0xd000, size 0x1000
inteldrm0 at vga1: apic 4 int 16
drm0 at inteldrm0
Intel 6 Series MEI rev 0x04 at pci0 dev 22 function 0 not configured
ehci0 at pci0 dev 26 function 0 Intel 6 Series USB rev 0x04: apic 4 int 16
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 Intel 6 Series HD Audio rev 0x04: msi
azalia0: codecs: Realtek ALC269, Intel/0x2805, using Realtek ALC269
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 Intel 6 Series PCIE rev 0xb4: msi
pci1 at ppb0 bus 2
ppb1 at pci0 dev 28 function 1 Intel 6 Series PCIE rev 0xb4: msi
pci2 at ppb1 bus 3
iwn0 at pci2 dev 0 function 0 Intel Centrino Advanced-N 6205 rev 0x34:
msi, MIMO 2T2R, MoW, address a0:88:b4:10:35:60
ppb2 at pci0 dev 28 function 2 Intel 6 Series PCIE rev 0xb4: msi
isadma0 at isa0
[31/299]
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
wsmouse1 at pms0 mux 0
pms0: Synaptics touchpad, firmware 7.2
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
mtrr: Pentium Pro MTRR support
uhub2 at uhub0 port 1 Intel Rate Matching Hub rev 2.00/0.00 addr 2
ugen0 at uhub2 port 3 UPEK TouchStrip Fingerprint Sensor rev 1.00/0.48
addr 3
ugen1 at uhub2 port 6 Broadcom Corp Broadcom Bluetooth Device rev
2.00/7.48 ad
dr 4
uhub3 at uhub1 port 1 Intel Rate Matching Hub rev 2.00/0.00 addr 2
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
root on sd0a (e99beef79d509726.a) swap on sd0b dump on sd0b



UPDATE: net/openfire

2012-10-22 Thread Marc Peters
Hi List,

trivial diff to update Openfire to 3.7.1 (attached as file because
thunderbird wraps the lines and breaks it).

Tested on i386.

ok?

marc

[demime 1.01d removed an attachment of type text/x-patch which had a name of 
openfire-3.7.1.patch]



Re: UPDATE: net/openfire

2012-10-22 Thread Marc Peters
On 10/22/2012 06:45 PM, Marc Peters wrote:
 Hi List,
 
 trivial diff to update Openfire to 3.7.1 (attached as file because
 thunderbird wraps the lines and breaks it).
 
 Tested on i386.
 
 ok?
 
 marc
 
 [demime 1.01d removed an attachment of type text/x-patch which had a name of 
 openfire-3.7.1.patch]
 
sorry, choosed the wrong list :(



dhcpd sync: tuncated or invalid packet

2012-06-29 Thread Marc Peters
Hi List,

i am using two machines in our network as DHCP servers and want to
synchronise them via the -Y and -y switches. After a while, they get out
of sync and have slight differences in their leasefiles. After
investigating a bit, i activated the sync_debug mode in
/usr/src/usr.sbin/dhcpd/sync.c by setting sync_debug != 0:

int sync_debug = 1;

recompiled dhcpd and installed it. Watching the logs shows, that the
messages aren't received properly:

on sparc64:
 Jun 29 13:42:03 sparci dhcpd[23673]: DHCPREQUEST for 192.168.1.144 from
00:23:12:06:d6:34 via 192.168.1.242
Jun 29 13:42:03 sparci dhcpd[23673]: DHCPACK on 192.168.1.144 to
00:23:12:06:d6:34 via 192.168.1.242
Jun 29 13:42:03 sparci dhcpd[23673]: sending DHCP_SYNC_LEASE for hw
00:23:12:06:d6:34 - ip 192.168.1.144, start 1340970122, end 1343562122
Jun 29 13:42:03 sparci dhcpd[23673]: sending sync message to
192.168.1.240 (192.168.1.240)
Jun 29 13:42:03 sparci dhcpd[23673]: sending sync message to
192.168.1.244 (192.168.1.244)
Jun 29 13:42:03 sparci dhcpd[23673]: 192.168.1.244(sync): truncated or
invalid packet
Jun 29 13:42:03 sparci dhcpd[23673]: DHCPREQUEST for 192.168.1.144 from
00:23:12:06:d6:34 via 192.168.1.242
Jun 29 13:42:03 sparci dhcpd[23673]: DHCPACK on 192.168.1.144 to
00:23:12:06:d6:34 via 192.168.1.242
Jun 29 13:42:03 sparci dhcpd[23673]: sending DHCP_SYNC_LEASE for hw
00:23:12:06:d6:34 - ip 192.168.1.144, start 1340970123, end 1343562123
Jun 29 13:42:03 sparci dhcpd[23673]: sending sync message to
192.168.1.240 (192.168.1.240)
Jun 29 13:42:03 sparci dhcpd[23673]: sending sync message to
192.168.1.244 (192.168.1.244)


on amd64 (virtual):
Jun 29 13:42:03 infra0 dhcpd[21062]: DHCPREQUEST for 192.168.1.144 from
00:23:12:06:d6:34 via 192.168.1.242
Jun 29 13:42:03 infra0 dhcpd[21062]: DHCPACK on 192.168.1.144 to
00:23:12:06:d6:34 via 192.168.1.242
Jun 29 13:42:03 infra0 dhcpd[21062]: sending DHCP_SYNC_LEASE for hw
00:23:12:06:d6:34 - ip 192.168.1.144, start 1340970122, end 1343562122
Jun 29 13:42:03 infra0 dhcpd[21062]: sending sync message to
192.168.1.240 (192.168.1.240)
Jun 29 13:42:03 infra0 dhcpd[21062]: sending sync message to
192.168.1.241 (192.168.1.241)
Jun 29 13:42:03 infra0 dhcpd[21062]: 192.168.1.241(sync): truncated or
invalid packet
Jun 29 13:42:03 infra0 dhcpd[21062]: 192.168.1.241(sync): truncated or
invalid packet

on amd64 (real hardware):
Jun 29 13:42:03 infra1 dhcpd[11844]: 192.168.1.244(sync): truncated or
invalid packet
Jun 29 13:42:03 infra1 dhcpd[11844]: 192.168.1.241(sync): truncated or
invalid packet
Jun 29 13:42:03 infra1 dhcpd[11844]: 192.168.1.241(sync): truncated or
invalid packet

These are logentries from three machines, to rule out anything is
related to the second host running on virtual hardware. The dhcpd syncs
are started in unicast mode with -Y 192.168.1.244 -Y 192.168.1.240 -y
192.168.1.241 (on the sparc64, and vice versa on the other hosts).
Multicast syncs don't change the situation.

Is there anything, i can do about the truncated messages to get this
working as it should?

marc



Re: AMD Zacate E350 (ASUS E35M1-M) dmesg/experiences?

2012-06-01 Thread Marc Peters
On 05/31/2012 05:54 PM, Manolis Tzanidakis wrote:
 Please reply on the list. I'm already subscribed and others might find
 your questions useful. Also, don't send HTML e-mails. Check the lists'
 guidelines.
 
 On Thu (31/05/12), Eugene Yunak wrote:
 Thank you very much, this is super helpful! i am going to buy either
 this board or the E450 one and dmesg is precisely what i needed.

 One question if i may - do you know if it supports boot from USB and
 maybe USB raid 1? (i want to create mirror of usb sticks and install OS
 there, and use all the sata ports for data hdds).
 
 It boots from USB. I installed OBSD this way. I suppose softraid(4)
 should support raid 1 with USB drives/sticks. I don't think it's a good
 idea though.
 

Be aware, that OpenBSD cannot boot from softraid. / needs to be on a
single disk, but can be automatically backuped to an altroot device.

Here is my fstab in a similar setup:

~ $ more /etc/fstab
/dev/sd0a / ffs rw 1 1
/dev/sd0b none swap sw
aad9c166558b757e.d /usr ffs rw,nodev,softdep 1 2
aad9c166558b757e.e /tmp ffs rw,nodev,nosuid,softdep 1 2
aad9c166558b757e.f /home ffs rw,nodev,nosuid,softdep 1 2
aad9c166558b757e.g /var ffs rw,nodev,nosuid,softdep 1 2
/dev/sd1a /altroot ffs xx 0 0

hth,
marc



Re: release failing to build. hardware related?

2012-05-16 Thread Marc Peters
On 05/15/2012 05:43 PM, Otto Moerbeek wrote:
 On Tue, May 15, 2012 at 11:35:59AM -0400, Ted Unangst wrote:
 
 On Tue, May 15, 2012 at 17:03, Marc Peters wrote:
 Hi list,

 i am trying to built a 5.1 release which fails at

 disklabel -w vnd0 floppy576
 disklabel: unknown disk type: floppy576

 Your /etc/disklabel is missing something.
 
 In other words, incomplete ugrade. See upgrade guide: 
 http://www.openbsd.org/faq/upgrade51.html
 
   -Otto
 

Thanks for enlightening me :).

I wonder, why sysmerge is failing on me:

root@router
/tmp # sysmerge -s etc51.tgz -x xetc51.tgz
=== Populating temporary root under /var/tmp/sysmerge.iQVVtZVllw/temproot
=== Starting comparison
=== Comparison complete
=== Checking directory hierarchy permissions (running mtree(8))
=== Removing /var/tmp/sysmerge.iQVVtZVllw
root@router
/tmp # ls /etc/disktab

/etc/disktab
root@router
/tmp # cat /etc/disktab

#   $OpenBSD: disktab,v 1.21 2010/10/19 20:23:53 deraadt Exp $

floppy288|3in|3.5in High Density Floppy, 2.88MB:\
:dt=floppy:ty=floppy:se#512:nt#2:rm#300:ns#36:nc#80:\
:pa#5760:oa#0:ba#4096:fa#512:ta=4.2BSD: \
:pb#5760:ob#0:\
:pc#5760:oc#0:

floppy|floppy3|3in|3.5in High Density Floppy:\
:dt=floppy:ty=floppy:se#512:nt#2:rm#300:ns#18:nc#80:\
:pa#2880:oa#0:ba#4096:fa#512:ta=4.2BSD: \
:pb#2880:ob#0:\
:pc#2880:oc#0:

floppy5|5in|5.25in High Density Floppy:\
:dt=floppy:ty=floppy:se#512:nt#2:rm#300:ns#15:nc#80:\
:pa#2400:oa#0:ba#4096:fa#512:ta=4.2BSD: \
:pb#2400:ob#0:bb#4096:fb#512:\
:pc#2400:oc#0:bc#4096:fc#512:

rdroot|ramdiskroot|RAM-disk root FS image:\
:ty=ramdisk:se#512:nt#2:ns#128:nc#16:\
:pa#3872:oa#0:ta=4.2BSD:ba#4096:fa#512:\
:pb#0:ob#0:tb=swap:\
:pc#3872:oc#0:
root@router
/tmp # tar -xzf etc51.tgz ./etc/disktab
root@router
/tmp # cat etc/disktab
#   $OpenBSD: disktab,v 1.11 2010/07/06 08:26:23 pirofti Exp $

floppy576|3in|3.5in High Density Floppy, 5.76MB:\
:dt=floppy:ty=floppy:se#512:nt#2:rm#300:ns#36:nc#160:\
:pa#11520:oa#0:ba#4096:fa#512:ta=4.2BSD: \
:pb#11520:ob#0:\
:pc#11520:oc#0:

floppy288|3in|3.5in High Density Floppy, 2.88MB:\
:dt=floppy:ty=floppy:se#512:nt#2:rm#300:ns#36:nc#80:\
:pa#5760:oa#0:ba#4096:fa#512:ta=4.2BSD: \
:pb#5760:ob#0:\
:pc#5760:oc#0:

floppy|floppy3|3in|3.5in High Density Floppy:\
:dt=floppy:ty=floppy:se#512:nt#2:rm#300:ns#18:nc#80:\
:pa#2880:oa#0:ba#4096:fa#512:ta=4.2BSD: \
:pb#2880:ob#0:\
:pc#2880:oc#0:

rdroot|ramdiskroot|RAM-disk root FS image:\
:ty=ramdisk:se#512:nt#2:ns#140:nc#16:\
:pa#4480:oa#0:ta=4.2BSD:ba#4480:fa#512:\
:pb#0:ob#0:tb=swap:\
:pc#4480:oc#0:

Shouldn't sysmerge at least ask what to do with the differing files? Am
i doing something?

marc



Re: release failing to build. hardware related?

2012-05-16 Thread Marc Peters
On 05/16/2012 10:46 AM, Dan Harnett wrote:
 On Wed, May 16, 2012 at 10:05:18AM +0200, Marc Peters wrote:
 /tmp # cat /etc/disktab

 #   $OpenBSD: disktab,v 1.21 2010/10/19 20:23:53 deraadt Exp $

 floppy288|3in|3.5in High Density Floppy, 2.88MB:\
 :dt=floppy:ty=floppy:se#512:nt#2:rm#300:ns#36:nc#80:\
 :pa#5760:oa#0:ba#4096:fa#512:ta=4.2BSD: \
 :pb#5760:ob#0:\
 :pc#5760:oc#0:
 [...]
 
 
 You have the disktab file from the i386 arch installed on a amd64
 system.
 

i reinstalled the box as i upgraded it and went to amd64 (mid April).
this was sucked in by my etc-backup. Didn't know, that it would cause
problems to pull this directory in.



Re: release failing to build. hardware related?

2012-05-16 Thread Marc Peters
On 05/16/2012 10:27 AM, Antoine Jacoutot wrote:
 But you can force a full comparison using `-d' as per sysmerge(8).
 

Solved my problems, thank you all.

marc



release failing to build. hardware related?

2012-05-15 Thread Marc Peters
Hi list,

i am trying to built a 5.1 release which fails at

ld -Ttext 0x801001e0 -e start --warn-common -S -x -o bsd
${SYSTEM_HEAD} vers.o ${OBJS}
textdatabss dec hex
4375184 2386680 504624  7266488 6ee0b8
cp
/usr/src/distrib/amd64/ramdisk_cd/../../../sys/arch/amd64/compile/RAMDISK_CD/bsd
bsd
cc  -o rdsetroot
/usr/src/distrib/amd64/ramdisk_cd/../../common/elfrdsetroot.c
/usr/src/distrib/amd64/ramdisk_cd/../../common/elf32.c
/usr/src/distrib/amd64/ramdisk_cd/../../common/elf64.c
cp bsd bsd.rd
/usr/src/distrib/amd64/ramdisk_cd/obj/rdsetroot bsd.rd mr.fs
cp bsd.rd bsd.strip
strip bsd.strip
strip -R .comment bsd.strip
gzip -c9n bsd.strip  bsd.gz
dd if=/dev/zero of=/var/tmp/image.13643 bs=512 count=11520
11520+0 records in
11520+0 records out
5898240 bytes transferred in 0.062 secs (94655048 bytes/sec)
vnconfig -v -c vnd0 /var/tmp/image.13643
vnd0: 5898240 bytes on /var/tmp/image.13643
disklabel -w vnd0 floppy576
disklabel: unknown disk type: floppy576
*** Error code 1

Stop in /usr/src/distrib/amd64/ramdisk_cd (line 30 of
/usr/src/distrib/amd64/ramdisk_cd/../common/Makefile.inc).
*** Error code 1

Stop in /usr/src/distrib/amd64 (line 48 of /usr/share/mk/bsd.subdir.mk).
*** Error code 1

Stop in /usr/src/distrib (line 48 of /usr/share/mk/bsd.subdir.mk).
*** Error code 1

Stop in /usr/src/etc (line 325 of Makefile).

At the end of my dmesg i found

atascsi_passthru_done, timeout
atascsi_passthru_done, timeout
atascsi_passthru_done, timeout
atascsi_passthru_done, timeout
atascsi_passthru_done, timeout
atascsi_passthru_done, timeout

I think the failing build is related to that? This is an Asus E45M1-I
deluxe board (dmesg at the end of this mail). Building kernel, userland
and xenocara went all fine, but release builds fail. X release is
working fine and acutally it's just bsd.rd missing.

Is there anything i can do? System is working fine, it's just failing to
build a full release. Maybe the error is fixed in -current (was there in
5.0, but waited to check with 5.1, as i got the box mid April)?

marc

dmesg:
OpenBSD 5.1 (GENERIC.MP) #207: Sun Feb 12 09:42:14 MST 2012
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8167034880 (7788MB)
avail mem = 7935463424 (7567MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xeaf40 (52 entries)
bios0: vendor American Megatrends Inc. version 0306 date 08/18/2011
bios0: ASUSTeK Computer INC. E45M1-I DELUXE
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC MCFG HPET SSDT SSDT
acpi0: wakeup devices SBAZ(S4) PS2K(S4) PS2M(S4) UAR1(S4) P0PC(S4)
UHC1(S4) UHC2(S4) USB3(S4) UHC4(S4) USB5(S4) UHC6(S4) UHC7(S4) PE20(S4)
PE21(S4) RLAN(S4) PE22(S4) PE23(S4) BR14(S4) PWRB(S4)
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD E-450 APU with Radeon(tm) HD Graphics, 1650.39 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,SSSE3,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT
cpu0: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB
64b/line 16-way L2 cache
cpu0: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu0: apic clock running at 199MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD E-450 APU with Radeon(tm) HD Graphics, 1649.90 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,SSSE3,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT
cpu1: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB
64b/line 16-way L2 cache
cpu1: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
ioapic0 at mainbus0: apid 0 pa 0xfec0, version 21, 24 pins
ioapic0: misconfigured as apic 3, remapped to apid 0
acpimcfg0 at acpi0 addr 0xe000, bus 0-255
acpihpet0 at acpi0: 14318180 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 3 (PE20)
acpiprt2 at acpi0: bus 4 (PE21)
acpiprt3 at acpi0: bus -1 (PE22)
acpiprt4 at acpi0: bus -1 (PE23)
acpiprt5 at acpi0: bus -1 (BR15)
acpiprt6 at acpi0: bus -1 (PCE6)
acpiprt7 at acpi0: bus -1 (PCE7)
acpiprt8 at acpi0: bus -1 (PCE8)
acpiprt9 at acpi0: bus 1 (BR14)
acpicpu0 at acpi0: C2, PSS
acpicpu1 at acpi0: C2, PSS
acpibtn0 at acpi0: PWRB
cpu0: 1649 MHz: speeds: 1650 1320 825 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 AMD AMD64 14h Host rev 0x00
vga1 at pci0 dev 1 function 0 ATI Radeon HD 6320 rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
radeondrm0 at vga1: apic 0 int 18
drm0 at radeondrm0
azalia0 at pci0 dev 1 function 1 ATI Radeon HD 6310 HD Audio rev 0x00: msi
azalia0: no supported codecs
ppb0 at pci0 dev 4 function 0 AMD AMD64 14h PCIE rev 0x00: msi
pci1 at ppb0 bus 1
em0 

no sound with my envy-based card

2012-04-07 Thread Marc Peters

Hi list,

i am using an envy based soundcard which is not functional on a -current 
from yesterday.


dmesg snippet:
envy0 at pci3 dev 6 function 0 IC Ensemble Envy24PT/HT Audio rev 0x01: 
apic 4 int 21

envy0: unknown 1724-based card, 2 inputs, 8 outputs
audio0 at envy0
midi0 at envy0: Envy24 MIDI UART

It is a Prodigy 7.1 HiFi from audiotrak (link in german: 
http://www.dbsys.de/webshop/product_info.php?cPath=21_52products_id=189osCsid=fc122a9b71472c9f2014fd74c2d4c079). 
The manpage says, only a handful of cards are actual supported by envy, 
maybe we can add one more card and i can help with this (in testing 
diffs or otherwise).


pcidump -v:
3:6:0: IC Ensemble Envy24PT/HT Audio
0x: Vendor ID: 1412 Product ID: 1724
0x0004: Command: 0005 Status ID: 0210
0x0008: Class: 04 Subclass: 01 Interface: 00 Revision: 01
0x000c: BIST: 00 Header Type: 00 Latency Timer: 40 Cache Line Size: 00
0x0010: BAR io addr: 0xe800/0x0020
0x0014: BAR io addr: 0xe400/0x0080
0x0018: BAR empty ()
0x001c: BAR empty ()
0x0020: BAR empty ()
0x0024: BAR empty ()
0x0028: Cardbus CIS: 
0x002c: Subsystem Vendor ID: 3138 Product ID: 4154
0x0030: Expansion ROM Base Address: 
0x0038: 
0x003c: Interrupt Pin: 01 Line: 0a Min Gnt: 00 Max Lat: 00
0x0080: Capability 0x01: Power Management

mixerctl -v:
outputs.line0_source=play0  [ line0 line1 play0 ]
outputs.line1_source=play1  [ line0 line1 play1 ]
outputs.line2_source=play2  [ line0 line1 play2 ]
outputs.line3_source=play3  [ line0 line1 play3 ]
outputs.line4_source=play4  [ line0 line1 play4 ]
outputs.line5_source=play5  [ line0 line1 play5 ]
outputs.line6_source=play6  [ line0 line1 play6 ]
outputs.line7_source=play7  [ line0 line1 play7 ]

audioctl:
name=Envy24HT
version=-
config=unknown 1724-ba
encodings=slinear_le:24:4:1
properties=full_duplex,independent
full_duplex=0
fullduplex=0
blocksize=384
hiwat=170
lowat=127
output_muted=0
monitor_gain=0
mode=
play.rate=8000
play.sample_rate=8000
play.channels=1
play.precision=8
play.bps=1
play.msb=1
play.encoding=mulaw
play.gain=127
play.balance=32
play.port=0x0
play.avail_ports=0x0
play.seek=0
play.samples=0
play.eof=0
play.pause=0
play.error=0
play.waiting=0
play.open=0
play.active=0
play.buffer_size=65536
play.block_size=384
play.errors=0
record.rate=8000
record.sample_rate=8000
record.channels=1
record.precision=8
record.bps=1
record.msb=1
record.encoding=mulaw
record.gain=127
record.balance=32
record.port=0x0
record.avail_ports=0x0
record.seek=0
record.samples=0
record.eof=0
record.pause=0
record.error=0
record.waiting=0
record.open=0
record.active=0
record.buffer_size=65536
record.block_size=384
record.errors=0

dmesg:
OpenBSD 5.1-current (GENERIC.MP) #0: Fri Apr  6 18:06:28 CEST 2012
r...@mapet.home:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 4292411392 (4093MB)
avail mem = 4155805696 (3963MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xfcdf0 (57 entries)
bios0: vendor American Megatrends Inc. version V1.14 date 12/10/2010
bios0: MICRO-STAR INTERNATIONAL CO.,LTD MS-7599
acpi0 at bios0: rev 0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC MCFG OEMB SRAT HPET SSDT
acpi0: wakeup devices PCE2(S4) PCE3(S4) PCE4(S4) PCE5(S4) PCE6(S4) 
PCE7(S4) PCE9(S4) PCEA(S4) PCEB(S4) PCEC(S4) SBAZ(S4) PS2K(S3) PS2M(S3) 
P0PC(S4) UHC1(S4) UHC2(S4) UHC3(S4) USB4(S4) UHC5(S4) UHC6(S4) UHC7(S4) 
PWRB(S3)

acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Athlon(tm) II X4 640 Processor, 3007.97 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 
64b/line 16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 16 4MB entries fully 
associative
cpu0: DTLB 48 4KB entries fully associative, 48 4MB entries fully 
associative

cpu0: AMD erratum 721 detected and fixed
cpu0: apic clock running at 200MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD Athlon(tm) II X4 640 Processor, 3007.59 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT
cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 
64b/line 16-way L2 cache
cpu1: ITLB 32 4KB entries fully associative, 16 4MB entries fully 
associative
cpu1: DTLB 48 4KB entries fully associative, 48 4MB entries fully 
associative

cpu1: AMD erratum 721 detected and fixed
cpu2 at mainbus0: apid 2 (application processor)
cpu2: AMD Athlon(tm) 

Problems with outgoing loadbalancing with pppoe(4)

2011-12-28 Thread Marc Peters

Hi List,

i have a problem with multiple DSL Lines and loadbalancing outgoing 
traffic. All traffic leaves only over the first interface pppoe0 and i 
can't figure out why and how to change this. Maybe the problem is, that 
both lines are connected to the same provider and therefore have the 
same host as connecting point.



Routing Table:

~ # netstat -rn
Routing tables

Internet:
DestinationGatewayFlags   Refs  Use   Mtu  Prio 
Iface
defaultXXX.YYY.133.6  UGS012091 - 8 
pppoe0
127/8  127.0.0.1  UGRS   00 33196 8 
lo0
127.0.0.1  127.0.0.1  UH 1  258 33196 4 
lo0
192.168.0/23   link#5 UC180 - 4 
sis0
192.168.0.82   00:19:99:8b:fb:be  UHLc   0 4935 - 4 
sis0
192.168.0.105  00:30:05:9e:24:1b  UHLc   0   16 - 4 
sis0
192.168.0.107  40:01:c6:77:b3:41  UHLc   00 - 4 
sis0
192.168.0.232  00:19:99:a0:3e:65  UHLc   0  576 - 4 
sis0
192.168.1.21   e4:1f:13:62:f2:88  UHLc   0 1387 - 4 
sis0
192.168.1.22   00:15:17:1e:72:d8  UHLc   0 2816 - 4 
sis0
192.168.1.23   78:e7:d1:e3:7f:9a  UHLc   0   34 - 4 
sis0
192.168.1.53   d8:d3:85:63:6e:86  UHLc   1  117 - 4 
sis0
192.168.1.58   68:b5:99:c0:c0:d4  UHLc   0   98 - 4 
sis0
192.168.1.59   d8:d3:85:96:15:d6  UHLc   1  614 - 4 
sis0
192.168.1.98   00:19:99:8e:77:93  UHLc   0  550 - 4 
sis0
192.168.1.111  00:19:99:0f:1b:d4  UHLc   0   10 - 4 
sis0
192.168.1.127  00:30:05:a5:89:d2  UHLc   0 1598 - 4 
sis0
192.168.1.172  00:23:df:fd:a3:ed  UHLc   0  249 - 4 
sis0
192.168.1.179  f0:de:f1:39:f6:8b  UHLc   0   11 - 4 
sis0
192.168.1.241  00:14:4f:d4:a1:84  UHLc   02 - 4 
sis0
192.168.1.243  00:14:4f:d4:a1:8d  UHLc   0  842 - 4 
sis0
192.168.1.250  40:01:c6:40:ae:4f  UHLc   00 - 4 
sis0
192.168.2/24   link#8 UC 10 - 4 
sis3
192.168.2.200:1f:12:46:80:80  UHLc   0 11608502 - 4 
sis3
XXX.YYY.133.6  AAA.BBB.212.232 UH 00 - 4 
pppoe1
224/4  127.0.0.1  URS00 33196 8 
lo0

[snip]

With tcpdump i see all traffic leaving over pppoe0 and nothing on 
pppoe1. Is it even possible with the same provider to do outgoing 
loadbalancing? Maybe someone more experienced than me can point into the 
right direction.



ifconfig:
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 33196
priority: 0
groups: lo
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0xa
inet 127.0.0.1 netmask 0xff00
sis0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr 00:00:24:cc:02:00
priority: 0
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet 192.168.1.2 netmask 0xfe00 broadcast 192.168.1.255
inet6 fe80::200:24ff:fecc:200%sis0 prefixlen 64 scopeid 0x5
sis1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr 00:00:24:cc:02:01
priority: 0
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet6 fe80::200:24ff:fecc:201%sis1 prefixlen 64 scopeid 0x6
sis2: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr 00:00:24:cc:02:02
priority: 0
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet6 fe80::200:24ff:fecc:202%sis2 prefixlen 64 scopeid 0x7
sis3: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr 00:00:24:cc:02:03
priority: 0
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet 192.168.2.1 netmask 0xff00 broadcast 192.168.2.255
inet6 fe80::200:24ff:fecc:203%sis3 prefixlen 64 scopeid 0x8
enc0: flags=0
priority: 0
groups: enc
status: active
pppoe0: flags=8851UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST mtu 1492
priority: 0
dev: sis1 state: session
sid: 0x4f50 PADI retries: 0 PADR retries: 0 time: 5d 00:14:11
sppp: phase network authproto pap authname username
groups: pppoe egress
status: active
inet6 fe80::200:24ff:fec9:2e84%pppoe0 -  prefixlen 64 scopeid 0xb
inet AAA.BBB.216.27 -- XXX.YYY.133.6 netmask 0x
pppoe1: flags=8851UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST mtu 1492
priority: 0
dev: sis2 state: session
sid: 0x368b PADI retries: 0 PADR retries: 0 time: 5d 00:14:21
sppp: phase network authproto pap authname username
groups: pppoe
status: active
inet6 

Re: Problems with outgoing loadbalancing with pppoe(4)

2011-12-28 Thread Marc Peters

On 12/28/2011 07:35 PM, Michel Blais wrote:

You could bound those 2 but your ISP would have to bound them too with
the same protocol so I wouldn't count on that. I'm not even sure OpenBSD
support it since I can't really find anything fast on a google search.

You could do a pf rule to route paquets in round robin for each
connection but that would cause NAT persistance problem. Here a FAQ for
this : http://www.openbsd.org/faq/pf/pools.html


This is what i am trying to do (s. attached pf.conf). I found some 
threads on misc@ and tried to implement the mentioned parts into pf.conf 
(https should only going out on pppoe1, but it doesn't) but this didn't 
work out. I left out the outgoing parts, because we didn't provide any 
services to the internet on that net so outgoing routing to the right 
interface doesn't match here, i think. I had the corresponding NAT-rules 
in the pf.conf before, that didn't work out,too.




You could do a pf rule to do a policy router for a part of your lan is
routed via pppoe1 instead but that also not the best solutions since if
only those routed via pppoe0 use the net, that would still meen pppoe1
unuse.

The best solution is BGP but that not a equal share between those 2.
http://www.openbsd.org/cgi-bin/man.cgi?query=bgpdsektion=8
http://www.openbsd.org/cgi-bin/man.cgi?query=bgpd.confapropos=0sektion=0manpath=OpenBSD+Currentarch=i386format=html


Sorry, but that is not an option for these lines.




Why not contact your ISP to talk with them about possible solution ?


The support from this ISP is shitty at best (yes, these are 'business' 
lines), but it's cheap and so it's a business decision from the 
management...


I wonder, why it's not working for me but some subscribers seem to have 
a working setup for this. But noone mentiones, if it's the same ISP or not.




Michel

Le 2011-12-28 12:41, Marc Peters a icrit :

Hi List,

i have a problem with multiple DSL Lines and loadbalancing outgoing
traffic. All traffic leaves only over the first interface pppoe0 and i
can't figure out why and how to change this. Maybe the problem is,
that both lines are connected to the same provider and therefore have
the same host as connecting point.


Routing Table:

~ # netstat -rn
Routing tables

Internet:
Destination Gateway Flags Refs Use Mtu Prio Iface
default XXX.YYY.133.6 UGS 0 12091 - 8 pppoe0
127/8 127.0.0.1 UGRS 0 0 33196 8 lo0
127.0.0.1 127.0.0.1 UH 1 258 33196 4 lo0
192.168.0/23 link#5 UC 18 0 - 4 sis0
192.168.0.82 00:19:99:8b:fb:be UHLc 0 4935 - 4 sis0
192.168.0.105 00:30:05:9e:24:1b UHLc 0 16 - 4 sis0
192.168.0.107 40:01:c6:77:b3:41 UHLc 0 0 - 4 sis0
192.168.0.232 00:19:99:a0:3e:65 UHLc 0 576 - 4 sis0
192.168.1.21 e4:1f:13:62:f2:88 UHLc 0 1387 - 4 sis0
192.168.1.22 00:15:17:1e:72:d8 UHLc 0 2816 - 4 sis0
192.168.1.23 78:e7:d1:e3:7f:9a UHLc 0 34 - 4 sis0
192.168.1.53 d8:d3:85:63:6e:86 UHLc 1 117 - 4 sis0
192.168.1.58 68:b5:99:c0:c0:d4 UHLc 0 98 - 4 sis0
192.168.1.59 d8:d3:85:96:15:d6 UHLc 1 614 - 4 sis0
192.168.1.98 00:19:99:8e:77:93 UHLc 0 550 - 4 sis0
192.168.1.111 00:19:99:0f:1b:d4 UHLc 0 10 - 4 sis0
192.168.1.127 00:30:05:a5:89:d2 UHLc 0 1598 - 4 sis0
192.168.1.172 00:23:df:fd:a3:ed UHLc 0 249 - 4 sis0
192.168.1.179 f0:de:f1:39:f6:8b UHLc 0 11 - 4 sis0
192.168.1.241 00:14:4f:d4:a1:84 UHLc 0 2 - 4 sis0
192.168.1.243 00:14:4f:d4:a1:8d UHLc 0 842 - 4 sis0
192.168.1.250 40:01:c6:40:ae:4f UHLc 0 0 - 4 sis0
192.168.2/24 link#8 UC 1 0 - 4 sis3
192.168.2.2 00:1f:12:46:80:80 UHLc 0 11608502 - 4 sis3
XXX.YYY.133.6 AAA.BBB.212.232 UH 0 0 - 4 pppoe1
224/4 127.0.0.1 URS 0 0 33196 8 lo0
[snip]

With tcpdump i see all traffic leaving over pppoe0 and nothing on
pppoe1. Is it even possible with the same provider to do outgoing
loadbalancing? Maybe someone more experienced than me can point into
the right direction.


ifconfig:
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 33196
priority: 0
groups: lo
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0xa
inet 127.0.0.1 netmask 0xff00
sis0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr 00:00:24:cc:02:00
priority: 0
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet 192.168.1.2 netmask 0xfe00 broadcast 192.168.1.255
inet6 fe80::200:24ff:fecc:200%sis0 prefixlen 64 scopeid 0x5
sis1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr 00:00:24:cc:02:01
priority: 0
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet6 fe80::200:24ff:fecc:201%sis1 prefixlen 64 scopeid 0x6
sis2: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr 00:00:24:cc:02:02
priority: 0
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet6 fe80::200:24ff:fecc:202%sis2 prefixlen 64 scopeid 0x7
sis3: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr 00:00:24:cc:02:03
priority: 0
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet 192.168.2.1 netmask 0xff00 broadcast 192.168.2.255
inet6 fe80::200:24ff:fecc:203%sis3

Problems with usb on 4.7

2010-08-10 Thread Marc Peters
Hi list,

i updated my OpenBSD box this weekend and it seems, my usb-devices
aren't working anymore; they did before. I updated my 4.6-stable to 4.7
and then to 4.7-stable. I tried a printer, a mouse and a harddisk, none
gets recognized by the system; the harddisk powers on though. is there
any chance, an upgrade to 4.8-beta will fix things for me?

fwiw, i have outputs from my fedora on my notebook when i connect the
devices (don't have a different OpenBSD installation at the moment,
dmesg at the end of this mail).

printer:
usb 1-5: new high speed USB device using ehci_hcd and address 3
usb 1-5: New USB device found, idVendor=04b4, idProduct=6560
usb 1-5: New USB device strings: Mfr=0, Product=0, SerialNumber=0
hub 1-5:1.0: USB hub found
hub 1-5:1.0: 4 ports detected
usb 1-5.1: new full speed USB device using ehci_hcd and address 4
usb 1-5.1: New USB device found, idVendor=0482, idProduct=0011
usb 1-5.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-5.1: Product: Kyocera Mita FS-920
usb 1-5.1: Manufacturer: Kyocera Mita
usb 1-5.1: SerialNumber: XLG5523438
usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x0482
pid 0x0011
usbcore: registered new interface driver usblp

mouse:
usb 5-1: USB disconnect, address 2
usb 5-1: new low speed USB device using uhci_hcd and address 3
usb 5-1: New USB device found, idVendor=046d, idProduct=c043
usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 5-1: Product: USB-PS/2 Optical Mouse
usb 5-1: Manufacturer: Logitech
input: Logitech USB-PS/2 Optical Mouse as
/devices/pci:00/:00:1d.3/usb5/5-1/5-1:1.0/input/input9
generic-usb 0003:046D:C043.0002: input,hidraw0: USB HID v1.10 Mouse
[Logitech USB-PS/2 Optical Mouse] on usb-:00:1d.3-1/input0

harddisk:
usb 1-5: new high speed USB device using ehci_hcd and address 5
usb 1-5: New USB device found, idVendor=04fc, idProduct=0c15
usb 1-5: New USB device strings: Mfr=2, Product=3, SerialNumber=1
usb 1-5: Product: USB to Serial-ATA bridge
usb 1-5: Manufacturer: Sunplus Technology Inc.
usb 1-5: SerialNumber: FUJITSU MHNW9ST7126D12
Initializing USB Mass Storage driver...
scsi2 : usb-storage 1-5:1.0
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
scsi 2:0:0:0: Direct-Access FUJITSU  MHV2120BH PL  PQ: 0 ANSI: 2
sd 2:0:0:0: Attached scsi generic sg2 type 0
sd 2:0:0:0: [sdb] 234441648 512-byte logical blocks: (120 GB/111 GiB)
sd 2:0:0:0: [sdb] Write Protect is off
sd 2:0:0:0: [sdb] Mode Sense: 38 00 00 00
sd 2:0:0:0: [sdb] Assuming drive cache: write through
sd 2:0:0:0: [sdb] Assuming drive cache: write through
 sdb: sdb1
sd 2:0:0:0: [sdb] Assuming drive cache: write through
sd 2:0:0:0: [sdb] Attached SCSI disk

here's the dmesg (i tried all three devices, but none shows up):
~ $ dmesg
OpenBSD 4.7-stable (GENERIC) #1: Sun Aug  8 10:18:26 CEST 2010
r...@xxx:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium III (GenuineIntel 686-class) 1 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
real mem  = 266891264 (254MB)
avail mem = 249896960 (238MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 07/15/02, BIOS32 rev. 0 @ 0xfd880,
SMBIOS rev. 2.31 @ 0xefce0 (77 entries)
bios0: vendor FUJITSU SIEMENS // Phoenix Technologies Ltd. version 4.06
 Rev. 1.12.1215 date 07/15/2002
bios0: FUJITSU SIEMENS SCENIC xS/SCOVERY xS
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
acpi at bios0 function 0x0 not configured
pcibios0 at bios0: rev 2.1 @ 0xfd880/0x780
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdf20/192 (10 entries)
pcibios0: PCI Interrupt Router at 000:31:0 (Intel 82371FB ISA rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc/0xc000! 0xcc000/0x4000! 0xd/0x1800
0xd1800/0x1000 0xd2800/0x4800 0xdf000/0x1000!
cpu0 at mainbus0: (uniprocessor)
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 Intel 82815 Host rev 0x04
vga1 at pci0 dev 2 function 0 Intel 82815 Video rev 0x04
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp0 at vga1
agp0 at intagp0: aperture at 0xf800, size 0x400
ppb0 at pci0 dev 30 function 0 Intel 82801BA Hub-to-PCI rev 0x05
pci1 at ppb0 bus 1
fxp0 at pci1 dev 8 function 0 Intel 82562 rev 0x03, i82562: irq 9,
address 00:30:05:2f:80:de
inphy0 at fxp0 phy 1: i82562EM 10/100 PHY, rev. 0
em0 at pci1 dev 9 function 0 Intel PRO/1000GT (82541GI) rev 0x05: irq
11, address 00:1b:21:3a:2a:53
pciide0 at pci1 dev 11 function 0 CMD Technology SiI3512 SATA rev
0x01: DMA
pciide0: using irq 9 for native-PCI interrupt
pciide0: port 0: device present, speed: 1.5Gb/s
wd0 at pciide0 channel 0 drive 0: WDC WD1000FYPS-01ZKB1
wd0: 16-sector PIO, LBA48, 953869MB, 1953525168 sectors
wd0(pciide0:0:0): using BIOS timings, Ultra-DMA mode 6
ichpcib0 at pci0 dev 31 function 0 Intel 82801BA LPC rev 0x05: 24-bit
timer at 

usb serial controller to donate

2008-06-08 Thread Marc Peters
hi misc.

some time ago i bought a usb to serial controller. after searching the
archives and googling a lot, i found, that i want a profilic driven
controller and nearly every cheap one should run profilic. although i
thought i will be lucky, i got one, which doesn't run as expected
(Logilink USB 2.0 Serial Adapter). the cd has, as usual, only mac and
windows driver on it. the problems i see are:
when i connect to my Soekris 4801 (running -STABLE) from my -CURRENT
laptop (dmesg at the end), it drops directly in to ddb and i can't type
any input. if i reboot it (power off and on again), it starts as usual
and i can see the output but can't do any input on it (e.g. at the boot
prompt or login). the faulty device registers as:

uplcom0 at uhub1 port 1 Prolific Technology Inc. USB-Serial Controller
D rev 1.10/4.00 addr 2
ucom0 at uplcom0

last week i gave another adapter a try, this time from Belkin. i went to
there website and they dropped me to one their local retailer with this one:

http://www.computeruniverse.net/products/90211762.asp?agent=682 (german
computer shop)

this controller works fine and gets recognized at this one:

uplcom0 at uhub3 port 1 Prolific Technology Inc. USB-Serial Controller
rev 1.10/3.00 addr 2
ucom0 at uplcom0

now i can connect and my Soekris doesn't drop into ddb anymore and input
is also fine.

i tested the LogiLink on a windows box and used the vendor's drivers and
hyperterminal and everything works, so this isn't a hardware thing. i am
willing to donate this one (with or without the cd). don't know, if it's
of interest, but this thing also doesn't work on FreeBSD or fedora (with
minicom).

Is anyone interested in this piece of hardware?

cheers,
marc

~ $ dmesg
OpenBSD 4.3-current (GENERIC.MP) #0: Tue Jun  3 11:08:37 CEST 2008
[EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 2145841152 (2046MB)
avail mem = 2072039424 (1976MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0010 (68 entries)
bios0: vendor LENOVO version 79ETE0WW (2.20 ) date 12/07/2007
bios0: LENOVO 2007QPG
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG HPET SLIC BOOT SSDT
SSDT SSDT SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) LURT(S3) DURT(S3) EXP0(S4)
EXP1(S4) EXP2(S4) EXP3(S4) PCI1(S4) USB0(S3) USB1(S3) USB2(S3) USB7(S3)
HDEF(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz, 1995.29 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,xTPR,NXE,LONG
cpu0: 4MB 64b/line 16-way L2 cache
cpu0: apic clock running at 166MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz, 1995.00 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,xTPR,NXE,LONG
cpu1: 4MB 64b/line 16-way L2 cache
ioapic0 at mainbus0 apid 1 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 2, remapped to apid 1
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (AGP_)
acpiprt2 at acpi0: bus 2 (EXP0)
acpiprt3 at acpi0: bus 3 (EXP1)
acpiprt4 at acpi0: bus 4 (EXP2)
acpiprt5 at acpi0: bus 12 (EXP3)
acpiprt6 at acpi0: bus 21 (PCI1)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C2
acpicpu1 at acpi0: C3, C2
acpitz0 at acpi0: critical temperature 127 degC
acpitz1 at acpi0: critical temperature 99 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 not present
acpibat1 at acpi0: BAT1 not present
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
acpidock at acpi0 not configured
cpu0: unknown Enhanced SpeedStep CPU, msr 0x06130c2506000613
cpu0: using only highest and lowest power states
cpu0: Enhanced SpeedStep 1000 MHz (1004 mV): speeds: 2000, 1000 MHz
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0 Intel 82945GM Host rev 0x03
ppb0 at pci0 dev 1 function 0 Intel 82945GM PCIE rev 0x03: apic 1 int
16 (irq 11)
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 ATI Radeon Mobility X1400 rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
agp0 at vga1: no integrated graphics
azalia0 at pci0 dev 27 function 0 Intel 82801GB HD Audio rev 0x02:
apic 1 int 17 (irq 11)
azalia0: codec[s]: Analog Devices/0x1981, Conexant/0x2bfa, using Analog
Devices/0x1981
audio0 at azalia0
ppb1 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x02: apic 1 int
20 (irq 11)
pci2 at ppb1 bus 2
em0 at pci2 dev 0 function 0 Intel PRO/1000MT (82573L) rev 0x00: apic
1 int 16 (irq 11), address 00:16:41:e3:4a:ff
ppb2 at pci0 dev 28 function 1 Intel 82801GB PCIE rev 0x02: apic 1 int
21 (irq 11)
pci3 at ppb2 bus 3
wpi0 at pci3 dev 0 function 0 Intel PRO/Wireless 3945ABG rev 

Re: halt -p does not work with GENERIC.MP on 4.2-STABLE

2008-01-28 Thread Marc Peters

On Fri, 25 Jan 2008 09:43:36 +0100, Pierre Riteau wrote:

 On Jan 25, 2008 9:13 AM, Nicolas Letellier [EMAIL PROTECTED] 

wrote:

 I use OpenBSD 4.2-stable with a core2duo laptop. When I use GENERIC

kernel, 'halt -p' works perfectly. However, when I use GENERIC.MP,
'halt -p' does not work and says :

apm0: APM set power state: interface not connected (3)
the operating system has halted
Please press any key to reboot



You should try with -current. Much work was done on ACPI since 4.2.
And I don't think the developers are interested in these kind of bugs
in -stable.



I can confirm that it doesn't work on a fairly recent snapshot.
It does work with GENERIC but when you do a `halt -p` under
GENERIC.MP you get syncing disks and then something like UHCI
controller halted and then nothing.
This is on a ThinkPad T60 (ACPI only) running amd64.

Jona


same thing on my thinkpad t60 with a recently fetched -current here on
amd64.

dmesg:

~ # dmesg
OpenBSD 4.2-current (GENERIC.MP) #1: Mon Jan 28 12:50:29 CET 2008
[EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 2145841152 (2046MB)
avail mem = 2072260608 (1976MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0010 (68 entries)
bios0: vendor LENOVO version 79ETD4WW (2.14 ) date 06/07/2007
bios0: LENOVO 2007QPG
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG HPET SLIC BOOT SSDT 
SSDT SSDT SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) LURT(S3) DURT(S3) EXP0(S4) 
EXP1(S4) EXP2(S4) EXP3(S4) PCI1(S4) USB0(S3) USB1(S3) USB2(S3) USB7(S3) 
HDEF(S4)

acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz, 1995.29 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,xTPR,NXE,LONG

cpu0: 4MB 64b/line 16-way L2 cache
cpu0: apic clock running at 166MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz, 1995.00 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,xTPR,NXE,LONG

cpu1: 4MB 64b/line 16-way L2 cache
ioapic0 at mainbus0 apid 1 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 2, remapped to apid 1
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (AGP_)
acpiprt2 at acpi0: bus 2 (EXP0)
acpiprt3 at acpi0: bus 3 (EXP1)
acpiprt4 at acpi0: bus 4 (EXP2)
acpiprt5 at acpi0: bus 12 (EXP3)
acpiprt6 at acpi0: bus 21 (PCI1)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C2
acpicpu1 at acpi0: C3, C2
acpitz0 at acpi0: critical temperature 127 degC
acpitz1 at acpi0: critical temperature 99 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model 42T5246 serial 12287 type LION oem SANYO
acpibat1 at acpi0: BAT1 not present
acpiac0 at acpi0: AC unit online
acpidock at acpi0 not configured
cpu0: unknown Enhanced SpeedStep CPU, msr 0x06130c2506000c25
cpu0: using only highest and lowest power states
cpu0: Enhanced SpeedStep 2000 MHz (1292 mV): speeds: 2000, 1000 MHz
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0 Intel 82945GM Host rev 0x03
agp0 at pchb0: no integrated graphics
ppb0 at pci0 dev 1 function 0 Intel 82945GM PCIE rev 0x03: apic 1 int 
16 (irq 11)

pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 ATI Radeon Mobility X1400 rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
azalia0 at pci0 dev 27 function 0 Intel 82801GB HD Audio rev 0x02: 
apic 1 int 17 (irq 11)
azalia0: codec[s]: Analog Devices/0x1981, Conexant/0x2bfa, using Analog 
Devices/0x1981

audio0 at azalia0
ppb1 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x02: apic 1 int 
20 (irq 11)

pci2 at ppb1 bus 2
em0 at pci2 dev 0 function 0 Intel PRO/1000MT (82573L) rev 0x00: apic 
1 int 16 (irq 11), address 00:16:41:e3:4a:ff
ppb2 at pci0 dev 28 function 1 Intel 82801GB PCIE rev 0x02: apic 1 int 
21 (irq 11)

pci3 at ppb2 bus 3
wpi0 at pci3 dev 0 function 0 Intel PRO/Wireless 3945ABG rev 0x02: 
apic 1 int 17 (irq 11), MoW2, address 00:19:d2:07:cf:36
ppb3 at pci0 dev 28 function 2 Intel 82801GB PCIE rev 0x02: apic 1 int 
22 (irq 11)

pci4 at ppb3 bus 4
ppb4 at pci0 dev 28 function 3 Intel 82801GB PCIE rev 0x02: apic 1 int 
23 (irq 11)

pci5 at ppb4 bus 12
uhci0 at pci0 dev 29 function 0 Intel 82801GB USB rev 0x02: apic 1 int 
16 (irq 11)
uhci1 at pci0 dev 29 function 1 Intel 82801GB USB rev 0x02: apic 1 int 
17 (irq 11)
uhci2 at pci0 dev 29 function 2 Intel 82801GB USB rev 0x02: apic 1 int 
18 (irq 11)
uhci3 at pci0 dev 29 function 3 Intel 82801GB USB rev 0x02: apic 1 int 
19 (irq 11)
ehci0 at pci0 dev 29 function 7 Intel 82801GB USB rev 0x02: apic 1 int 
19 (irq 11)

usb0 at ehci0: 

dmesg from lenovo t60

2008-01-17 Thread Marc Peters

hi all, here's the dmesg of my t60 running -current:

~ # dmesg
OpenBSD 4.2-current (GENERIC.MP) #0: Thu Jan 17 11:41:56 CET 2008
[EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 2145841152 (2046MB)
avail mem = 2072272896 (1976MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0010 (68 entries)
bios0: vendor LENOVO version 79ETD4WW (2.14 ) date 06/07/2007
bios0: LENOVO 2007QPG
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG HPET SLIC BOOT SSDT 
SSDT SSDT SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) LURT(S3) DURT(S3) EXP0(S4) 
EXP1(S4) EXP2(S4) EXP3(S4) PCI1(S4) USB0(S3) USB1(S3) USB2(S3) USB7(S3) 
HDEF(S4)

acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz, 1995.28 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,xTPR,NXE,LONG

cpu0: 4MB 64b/line 16-way L2 cache
cpu0: apic clock running at 166MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz, 1995.00 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,xTPR,NXE,LONG

cpu1: 4MB 64b/line 16-way L2 cache
ioapic0 at mainbus0 apid 1 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 2, remapped to apid 1
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (AGP_)
acpiprt2 at acpi0: bus 2 (EXP0)
acpiprt3 at acpi0: bus 3 (EXP1)
acpiprt4 at acpi0: bus 4 (EXP2)
acpiprt5 at acpi0: bus 12 (EXP3)
acpiprt6 at acpi0: bus 21 (PCI1)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C2
acpicpu1 at acpi0: C3, C2
acpitz0 at acpi0: critical temperature 127 degC
acpitz1 at acpi0: critical temperature 99 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 not present
acpibat1 at acpi0: BAT1 not present
acpiac0 at acpi0: AC unit online
acpidock at acpi0 not configured
cpu0: unknown Enhanced SpeedStep CPU, msr 0x06130c2506000c25
cpu0: using only highest and lowest power states
cpu0: Enhanced SpeedStep 2000 MHz (1292 mV): speeds: 2000, 1000 MHz
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0 Intel 82945GM Host rev 0x03
agp0 at pchb0: no integrated graphics
ppb0 at pci0 dev 1 function 0 Intel 82945GM PCIE rev 0x03: apic 1 int 
16 (irq 11)

pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 ATI Radeon Mobility X1400 rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
azalia0 at pci0 dev 27 function 0 Intel 82801GB HD Audio rev 0x02: 
apic 1 int 17 (irq 11)
azalia0: codec[s]: Analog Devices/0x1981, Conexant/0x2bfa, using Analog 
Devices/0x1981

audio0 at azalia0
ppb1 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x02: apic 1 int 
20 (irq 11)

pci2 at ppb1 bus 2
em0 at pci2 dev 0 function 0 Intel PRO/1000MT (82573L) rev 0x00: apic 
1 int 16 (irq 11), address 00:16:41:e3:4a:ff
ppb2 at pci0 dev 28 function 1 Intel 82801GB PCIE rev 0x02: apic 1 int 
21 (irq 11)

pci3 at ppb2 bus 3
wpi0 at pci3 dev 0 function 0 Intel PRO/Wireless 3945ABG rev 0x02: 
apic 1 int 17 (irq 11), MoW2, address 00:19:d2:07:cf:36
ppb3 at pci0 dev 28 function 2 Intel 82801GB PCIE rev 0x02: apic 1 int 
22 (irq 11)

pci4 at ppb3 bus 4
ppb4 at pci0 dev 28 function 3 Intel 82801GB PCIE rev 0x02: apic 1 int 
23 (irq 11)

pci5 at ppb4 bus 12
uhci0 at pci0 dev 29 function 0 Intel 82801GB USB rev 0x02: apic 1 int 
16 (irq 11)
uhci1 at pci0 dev 29 function 1 Intel 82801GB USB rev 0x02: apic 1 int 
17 (irq 11)
uhci2 at pci0 dev 29 function 2 Intel 82801GB USB rev 0x02: apic 1 int 
18 (irq 11)
uhci3 at pci0 dev 29 function 3 Intel 82801GB USB rev 0x02: apic 1 int 
19 (irq 11)
ehci0 at pci0 dev 29 function 7 Intel 82801GB USB rev 0x02: apic 1 int 
19 (irq 11)

usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
ppb5 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0xe2
pci6 at ppb5 bus 21
cbb0 at pci6 dev 0 function 0 TI PCI1510 CardBus rev 0x00: apic 1 int 
16 (irq 11)

cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 22 device 0 cacheline 0x8, lattimer 0xb0
pcmcia0 at cardslot0
pcib0 at pci0 dev 31 function 0 Intel 82801GBM LPC rev 0x02
pciide0 at pci0 dev 31 function 1 Intel 82801GB IDE rev 0x02: DMA, 
channel 0 configured to compatibility, channel 1 configured to compatibility

atapiscsi0 at pciide0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: HL-DT-ST, DVDRAM GSA-4083N, 1.08 SCSI0 
5/cdrom removable

cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 ignored (disabled)
ahci0 at pci0 dev 31 function 2 Intel 82801GBM AHCI rev 0x02: apic 1 
int 16 (irq 11), AHCI 1.1

scsibus1 at ahci0: 32 targets

Re: dmesg from lenovo t60

2008-01-17 Thread Marc Peters

hello ted,

these are sad news, as lenovo has kicked the support of apm since 
t4something and the newer thinkpad are all acpi-only machines. is there 
anything that i, as a non-coder, can do to support the acpi improvement?


cheers,
marc

Ted Unangst schrieb:

On Jan 17, 2008 7:35 AM, Marc Peters [EMAIL PROTECTED] wrote:

suspending the laptop doesn't work at all. neither apm -S or -z or zzz.
/usr/sbin/apmd -d doesn't give any output.


suspend only works with apm, not acpi.




Re: reverse http proxy on OpenBSD (or not)?

2007-01-03 Thread Marc Peters

Soner Tari schrieb:

Hi All,

On my network, ASP sites are served on a Microsoft IIS, and PHP sites
are on OpenBSD Apache, and there is only one Internet connection with a
single IP (all DNS records point to this IP). Since these web servers
run on different hardware/IPs, I need to distribute http requests based
on the requested URL, thus I think I need a reverse http proxy (Q1: am I
right?) running on my firewall (OpenBSD, of course).

So I've found Pound v2.2. I think it works fine, does the job, and is
very simple to configure, with a caveat being that I had to build
openssl again with threads enabled.

I also thought that Apache in reverse proxy mode could do the job, but I
failed to have OpenBSD httpd running in that mode. (Q2: could somebody
point me to a help page which describes how to do that?) (Note that
http://www.apachetutor.org/admin/reverseproxies deals with Apache 2
only. And I'm not sure that would help anyway.)

I could not find another reverse proxy package among OpenBSD
ports/packages (Q3: is there any other reverse proxy package?).


you can configure squid to act as a reverse proxy (it's called 
http-accelerator there). it's in ports and there are packages.




Probably, there is another (or the right) way of doing all this (Q4:
could somebody give any hint?).

Thanks,


hth,
marc



simply priorizing acks

2006-12-17 Thread Marc Peters

hi misc,

i just want to start using altq with simply priorizing the tcp acks (and 
the other lowdelay stuff as it's stated in jaceks great firewallbook). i 
looked in /usr/share/pf/ackpri and added the rules there to my pf.conf. 
i don't know why it doesn't work, maybe i am too blind to see what i am 
doing wrong.

if i add the queue-rules to the ruleset, it stops working.
i am using 4.0 -stable.

maybe someone can hit me with a cluestick, what i am doing wrong.

here's my pf.conf:

#
# Macros#
#
ext_if=pppoe0
int_if=sis0
internal_net=192.168.75.0/24

#
# Tables#
#
table bad-ssh persist
table no-ftpproxy const {XXX.XXX.32.128/25, 192.168.83.0/24}

#
# Options   #
#
set require-order yes
set block-policy drop
set optimization normal
set skip on lo0

#
# Normalization #
#
scrub in all

#
# Queueing  #
#
altq on $ext_if priq bandwidth 100Kb queue { q_pri, q_def }
queue q_pri priority 7
queue q_def priority 1 priq(default)

#
# NAT rules #
#
nat-anchor ftp-proxy/*
rdr-anchor ftp-proxy/*
nat on $ext_if from $int_if:network to any - ($ext_if)
rdr pass on $ext_if proto tcp from any to ($ext_if) port 4000:4100 \
- 192.168.75.30
rdr pass on $ext_if proto tcp from any to ($ext_if) port 6881:6889 \
- 192.168.75.30
rdr pass on $int_if proto tcp from $internal_net to ! no-ftpproxy port 
ftp - 127.0.0.1 port 8021


#
# Ruleset   #
#
block in log all
block in quick on $int_if inet proto tcp from ! 192.168.75.30 to \
! $internal_net port 25
block in quick from bad-ssh

anchor ftp-proxy/*

pass out quick on $ext_if proto tcp from ($ext_if) to any flags S/SA \
keep state queue (q_def, q_pri)
#pass in quick on $ext_if proto tcp from any to ($ext_if) flags S/SA \
#keep state queue (q_def, q_pri)

# ssh von aussen auf machen
pass in on $ext_if proto tcp from any to ($ext_if) port ssh flags S/SA \
keep state (max-src-conn-rate 3/30, overload bad-ssh flush global) \
queue (q_def, q_pri)

pass in on $int_if inet from $internal_net to any modulate state

#pass in on $ext_if inet proto tcp from any to ($ext_if) port 80 keep state

#
# IPSec #
#
pass in proto esp from XXX.XXX.124.34 to ($ext_if)
pass out proto esp from ($ext_if) to XXX.XXX.124.34

pass in on enc0 proto ipencap from XXX.XXX.124.34 to ($ext_if)

pass in on enc0 from 192.168.83.0/24 to 192.168.75.0/24
pass in on enc0 from XXX.XXX.32.128/25 to 192.168.75.20/24

pass in on $ext_if proto udp from XXX.XXX.124.34 port = 500 to \
($ext_if)port = 500
pass out on $ext_if proto udp from ($ext_if) port = 500 to \
XXX.XXX.124.34 port = 500
#

#
# Antispoof #
#
antispoof for $ext_if

please note, that's it's not working, regardless if the rule

#pass in quick on $ext_if proto tcp from any to ($ext_if) flags S/SA \
#keep state queue (q_def, q_pri)

is active or not.

TIA,
marc

FWIW, here's the dmesg of this box:
OpenBSD 4.0-stable (GENERIC) #2: Mon Nov 20 16:48:40 CET 2006
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: AMD Duron(tm) Processor (AuthenticAMD 686-class, 64KB L2 cache) 
1.35 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR

real mem  = 536375296 (523804K)
avail mem = 481329152 (470048K)
using 4256 buffers containing 26923008 bytes (26292K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(00) BIOS, date 08/09/02, BIOS32 rev. 0 @ 
0xfdae0, SMBIOS rev. 2.3 @ 0xf0630 (23 entries)

bios0: ECS K7S5A
apm0 at bios0: Power Management spec V1.2
apm0: AC on, no battery
apm0: flags 30102 dobusy 0 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xf/0x1
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf7950/160 (8 entries)
pcibios0: PCI Interrupt Router at 000:02:0 (SiS 85C503 System rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc/0xc000 0xcc000/0x8000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 SiS 735 PCI rev 0x01
ppb0 at pci0 dev 1 function 0 SiS 86C201 AGP rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 1 function 0 ATI Radeon VE QY rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pcib0 at pci0 dev 2 function 0 SiS 85C503 System rev 0x00
ohci0 at pci0 dev 2 function 2 SiS 5597/5598 USB rev 0x07: irq 11, 
version 1.0, legacy support

usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: SiS OHCI root hub, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
ohci1 at pci0 dev 2 function 3 SiS 5597/5598 USB rev 0x07: irq 10, 
version 1.0, legacy support

usb1 at ohci1: USB revision 1.0
uhub1 at usb1
uhub1: SiS OHCI root hub, rev 1.00/1.00, addr 1
uhub1: 3 ports with 3 removable, self powered
pciide0 at pci0 dev 2 

Re: AMD dual core, deciding factors for a platform?

2006-11-17 Thread Marc Peters

Tonnerre LOMBARD schrieb:

Salut,

On Thu, Nov 16, 2006 at 05:38:58PM +0200, turha turha wrote:

I'm about to build a new box, and thought I'd ask first if there's any
experience with AMD's dual core processors (AM2 or s939). From what I've
read both socket types work as amd64, with bsd and bsd.mp, right?

Any thoughts on which works more stable and faster, i386 vs amd64 arch, and
the benefits of using bsd.mp? What chipsets/MoBos work well?

So mainly I'm interested in comments from people who have tested these, to
see if it's worth the trouble (money) to get dual core for openbsd, is

there

much of an improvement, etc.


I tried 3.9 on a Sun Fire X2100 with a dual core Opteron 146 a while ago,
but OpenBSD only worked every other boot. On some boots, it would just
crash and on the next boot it would do a fsck and then crash and one more
reboot later, it would come up with a corrupt boot sector. :/

Tonnerre



here it is working fine on sunfire X2100, but it's only one processor 
machines, but working fine and fast with amd64 and 4.0


regards,
marc



-stable buggy or hardware flaky?

2006-11-17 Thread Marc Peters

hi folks,

since yesterday i try to build stable out of the cvs-sources from 
anoncvs.de.openbsd.org without success. it crashes every now and then 
during the userland build-process (never during the kernel-build). i 
checked the ram with memtest86 and it showed no errors. i changed the 
harddisk, but the new one shows the same odd behaviour.


cc -O2 -pipe -g -DLIBC_SCCS -DSYSLIBC_SCCS -I/usr/src/lib/libc/include 
-DAPIWARN -DYP -I/usr/src/lib/libc/yp -D__DBINTERFACE_PRIVATE 
-I/usr/src/lib/libc -DRESOLVSORT -DPOSIX_MISTAKE -DFLOATING_POINT -DNLS 
  -c -p /usr/src/lib/libc/gen/_sys_siglist.c -o _sys_siglist.po

cc: Internal error: Segmentation fault (program as)
Please submit a full bug report.
See URL:http://gcc.gnu.org/bugs.html for instructions.
*** Error code 1

Stop in /usr/src/lib/libc.
*** Error code 1

Stop in /usr/src/lib.
*** Error code 1

Stop in /usr/src (line 73 of Makefile).

this time i did a complete checkout from this morning. it stopped with 
segfaults during some libs yesterday, and this morning i even had an 
syntax error during building of the libc.


is the cpu flaky? anything else?

anyone, who can point me in the right direction?

tia,
marc



Re: -stable buggy or hardware flaky?

2006-11-17 Thread Marc Peters

sorry for answering myself, but i forgot the dmesg:

~ $ dmesg
OpenBSD 4.0-current (GENERIC) #1: Wed Nov  8 19:19:54 CET 2006
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium III (GenuineIntel 686-class) 743 MHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE

real mem  = 266870784 (260616K)
avail mem = 235651072 (230128K)
using 3288 buffers containing 13467648 bytes (13152K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(b4) BIOS, date 10/04/00, BIOS32 rev. 0 @ 
0xf0b90, SMBIOS rev. 2.3 @ 0xf28f0 (45 entries)

bios0: ASUSTeK Computer INC. CUSL2
apm0 at bios0: Power Management spec V1.2 (BIOS mgmt disabled)
apm0: APM power management enable: unrecognized device ID (9)
apm0: APM engage (device 1): power management disabled (1)
apm0: AC on, battery charge unknown
apm0: flags b0102 dobusy 0 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xf/0x13c2
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf1300/192 (10 entries)
pcibios0: PCI Interrupt Router at 000:31:0 (Intel 82371FB ISA rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc/0xa000 0xcc000/0x4000!
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel 82815 Hub rev 0x02: rng active, 
8Kb/sec
vga1 at pci0 dev 2 function 0 Intel 82815 Graphics rev 0x02: aperture 
at 0xf800, size 0x400

wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ppb0 at pci0 dev 30 function 0 Intel 82801BA AGP rev 0x01
pci1 at ppb0 bus 1
xl0 at pci1 dev 9 function 0 3Com 3c905 100Base-TX rev 0x00: irq 5, 
address 00:60:08:2d:35:9e

nsphy0 at xl0 phy 24: DP83840 10/100 PHY, rev. 1
ichpcib0 at pci0 dev 31 function 0 Intel 82801BA LPC rev 0x01
pciide0 at pci0 dev 31 function 1 Intel 82801BA IDE rev 0x01: DMA, 
channel 0 wired to compatibility, channel 1 wired to compatibility

wd0 at pciide0 channel 0 drive 0: Maxtor 6L080P0
wd0: 16-sector PIO, LBA, 78167MB, 160086528 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: PIONEER, DVD-ROM DVD-120S, 1.01 SCSI0 
5/cdrom removable

cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 4
uhci0 at pci0 dev 31 function 2 Intel 82801BA USB rev 0x01: irq 7
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
ichiic0 at pci0 dev 31 function 3 Intel 82801BA SMBus rev 0x01: irq 10
iic0 at ichiic0
lm1 at iic0 addr 0x2d: AS99127F
uhci1 at pci0 dev 31 function 4 Intel 82801BA USB rev 0x01: irq 6
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
isa0 at ichpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
biomask ffcd netmask ffed ttymask ffef
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
uhub2 at uhub1 port 2
uhub2: ALCOR Generic USB Hub, rev 1.10/1.00, addr 2
uhub2: 4 ports with 4 removable, self powered
uhidev0 at uhub0 port 2 configuration 1 interface 0
uhidev0: Microsoft Internet Keyboard Pro, rev 1.10/1.14, addr 2, iclass 3/1
ukbd0 at uhidev0: 8 modifier keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev1 at uhub0 port 2 configuration 1 interface 1
uhidev1: Microsoft Internet Keyboard Pro, rev 1.10/1.14, addr 2, iclass 3/0
uhidev1: 2 report ids
uhid0 at uhidev1 reportid 1: input=2, output=0, feature=0
uhid1 at uhidev1 reportid 2: input=1, output=0, feature=0
uhidev2 at uhub0 port 2 configuration 1 interface 2
uhidev2: Microsoft Internet Keyboard Pro, rev 1.10/1.14, addr 2, iclass 3/1
ums0 at uhidev2: 5 buttons and Z dir.
wsmouse0 at ums0 mux 0
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302

Marc Peters schrieb:

hi folks,

since yesterday i try to build stable out of the cvs-sources from 
anoncvs.de.openbsd.org without success. it crashes every now and then 
during the userland build-process (never during the kernel-build). i 
checked the ram with memtest86 and it showed no errors. i changed the 
harddisk, but the new one shows the same odd behaviour.


cc -O2 -pipe -g -DLIBC_SCCS -DSYSLIBC_SCCS -I/usr/src/lib/libc/include 
-DAPIWARN -DYP -I/usr/src/lib/libc/yp -D__DBINTERFACE_PRIVATE 
-I/usr/src/lib/libc -DRESOLVSORT -DPOSIX_MISTAKE -DFLOATING_POINT -DNLS 
  -c -p /usr/src/lib/libc/gen/_sys_siglist.c -o _sys_siglist.po

cc: Internal error: Segmentation fault (program as)
Please submit a full bug report.
See URL:http://gcc.gnu.org/bugs.html

Re: ftp-proxy issues

2006-11-14 Thread Marc Peters

Camiel Dobbelaar schrieb:

On Mon, 13 Nov 2006, Camiel Dobbelaar wrote:


Ok, I think I found something in your original tcpdump:

Nov 11 15:15:04.389556 failinghost.domain.com.ftp  
ftp-proxy.domain.com.48293: P 202:233(31) ack 56 win 46 

   ^^

nop,nop,timestamp 172680957 3630957581 (DF) [tos 0x10]
   : 4510 0053 7066 4000 4006 0292 c2f5 20b4  [EMAIL PROTECTED]@...C5 B4
   0010: c2f5 20fe 0015 bca5 48d1 b99c bc2d 18c1  C5 C..BB%HCB9.B-.C  
   0020: 8018 002e b0fa  0101 080a 0a4a e6fd  B0C:...JCC=

   0030: d86c 040d 3235 3720 222f 2220 6973 2063  C l..257 / is c
   0040: 7572 7265 6e74 2064 6972 6563 746f 7279  urrent directory
   0050: 2e0d


Whoops, and then pine dumped core on me.

What I wanted to say: notice how failinghost shrinks the TCP window to 
just 46 bytes (win 46).  That's not enough to fit the long path of the 
directory change, so that stays in the network buffers of the firewall 
waiting for failinghost to send an ACK with a bigger window size 
(opening up the window).


Looks like failinghost is responsible for the stalled TCP connection.


but i wonder, why it is working from the firewall-host (without proxy), 
from a host in the dmz or if i bypass ftp-proxy from the internal lan.


--
Cam


marc



Re: ftp-proxy issues

2006-11-13 Thread Marc Peters

Camiel Dobbelaar schrieb:


On Mon, 13 Nov 2006, Marc Peters wrote:

this is the output from ftp-proxy:
# /usr/sbin/ftp-proxy -d -D7 
listening on 127.0.0.1 port 8021

#1 accepted connection from 192.168.0.14
#1 FTP session 1/100 started: client 192.168.0.14 to server 194.XXX.XX.180 via
proxy 194.XXX.XX.254
#1 server: 220 194.XXX.XX.180 FTP server ready\r\n
#1 client: USER ftpuser\r\n
#1 server: 331 Password required for ftpuser.\r\n
#1 client: PASS \r\n
#1 server: 230 User ftpuser logged in.\r\n
#1 client: SYST\r\n
#1 server: 215 UNIX Type: L8\r\n
#1 client: FEAT\r\n
#1 server: 211-Features:\n
#1 server:  MDTM\n
#1 server:  REST STREAM\n
#1 server:  SIZE\r\n
#1 server: 211 End\r\n
#1 client: PWD\r\n
#1 server: 257 / is current directory.\r\n
#1 client: CWD internet/foo-com/staging/htdocs/leistungen\r\n


Any idea how much time passed between the previous line and the line 
below? (How long before the client closed?  Did it timeout?)


60 seconds, and the client gives me this message:
421 Service not available, remote server timed out. Connection closed 
(mac osx command line ftp-client)





#1 client close
#1 ending session


That CWD line did not pass out on the DMZ interface?



no it didn't. it is everytime the same, that CWD line didn't pass the 
dmz interface and so the server didn't recieve the command.




Re: ftp-proxy issues

2006-11-13 Thread Marc Peters

Camiel Dobbelaar schrieb:


On Mon, 13 Nov 2006, Marc Peters wrote:

60 seconds, and the client gives me this message:
421 Service not available, remote server timed out. Connection closed (mac osx
command line ftp-client)

That CWD line did not pass out on the DMZ interface?


no it didn't. it is everytime the same, that CWD line didn't pass the dmz
interface and so the server didn't recieve the command.


Because ftp-proxy can log the line, it has completely received it and will 
try to pass it out again. 


I can think of two things that may happen:
(1) it's getting blocked (check pflog)


i did check that before i sent the first mail to the list. if it would 
get blocked, the other transfers to this ftpd wouldn't work either.




(2) libevent may be holding it (can you try setting export 
EVENT_NOKQUEUE=1 and restart ftp-proxy from that shell?  top should 
report select instead of kqueue in the WAIT column)


that didn't change anything



What happens if you remove the rdr for ftp-proxy?  Does the control (port 
21) connection work ok then?




if i remove the ftp-proxy part and connect directly to the server, it is 
working fine:


192.168.0.14 UNKNOWN ftpuser [13/Nov/2006:15:39:05 +0100] CWD 
internet/foo-com/staging/htdocs/leistungen 250 -

192.168.0.14 UNKNOWN ftpuser [13/Nov/2006:15:39:05 +0100] PWD 257 -
192.168.0.14 UNKNOWN ftpuser [13/Nov/2006:15:39:08 +0100] EPRT 
|1|192.168.0.14|49925| 200 -

192.168.0.14 UNKNOWN ftpuser [13/Nov/2006:15:39:08 +0100] LIST -al 226 735



ftp-proxy issues

2006-11-11 Thread Marc Peters

hi folks.

i have issues with the ftp-proxy. i am using openbsd 4.0 which i fetch 
during the release-phase, so i think it is on status of -release. this 
box is the firewall of our network, with three interfaces. xl0 is for 
the internal lan, xl1 is for our dmz and xl2 is connected to internet. 
for all ftp-transactions to the dmz we use the ftp-proxy.
on one server, everything is working fine. on the other server, 
ftp-proxy shows a strange behaviour. let me show you an example, to make 
things clearer.


the working host:
logging in, everythings fine. now if i want to cd some directories 
deeper at once, ftp-proxy is working and contacting the ftp-server, 
which is running proftpd, correctly:


the commands i use:

ftp pwd
257 / is current directory.
ftp cd internet/foo-com/staging/htdocs/leistungen
250 CWD command successful
ftp pwd
257 /internet/foo-com/staging/htdocs/leistungen is current directory.
ftp

here comes the log from proftpd:

194.245.32.254 UNKNOWN ftpuser [11/Nov/2006:15:06:57 +0100] PWD 257 -
194.245.32.254 UNKNOWN ftpuser [11/Nov/2006:15:08:09 +0100] CWD 
internet/foo-com/staging/htdocs/leistungen 250 -

194.245.32.254 UNKNOWN ftpuser [11/Nov/2006:15:08:09 +0100] PWD 257 -

and now the output from the ftp-proxy host i tool with tcpdump -Xttti 
xl0 (lan):
Nov 11 15:08:10.069206 192.168.0.14.49210  workinghost.domain.com.ftp: 
P 128:183(55) ack 403 win 65535 nop,nop,timestamp 74216628 3435911183 
(DF) [tos 0x10]

  : 4510 006b 1f95 4000 4006 23ba c0a8 530e  [EMAIL PROTECTED]@.#B:CB(S.
  0010: c2f5 2082 c03a 0015 0fad 434a eff6 19c4  CC5 .C:...B-CJC/C6.C
  0020: 8018  0ad8  0101 080a 046c 74b4  ..C?C?.C...ltB4
  0030: cccb d80f 4357 4420 696e 7465 726e 6574  CCC.CWD internet
  0040: 2f7a 6569 747a 6272 6579 6572 2d64 652f  /foo-com/
  0050: 7374 st

Nov 11 15:08:10.070428 workinghost.domain.com.ftp  192.168.0.14.49210: 
P 403:431(28) ack 183 win 17376 nop,nop,timestamp 3435911328 74216628 (DF)

  : 4500 0050 7ac4 4000 4006 c8b5 c2f5 2082  [EMAIL PROTECTED]@.CB5CC5 .
  0010: c0a8 530e 0015 c03a eff6 19c4 0fad 4381  CB(S...C:C/C6.C.B-C.
  0020: 8018 43e0 4d63  0101 080a cccb d8a0  ..CC Mc..CCC 
  0030: 046c 74b4 3235 3020 4357 4420 636f 6d6d  .ltB4250 CWD comm

  0040: 616e 6420 7375 6363 6573 7366 756c 0d0a  and successful..

Nov 11 15:08:10.070715 192.168.0.14.49210  workinghost.domain.com.ftp: 
. ack 431 win 65535 nop,nop,timestamp 74216628 3435911328 (DF) [tos 0x10]

  : 4510 0034 1f96 4000 4006 23f0 c0a8 530e  [EMAIL PROTECTED]@.#C0CB(S.
  0010: c2f5 2082 c03a 0015 0fad 4381 eff6 19e0  CC5 .C:...B-C.C/C6.C 
  0020: 8010  43ad  0101 080a 046c 74b4  ..C?C?CB-...ltB4
  0030: cccb d8a0CCC 

Nov 11 15:08:10.072944 192.168.0.14.49210  workinghost.domain.com.ftp: 
P 183:188(5) ack 431 win 65535 nop,nop,timestamp 74216628 3435911328 
(DF) [tos 0x10]

  : 4510 0039 1f97 4000 4006 23ea c0a8 530e  [EMAIL PROTECTED]@.#C*CB(S.
  0010: c2f5 2082 c03a 0015 0fad 4381 eff6 19e0  CC5 .C:...B-C.C/C6.C 
  0020: 8018  a53b  0101 080a 046c 74b4  ..C?C?B%;...ltB4

  0030: cccb d8a0 5057 440d 0a   CCC PWD..

Nov 11 15:08:10.073491 workinghost.domain.com.ftp  192.168.0.14.49210: 
P 431:511(80) ack 188 win 17376 nop,nop,timestamp 3435911328 74216628 (DF)

  : 4500 0084 6e1b 4000 4006 d52a c2f5 2082  [EMAIL PROTECTED]@.C*CC5 .
  0010: c0a8 530e 0015 c03a eff6 19e0 0fad 4386  CB(S...C:C/C6.C .B-C.
  0020: 8018 43e0 58e5  0101 080a cccb d8a0  ..CC XC%..CCC 
  0030: 046c 74b4 3235 3720 222f 696e 7465 726e  .ltB4257 /intern

  0040: 6574 2f7a 6569 747a 6272 6579 6572 2d64  et/foo-com
  0050: 652f /


and the outgoing part on the dmz-interface:

Nov 11 15:08:10.069396 ftp-proxy.domain.com.10146  
workinghost.domain.com.ftp: P 128:183(55) ack 403 win 16384 
nop,nop,timestamp 4038516918 1475073962 (DF)

  : 4500 006b 73e1 4000 4006 ff40 c2f5 20fe  [EMAIL PROTECTED]@[EMAIL 
PROTECTED] C
  0010: c2f5 2082 27a2 0015 8ee7 5ff7 482f c21e  CC5 .'B...C'_C7H/C.
  0020: 8018 4000 13b1  0101 080a f0b6 e0b6  [EMAIL PROTECTED] B6
  0030: 57eb d7aa 4357 4420 696e 7465 726e 6574  WC+CB*CWD internet
  0040: 2f7a 6569 747a 6272 6579 6572 2d64 652f  /foo-com/
  0050: 7374 st

Nov 11 15:08:10.070341 workinghost.domain.com.ftp  
ftp-proxy.domain.com.10146: P 403:431(28) ack 183 win 1448 
nop,nop,timestamp 1475146718 4038516918 (DF) [tos 0x10]

  : 4510 0050 2287 4000 4006 50a6 c2f5 2082  E..P[EMAIL 
PROTECTED]@.PBCC5 .
  0010: c2f5 20fe 0015 27a2 482f c21e 8ee7 602e  CC5 C..'BH/C..C'`.
  0020: 8018 05a8 b8d0  0101 080a 57ec f3de  ...B(B8C..WC,C3C
  0030: f0b6 e0b6 3235 3020 4357 4420 636f 6d6d  C0B6C B6250 CWD comm
  0040: 616e 6420 7375 6363 6573 7366 756c 0d0a  and successful..

Nov 11 15:08:10.073010 ftp-proxy.domain.com.10146  
workinghost.domain.com.ftp: 

Re: ftp-proxy issues

2006-11-11 Thread Marc Peters

hi camiel,

i start it out of /etc/rc.local with these lines (/etc/rc.conf.local 
didn't work for me, for whatever reasons the ftp-proxy didn't start):


/etc/rc.local:
# Start ftp-proxy
if [ -x /usr/sbin/ftp-proxy ]; then
echo -n ' ftp-proxy';   /usr/sbin/ftp-proxy
fi

~ $ cat /etc/rc.conf.local
#ftpproxy_flags= # the proxy will not start, so commented it out.
pf=YES
isakmpd_flags=-K


for the rules of the pf.conf i copy/paste the rules regarding the 
ftp-proxy. the whole pf.conf is very long and not really optimzed, if 
you want it, i can send it to you off list (maybe a second pair of eyes 
can see mistakes i am not aware of):


/etc/pf.conf:
# die anker fuer ftp-proxy
nat-anchor ftp-proxy/*
rdr-anchor ftp-proxy/*

# alle FTP-anfragen auf ftp-proxy umleiten
rdr pass on { $dmz_if, $int_if, $vpn_if } proto tcp from any to any port 
21 - 127.0.0.1 port 8021


# grundsaetzlich alles blocken
block in log all

# und der naechste anker fuer ftp-proxy
anchor ftp-proxy/*

# ftp-proxy regeln
pass in on $dmz_if proto tcp from any to ($dmz_if) user proxy keep state
pass out on {$int_if, $vpn_if} proto tcp from port  49151 user proxy 
keep state


(is the above rule any longer needed?)

these are the proxy rules. what i am wondering about, is that nothing is 
blocked (step-by-step through the directories works, but not the whole 
path) and nothing reaches the interface for our dmz, if i try with the 
whole path, as it does on the other host, where it is working.
oh, i forgot to mention that it doesn't matter if i use the ip-addresses 
to connect or the real hostname, the effect is the same.




Camiel Dobbelaar schrieb:

Can you show your pf.conf?  Did you start ftp-proxy with any options?


On Sat, 11 Nov 2006, Marc Peters wrote:


hi folks.

i have issues with the ftp-proxy. i am using openbsd 4.0 which i fetch during
the release-phase, so i think it is on status of -release. this box is the
firewall of our network, with three interfaces. xl0 is for the internal lan,
xl1 is for our dmz and xl2 is connected to internet. for all ftp-transactions
to the dmz we use the ftp-proxy.
on one server, everything is working fine. on the other server, ftp-proxy
shows a strange behaviour. let me show you an example, to make things clearer.

the working host:
logging in, everythings fine. now if i want to cd some directories deeper at
once, ftp-proxy is working and contacting the ftp-server, which is running
proftpd, correctly:

the commands i use:

ftp pwd
257 / is current directory.
ftp cd internet/foo-com/staging/htdocs/leistungen
250 CWD command successful
ftp pwd
257 /internet/foo-com/staging/htdocs/leistungen is current directory.
ftp

here comes the log from proftpd:

194.245.32.254 UNKNOWN ftpuser [11/Nov/2006:15:06:57 +0100] PWD 257 -
194.245.32.254 UNKNOWN ftpuser [11/Nov/2006:15:08:09 +0100] CWD
internet/foo-com/staging/htdocs/leistungen 250 -
194.245.32.254 UNKNOWN ftpuser [11/Nov/2006:15:08:09 +0100] PWD 257 -

and now the output from the ftp-proxy host i tool with tcpdump -Xttti xl0
(lan):
Nov 11 15:08:10.069206 192.168.0.14.49210  workinghost.domain.com.ftp: P
128:183(55) ack 403 win 65535 nop,nop,timestamp 74216628 3435911183 (DF)
[tos 0x10]
  : 4510 006b 1f95 4000 4006 23ba c0a8 530e  [EMAIL PROTECTED]@.#B:CB(S.
  0010: c2f5 2082 c03a 0015 0fad 434a eff6 19c4  CC5 .C:...B-CJC/C6.C
  0020: 8018  0ad8  0101 080a 046c 74b4  ..C?C?.C...ltB4
  0030: cccb d80f 4357 4420 696e 7465 726e 6574  CCC.CWD internet
  0040: 2f7a 6569 747a 6272 6579 6572 2d64 652f  /foo-com/
  0050: 7374 st

Nov 11 15:08:10.070428 workinghost.domain.com.ftp  192.168.0.14.49210: P
403:431(28) ack 183 win 17376 nop,nop,timestamp 3435911328 74216628 (DF)
  : 4500 0050 7ac4 4000 4006 c8b5 c2f5 2082  [EMAIL PROTECTED]@.CB5CC5 .
  0010: c0a8 530e 0015 c03a eff6 19c4 0fad 4381  CB(S...C:C/C6.C.B-C.
  0020: 8018 43e0 4d63  0101 080a cccb d8a0  ..CC Mc..CCC   0030:
046c 74b4 3235 3020 4357 4420 636f 6d6d  .ltB4250 CWD comm
  0040: 616e 6420 7375 6363 6573 7366 756c 0d0a  and successful..

Nov 11 15:08:10.070715 192.168.0.14.49210  workinghost.domain.com.ftp: . ack
431 win 65535 nop,nop,timestamp 74216628 3435911328 (DF) [tos 0x10]
  : 4510 0034 1f96 4000 4006 23f0 c0a8 530e  [EMAIL PROTECTED]@.#C0CB(S.
  0010: c2f5 2082 c03a 0015 0fad 4381 eff6 19e0  CC5 .C:...B-C.C/C6.C
0020: 8010  43ad  0101 080a 046c 74b4  ..C?C?CB-...ltB4
  0030: cccb d8a0CCC 
Nov 11 15:08:10.072944 192.168.0.14.49210  workinghost.domain.com.ftp: P

183:188(5) ack 431 win 65535 nop,nop,timestamp 74216628 3435911328 (DF) [tos
0x10]
  : 4510 0039 1f97 4000 4006 23ea c0a8 530e  [EMAIL PROTECTED]@.#C*CB(S.
  0010: c2f5 2082 c03a 0015 0fad 4381 eff6 19e0  CC5 .C:...B-C.C/C6.C
0020: 8018  a53b  0101 080a 046c 74b4  ..C?C?B%;...ltB4
  0030: cccb d8a0 5057 440d 0a   CCC PWD..

Nov 11 15:08:10.073491 workinghost.domain.com.ftp

xbase40.tgz needed for php5-gd-5.1.4-no_x11?

2006-11-07 Thread Marc Peters

hello misc@,

is the xbase-package needed, although the package is named with 
no_x11? it complains about a missing freetype-lib (which is already 
discussed in may at misc@ and sometime earlier at ports@), which seems 
to come with xbase.
i am just asking, because i was able to install php5-gd-5.0.5-no_x11 
without the whole X bunch when 3.9 was released (or when i installed php 
on that 3.9 box)


tia,
marc



pppoe connects but not traffic is passing

2006-09-12 Thread Marc Peters

hello misc,

yesterday i wanted to update my openbsd-box @home to -current, as i am 
still running 3.9-current as of march 13th. i downloaded the latest 
snapshot from september 1st and started the upgrade. everything went 
fine, but my the pppoe-connection doesn't let any traffic pass; ping and 
isakmpd tell me, that they have no route to the hosts.
after switching back to my older version and the old hostname.pppoe0 
style everything worked as expected :(.


maybe anyone can point me in the right direction, what i am missing here?

below are my configs, logs and dmesg.

tia,
marc

this is what the old hostname.pppoe0 looks like:
pppoedev rl0
!/sbin/ifconfig rl0 up
!/usr/sbin/spppcontrol \$if myauthproto=pap myauthname=myname 
myauthkey=secret

!/sbin/ifconfig \$if inet 0.0.0.0 0.0.0.1 netmask 0x mtu 1488
!/sbin/route add default 0.0.0.1
link1 up


/etc/hostname.pppoe0:
inet 0.0.0.0 255.255.255.255 0.0.0.1 pppoedev rl0 authproto pap authname 
myname authkey secret up


/etc/hostname.rl0 (the pppoe0-nic):
up

ifconfig:
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 33224
groups: lo
inet 127.0.0.1 netmask 0xff00
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x6
sis0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr 00:0a:e6:10:ee:c0
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet 192.168.75.20 netmask 0xff00 broadcast 192.168.75.255
inet6 fe80::20a:e6ff:fe10:eec0%sis0 prefixlen 64 scopeid 0x1
rl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr 00:50:ba:8f:2e:e9
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet6 fe80::250:baff:fe8f:2ee9%rl0 prefixlen 64 scopeid 0x2
pflog0: flags=141UP,RUNNING,PROMISC mtu 33224
pfsync0: flags=0 mtu 1460
groups: carp
enc0: flags=0 mtu 1536
pppoe0: flags=8851UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST mtu 1492
dev: rl0 state: session
sid: 0xf3d PADI retries: 1 PADR retries: 0 time: 00:16:05
sppp: phase network authproto pap authname ar0632869282
groups: pppoe
inet6 fe80::20a:e6ff:fe10:eec0%pppoe0 -  prefixlen 64 scopeid 0x7
inet 84.62.23.7 -- 0.0.0.1 netmask 0x

route:
Routing tables

Internet:
DestinationGatewayFlagsRefs  UseMtu 
Interface

0.0.0.1defaultUH  00  -   pppoe0
127/8  127.0.0.1  UGRS00  33224   lo0
127.0.0.1  127.0.0.1  UH  10  33224   lo0
192.168.75/24  link#1 UC  20  -   sis0
192.168.75.20  00:0a:e6:10:ee:c0  UHLc1   88  -   lo0
192.168.75.30  00:13:d3:65:a6:c2  UHLc1   101832  -   sis0
224/4  127.0.0.1  URS 00  33224   lo0

Internet6:
DestinationGatewayFlags 
   Refs  UseMtu  Interface
::/104 ::1UGRS 
  00  -   lo0
::/96  ::1UGRS 
  00  -   lo0
::1::1UH 
 120  33224   lo0
::127.0.0.0/104::1UGRS 
  00  -   lo0
::224.0.0.0/100::1UGRS 
  00  -   lo0
::255.0.0.0/104::1UGRS 
  00  -   lo0
:::0.0.0.0/96  ::1UGRS 
  00  -   lo0
2002::/24  ::1UGRS 
  00  -   lo0
2002:7f00::/24 ::1UGRS 
  00  -   lo0
2002:e000::/20 ::1UGRS 
  00  -   lo0
2002:ff00::/24 ::1UGRS 
  00  -   lo0
fe80::/10  ::1UGRS 
  00  -   lo0
fe80::%sis0/64 link#1 UC 
  00  -   sis0
fe80::20a:e6ff:fe10:eec0%sis0  00:0a:e6:10:ee:c0  UHL 
  00  -   lo0
fe80::%rl0/64  link#2 UC 
  00  -   rl0
fe80::250:baff:fe8f:2ee9%rl0   00:50:ba:8f:2e:e9  UHL 
  00  -   lo0
fe80::%lo0/64  fe80::1%lo0U 
  00  -   lo0
fe80::1%lo0link#6 UHL 
  00  -   lo0
fe80::%pppoe0/64   fe80::20a:e6ff:fe10:eec0%pppoe0 U 
   00  -   pppoe0

  1   2   >