Re: Multiple layers of NAT

2009-04-22 Thread Alexander Hall
Lars Nooden wrote:
 Alexander Hall wrote:
 Lars Nooden wrote:
 Sometimes I have to set up a LAN inside a pre-existing NAT'd LAN and
 traffic from the inner LAN (B) does not make it to the Internet or even
 to final, external interface (4).

  +---+ ++
 LAN B ---+ 1 + +  Box2  +
  +  NAT  + +   4+--- Internet
  +  2+--LAN A--+3  NAT  +
  +  Box1 + ++
  +---+ ++

 What kind of generic change is needed in PF to get from LAN B through to
 the outside?
 If the subnets are different, say 192.168.10.0/24 and 192.168.11.0/24,
 and each box does its NAT and 'net.inet.ip.forwarding=1' I cannot see
 anything that would prevent this from working.

 Start by tracing how far the package makes it and what src address it has.
 
 Thanks.
 
 I can ping from LAN B to interface 3 and get a response, but not to 4.
 I can ping (and everything else) from LAN A to interface 4 and the Internet.
 
 I've searched around a bit and see there is something wrong (in general)
 with double NAT

Did that come out correctly? Do you really mean there generally is
something wrong with double nat? If so, I'd say you/they are (doing
it) wrong.

Ping some internet host from a computer at LAN B and run tcpdump for
each interface on each box to see where the packet vanishes.

If you've got pf running with more than the NAT rules, that could very
well be causing you problems too.

 
 -Lars



Re: Multiple layers of NAT

2009-04-22 Thread Janne Johansson

Lars Nooden wrote:

Alexander Hall wrote:

Lars Nooden wrote:

Sometimes I have to set up a LAN inside a pre-existing NAT'd LAN and
traffic from the inner LAN (B) does not make it to the Internet or even
to final, external interface (4).



I've searched around a bit and see there is something wrong (in general)
with double NAT


I dont know where you got that info from, but as long as each NAT is set 
up correctly, there isnt any difference in being NATed once or five times.


In - Out is the same, and as long as you set each NAT up right with the 
fordards, Out - In will be as good/bad as one NAT.




DST Timezone problem

2009-04-22 Thread Mani Malekmohammadi
I am using 4.2-stable and apparently Daylight saving doesn't declared for 
/usr/share/zoneinfo/Iran


Proper handling of DST can be checked by running zdump -v -c 
/usr/share/zoneinfo/Iran.


I'm sorry that our dumb government didn't applied DST for two years 
(2006,2007), they resumed to apply DST from 2008. So i guess that's the 
reason for isdst=0 from 2006 to 2038 in this file.


Corrected version should be:

/usr/share/zoneinfo/Iran  Mon Mar 21 20:30:00 2008 UTC = Tue Mar 22 
01:00:00 2008 IRDT isdst=1



/usr/share/zoneinfo/Iran  Wed Sep 21 19:29:59 2008 UTC = Wed Sep 21 
23:59:59 2008 IRDT isdst=1


And so on for next years.

Cheers,
Mani.



Re: Multiple layers of NAT

2009-04-22 Thread Michiel van Baak
On 09:06, Wed 22 Apr 09, Janne Johansson wrote:
 Lars Nooden wrote:
 Alexander Hall wrote:
 Lars Nooden wrote:
 Sometimes I have to set up a LAN inside a pre-existing NAT'd LAN and
 traffic from the inner LAN (B) does not make it to the Internet or even
 to final, external interface (4).

 I've searched around a bit and see there is something wrong (in general)
 with double NAT

 I dont know where you got that info from, but as long as each NAT is set  
 up correctly, there isnt any difference in being NATed once or five 
 times.

I have seen trouble with 'double nat' too many times in the voip world
to even bother with it anymore.

Ok, most of the times one of the nat devices was a DSL modem, and their
implementation is,. interesting.


 In - Out is the same, and as long as you set each NAT up right with the  
 fordards, Out - In will be as good/bad as one NAT.


-- 

Michiel van Baak
mich...@vanbaak.eu
http://michiel.vanbaak.eu
GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x71C946BD

Why is it drug addicts and computer aficionados are both called users?



Re: DST Timezone problem

2009-04-22 Thread Philip Guenther
On Wed, Apr 22, 2009 at 12:09 AM, Mani Malekmohammadi mm.m...@gmail.com wrote:
 I am using 4.2-stable and apparently Daylight saving doesn't declared for
 /usr/share/zoneinfo/Iran

OpenBSD 4.2 was locked for release before the timezone data
maintainers became aware that the Iranian government had decided to
reinstate DST.  OpenBSD 4.3 and later include the updated timezone
data for Iran.  Timezone database updates are usually not considered
critical and therefore tend not to be merged to the maintenance
branches.

Meanwhile, 4.2 stopped being supported last fall; you should
*strongly* consider updating to a newer version: OpenBSD 4.5 will be
officially released in a matter of days.  If you're comfortable with
using cvs and building the OpenBSD source tree, you could just updated
the /usr/src/share/zoneinfo/ directory to the trunk (using cvs update
-A from within that directory) and then build and install the updated
zone files:
   make cleandir  make  sudo make install


Philip Guenther



Can't install Java plugin on 4.5 -current thanks to openmotif problem

2009-04-22 Thread Tomáš Bodžár
Hi all,

I can't install Java plugin for FF thanks to :

$ sudo pkg_add -vi openmotif
parsing openmotif-2.3.0p0
Dependencies for openmotif-2.3.0p0 resolve to: libiconv-1.12
Can't install openmotif-2.3.0p0: lib not found ICE.8.1
Dependencies for openmotif-2.3.0p0 resolve to: libiconv-1.12
Full dependency tree is libiconv-1.12
ICE.8.1: partial match in /usr/X11R6/lib: major=9, minor=0 (bad major)
found libspec SM.8.0 in /usr/X11R6/lib
found libspec X11.11.1 in /usr/X11R6/lib
found libspec Xau.9.0 in /usr/X11R6/lib
found libspec Xdmcp.9.0 in /usr/X11R6/lib
found libspec Xext.10.0 in /usr/X11R6/lib
found libspec Xft.7.0 in /usr/X11R6/lib
found libspec Xmu.10.0 in /usr/X11R6/lib
found libspec Xp.10.0 in /usr/X11R6/lib
found libspec Xrender.5.0 in /usr/X11R6/lib
found libspec Xt.10.0 in /usr/X11R6/lib
found libspec c.50.1 in /usr/lib
found libspec expat.9.0 in /usr/lib
found libspec fontconfig.6.0 in /usr/X11R6/lib
found libspec freetype.17.0 in /usr/X11R6/lib
found libspec iconv.5.0 in package libiconv-1.12
found libspec z.4.1 in /usr/lib
$


$ make install
===  Checking files for jdk-1.6.0.03
`/usr/distfiles/jdk-6u3-fcs-src-b05-jrl-24_sep_2007.jar' is up to date.
`/usr/distfiles/jdk-6u3-fcs-bin-b05-jrl-24_sep_2007.jar' is up to date.
`/usr/distfiles/jdk-6u3-fcs-mozilla_headers-b05-unix-24_sep_2007.jar'
is up to date.
`/usr/distfiles/bsd-jdk16-patches-4.tar.bz2' is up to date.
 (SHA256) jdk-6u3-fcs-src-b05-jrl-24_sep_2007.jar: OK
 (SHA256) jdk-6u3-fcs-bin-b05-jrl-24_sep_2007.jar: OK
 (SHA256) jdk-6u3-fcs-mozilla_headers-b05-unix-24_sep_2007.jar: OK
 (SHA256) bsd-jdk16-patches-4.tar.bz2: OK
===  jdk-1.6.0.03p6 depends on: openmotif-* - not found
===  Verifying install for openmotif-* in x11/openmotif
===  Checking files for openmotif-2.3.0
 openmotif-2.3.0.tar.gz doesn't seem to exist on this system.
 Fetch 
 ftp://ftp.openbsd.org/pub/OpenBSD/distfiles/openmotif/openmotif-2.3.0.tar.gz.
ftp: Login failed.
ftp: No control connection for command.
ftp: Login failed.
ftp: No control connection for command.
ftp: Can't connect or login to host `ftp.openbsd.org'
 Fetch 
 ftp://ftp.openbsd.org/pub/OpenBSD/distfiles/openmotif/openmotif-2.3.0.tar.gz.
ftp: Login failed.
ftp: No control connection for command.
ftp: Login failed.
ftp: No control connection for command.
ftp: Can't connect or login to host `ftp.openbsd.org'
 Fetch 
 ftp://ftp.usa.openbsd.org/pub/OpenBSD/distfiles/openmotif/openmotif-2.3.0.tar.gz.
ftp: Login failed.
ftp: No control connection for command.
ftp: Login failed.
ftp: No control connection for command.
ftp: Can't connect or login to host `ftp.usa.openbsd.org'
*** Error code 1

Stop in /usr/ports/x11/openmotif (line 2346 of
/usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/x11/openmotif (line 1788 of
/usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/x11/openmotif (line 2001 of
/usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/x11/openmotif (line 1427 of
/usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/x11/openmotif (line 1967 of
/usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/x11/openmotif (line 1457 of
/usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/devel/jdk/1.6 (line 1604 of
/usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/devel/jdk/1.6 (line 2001 of
/usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/devel/jdk/1.6 (line 1427 of
/usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/devel/jdk/1.6 (line 1967 of
/usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/devel/jdk/1.6 (line 1457 of
/usr/ports/infrastructure/mk/bsd.port.mk).
$

How can I resolve it?

-- 
http://www.openbsd.org/lyrics.html



Re: Multiple layers of NAT

2009-04-22 Thread Joakim Aronius
* Michiel van Baak (mich...@vanbaak.info) wrote:
 On 09:06, Wed 22 Apr 09, Janne Johansson wrote:
  Lars Nooden wrote:
  Alexander Hall wrote:
  Lars Nooden wrote:
  Sometimes I have to set up a LAN inside a pre-existing NAT'd LAN and
  traffic from the inner LAN (B) does not make it to the Internet or even
  to final, external interface (4).
 
  I've searched around a bit and see there is something wrong (in general)
  with double NAT
 
  I dont know where you got that info from, but as long as each NAT is set  
  up correctly, there isnt any difference in being NATed once or five 
  times.
 
 I have seen trouble with 'double nat' too many times in the voip world
 to even bother with it anymore.

..and for some protocols you need ALGs in every NAT.
/jkm

 
 Ok, most of the times one of the nat devices was a DSL modem, and their
 implementation is,. interesting.
 
 
  In - Out is the same, and as long as you set each NAT up right with the  
  fordards, Out - In will be as good/bad as one NAT.
 
 
 -- 
 
 Michiel van Baak
 mich...@vanbaak.eu
 http://michiel.vanbaak.eu
 GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x71C946BD
 
 Why is it drug addicts and computer aficionados are both called users?



Re: DST Timezone problem

2009-04-22 Thread Mani Malekmohammadi
Thnx, I just found source in /usr/src/share/zoneinfo/datfiles/asia and 
added fixed rules myself. about upgrading to 4.5 yeah it's in my 
priorities sepcially after ifconfig new scan capabilities for wireless 
access points, which i need a lot.



On Wed, 22 Apr 2009, Philip Guenther wrote:


On Wed, Apr 22, 2009 at 12:09 AM, Mani Malekmohammadi mm.m...@gmail.com wrote:

I am using 4.2-stable and apparently Daylight saving doesn't declared for
/usr/share/zoneinfo/Iran


OpenBSD 4.2 was locked for release before the timezone data
maintainers became aware that the Iranian government had decided to
reinstate DST.  OpenBSD 4.3 and later include the updated timezone
data for Iran.  Timezone database updates are usually not considered
critical and therefore tend not to be merged to the maintenance
branches.

Meanwhile, 4.2 stopped being supported last fall; you should
*strongly* consider updating to a newer version: OpenBSD 4.5 will be
officially released in a matter of days.  If you're comfortable with
using cvs and building the OpenBSD source tree, you could just updated
the /usr/src/share/zoneinfo/ directory to the trunk (using cvs update
-A from within that directory) and then build and install the updated
zone files:
  make cleandir  make  sudo make install


Philip Guenther




isakmpd log file - time in human form?

2009-04-22 Thread Petvalsky, Martin
Hello,

I am debugging an IPsec tunnel by running
isakmpd -L -d -DA=90  /root/scripts/isakmpd.log 21
and I can't find a way how to switch or convert the time to a human
readable form.

Logfile shows:
...
103749.319100 Default log_debug_cmd: log level changed from 0 to 90 for class
0 [priv]
103749.319341 Default log_debug_cmd: log level changed from 0 to 90 for class
1 [priv]
...

The problem I am dealing with happens after a longer time, I suspect
incorrect phase 2 re-establishment so I need to understand the time
records.

Please help me, if you know how.

Thank you,

Martin Petvalsky



Re: Can't install Java plugin on 4.5 -current thanks to openmotif problem

2009-04-22 Thread Vadim Zhukov
On 22 April 2009 P3. 11:51:02 TomC!E! BodEC!r wrote:
 Hi all,

 I can't install Java plugin for FF thanks to :

 $ sudo pkg_add -vi openmotif
 parsing openmotif-2.3.0p0
 Dependencies for openmotif-2.3.0p0 resolve to: libiconv-1.12
 Can't install openmotif-2.3.0p0: lib not found ICE.8.1
 Dependencies for openmotif-2.3.0p0 resolve to: libiconv-1.12
 Full dependency tree is libiconv-1.12
 ICE.8.1: partial match in /usr/X11R6/lib: major=9, minor=0 (bad major)

Package repository is too old. Wait or build package yourself.

 found libspec SM.8.0 in /usr/X11R6/lib
 found libspec X11.11.1 in /usr/X11R6/lib
 found libspec Xau.9.0 in /usr/X11R6/lib
 found libspec Xdmcp.9.0 in /usr/X11R6/lib
 found libspec Xext.10.0 in /usr/X11R6/lib
 found libspec Xft.7.0 in /usr/X11R6/lib
 found libspec Xmu.10.0 in /usr/X11R6/lib
 found libspec Xp.10.0 in /usr/X11R6/lib
 found libspec Xrender.5.0 in /usr/X11R6/lib
 found libspec Xt.10.0 in /usr/X11R6/lib
 found libspec c.50.1 in /usr/lib
 found libspec expat.9.0 in /usr/lib
 found libspec fontconfig.6.0 in /usr/X11R6/lib
 found libspec freetype.17.0 in /usr/X11R6/lib
 found libspec iconv.5.0 in package libiconv-1.12
 found libspec z.4.1 in /usr/lib
 $


 $ make install
 ===  Checking files for jdk-1.6.0.03
 `/usr/distfiles/jdk-6u3-fcs-src-b05-jrl-24_sep_2007.jar' is up to
 date. `/usr/distfiles/jdk-6u3-fcs-bin-b05-jrl-24_sep_2007.jar' is up
 to date.
 `/usr/distfiles/jdk-6u3-fcs-mozilla_headers-b05-unix-24_sep_2007.jar'
 is up to date.
 `/usr/distfiles/bsd-jdk16-patches-4.tar.bz2' is up to date.

  (SHA256) jdk-6u3-fcs-src-b05-jrl-24_sep_2007.jar: OK
  (SHA256) jdk-6u3-fcs-bin-b05-jrl-24_sep_2007.jar: OK
  (SHA256) jdk-6u3-fcs-mozilla_headers-b05-unix-24_sep_2007.jar: OK
  (SHA256) bsd-jdk16-patches-4.tar.bz2: OK

 ===  jdk-1.6.0.03p6 depends on: openmotif-* - not found
 ===  Verifying install for openmotif-* in x11/openmotif
 ===  Checking files for openmotif-2.3.0

  openmotif-2.3.0.tar.gz doesn't seem to exist on this system.
  Fetch
  ftp://ftp.openbsd.org/pub/OpenBSD/distfiles/openmotif/openmotif-2.3
 .0.tar.gz.

 ftp: Login failed.
 ftp: No control connection for command.
 ftp: Login failed.
 ftp: No control connection for command.
 ftp: Can't connect or login to host `ftp.openbsd.org'

  Fetch
  ftp://ftp.openbsd.org/pub/OpenBSD/distfiles/openmotif/openmotif-2.3
 .0.tar.gz.

 ftp: Login failed.
 ftp: No control connection for command.
 ftp: Login failed.
 ftp: No control connection for command.
 ftp: Can't connect or login to host `ftp.openbsd.org'

  Fetch
  ftp://ftp.usa.openbsd.org/pub/OpenBSD/distfiles/openmotif/openmotif
 -2.3.0.tar.gz.

 ftp: Login failed.
 ftp: No control connection for command.
 ftp: Login failed.
 ftp: No control connection for command.
 ftp: Can't connect or login to host `ftp.usa.openbsd.org'
 *** Error code 1

 Stop in /usr/ports/x11/openmotif (line 2346 of
 /usr/ports/infrastructure/mk/bsd.port.mk).
 *** Error code 1

 Stop in /usr/ports/x11/openmotif (line 1788 of
 /usr/ports/infrastructure/mk/bsd.port.mk).
 *** Error code 1

 Stop in /usr/ports/x11/openmotif (line 2001 of
 /usr/ports/infrastructure/mk/bsd.port.mk).
 *** Error code 1

 Stop in /usr/ports/x11/openmotif (line 1427 of
 /usr/ports/infrastructure/mk/bsd.port.mk).
 *** Error code 1

 Stop in /usr/ports/x11/openmotif (line 1967 of
 /usr/ports/infrastructure/mk/bsd.port.mk).
 *** Error code 1

 Stop in /usr/ports/x11/openmotif (line 1457 of
 /usr/ports/infrastructure/mk/bsd.port.mk).
 *** Error code 1

 Stop in /usr/ports/devel/jdk/1.6 (line 1604 of
 /usr/ports/infrastructure/mk/bsd.port.mk).
 *** Error code 1

 Stop in /usr/ports/devel/jdk/1.6 (line 2001 of
 /usr/ports/infrastructure/mk/bsd.port.mk).
 *** Error code 1

 Stop in /usr/ports/devel/jdk/1.6 (line 1427 of
 /usr/ports/infrastructure/mk/bsd.port.mk).
 *** Error code 1

 Stop in /usr/ports/devel/jdk/1.6 (line 1967 of
 /usr/ports/infrastructure/mk/bsd.port.mk).
 *** Error code 1

 Stop in /usr/ports/devel/jdk/1.6 (line 1457 of
 /usr/ports/infrastructure/mk/bsd.port.mk).
 $

 How can I resolve it?



--
  Best wishes,
Vadim Zhukov

A: Because it messes up the way people read text.
Q: Why is a top-posting such a bad thing?



Re: crash when usb device attached on a ThinkPad T60

2009-04-22 Thread LEVAI Daniel
On Wednesday 22 April 2009 11.05.23 Vadim Zhukov wrote:
 On 22 April 2009 c. 12:50:45 LEVAI Daniel wrote:
  Hi!
 
  I can reproduce a crash when attaching an USB multimedia device to my
  ThinkPad T60. I have run the trace in ddb and have the output copied
  by hand. Should I file a PR, or is it ok to post it here, or maybe to
  t...@?
 
  Thanks!
 
  Daniel

 dmesg, please. Did you tried CURRENT? I expirenced similar problemsin the
 past, now it works fine (flash drives, keyboards, mice).
Sorry, I meant to send the dmesg with the crash report to the correct
destination. I'm using -current yes.


--
LIVAI Daniel
PGP key ID = 0x4AC0A4B1
Key fingerprint = D037 03B9 C12D D338 4412  2D83 1373 917A 4AC0 A4B1
OpenBSD 4.5-current (GENERIC.MP) #81: Mon Apr 20 18:47:25 MDT 2009
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Genuine Intel(R) CPU T2400 @ 1.83GHz (GenuineIntel 686-class) 1.83 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,VMX,EST,TM2,xTPR
real mem  = 1072066560 (1022MB)
avail mem = 1028300800 (980MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 08/02/06, BIOS32 rev. 0 @ 0xfd6b0, SMBIOS 
rev. 2.4 @ 0xe0010 (68 entries)
bios0: vendor LENOVO version 79ET66WW (1.10 ) date 08/02/2006
bios0: LENOVO 2007FRG
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG HPET BOOT 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: apic clock running at 166MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Genuine Intel(R) CPU T2400 @ 1.83GHz (GenuineIntel 686-class) 1.83 GHz
cpu1: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,VMX,EST,TM2,xTPR
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 42T4511 serial 21826 type LION oem SANYO
acpibat1 at acpi0: BAT1 not present
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
acpidock at acpi0 not configured
acpivideo at acpi0 not configured
acpivideo at acpi0 not configured
bios0: ROM list: 0xc/0xfe00 0xd/0x1000 0xd1000/0x1000 0xdc000/0x4000! 
0xe/0x1
cpu0: unknown Enhanced SpeedStep CPU, msr 0x06130b2c06000b2c
cpu0: using only highest and lowest power states
cpu0: Enhanced SpeedStep 1833 MHz (1404 mV): speeds: 1833, 1000 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
extent `pciio' (0x0 - 0x), flags=0
 0x1800 - 0x188f
 0x18a8 - 0x18cf
 0x18e0 - 0x18ff
 0x2000 - 0xdfff
extent `pcimem' (0x0 - 0x), flags=0
 0x0 - 0xfff
 0x2000 - 0x9
 0xd2000 - 0xd3fff
 0xdc000 - 0x3fff
 0xd800 - 0xee1f
 0xee40 - 0xee4047ff
 0xf000 - 0xf3ff
 0xfec0 - 0xfec0
 0xfed0 - 0xfed003ff
 0xfed14000 - 0xfed19fff
 0xfed1c000 - 0xfed8
 0xfee0 - 0xfee00fff
 0xff80 - 0x
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
mem address conflict 0xd800/0x800
extent `ppb0 pciio' (0x0 - 0x), flags=0
 0x0 - 0x20ff
 0x3000 - 0x
extent `ppb0 pcimem' (0x0 - 0x), flags=0
 0x0 - 0xee10
 0xee20 - 0x
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)
radeondrm0 at vga1: apic 1 int 16 (irq 11)
drm0 at radeondrm0
azalia0 at pci0 dev 27 function 0 Intel 82801GB HD Audio rev 0x02: apic 1 int 
17 (irq 11)
azalia0: codecs: Analog Devices AD1981HD, Conexant/0x2bfa, using Analog Devices 
AD1981HD
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
extent `ppb1 pciio' (0x0 - 0x), flags=0
 0x0 - 0x301f
 0x4000 - 0x
extent `ppb1 pcimem' (0x0 - 0x), flags=0
 0x0 - 0xee01
 0xee10 - 0x
em0 at pci2 dev 0 function 0 Intel PRO/1000MT (82573L) rev 0x00: apic 1 int 
16 (irq 11), address 00:16:41:aa:d2:70
ppb2 at pci0 dev 28 function 1 Intel 82801GB 

Re: Can't install Java plugin on 4.5 -current thanks to openmotif problem

2009-04-22 Thread Tomáš Bodžár
Yes,but bellow output from pkg_add is output from 'make install' and
end is the same even if I place openmotif file in the /usr/distfiles

Dne 22. duben 2009 11:03 Vadim Zhukov persg...@gmail.com napsal(a):
 On 22 April 2009 P3. 11:51:02 TomC!E! BodEC!r wrote:
 Hi all,

 I can't install Java plugin for FF thanks to :

 $ sudo pkg_add -vi openmotif
 parsing openmotif-2.3.0p0
 Dependencies for openmotif-2.3.0p0 resolve to: libiconv-1.12
 Can't install openmotif-2.3.0p0: lib not found ICE.8.1
 Dependencies for openmotif-2.3.0p0 resolve to: libiconv-1.12
 Full dependency tree is libiconv-1.12
 ICE.8.1: partial match in /usr/X11R6/lib: major=9, minor=0 (bad major)

 Package repository is too old. Wait or build package yourself.

 found libspec SM.8.0 in /usr/X11R6/lib
 found libspec X11.11.1 in /usr/X11R6/lib
 found libspec Xau.9.0 in /usr/X11R6/lib
 found libspec Xdmcp.9.0 in /usr/X11R6/lib
 found libspec Xext.10.0 in /usr/X11R6/lib
 found libspec Xft.7.0 in /usr/X11R6/lib
 found libspec Xmu.10.0 in /usr/X11R6/lib
 found libspec Xp.10.0 in /usr/X11R6/lib
 found libspec Xrender.5.0 in /usr/X11R6/lib
 found libspec Xt.10.0 in /usr/X11R6/lib
 found libspec c.50.1 in /usr/lib
 found libspec expat.9.0 in /usr/lib
 found libspec fontconfig.6.0 in /usr/X11R6/lib
 found libspec freetype.17.0 in /usr/X11R6/lib
 found libspec iconv.5.0 in package libiconv-1.12
 found libspec z.4.1 in /usr/lib
 $


 $ make install
 === B Checking files for jdk-1.6.0.03
 `/usr/distfiles/jdk-6u3-fcs-src-b05-jrl-24_sep_2007.jar' is up to
 date. `/usr/distfiles/jdk-6u3-fcs-bin-b05-jrl-24_sep_2007.jar' is up
 to date.
 `/usr/distfiles/jdk-6u3-fcs-mozilla_headers-b05-unix-24_sep_2007.jar'
 is up to date.
 `/usr/distfiles/bsd-jdk16-patches-4.tar.bz2' is up to date.

  (SHA256) jdk-6u3-fcs-src-b05-jrl-24_sep_2007.jar: OK
  (SHA256) jdk-6u3-fcs-bin-b05-jrl-24_sep_2007.jar: OK
  (SHA256) jdk-6u3-fcs-mozilla_headers-b05-unix-24_sep_2007.jar: OK
  (SHA256) bsd-jdk16-patches-4.tar.bz2: OK

 === B jdk-1.6.0.03p6 depends on: openmotif-* - not found
 === B Verifying install for openmotif-* in x11/openmotif
 === B Checking files for openmotif-2.3.0

  openmotif-2.3.0.tar.gz doesn't seem to exist on this system.
  Fetch
  ftp://ftp.openbsd.org/pub/OpenBSD/distfiles/openmotif/openmotif-2.3
 .0.tar.gz.

 ftp: Login failed.
 ftp: No control connection for command.
 ftp: Login failed.
 ftp: No control connection for command.
 ftp: Can't connect or login to host `ftp.openbsd.org'

  Fetch
  ftp://ftp.openbsd.org/pub/OpenBSD/distfiles/openmotif/openmotif-2.3
 .0.tar.gz.

 ftp: Login failed.
 ftp: No control connection for command.
 ftp: Login failed.
 ftp: No control connection for command.
 ftp: Can't connect or login to host `ftp.openbsd.org'

  Fetch
  ftp://ftp.usa.openbsd.org/pub/OpenBSD/distfiles/openmotif/openmotif
 -2.3.0.tar.gz.

 ftp: Login failed.
 ftp: No control connection for command.
 ftp: Login failed.
 ftp: No control connection for command.
 ftp: Can't connect or login to host `ftp.usa.openbsd.org'
 *** Error code 1

 Stop in /usr/ports/x11/openmotif (line 2346 of
 /usr/ports/infrastructure/mk/bsd.port.mk).
 *** Error code 1

 Stop in /usr/ports/x11/openmotif (line 1788 of
 /usr/ports/infrastructure/mk/bsd.port.mk).
 *** Error code 1

 Stop in /usr/ports/x11/openmotif (line 2001 of
 /usr/ports/infrastructure/mk/bsd.port.mk).
 *** Error code 1

 Stop in /usr/ports/x11/openmotif (line 1427 of
 /usr/ports/infrastructure/mk/bsd.port.mk).
 *** Error code 1

 Stop in /usr/ports/x11/openmotif (line 1967 of
 /usr/ports/infrastructure/mk/bsd.port.mk).
 *** Error code 1

 Stop in /usr/ports/x11/openmotif (line 1457 of
 /usr/ports/infrastructure/mk/bsd.port.mk).
 *** Error code 1

 Stop in /usr/ports/devel/jdk/1.6 (line 1604 of
 /usr/ports/infrastructure/mk/bsd.port.mk).
 *** Error code 1

 Stop in /usr/ports/devel/jdk/1.6 (line 2001 of
 /usr/ports/infrastructure/mk/bsd.port.mk).
 *** Error code 1

 Stop in /usr/ports/devel/jdk/1.6 (line 1427 of
 /usr/ports/infrastructure/mk/bsd.port.mk).
 *** Error code 1

 Stop in /usr/ports/devel/jdk/1.6 (line 1967 of
 /usr/ports/infrastructure/mk/bsd.port.mk).
 *** Error code 1

 Stop in /usr/ports/devel/jdk/1.6 (line 1457 of
 /usr/ports/infrastructure/mk/bsd.port.mk).
 $

 How can I resolve it?



 --
 B Best wishes,
 B  B Vadim Zhukov

 A: Because it messes up the way people read text.
 Q: Why is a top-posting such a bad thing?




--
http://www.openbsd.org/lyrics.html



Re: Can't install Java plugin on 4.5 -current thanks to openmotif problem

2009-04-22 Thread Jacob Meuser
On Wed, Apr 22, 2009 at 11:54:30AM +0200, Tom?? Bod??r wrote:
 Yes,but bellow output from pkg_add is output from 'make install' and
 end is the same even if I place openmotif file in the /usr/distfiles

put it in /usr/ports/distfiles/openmotif/

 Dne 22. duben 2009 11:03 Vadim Zhukov persg...@gmail.com napsal(a):
  On 22 April 2009 P3. 11:51:02 TomC!E! BodEC!r wrote:
  Hi all,
 
  I can't install Java plugin for FF thanks to :
 
  $ sudo pkg_add -vi openmotif
  parsing openmotif-2.3.0p0
  Dependencies for openmotif-2.3.0p0 resolve to: libiconv-1.12
  Can't install openmotif-2.3.0p0: lib not found ICE.8.1
  Dependencies for openmotif-2.3.0p0 resolve to: libiconv-1.12
  Full dependency tree is libiconv-1.12
  ICE.8.1: partial match in /usr/X11R6/lib: major=9, minor=0 (bad major)
 
  Package repository is too old. Wait or build package yourself.
 
  found libspec SM.8.0 in /usr/X11R6/lib
  found libspec X11.11.1 in /usr/X11R6/lib
  found libspec Xau.9.0 in /usr/X11R6/lib
  found libspec Xdmcp.9.0 in /usr/X11R6/lib
  found libspec Xext.10.0 in /usr/X11R6/lib
  found libspec Xft.7.0 in /usr/X11R6/lib
  found libspec Xmu.10.0 in /usr/X11R6/lib
  found libspec Xp.10.0 in /usr/X11R6/lib
  found libspec Xrender.5.0 in /usr/X11R6/lib
  found libspec Xt.10.0 in /usr/X11R6/lib
  found libspec c.50.1 in /usr/lib
  found libspec expat.9.0 in /usr/lib
  found libspec fontconfig.6.0 in /usr/X11R6/lib
  found libspec freetype.17.0 in /usr/X11R6/lib
  found libspec iconv.5.0 in package libiconv-1.12
  found libspec z.4.1 in /usr/lib
  $
 
 
  $ make install
  === B Checking files for jdk-1.6.0.03
  `/usr/distfiles/jdk-6u3-fcs-src-b05-jrl-24_sep_2007.jar' is up to
  date. `/usr/distfiles/jdk-6u3-fcs-bin-b05-jrl-24_sep_2007.jar' is up
  to date.
  `/usr/distfiles/jdk-6u3-fcs-mozilla_headers-b05-unix-24_sep_2007.jar'
  is up to date.
  `/usr/distfiles/bsd-jdk16-patches-4.tar.bz2' is up to date.
 
   (SHA256) jdk-6u3-fcs-src-b05-jrl-24_sep_2007.jar: OK
   (SHA256) jdk-6u3-fcs-bin-b05-jrl-24_sep_2007.jar: OK
   (SHA256) jdk-6u3-fcs-mozilla_headers-b05-unix-24_sep_2007.jar: OK
   (SHA256) bsd-jdk16-patches-4.tar.bz2: OK
 
  === B jdk-1.6.0.03p6 depends on: openmotif-* - not found
  === B Verifying install for openmotif-* in x11/openmotif
  === B Checking files for openmotif-2.3.0
 
   openmotif-2.3.0.tar.gz doesn't seem to exist on this system.
   Fetch
   ftp://ftp.openbsd.org/pub/OpenBSD/distfiles/openmotif/openmotif-2.3
  .0.tar.gz.
 
  ftp: Login failed.
  ftp: No control connection for command.
  ftp: Login failed.
  ftp: No control connection for command.
  ftp: Can't connect or login to host `ftp.openbsd.org'
 
   Fetch
   ftp://ftp.openbsd.org/pub/OpenBSD/distfiles/openmotif/openmotif-2.3
  .0.tar.gz.
 
  ftp: Login failed.
  ftp: No control connection for command.
  ftp: Login failed.
  ftp: No control connection for command.
  ftp: Can't connect or login to host `ftp.openbsd.org'
 
   Fetch
   ftp://ftp.usa.openbsd.org/pub/OpenBSD/distfiles/openmotif/openmotif
  -2.3.0.tar.gz.
 
  ftp: Login failed.
  ftp: No control connection for command.
  ftp: Login failed.
  ftp: No control connection for command.
  ftp: Can't connect or login to host `ftp.usa.openbsd.org'
  *** Error code 1
 
  Stop in /usr/ports/x11/openmotif (line 2346 of
  /usr/ports/infrastructure/mk/bsd.port.mk).
  *** Error code 1
 
  Stop in /usr/ports/x11/openmotif (line 1788 of
  /usr/ports/infrastructure/mk/bsd.port.mk).
  *** Error code 1
 
  Stop in /usr/ports/x11/openmotif (line 2001 of
  /usr/ports/infrastructure/mk/bsd.port.mk).
  *** Error code 1
 
  Stop in /usr/ports/x11/openmotif (line 1427 of
  /usr/ports/infrastructure/mk/bsd.port.mk).
  *** Error code 1
 
  Stop in /usr/ports/x11/openmotif (line 1967 of
  /usr/ports/infrastructure/mk/bsd.port.mk).
  *** Error code 1
 
  Stop in /usr/ports/x11/openmotif (line 1457 of
  /usr/ports/infrastructure/mk/bsd.port.mk).
  *** Error code 1
 
  Stop in /usr/ports/devel/jdk/1.6 (line 1604 of
  /usr/ports/infrastructure/mk/bsd.port.mk).
  *** Error code 1
 
  Stop in /usr/ports/devel/jdk/1.6 (line 2001 of
  /usr/ports/infrastructure/mk/bsd.port.mk).
  *** Error code 1
 
  Stop in /usr/ports/devel/jdk/1.6 (line 1427 of
  /usr/ports/infrastructure/mk/bsd.port.mk).
  *** Error code 1
 
  Stop in /usr/ports/devel/jdk/1.6 (line 1967 of
  /usr/ports/infrastructure/mk/bsd.port.mk).
  *** Error code 1
 
  Stop in /usr/ports/devel/jdk/1.6 (line 1457 of
  /usr/ports/infrastructure/mk/bsd.port.mk).
  $
 
  How can I resolve it?
 
 
 
  --
  B Best wishes,
  B  B Vadim Zhukov
 
  A: Because it messes up the way people read text.
  Q: Why is a top-posting such a bad thing?
 
 
 
 
 --
 http://www.openbsd.org/lyrics.html
 

-- 
jake...@sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org



Re: Can't install Java plugin on 4.5 -current thanks to openmotif problem

2009-04-22 Thread Tomáš Bodžár
It doesn't help.

2009/4/22 Jacob Meuser jake...@sdf.lonestar.org:
 On Wed, Apr 22, 2009 at 11:54:30AM +0200, Tom?? Bod??r wrote:
 Yes,but bellow output from pkg_add is output from 'make install' and
 end is the same even if I place openmotif file in the /usr/distfiles

 put it in /usr/ports/distfiles/openmotif/

 Dne 22. duben 2009 11:03 Vadim Zhukov persg...@gmail.com napsal(a):
  On 22 April 2009 P3. 11:51:02 TomC!E! BodEC!r wrote:
  Hi all,
 
  I can't install Java plugin for FF thanks to :
 
  $ sudo pkg_add -vi openmotif
  parsing openmotif-2.3.0p0
  Dependencies for openmotif-2.3.0p0 resolve to: libiconv-1.12
  Can't install openmotif-2.3.0p0: lib not found ICE.8.1
  Dependencies for openmotif-2.3.0p0 resolve to: libiconv-1.12
  Full dependency tree is libiconv-1.12
  ICE.8.1: partial match in /usr/X11R6/lib: major=9, minor=0 (bad major)
 
  Package repository is too old. Wait or build package yourself.
 
  found libspec SM.8.0 in /usr/X11R6/lib
  found libspec X11.11.1 in /usr/X11R6/lib
  found libspec Xau.9.0 in /usr/X11R6/lib
  found libspec Xdmcp.9.0 in /usr/X11R6/lib
  found libspec Xext.10.0 in /usr/X11R6/lib
  found libspec Xft.7.0 in /usr/X11R6/lib
  found libspec Xmu.10.0 in /usr/X11R6/lib
  found libspec Xp.10.0 in /usr/X11R6/lib
  found libspec Xrender.5.0 in /usr/X11R6/lib
  found libspec Xt.10.0 in /usr/X11R6/lib
  found libspec c.50.1 in /usr/lib
  found libspec expat.9.0 in /usr/lib
  found libspec fontconfig.6.0 in /usr/X11R6/lib
  found libspec freetype.17.0 in /usr/X11R6/lib
  found libspec iconv.5.0 in package libiconv-1.12
  found libspec z.4.1 in /usr/lib
  $
 
 
  $ make install
  === B Checking files for jdk-1.6.0.03
  `/usr/distfiles/jdk-6u3-fcs-src-b05-jrl-24_sep_2007.jar' is up to
  date. `/usr/distfiles/jdk-6u3-fcs-bin-b05-jrl-24_sep_2007.jar' is up
  to date.
  `/usr/distfiles/jdk-6u3-fcs-mozilla_headers-b05-unix-24_sep_2007.jar'
  is up to date.
  `/usr/distfiles/bsd-jdk16-patches-4.tar.bz2' is up to date.
 
   (SHA256) jdk-6u3-fcs-src-b05-jrl-24_sep_2007.jar: OK
   (SHA256) jdk-6u3-fcs-bin-b05-jrl-24_sep_2007.jar: OK
   (SHA256) jdk-6u3-fcs-mozilla_headers-b05-unix-24_sep_2007.jar: OK
   (SHA256) bsd-jdk16-patches-4.tar.bz2: OK
 
  === B jdk-1.6.0.03p6 depends on: openmotif-* - not found
  === B Verifying install for openmotif-* in x11/openmotif
  === B Checking files for openmotif-2.3.0
 
   openmotif-2.3.0.tar.gz doesn't seem to exist on this system.
   Fetch
   ftp://ftp.openbsd.org/pub/OpenBSD/distfiles/openmotif/openmotif-2.3
  .0.tar.gz.
 
  ftp: Login failed.
  ftp: No control connection for command.
  ftp: Login failed.
  ftp: No control connection for command.
  ftp: Can't connect or login to host `ftp.openbsd.org'
 
   Fetch
   ftp://ftp.openbsd.org/pub/OpenBSD/distfiles/openmotif/openmotif-2.3
  .0.tar.gz.
 
  ftp: Login failed.
  ftp: No control connection for command.
  ftp: Login failed.
  ftp: No control connection for command.
  ftp: Can't connect or login to host `ftp.openbsd.org'
 
   Fetch
   ftp://ftp.usa.openbsd.org/pub/OpenBSD/distfiles/openmotif/openmotif
  -2.3.0.tar.gz.
 
  ftp: Login failed.
  ftp: No control connection for command.
  ftp: Login failed.
  ftp: No control connection for command.
  ftp: Can't connect or login to host `ftp.usa.openbsd.org'
  *** Error code 1
 
  Stop in /usr/ports/x11/openmotif (line 2346 of
  /usr/ports/infrastructure/mk/bsd.port.mk).
  *** Error code 1
 
  Stop in /usr/ports/x11/openmotif (line 1788 of
  /usr/ports/infrastructure/mk/bsd.port.mk).
  *** Error code 1
 
  Stop in /usr/ports/x11/openmotif (line 2001 of
  /usr/ports/infrastructure/mk/bsd.port.mk).
  *** Error code 1
 
  Stop in /usr/ports/x11/openmotif (line 1427 of
  /usr/ports/infrastructure/mk/bsd.port.mk).
  *** Error code 1
 
  Stop in /usr/ports/x11/openmotif (line 1967 of
  /usr/ports/infrastructure/mk/bsd.port.mk).
  *** Error code 1
 
  Stop in /usr/ports/x11/openmotif (line 1457 of
  /usr/ports/infrastructure/mk/bsd.port.mk).
  *** Error code 1
 
  Stop in /usr/ports/devel/jdk/1.6 (line 1604 of
  /usr/ports/infrastructure/mk/bsd.port.mk).
  *** Error code 1
 
  Stop in /usr/ports/devel/jdk/1.6 (line 2001 of
  /usr/ports/infrastructure/mk/bsd.port.mk).
  *** Error code 1
 
  Stop in /usr/ports/devel/jdk/1.6 (line 1427 of
  /usr/ports/infrastructure/mk/bsd.port.mk).
  *** Error code 1
 
  Stop in /usr/ports/devel/jdk/1.6 (line 1967 of
  /usr/ports/infrastructure/mk/bsd.port.mk).
  *** Error code 1
 
  Stop in /usr/ports/devel/jdk/1.6 (line 1457 of
  /usr/ports/infrastructure/mk/bsd.port.mk).
  $
 
  How can I resolve it?
 
 
 
  --
  B Best wishes,
  B B B Vadim Zhukov
 
  A: Because it messes up the way people read text.
  Q: Why is a top-posting such a bad thing?
 



 --
 http://www.openbsd.org/lyrics.html


 --
 jake...@sdf.lonestar.org
 SDF Public Access UNIX System - http://sdf.lonestar.org





--
http://www.openbsd.org/lyrics.html



Re: Can't install Java plugin on 4.5 -current thanks to openmotif problem

2009-04-22 Thread Vadim Zhukov
On 22 April 2009 P3. 13:54:30 TomC!E! BodEC!r wrote:
 Yes,but bellow output from pkg_add is output from 'make install' and
 end is the same even if I place openmotif file in the /usr/distfiles

Remove existing package before running make install - it checks for
already compiled package, and installs it if one is found.

I dunno what openmotif file you put in /usr/distfiles (you meant
/usr/ports/distfiles?)

 Dne 22. duben 2009 11:03 Vadim Zhukov persg...@gmail.com napsal(a):
  On 22 April 2009 P3. 11:51:02 TomC!E! BodEC!r wrote:
  Hi all,
 
  I can't install Java plugin for FF thanks to :
 
  $ sudo pkg_add -vi openmotif
  parsing openmotif-2.3.0p0
  Dependencies for openmotif-2.3.0p0 resolve to: libiconv-1.12
  Can't install openmotif-2.3.0p0: lib not found ICE.8.1
  Dependencies for openmotif-2.3.0p0 resolve to: libiconv-1.12
  Full dependency tree is libiconv-1.12
  ICE.8.1: partial match in /usr/X11R6/lib: major=9, minor=0 (bad
  major)
 
  Package repository is too old. Wait or build package yourself.
 
  found libspec SM.8.0 in /usr/X11R6/lib
  found libspec X11.11.1 in /usr/X11R6/lib
  found libspec Xau.9.0 in /usr/X11R6/lib
  found libspec Xdmcp.9.0 in /usr/X11R6/lib
  found libspec Xext.10.0 in /usr/X11R6/lib
  found libspec Xft.7.0 in /usr/X11R6/lib
  found libspec Xmu.10.0 in /usr/X11R6/lib
  found libspec Xp.10.0 in /usr/X11R6/lib
  found libspec Xrender.5.0 in /usr/X11R6/lib
  found libspec Xt.10.0 in /usr/X11R6/lib
  found libspec c.50.1 in /usr/lib
  found libspec expat.9.0 in /usr/lib
  found libspec fontconfig.6.0 in /usr/X11R6/lib
  found libspec freetype.17.0 in /usr/X11R6/lib
  found libspec iconv.5.0 in package libiconv-1.12
  found libspec z.4.1 in /usr/lib
  $
 
 
  $ make install
  === B Checking files for jdk-1.6.0.03
  `/usr/distfiles/jdk-6u3-fcs-src-b05-jrl-24_sep_2007.jar' is up to
  date. `/usr/distfiles/jdk-6u3-fcs-bin-b05-jrl-24_sep_2007.jar' is
  up to date.
  `/usr/distfiles/jdk-6u3-fcs-mozilla_headers-b05-unix-24_sep_2007.ja
 r' is up to date.
  `/usr/distfiles/bsd-jdk16-patches-4.tar.bz2' is up to date.
 
   (SHA256) jdk-6u3-fcs-src-b05-jrl-24_sep_2007.jar: OK
   (SHA256) jdk-6u3-fcs-bin-b05-jrl-24_sep_2007.jar: OK
   (SHA256) jdk-6u3-fcs-mozilla_headers-b05-unix-24_sep_2007.jar:
   OK (SHA256) bsd-jdk16-patches-4.tar.bz2: OK
 
  === B jdk-1.6.0.03p6 depends on: openmotif-* - not found
  === B Verifying install for openmotif-* in x11/openmotif
  === B Checking files for openmotif-2.3.0
 
   openmotif-2.3.0.tar.gz doesn't seem to exist on this system.
   Fetch
   ftp://ftp.openbsd.org/pub/OpenBSD/distfiles/openmotif/openmotif-
  2.3 .0.tar.gz.
 
  ftp: Login failed.
  ftp: No control connection for command.
  ftp: Login failed.
  ftp: No control connection for command.
  ftp: Can't connect or login to host `ftp.openbsd.org'
 
   Fetch
   ftp://ftp.openbsd.org/pub/OpenBSD/distfiles/openmotif/openmotif-
  2.3 .0.tar.gz.
 
  ftp: Login failed.
  ftp: No control connection for command.
  ftp: Login failed.
  ftp: No control connection for command.
  ftp: Can't connect or login to host `ftp.openbsd.org'
 
   Fetch
   ftp://ftp.usa.openbsd.org/pub/OpenBSD/distfiles/openmotif/openmo
  tif -2.3.0.tar.gz.
 
  ftp: Login failed.
  ftp: No control connection for command.
  ftp: Login failed.
  ftp: No control connection for command.
  ftp: Can't connect or login to host `ftp.usa.openbsd.org'
  *** Error code 1
 
  Stop in /usr/ports/x11/openmotif (line 2346 of
  /usr/ports/infrastructure/mk/bsd.port.mk).
  *** Error code 1
 
  Stop in /usr/ports/x11/openmotif (line 1788 of
  /usr/ports/infrastructure/mk/bsd.port.mk).
  *** Error code 1
 
  Stop in /usr/ports/x11/openmotif (line 2001 of
  /usr/ports/infrastructure/mk/bsd.port.mk).
  *** Error code 1
 
  Stop in /usr/ports/x11/openmotif (line 1427 of
  /usr/ports/infrastructure/mk/bsd.port.mk).
  *** Error code 1
 
  Stop in /usr/ports/x11/openmotif (line 1967 of
  /usr/ports/infrastructure/mk/bsd.port.mk).
  *** Error code 1
 
  Stop in /usr/ports/x11/openmotif (line 1457 of
  /usr/ports/infrastructure/mk/bsd.port.mk).
  *** Error code 1
 
  Stop in /usr/ports/devel/jdk/1.6 (line 1604 of
  /usr/ports/infrastructure/mk/bsd.port.mk).
  *** Error code 1
 
  Stop in /usr/ports/devel/jdk/1.6 (line 2001 of
  /usr/ports/infrastructure/mk/bsd.port.mk).
  *** Error code 1
 
  Stop in /usr/ports/devel/jdk/1.6 (line 1427 of
  /usr/ports/infrastructure/mk/bsd.port.mk).
  *** Error code 1
 
  Stop in /usr/ports/devel/jdk/1.6 (line 1967 of
  /usr/ports/infrastructure/mk/bsd.port.mk).
  *** Error code 1
 
  Stop in /usr/ports/devel/jdk/1.6 (line 1457 of
  /usr/ports/infrastructure/mk/bsd.port.mk).
  $
 
  How can I resolve it?
 
  --
  B Best wishes,
  B  B Vadim Zhukov
 
  A: Because it messes up the way people read text.
  Q: Why is a top-posting such a bad thing?



--
  Best wishes,
Vadim Zhukov

A: Because it messes up the way people read text.
Q: Why is a top-posting such a bad thing?



Re: Can't install Java plugin on 4.5 -current thanks to openmotif problem

2009-04-22 Thread Jacob Meuser
On Wed, Apr 22, 2009 at 12:36:06PM +0200, Tom?? Bod??r wrote:
 2009/4/22 Jacob Meuser jake...@sdf.lonestar.org:
  On Wed, Apr 22, 2009 at 11:54:30AM +0200, Tom?? Bod??r wrote:
  Yes,but bellow output from pkg_add is output from 'make install' and
  end is the same even if I place openmotif file in the /usr/distfiles
 
  put it in /usr/ports/distfiles/openmotif/

 It doesn't help.

are you using the correct file?

as in, this one:

ftp://ftp.openbsd.org/pub/OpenBSD/distfiles/openmotif/openmotif-2.3
   .0.tar.gz.


   ftp: Login failed.
   ftp: No control connection for command.
   ftp: Login failed.
   ftp: No control connection for command.
   ftp: Can't connect or login to host `ftp.openbsd.org'

you should probably fix ftp too.

-- 
jake...@sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org



Re: Multiple layers of NAT

2009-04-22 Thread Janne Johansson

Michiel van Baak wrote:

I've searched around a bit and see there is something wrong (in general)
with double NAT
I dont know where you got that info from, but as long as each NAT is set  
up correctly, there isnt any difference in being NATed once or five 
times.


I have seen trouble with 'double nat' too many times in the voip world
to even bother with it anymore.
Ok, most of the times one of the nat devices was a DSL modem, and their
implementation is,. interesting.


I might be dense, but you agree double NAT is bad as a concept, since 
often one of the devices are broken?
That seems to be a weird assumption. Not that I like NAT anymore than 
anyone else, but broken is broken regardless.




Re: Can't install Java plugin on 4.5 -current thanks to openmotif problem

2009-04-22 Thread Tomáš Bodžár
$ ls -l /usr/distfiles/openmotif/
total 54336
-rw-r--r--  1 username  username  27803081 Apr 22 09:43 openmotif-2.3.0p0.tgz
$

It's company network and ftp is sometimes weird :-(

2009/4/22 Jacob Meuser jake...@sdf.lonestar.org:
 On Wed, Apr 22, 2009 at 12:36:06PM +0200, Tom?? Bod??r wrote:
 2009/4/22 Jacob Meuser jake...@sdf.lonestar.org:
  On Wed, Apr 22, 2009 at 11:54:30AM +0200, Tom?? Bod??r wrote:
  Yes,but bellow output from pkg_add is output from 'make install' and
  end is the same even if I place openmotif file in the /usr/distfiles
 
  put it in /usr/ports/distfiles/openmotif/

 It doesn't help.

 are you using the correct file?

 as in, this one:

ftp://ftp.openbsd.org/pub/OpenBSD/distfiles/openmotif/openmotif-2.3
   .0.tar.gz.


   ftp: Login failed.
   ftp: No control connection for command.
   ftp: Login failed.
   ftp: No control connection for command.
   ftp: Can't connect or login to host `ftp.openbsd.org'

 you should probably fix ftp too.

 --
 jake...@sdf.lonestar.org
 SDF Public Access UNIX System - http://sdf.lonestar.org





-- 
http://www.openbsd.org/lyrics.html



Re: Can't install OpenOffice3 - pkg_add and make install fail on 4.5 -current

2009-04-22 Thread Jacob Meuser
On Wed, Apr 22, 2009 at 01:05:59PM +0200, Tom?? Bod??r wrote:

  (SHA256) xalan-j_2_7_0-bin.tar.gz: FAILED
  Checksum mismatch for xalan-j_2_7_0-bin.tar.gz. (sha256)
 Make sure the Makefile and checksum file (/usr/ports/devel/jdk/1.5/distinfo)
 are up to date.  If you want to fetch a good copy of this
 file from the OpenBSD main archive, type
 make REFETCH=true [other args].
 *** Error code 1

make sure you're getting the whole file by checking that the size
matches what's expected (in the distinfo file).  iirc, I had to use
wget to fetch that or else I'd end up with a short file.

-- 
jake...@sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org



Re: Can't install Java plugin on 4.5 -current thanks to openmotif problem

2009-04-22 Thread Jacob Meuser
On Wed, Apr 22, 2009 at 01:15:03PM +0200, Tom?? Bod??r wrote:
 Hmmm, I can see problem now.
 
 On ftp.openbsd.org is openmotif-2.3.0.tgz ,but on anga.funkfeuer.at
 mirror it's openmotif-2.3.0p0.tgz

yes, one is the distfile and other is the OpenBSD package.

-- 
jake...@sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org



Re: Slow SATA write speeds with SMB

2009-04-22 Thread Stuart Henderson
On 2009-04-22, Whyzzi why...@gmail.com wrote:
 I was happy /w the re driver too until 4.4 (I think my previous
 firewall/samba share server was 4.2)

 I did mention in my original post I was watching systat vmstat, during
 the post I mentioned I was watching hard drive kbyte writes. When I
 decided to run out and buy the em I noticed my re was doing 4 to 6k+
 interrupt requests a second. and I was tweaked samba it rose even
 higher via systat vmstat. I didn't mention the interrupt storm because

that sounds like normal operation if you're pushing packets out, not
a storm.

 I no longer want to fuss the system or argue /w tico or mess with
 duplex settings as it was all pointless -  as I saw it already had the
 solution to my problem in hand for 36+cdn $: the new em card.

it looked like you already messed with duplex settings.. well, glad
you found a way to fix things. the em is faster anyway.

 re - bge

 Is that loopback or between two boxes with a switch in the middle?

two boxes, with two switches between.



crash when usb device attached on a ThinkPad T60

2009-04-22 Thread LEVAI Daniel
Hi!

This happens when I plug in a media player, which should attach as an USB mass
storage
device.
Let me know, if more info is needed.

Here is trace's output:
ddb{1} trace
Debugger(d6ad12c0,200292,dc1fbe7c,d1dbfa00,0) at Debugger+0x4
panic(d06f0c40,f,dc1fbe9c,dc1fbe8c,d0203269) at panic+0x55
ehci_noop(d1dcf380,200292,dc1fbeac,d035e46d,d1dcf400) at ehci_noop
usbd_clear_endpoint_toggle(d1dcf380,d1dbfa14,d06cf1b3,0,d1c9d800) at
usbd_clear_endpoint_toggle+0x10
umass_clear_endpoint_stall(d1dbfa00,0,d1c9f800,d1a93000,0) at
umass_clear_endpoint_stall+0x28
usb_transfer_complete(d1c9d800,dc10cc60,dc10cc60,d08cccb4,0) at
usb_transfer_complete+0x18e
ehci_abort_xfer(d1c9d800,f,1,1,d1c9d86c) at ehci_abort_xfer+0x25b
echi_timeout_task(d1c9d800,20,d07856a1,0,d6b61984) at ehci_timeout_task+0x1e
usb_task_thread(d6b61984) at usb_task_thread+0x51
Bad frame pointer: 0xd0974e88
ddb{1} ps
PID PPIDPGRPUID S   FLAGS WAIT COMMAND
15558   619531869   0   3   0x2004080 piperd   cut
517 619531869   0   3   0x2004080 piperd   sed
5625619531869   0   3   0x2004080 piperd   egrep
14793   619531869   0   3   0x2004000 scsicmd  disklabel
619531869   31869   0   3   0x2004080 piperd   sh
83361   83360   3   0x2004082 ttyinksh
10045   1   10045   0   3   0x2004082 ttyingetty
13702   1   13702   0   3   0x2004082 ttyingetty
15677   1   15677   0   3   0x2004082 ttyingetty
70931   70930   3   0x2004082 ttyingetty
28460   1   28460   0   3   0x280 select   cron
31869   1   31869   0   3   0x280 htplev   hotplugd
19538   1   19538   0   3   0x280 kqread   apmd
[here happened an accident, I can only remember that openvpn, dbus-daemon,
cupsd,sshd,inetd,sendmail,lpd ran]
18  0   0   0   3   0x2100200 aiodoned  aiodoned
17  0   0   0   3   0x2100200 syncerupdate
16  0   0   0   3   0x2100200 cleaner   cleaner
15  0   0   0   3   0x100200  reaperreaper
14  0   0   0   3   0x2100200 pgdaemon  pgdaemon
13  0   0   0   3   0x2100200 pftm  pfpurge
12  0   0   0   3   0x2100200 usbevtusb4
11  0   0   0   3   0x2100200 usbevtusb3
10  0   0   0   3   0x2100200 usbevtusb2
9   0   0   0   3   0x2100200 usbevtusb1
*8  0   0   0   3   0x2100200   usbtask
7   0   0   0   3   0x2100200 scsicmd   usb0
6   0   0   0   3   0x2100200 acpi_idle acpi0
5   0   0   0   3   0x100200idle1
4   0   0   0   3   0x2100200 bored syswq
3   0   0   0   3   0x100200idle0
2   0   0   0   3   0x2100200 kmalloc   kmthread
1   0   1   0   3   0x2004080 wait  init
0   -1  0   0   3   0x2080200 scheduler swapper
ddb{1} mach ddbcpu 0
ddb{0} trace
Debugger(d08ccc80,d06b6580,1,dbf49000,f0) at Debugger+0x4
i386_ipi_handler(c0,58,d6ac0010,10,f8130010) at i386_ipi_handler+0x4f
Xintripi() at Xintripi+0x47
--- interrupt ---
__mp_lock(d0818264,5893812e,ac930799,d6ad12c0) at __mp_lock+0x41
__mp_acquire_count(d0818264,1,dc243e60,d0357a85) at __mp_acquire_count+0x1e
mi_switch(dc243e88,118,dc243ea0,d0354996,dc243e88) at mi_switch+0x1e4
sleep_finish(dc243e88,1,118,d06d1618,d0) at sleep_finish+0xb7
tsleep(d081e4e8,118,d06f1618,0,d0203269) at tsleep+0x7a
sys_poll(d6ad12c0,dc243f68,dc243f58,d6ad12c0) at sys_poll+0x299
syscall() at syscall+0x12b
--- syscall (number 252) ---
0x13c0b55:
ddb{0} boot reboot
rebooting...


and here is my dmesg:
OpenBSD 4.5-current (GENERIC.MP) #81: Mon Apr 20 18:47:25 MDT 2009
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Genuine Intel(R) CPU T2400 @ 1.83GHz (GenuineIntel 686-class) 1.83
GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,A
CPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,VMX,EST,TM2,xTPR
real mem  = 1072066560 (1022MB)
avail mem = 1028300800 (980MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 08/02/06, BIOS32 rev. 0 @ 0xfd6b0,
SMBIOS rev. 2.4
@ 0xe0010 (68 entries)
bios0: vendor LENOVO version 79ET66WW (1.10 ) date 08/02/2006
bios0: LENOVO 2007FRG
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG HPET BOOT 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: apic clock running at 166MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: 

Re: isakmpd log file - time in human form?

2009-04-22 Thread Petvalsky, Martin
Sorry,

I had a blackout, the time is obvious.

mp

-Original Message-
From: Petvalsky, Martin
Sent: Wednesday, April 22, 2009 11:14 AM
To: 'misc@openbsd.org'
Subject: isakmpd log file - time in human form?

Hello,

I am debugging an IPsec tunnel by running
isakmpd -L -d -DA=90  /root/scripts/isakmpd.log 21
and I can't find a way how to switch or convert the time to a human
readable form.

Logfile shows:
...
103749.319100 Default log_debug_cmd: log level changed from 0 to 90 for class
0 [priv]
103749.319341 Default log_debug_cmd: log level changed from 0 to 90 for class
1 [priv]
...

The problem I am dealing with happens after a longer time, I suspect
incorrect phase 2 re-establishment so I need to understand the time
records.

Please help me, if you know how.

Thank you,

Martin Petvalsky



Re: Can't install Java plugin on 4.5 -current thanks to openmotif problem

2009-04-22 Thread Tomáš Bodžár
Hmmm, I can see problem now.

On ftp.openbsd.org is openmotif-2.3.0.tgz ,but on anga.funkfeuer.at
mirror it's openmotif-2.3.0p0.tgz

Dne 22. duben 2009 13:11 TomC!E! BodEC!r tomas.bod...@gmail.com napsal(a):
 $ ls -l /usr/distfiles/openmotif/
 total 54336
 -rw-r--r-- B 1 username B username B 27803081 Apr 22 09:43
openmotif-2.3.0p0.tgz
 $

 It's company network and ftp is sometimes weird :-(

 2009/4/22 Jacob Meuser jake...@sdf.lonestar.org:
 On Wed, Apr 22, 2009 at 12:36:06PM +0200, Tom?? Bod??r wrote:
 2009/4/22 Jacob Meuser jake...@sdf.lonestar.org:
  On Wed, Apr 22, 2009 at 11:54:30AM +0200, Tom?? Bod??r wrote:
  Yes,but bellow output from pkg_add is output from 'make install' and
  end is the same even if I place openmotif file in the /usr/distfiles
 
  put it in /usr/ports/distfiles/openmotif/

 It doesn't help.

 are you using the correct file?

 as in, this one:

   
ftp://ftp.openbsd.org/pub/OpenBSD/distfiles/openmotif/openmotif-2.3
   .0.tar.gz.


   ftp: Login failed.
   ftp: No control connection for command.
   ftp: Login failed.
   ftp: No control connection for command.
   ftp: Can't connect or login to host `ftp.openbsd.org'

 you should probably fix ftp too.

 --
 jake...@sdf.lonestar.org
 SDF Public Access UNIX System - http://sdf.lonestar.org





 --
 http://www.openbsd.org/lyrics.html




--
http://www.openbsd.org/lyrics.html



Can't install OpenOffice3 - pkg_add and make install fail on 4.5 -current

2009-04-22 Thread Tomáš Bodžár
Hi all,

again problem with install :-(

$ sudo pkg_add -vi openoffice-3.0.1p3
parsing openoffice-3.0.1p3
Ambiguous: choose dependency for openoffice-3.0.1p3:
 0: libstdc++-4.2.20070307p6
 1: libstdc++-3.3.6p3
Your choice: 1
Dependencies for openoffice-3.0.1p3 resolve to: python-2.5.4p0,
libwpd-0.8.9p0, neon-0.28.3, javaPathHelper-0.3, icu4c-4.0.1p0,
raptor-1.4.18, curl-7.19.4, desktop-file-utils-0.15, db-4.6.21,
libstdc++-3.3.6p3, gtk+2-2.14.7, redland-1.0.8, libxslt-1.1.24p2,
gperf-3.0.1p0 (todo:
db-4.6.21,libstdc++-3.3.6p3,neon-0.28.3,icu4c-4.0.1p0,libwpd-0.8.9p0,libxslt-1.1.24p2,raptor-1.4.18,redland-1.0.8)
Error from 
http://anga.funkfeuer.at//ftp/pub/OpenBSD/snapshots/packages/i386/db-4.6.21.tgz:
ftp: Error retrieving file: 404 Not Found
Error from 
http://anga.funkfeuer.at//ftp/pub/OpenBSD/snapshots/packages/i386/db-4.6.21.tgz:
ftp: Error retrieving file: 404 Not Found
Error from 
http://anga.funkfeuer.at//ftp/pub/OpenBSD/snapshots/packages/i386/db-4.6.21.tgz:
ftp: Error retrieving file: 404 Not Found
Error from 
http://anga.funkfeuer.at//ftp/pub/OpenBSD/snapshots/packages/i386/db-4.6.21.tgz:
ftp: Error retrieving file: 404 Not Found
Error from 
http://anga.funkfeuer.at//ftp/pub/OpenBSD/snapshots/packages/i386/db-4.6.21.tgz:
ftp: Error retrieving file: 404 Not Found
openoffice-3.0.1p3:Can't find db-4.6.21
/usr/sbin/pkg_add: db-4.6.21:Fatal error
$

there is only db-3.1.17p8.tgz on server


$ pwd
/usr/ports/editors/openoffice3
$


-- $ make install
===  Checking files for openoffice-3.0.1
`/usr/distfiles/openoffice/ooo-desktop-0.1.tar.gz' is up to date.
`/usr/distfiles/openoffice/OOo_3.0.1_src_binfilter.tar.bz2' is up to date.
`/usr/distfiles/openoffice/OOo_3.0.1_src_core.tar.bz2' is up to date.
`/usr/distfiles/openoffice/OOo_3.0.1_src_extensions.tar.bz2' is up to date.
`/usr/distfiles/openoffice/OOo_3.0.1_src_l10n.tar.bz2' is up to date.
`/usr/distfiles/openoffice/OOo_3.0.1_src_system.tar.bz2' is up to date.
 (SHA256) openoffice/ooo-desktop-0.1.tar.gz: OK
 (SHA256) openoffice/OOo_3.0.1_src_binfilter.tar.bz2: OK
 (SHA256) openoffice/OOo_3.0.1_src_core.tar.bz2: OK
 (SHA256) openoffice/OOo_3.0.1_src_extensions.tar.bz2: OK
 (SHA256) openoffice/OOo_3.0.1_src_l10n.tar.bz2: OK
 (SHA256) openoffice/OOo_3.0.1_src_system.tar.bz2: OK
===  openoffice-3.0.1p3 depends on: apache-ant-* - not found
===  Verifying install for apache-ant-* in devel/apache-ant
===  apache-ant-1.7.1 depends on: jdk-=1.5.0,1.6|kaffe-* - not found
===  Verifying install for jdk-=1.5.0,1.6|kaffe-* in devel/jdk/1.5
===  Checking files for jdk-1.5.0.16
`/usr/distfiles/jdk-1_5_0_16-fcs-src-b02-jrl-28_may_2008.jar' is up to date.
`/usr/distfiles/jdk-1_5_0_16-fcs-bin-b02-jrl-28_may_2008.jar' is up to date.
`/usr/distfiles/bsd-jdk15-patches-9.tar.bz2' is up to date.
`/usr/distfiles/jdk-1_5_0_16-solaris-i586.tar.Z' is up to date.
`/usr/distfiles/xalan-j_2_7_0-bin.tar.gz' is up to date.
 (SHA256) jdk-1_5_0_16-fcs-src-b02-jrl-28_may_2008.jar: OK
 (SHA256) jdk-1_5_0_16-fcs-bin-b02-jrl-28_may_2008.jar: OK
 (SHA256) bsd-jdk15-patches-9.tar.bz2: OK
 (SHA256) jdk-1_5_0_16-solaris-i586.tar.Z: OK
 (SHA256) xalan-j_2_7_0-bin.tar.gz: FAILED
 Checksum mismatch for xalan-j_2_7_0-bin.tar.gz. (sha256)
Make sure the Makefile and checksum file (/usr/ports/devel/jdk/1.5/distinfo)
are up to date.  If you want to fetch a good copy of this
file from the OpenBSD main archive, type
make REFETCH=true [other args].
*** Error code 1

Stop in /usr/ports/devel/jdk/1.5 (line 1848 of
/usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/devel/jdk/1.5 (line 2001 of
/usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/devel/jdk/1.5 (line 1427 of
/usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/devel/jdk/1.5 (line 1967 of
/usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/devel/jdk/1.5 (line 1457 of
/usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/devel/apache-ant (line 1604 of
/usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/devel/apache-ant (line 1457 of
/usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/editors/openoffice3 (line 1604 of
/usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/editors/openoffice3 (line 2001 of
/usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/editors/openoffice3 (line 1427 of
/usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/editors/openoffice3 (line 1967 of
/usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/editors/openoffice3 (line 1457 of
/usr/ports/infrastructure/mk/bsd.port.mk).
$

I have xlan downloaded in /usr/distfiles.Even if I change checksums in
distinfo file I get same error.
make REFETCH=true doesn't help


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



azalia beep control [Was: ThinkPad T60 audible bell *very* loud]

2009-04-22 Thread LEVAI Daniel
On Tuesday 21 April 2009 14.37.55 Jacob Meuser wrote:
 On Tue, Apr 21, 2009 at 12:56:22PM +0200, LEVAI Daniel wrote:
  Hi!
 
  I'm using this ThinkPad T60, and just realized that if using an earphone,
  the console's audible bell is blowing my ears off. I couldn't find
  anything relevant in mixerctl -a output, nevertheless I've changed every
  outputs control's volume to 0 to see which one could be it (no luck). Is
  it possible to lower the system beep's volume, so my ears won't bleed by
  tomorrow? :)

 hopefully this gets you 'beep' controls.  please let me know.

 beep generators should be considered i/o endpoints, like pins and
 converters.

I've applied your diff, and now I have a sel2 control which claims that its
source is 'beep'. However, I can not do anything with it; when muted and zero
volume the beep still happens:

inputs.sel2_source=beep
outputs.sel2_mute=on
outputs.sel2=0
inputs.mix2_source=sel2,dac,sel4,sel6,cd


$ mixerctl -a
outputs.dig-dac_source=
outputs.line_source=dac
outputs.line_mute=off
outputs.line=124,124
inputs.line=0,0
outputs.line_dir=output
outputs.line_boost=off
outputs.line_eapd=on
inputs.mic=0,0
outputs.mic_dir=input-vr80
outputs.SPDIF_source=dig-dac
inputs.sel_source=dac
inputs.mix_source=sel8
inputs.sel2_source=beep
outputs.sel2_mute=on
outputs.sel2=0
inputs.mix2_source=sel2,dac,sel4,sel6,cd
inputs.dac_mute=off
inputs.dac=120,120
inputs.sel4_source=mic
outputs.sel4_mute=off
outputs.sel4=120,120
record.adc_source=mix
record.adc_mute=off
record.adc=119,119
inputs.sel6_source=line
outputs.sel6_mute=off
outputs.sel6=120,120
inputs.cd_mute=off
inputs.cd=120,120
inputs.sel8_source=mic
outputs.sel8_mute=off
outputs.master=125,125
outputs.master.mute=off
outputs.master.slaves=line,dac
record.volume=119,119
record.volume.mute=off
record.volume.slaves=adc
inputs.usingdac=03

Daniel

--
LIVAI Daniel
PGP key ID = 0x4AC0A4B1
Key fingerprint = D037 03B9 C12D D338 4412  2D83 1373 917A 4AC0 A4B1



Re: autowhitelister for spamd needs testing

2009-04-22 Thread Gregory Edigarov
Hello list,
I think spamd users would like to try this small utility.
Although its development is in the very beginning  it does its  job 
quite well for me it was written for the case
where a big mass mailer like google  is trying to send us mail. 

The utility notices such mailers and white lists  it by adding its 
allowed nets taken through spf queries to the white list. i.e.
it reads output of spamdb, then checks spf records for all greylisted 
mails and produces 'whitelist.auto' file  which can
then be used with spamd-setup.

it is small, so I put it into attachment.

-- 
With best regards,
Gregory Edigarov
#include sys/types.h
#include netinet/in.h
#include arpa/nameser.h
#include resolv.h
#include stdlib.h
#include string.h
#include stdio.h

#define ERREXIT(_p) perror(_p); exit(-1);

char   *tok[] = {v=spf1, redirect=, include:, ip4:, ip6:};

FILE   *out;

voidtspf(char *domain);

char   *
txtquery(const char *domain, unsigned int *ttl)
{
unsigned char   answer[PACKETSZ], host[128], *pt, *txt;
int len, exp, cttl, size, txtlen, type;

if (res_init()  0) {
ERREXIT(res_init);
}
printf(*Querying %s\n, domain);
memset(answer, 0, PACKETSZ);
if ((len = res_query(domain, C_IN, T_TXT, answer, PACKETSZ))  0) {
ERREXIT(res_query);
}
pt = answer + sizeof(HEADER);
if ((exp = dn_expand(answer, answer + len, pt, host, sizeof(host)))  
0) {
ERREXIT(dn_expand);
}
pt += exp;
GETSHORT(type, pt);
if (type != T_TXT) {
ERREXIT(type);
}
pt += INT16SZ;  /* class */
if ((exp = dn_expand(answer, answer + len, pt, host, sizeof(host)))  
0) {
ERREXIT(dn_expand);
}
pt += exp;
GETSHORT(type, pt);
if (type != T_TXT) {
ERREXIT(type);
}
pt += INT16SZ;  /* class */
GETLONG(cttl, pt);
*ttl = cttl;
GETSHORT(size, pt);
txtlen = *pt;
if (txtlen = size || !txtlen) {
ERREXIT(txtlen);
}
if (!(txt = malloc(txtlen + 2))) {
ERREXIT(malloc)
}
pt++;
strlcpy(txt, pt, txtlen + 1);
return txt;
}

void
do_redirect(char *p)
{
char   *txt;
unsignedttl;

p += strlen(tok[1]);
puts(p);
txt = txtquery(p, ttl);
tspf(txt);
}

void
do_include(char *p)
{
char   *txt;
unsignedttl;

p += strlen(tok[2]);
txt = txtquery(p, ttl);

tspf(txt);
}

void
do_ipv4(char *p)
{
p += strlen(tok[3]);
fprintf(out, %s\n, p);
}

void
do_ipv6(char *p)
{
p += strlen(tok[3]);
fprintf(out, %s\n, p);
}


void
tspf(char *dom)
{
char   *ans, *p, *last;
int spf_v = 0;
unsigned intttl;

ans = txtquery(dom, ttl);

for (p = strtok_r(ans,  , last);
 p;
 p = strtok_r(NULL,  , last)) {
if (!strncmp(p, tok[0], strlen(tok[0])))
spf_v = 1;
if (!strncmp(p, tok[1], strlen(tok[1]))  spf_v)
do_redirect(p);
if (!strncmp(p, tok[2], strlen(tok[2]))  spf_v)
do_include(p);
if (!strncmp(p, tok[3], strlen(tok[3]))  spf_v)
do_ipv4(p);
if (!strncmp(p, tok[4], strlen(tok[4]))  spf_v)
do_ipv6(p);
}
free(ans);
}

int
main(int argc, char **argv)
{
FILE   *in;
charbuf[1024];
chartype[64], ip[256], helo[1024], mailfrom[1024], 
rcptto[1024],
td1[1024], td2[1024], td3[1024], trig1[2], trig2[2];
char   *p;

system(mv whitelist.auto whitelist.old);
if (argc  1)
out = fopen(argv[1], a+);
else
out = fopen(whitelist.new, a+);

if (out == NULL) {
ERREXIT(fopen);
}
in = popen(spamdb, r);
if (in == NULL) {
ERREXIT(p);
}
while (fgets(buf, sizeof(buf), in)) {
if (!strncmp(buf, GREY, 4)) {
for (p = (char *) buf; *p; p++)
if (*p == '|')
*p = ' ';
sscanf(buf, %s %s %s %s %s %s %s %s %s %s,
   (char *) type, (char *) ip, (char *) helo, 
(char *) mailfrom, (char *) rcptto,
   (char *) td1, (char *) td2, (char *) td3, 
(char *) trig1, (char *) trig2);
puts((char *) type);
puts((char *) mailfrom);
}
p = strchr((char *) 

Re: Multiple layers of NAT

2009-04-22 Thread Michiel van Baak
On 12:53, Wed 22 Apr 09, Janne Johansson wrote:
 Michiel van Baak wrote:
 I've searched around a bit and see there is something wrong (in general)
 with double NAT
 I dont know where you got that info from, but as long as each NAT is 
 set  up correctly, there isnt any difference in being NATed once or 
 five times.

 I have seen trouble with 'double nat' too many times in the voip world
 to even bother with it anymore.
 Ok, most of the times one of the nat devices was a DSL modem, and their
 implementation is,. interesting.

 I might be dense, but you agree double NAT is bad as a concept, since  
 often one of the devices are broken?
 That seems to be a weird assumption. Not that I like NAT anymore than  
 anyone else, but broken is broken regardless.

Thats why I said 'most'
Voip setups where two openbsd machines are doing NAT also have trouble.
Removing one NAT hop always fixes the issues.

-- 

Michiel van Baak
mich...@vanbaak.eu
http://michiel.vanbaak.eu
GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x71C946BD

Why is it drug addicts and computer aficionados are both called users?



Re: Can't install Java plugin on 4.5 -current thanks to openmotif problem

2009-04-22 Thread Tomáš Bodžár
It looks like I must wait untill I'm at home,because ftp is running
here,but not all ports are allowed.


2009/4/22 Jacob Meuser jake...@sdf.lonestar.org:
 On Wed, Apr 22, 2009 at 01:15:03PM +0200, Tom?? Bod??r wrote:
 Hmmm, I can see problem now.

 On ftp.openbsd.org is openmotif-2.3.0.tgz ,but on anga.funkfeuer.at
 mirror it's openmotif-2.3.0p0.tgz

 yes, one is the distfile and other is the OpenBSD package.

 --
 jake...@sdf.lonestar.org
 SDF Public Access UNIX System - http://sdf.lonestar.org





-- 
http://www.openbsd.org/lyrics.html



Re: Can't install OpenOffice3 - pkg_add and make install fail on 4.5 -current

2009-04-22 Thread Stuart Henderson
On 2009-04-22, Toma? Bod?ar tomas.bod...@gmail.com wrote:
 Error from 
 http://anga.funkfeuer.at//ftp/pub/OpenBSD/snapshots/packages/i386/db-4.6.21.tgz:

looks like the mirroring didn't fully complete that time, try again later
or try a different mirror.



Re: Can't install OpenOffice3 - pkg_add and make install fail on 4.5 -current

2009-04-22 Thread Tomáš Bodžár
You've had right.Thanks for point.I wasn't thought about this possibility :-(

2009/4/22 Stuart Henderson s...@spacehopper.org:
 On 2009-04-22, Toma? Bod?ar tomas.bod...@gmail.com wrote:
 Error from 
 http://anga.funkfeuer.at//ftp/pub/OpenBSD/snapshots/packages/i386/db-4.6.21.tgz:

 looks like the mirroring didn't fully complete that time, try again later
 or try a different mirror.





-- 
http://www.openbsd.org/lyrics.html



Re: Can't install OpenOffice3 - pkg_add and make install fail on 4.5 -current

2009-04-22 Thread Tomáš Bodžár
Can't get it either trough curl.It stops on same place everytime

$ curl --retry 10 -o /usr/distfiles/xalan-j_2_7_0-bin.tar.gz
http://archive.ap
  % Total% Received % Xferd  Average Speed   TimeTime Time
Current
 Dload  Upload   Total   SpentLeft  Speed
 36 12.8M   36 4808k0 0  57667  0  0:03:54  0:01:25  0:02:29
60439
curl: (18) transfer closed with 8593310 bytes remaining to read
$ curl -v --retry 10 -o /usr/distfiles/xalan-j_2_7_0-bin.tar.gz
http://archive
* About to connect() to archive.apache.org port 80 (#0)
*   Trying 140.211.11.130... connected
* Connected to archive.apache.org (140.211.11.130) port 80 (#0)
 GET /dist/xml/xalan-j/xalan-j_2_7_0-bin.tar.gz HTTP/1.1
 User-Agent: curl/7.19.4 (i386-unknown-openbsd4.5) libcurl/7.19.4
OpenSSL/0.9.8
k zlib/1.2.3 libidn/1.11
 Host: archive.apache.org
 Accept: */*

  % Total% Received % Xferd  Average Speed   TimeTime Time
Current
 Dload  Upload   Total   SpentLeft  Speed
  0 00 00 0  0  0 --:--:-- --:--:-- --:--:--
0
HTTP/1.1 200 OK
 Date: Wed, 22 Apr 2009 13:12:08 GMT
 Server: Apache/2.2.9 (Unix)
 Last-Modified: Mon, 08 Aug 2005 04:26:02 GMT
 ETag: 9a24e2-ce3f9e-3fdcb71f1ea80
 Accept-Ranges: bytes
 Content-Length: 13516702
 Content-Type: application/x-tar

{ [data not shown]
 36 12.8M   36 4765k0 0  57153  0  0:03:56  0:01:25  0:02:31
44244*
transfer closed with 8593310 bytes remaining to read
 36 12.8M   36 4808k0 0  57250  0  0:03:56  0:01:25  0:02:31
50560*
Closing connection #0

curl: (18) transfer closed with 8593310 bytes remaining to read
$

2009/4/22 Jacob Meuser jake...@sdf.lonestar.org:
 On Wed, Apr 22, 2009 at 01:05:59PM +0200, Tom?? Bod??r wrote:

  (SHA256) xalan-j_2_7_0-bin.tar.gz: FAILED
  Checksum mismatch for xalan-j_2_7_0-bin.tar.gz. (sha256)
 Make sure the Makefile and checksum file
(/usr/ports/devel/jdk/1.5/distinfo)
 are up to date. B If you want to fetch a good copy of this
 file from the OpenBSD main archive, type
 make REFETCH=true [other args].
 *** Error code 1

 make sure you're getting the whole file by checking that the size
 matches what's expected (in the distinfo file). B iirc, I had to use
 wget to fetch that or else I'd end up with a short file.

 --
 jake...@sdf.lonestar.org
 SDF Public Access UNIX System - http://sdf.lonestar.org





--
http://www.openbsd.org/lyrics.html



Re: Can't install OpenOffice3 - pkg_add and make install fail on 4.5 -current

2009-04-22 Thread Tomáš Bodžár
I found another mirror for this file.Mirror which is in list for this
packages is somewhat broken for me.

Dne 22. duben 2009 15:16 TomC!E! BodEC!r tomas.bod...@gmail.com napsal(a):
 Can't get it either trough curl.It stops on same place everytime

 $ curl --retry 10 -o /usr/distfiles/xalan-j_2_7_0-bin.tar.gz
http://archive.ap
 B % Total B  B % Received % Xferd B Average Speed B  Time B  B Time B  B 
Time B Current
 B  B  B  B  B  B  B  B  B  B  B  B  B  B  B  B  Dload B Upload B  Total B 
Spent B  B Left B Speed
 B 36 12.8M B  36 4808k B  B 0 B  B  0 B 57667 B  B  B 0 B 0:03:54 B 0:01:25
B 0:02:29 60439
 curl: (18) transfer closed with 8593310 bytes remaining to read
 $ curl -v --retry 10 -o /usr/distfiles/xalan-j_2_7_0-bin.tar.gz
http://archive
 * About to connect() to archive.apache.org port 80 (#0)
 * B  Trying 140.211.11.130... connected
 * Connected to archive.apache.org (140.211.11.130) port 80 (#0)
 GET /dist/xml/xalan-j/xalan-j_2_7_0-bin.tar.gz HTTP/1.1
 User-Agent: curl/7.19.4 (i386-unknown-openbsd4.5) libcurl/7.19.4
OpenSSL/0.9.8
 k zlib/1.2.3 libidn/1.11
 Host: archive.apache.org
 Accept: */*

 B % Total B  B % Received % Xferd B Average Speed B  Time B  B Time B  B 
Time B Current
 B  B  B  B  B  B  B  B  B  B  B  B  B  B  B  B  Dload B Upload B  Total B 
Spent B  B Left B Speed
 B 0 B  B  0 B  B 0 B  B  0 B  B 0 B  B  0 B  B  B 0 B  B  B 0 --:--:--
--:--:-- --:--:-- B  B  0
 HTTP/1.1 200 OK
  Date: Wed, 22 Apr 2009 13:12:08 GMT
  Server: Apache/2.2.9 (Unix)
  Last-Modified: Mon, 08 Aug 2005 04:26:02 GMT
  ETag: 9a24e2-ce3f9e-3fdcb71f1ea80
  Accept-Ranges: bytes
  Content-Length: 13516702
  Content-Type: application/x-tar
 
 { [data not shown]
 B 36 12.8M B  36 4765k B  B 0 B  B  0 B 57153 B  B  B 0 B 0:03:56 B 0:01:25
B 0:02:31 44244*
 transfer closed with 8593310 bytes remaining to read
 B 36 12.8M B  36 4808k B  B 0 B  B  0 B 57250 B  B  B 0 B 0:03:56 B 0:01:25
B 0:02:31 50560*
 Closing connection #0

 curl: (18) transfer closed with 8593310 bytes remaining to read
 $

 2009/4/22 Jacob Meuser jake...@sdf.lonestar.org:
 On Wed, Apr 22, 2009 at 01:05:59PM +0200, Tom?? Bod??r wrote:

  (SHA256) xalan-j_2_7_0-bin.tar.gz: FAILED
  Checksum mismatch for xalan-j_2_7_0-bin.tar.gz. (sha256)
 Make sure the Makefile and checksum file
(/usr/ports/devel/jdk/1.5/distinfo)
 are up to date. B If you want to fetch a good copy of this
 file from the OpenBSD main archive, type
 make REFETCH=true [other args].
 *** Error code 1

 make sure you're getting the whole file by checking that the size
 matches what's expected (in the distinfo file). B iirc, I had to use
 wget to fetch that or else I'd end up with a short file.

 --
 jake...@sdf.lonestar.org
 SDF Public Access UNIX System - http://sdf.lonestar.org





 --
 http://www.openbsd.org/lyrics.html




--
http://www.openbsd.org/lyrics.html



Re: crash when usb device attached on a ThinkPad T60

2009-04-22 Thread LEVAI Daniel
On Wednesday 22 April 2009 13.28.06 you wrote:
 Hi!

 This happens when I plug in a media player, which should attach as an USB
 mass storage
 device.
 Let me know, if more info is needed.
The actual panic message, as requested:

umass1 at uhub0 port 2 configuration 1 interface 0 RockChip ROCK MP3 rev
2.00/0.00
addr 3
umass1: using SCSI over Bulk-Only
scsibus3 at umass1: 2 targets, initiator 0
sd2 at scsibus3 targ 1 lun 0: MOBIBLU, USBDISK User, 1.00 SCSI0 0/direct
removable
sd2: driver offline
sd3 at scsibus3 targ 1 lun 1: MOBIBLU, USBDISK SD, 1.00 SCSI0 0/direct
removable
umass1: Invalid CSW: tag 275 should 277
umass1: BBB bulk-in clear stall failed, TIMEOUT
umass1: Invalid CSW: tag 276 should be 278
umass1: BBB bulk-in clear stall failed, TIMEOUT
umass1: Invalid CSW: tag 277 should be 279
umass1: BBB bulk-in clear stall failed, TIMEOUT
umass1: Invalid CSW: tag 278 should be 280
umass1: BBB bulk-in clear stall failed, TIMEOUT
umass1: Invalid CSW: tag 280 should be 281
umass1: BBB reset failed, TIMEOUT
panic: ehci_device_clear_toggle: queue active
Stopped at  Debugger+0x4:   leave

--
LIVAI Daniel
PGP key ID = 0x4AC0A4B1
Key fingerprint = D037 03B9 C12D D338 4412  2D83 1373 917A 4AC0 A4B1



newbie scrub question in current

2009-04-22 Thread Didier Wiroth
Hello,
I've noticed that changes in current related to pf and scrub.

I'm no pf, nor network expert and I was asking myself how to rewrite
the following line:
scrub out on $ext_if max-mss 1440
(I'm using this with my dial-up dsl line)

I would really appreciate if someone can tell me how to rewrite that
exact same line to match the new syntax.

Many many thanks!

Kind regards,
Didier



Re: newbie scrub question in current

2009-04-22 Thread Neal Hogan
On Wed, Apr 22, 2009 at 9:43 AM, Didier Wiroth dwir...@gmail.com wrote:
 Hello,
 I've noticed that changes in current related to pf and scrub.

 I'm no pf, nor network expert and I was asking myself how to rewrite
 the following line:
 scrub out on $ext_if max-mss 1440
 (I'm using this with my dial-up dsl line)

 I would really appreciate if someone can tell me how to rewrite that
 exact same line to match the new syntax.

I asked a similar question on misc@ a couple of weeks ago . . .

checkout: http://www.openbsd.org/faq/current.html


 Many many thanks!

 Kind regards,
 Didier





-- 
www.nealhogan.net  www.lambdaserver.com



Re: newbie scrub question in current

2009-04-22 Thread Didier Wiroth
got it, thanks!
for the archive ...
match out on $ext_if all scrub (max-mss 1440)


2009/4/22 Neal Hogan nealho...@gmail.com:
 On Wed, Apr 22, 2009 at 9:43 AM, Didier Wiroth dwir...@gmail.com wrote:
 Hello,
 I've noticed that changes in current related to pf and scrub.

 I'm no pf, nor network expert and I was asking myself how to rewrite
 the following line:
 scrub out on $ext_if max-mss 1440
 (I'm using this with my dial-up dsl line)

 I would really appreciate if someone can tell me how to rewrite that
 exact same line to match the new syntax.

 I asked a similar question on misc@ a couple of weeks ago . . .

 checkout: http://www.openbsd.org/faq/current.html


 Many many thanks!

 Kind regards,
 Didier





 --
 www.nealhogan.net B  B  B  B  B www.lambdaserver.com




--
- -
Didier Wiroth



PF and H.323 / Videoconference systems

2009-04-22 Thread Fernando Alvarez
Hi all,

I've trying to configure an OpenBSD box to allow PF to pass
video-conference traffic through a NATed network without success.

I tried to setup the most basic configuration in order to find out where
the problem could be. Last test I did, I configured an OpenBSD box with
two network interfaces ($if_int and $if_ext) and PF enabled. NAT is done
on $if_ext, and all the traffic is redirected from LAN to the videoconf
PC.

[VideoConf PC][OpenBSD box]-LAN
192.168.10.2/24  .10   172.22.1.200/16

- When I try to call (using Netmeeting and other H.323 software) from
the VideoconfPC to a PC, the other party answers and audio flows only in
one direction: The PC in the LAN hears what I say, but nothing is heard
in the VideoConf PC.

- When I try to call from the LAN to the VideoConf PC (using OBSD's
external IP as address) Netmeeting says the other party is not
responding.

Tcpdump does not show any blocked packet and the rdr seems to work
properly. As you can see bellow, my pf.conf is very simple:

Any ideas? What do you think I've misconfigured?

pf.conf
-
# interfaces
if_ext = pcn0
if_int = pcn1

videoconf = 192.168.10.2

nat log on $if_ext from $videoconf to any - $if_ext
rdr log on $if_ext - $videoconf

pass log all
--

Thanks in advance,

Fernando Alvarez



Re: OpenBSD relayd and public addresses

2009-04-22 Thread James Peltier
--- On Tue, 4/21/09, FRLinux frli...@gmail.com wrote:

 From: FRLinux frli...@gmail.com
 Subject: Re: OpenBSD relayd and public addresses
 To: James Peltier james_a_pelt...@yahoo.ca
 Cc: misc@openbsd.org
 Received: Tuesday, April 21, 2009, 6:20 PM
 On Tue, Apr 21, 2009 at 9:32 PM,
 James Peltier james_a_pelt...@yahoo.ca
 wrote:
 
 I hate to say this but correction to your syntax attached
 to your
 response would also be a nice addition to the list :)
 
 Steph
 

Here is the final working configuration

ext_addr=1.2.3.4

#
# Global Options
#
interval 2
timeout 1000
prefork 5

table rthosts { 1.2.3.5 1.2.3.6 }

http protocol http_rt {
header append $REMOTE_ADDR to X-Forwarded-For
header append $SERVER_ADDR:$SERVER_PORT to X-Forwarded-By

# Performance related options
tcp { nodelay, sack, socket buffer 65536, backlog 128 }
}

relay rt {
 listen on $ext_addr port 80
 protocol http_rt
 forward to rthosts port 80 mode loadbalance check http / code 200
}

---
James A. Peltier james_a_pelt...@yahoo.ca



Re: OpenBSD relayd and public addresses

2009-04-22 Thread FRLinux
On Wed, Apr 22, 2009 at 5:46 PM, James Peltier james_a_pelt...@yahoo.ca wrote:
 Here is the final working configuration

Thank you Sir!
Steph



Re: OpenBSD relayd and public addresses

2009-04-22 Thread James Records
Just curious, does this work when you use the transparent keyword?

The server will see the connection as coming from the relayd box in this
case correct?

Not that it matters but for logging purposes you may want to know.

J

On Wed, Apr 22, 2009 at 10:13 AM, FRLinux frli...@gmail.com wrote:

 On Wed, Apr 22, 2009 at 5:46 PM, James Peltier james_a_pelt...@yahoo.ca
 wrote:
  Here is the final working configuration

 Thank you Sir!
 Steph



Re: OpenBSD relayd and public addresses

2009-04-22 Thread James Peltier
--- On Wed, 4/22/09, James Records james.reco...@gmail.com wrote:

 From: James Records james.reco...@gmail.com
 Subject: Re: OpenBSD relayd and public addresses
 To: FRLinux frli...@gmail.com
 Cc: James Peltier james_a_pelt...@yahoo.ca, misc@openbsd.org
 Received: Wednesday, April 22, 2009, 1:25 PM
 Just curious, does this work when you
 use the transparent keyword?
 
 The server will see the connection as coming from the
 relayd box in this case correct?
 
 Not that it matters but for logging purposes you may want
 to know.

For note: I'm running the Apr 20, 2009 current code and when I issue a relayctl 
reload it comes back and states that the command fails with this configuration. 
 If I

  pkill relayd; sleep 2; relayd

relayd starts just fine but issues a warning about no redirections nothing to 
do.  Not sure if this is expected behaviour, I suspect not.

When I change it to 

  transparent forward blah...

it simply won't start and bitches about missing interface.



gdmsetup hangs

2009-04-22 Thread Nick Guenther
I've installed the latest snapshot on my new laptop and have been
poking around at things. I installed gdm from packages (which
thankfully were all there, for gdm) and turned it on in rc.local. It
works great but I've noticed that if I turn on Themed with Face
Chooser in gdmsetup then if I try to run gdmsetup from the login
screen it hangs. It displays the gdmsetup screen but the widgets are
all greyed out and the mouse is forever a 'wait' symbol. I discovered
that running it from within a session or running it from a
Plain-themed gdm works fine, though.

Has anyone ever seen this before? It's not critical, I'm just curious
if this is a bug in gdm or a bug in my setup.

Thanks!
-Nick



Re: OpenBSD relayd and public addresses

2009-04-22 Thread James Records
Its been a while since I messed with it, but that seems really familiar to
me, the config reload when I looked at  the code seemed to throw an error of
command failed, if the prefork setting was not set to 0, (which when set
to 0, makes the config not parse, if I remember correctly).  You are also
supposed to be able to send a kill -1 to the process (sighup), but that
doesn't seem to work either.  There is a bug reported about this.  However I
haven't heard of anyone being able to use tranparent mode either
successfully.

J

On Wed, Apr 22, 2009 at 10:56 AM, James Peltier james_a_pelt...@yahoo.cawrote:

 --- On Wed, 4/22/09, James Records james.reco...@gmail.com wrote:

  From: James Records james.reco...@gmail.com
  Subject: Re: OpenBSD relayd and public addresses
  To: FRLinux frli...@gmail.com
  Cc: James Peltier james_a_pelt...@yahoo.ca, misc@openbsd.org
  Received: Wednesday, April 22, 2009, 1:25 PM
  Just curious, does this work when you
  use the transparent keyword?
 
  The server will see the connection as coming from the
  relayd box in this case correct?
 
  Not that it matters but for logging purposes you may want
  to know.

 For note: I'm running the Apr 20, 2009 current code and when I issue a
 relayctl reload it comes back and states that the command fails with this
 configuration.  If I

  pkill relayd; sleep 2; relayd

 relayd starts just fine but issues a warning about no redirections nothing
 to do.  Not sure if this is expected behaviour, I suspect not.

 When I change it to

  transparent forward blah...

 it simply won't start and bitches about missing interface.



Can't install dia, fontconfig not found.

2009-04-22 Thread Christiano Farina Haesbaert
Hi,

I'm having the following error trying to install dia, looks like my X
distribution is broken ? or I'm missing something.

aleixo:haesbaert: sudo pkg_add -v dia
parsing dia-0.96.1p11
Dependencies for dia-0.96.1p11 resolve to: xdg-utils-1.0.2p4,
desktop-file-utils-0.15, libiconv-1.12, libart-2.3.20p0, popt-1.7p0,
libxml-2.6.32p2, gtk+2-2.14.7, gettext-0.17p0, libxslt-1.1.24p2
found libspec X11.11.1 in /usr/X11R6/lib
found libspec Xau.9.0 in /usr/X11R6/lib
found libspec Xcomposite.3.0 in /usr/X11R6/lib
found libspec Xcursor.4.0 in /usr/X11R6/lib
found libspec Xdamage.3.1 in /usr/X11R6/lib
found libspec Xdmcp.9.0 in /usr/X11R6/lib
found libspec Xext.10.0 in /usr/X11R6/lib
found libspec Xfixes.5.0 in /usr/X11R6/lib
found libspec Xi.10.0 in /usr/X11R6/lib
found libspec Xinerama.5.0 in /usr/X11R6/lib
found libspec Xrandr.6.0 in /usr/X11R6/lib
found libspec Xrender.5.0 in /usr/X11R6/lib
found libspec art_lgpl_2.5.20 in package libart-2.3.20p0
found libspec atk-1.0.2400.0 in package atk-1.24.0
found libspec c.50.1 in /usr/lib
found libspec cairo.9.2 in package cairo-1.8.6p1
found libspec expat.9.0 in /usr/lib
Can't install dia-0.96.1p11: lib not found fontconfig.6.0
Dependencies for dia-0.96.1p11 resolve to: xdg-utils-1.0.2p4,
desktop-file-utils-0.15, atk-1.24.0, libiconv-1.12, libart-2.3.20p0,
cairo-1.8.6p1, popt-1.7p0, libxml-2.6.32p2, gtk+2-2.14.7,
gettext-0.17p0, libxslt-1.1.24p2
Full dependency tree is
python-2.5.4p0,pcre-7.8,desktop-file-utils-0.15,sqlite3-3.6.10p0,libart-2.3.20p0,tiff-3.8.2p3,cairo-1.8.6p1,jasper-1.900.1p0,libxml-2.6.32p2,glib2-2.18.4p1,bzip2-1.0.5,hicolor-icon-theme-0.10p4,libgcrypt-1.4.3p0,png-1.2.35,jpeg-6bp3,pango-1.22.4,xdg-utils-1.0.2p4,atk-1.24.0,libiconv-1.12,libgpg-error-1.5,popt-1.7p0,gtk+2-2.14.7,gettext-0.17p0,glitz-0.5.6p1,libxslt-1.1.24p2
fontconfig.6.0: partial match in /usr/X11R6/lib: major=5, minor=1 (bad
major)
found libspec freetype.17.0 in /usr/X11R6/lib
found libspec gdk-x11-2.0.1400.1 in package gtk+2-2.14.7
found libspec gdk_pixbuf-2.0.1400.1 in package gtk+2-2.14.7
found libspec gio-2.0.1800.2 in package glib2-2.18.4p1
found libspec glib-2.0.1800.1 in package glib2-2.18.4p1
found libspec glitz.2.0 in package glitz-0.5.6p1
found libspec gmodule-2.0.1800.1 in package glib2-2.18.4p1
found libspec gobject-2.0.1800.1 in package glib2-2.18.4p1
found libspec gthread-2.0.1800.1 in package glib2-2.18.4p1
found libspec gtk-x11-2.0.1400.1 in package gtk+2-2.14.7
found libspec iconv.5.0 in package libiconv-1.12
found libspec intl.4.0 in package gettext-0.17p0
found libspec m.5.0 in /usr/lib
found libspec pango-1.0.1800.0 in package pango-1.22.4
found libspec pangocairo-1.0.1800.0 in package pango-1.22.4
found libspec pangoft2-1.0.1800.0 in package pango-1.22.4
found libspec pcre.2.2 in package pcre-7.8
found libspec pixman-1.12.0 in /usr/X11R6/lib
found libspec png.8.1 in package png-1.2.35
found libspec popt.0.3 in package popt-1.7p0
found libspec pthread.11.1 in /usr/lib
found libspec xml2.10.0 in package libxml-2.6.32p2
found libspec xslt.3.7 in package libxslt-1.1.24p2
found libspec z.4.1 in /usr/lib
aleixo:haesbaert:



dmesg:
OpenBSD 4.5-current (GENERIC.MP) #29: Fri Apr  3 12:53:13 MDT 2009
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Core(TM)2 Duo CPU L7500 @ 1.60GHz (GenuineIntel 686-class) 
1.60 GHz
cpu0: 
FPU,V86,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
real mem  = 2103726080 (2006MB)
avail mem = 2025799680 (1931MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 09/19/07, BIOS32 rev. 0 @ 0xfdc80, SMBIOS 
rev. 2.4 @ 0xe0010 (63 entries)
bios0: vendor LENOVO version 7NET27WW (1.08 ) date 09/19/2007
bios0: LENOVO 7666B44
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG HPET SLIC BOOT ASF! SSDT SSDT 
SSDT SSDT SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) DURT(S3) IGBE(S4) EXP0(S4) EXP1(S4) 
EXP2(S4) EXP3(S4) EXP4(S4) PCI1(S4) USB0(S3) USB1(S3) USB2(S3) USB3(S3) 
USB4(S3) EHC0(S3) EHC1(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: apic clock running at 199MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU L7500 @ 1.60GHz (GenuineIntel 686-class) 
1.60 GHz
cpu1: 
FPU,V86,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
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 -1 (EXP2)
acpiprt5 at acpi0: bus -1 (EXP3)
acpiprt6 at acpi0: bus -1 (EXP4)
acpiprt7 at acpi0: bus 5 (PCI1)
acpiec0 at acpi0
acpicpu0 at acpi0: 

Re: Can't install dia, fontconfig not found.

2009-04-22 Thread Bret S. Lambert
On Wed, Apr 22, 2009 at 05:00:22PM -0300, Christiano Farina Haesbaert wrote:
 Hi,
 
 I'm having the following error trying to install dia, looks like my X
 distribution is broken ? or I'm missing something.

It looks like your xbase needs to be updated. I ran into the same thing
rather recently, and pulling the latest xbase snap from a mirror had
my pkg_add -u running like a champ.

 
 aleixo:haesbaert: sudo pkg_add -v dia
 parsing dia-0.96.1p11
 Dependencies for dia-0.96.1p11 resolve to: xdg-utils-1.0.2p4,
 desktop-file-utils-0.15, libiconv-1.12, libart-2.3.20p0, popt-1.7p0,
 libxml-2.6.32p2, gtk+2-2.14.7, gettext-0.17p0, libxslt-1.1.24p2
 found libspec X11.11.1 in /usr/X11R6/lib
 found libspec Xau.9.0 in /usr/X11R6/lib
 found libspec Xcomposite.3.0 in /usr/X11R6/lib
 found libspec Xcursor.4.0 in /usr/X11R6/lib
 found libspec Xdamage.3.1 in /usr/X11R6/lib
 found libspec Xdmcp.9.0 in /usr/X11R6/lib
 found libspec Xext.10.0 in /usr/X11R6/lib
 found libspec Xfixes.5.0 in /usr/X11R6/lib
 found libspec Xi.10.0 in /usr/X11R6/lib
 found libspec Xinerama.5.0 in /usr/X11R6/lib
 found libspec Xrandr.6.0 in /usr/X11R6/lib
 found libspec Xrender.5.0 in /usr/X11R6/lib
 found libspec art_lgpl_2.5.20 in package libart-2.3.20p0
 found libspec atk-1.0.2400.0 in package atk-1.24.0
 found libspec c.50.1 in /usr/lib
 found libspec cairo.9.2 in package cairo-1.8.6p1
 found libspec expat.9.0 in /usr/lib
 Can't install dia-0.96.1p11: lib not found fontconfig.6.0
 Dependencies for dia-0.96.1p11 resolve to: xdg-utils-1.0.2p4,
 desktop-file-utils-0.15, atk-1.24.0, libiconv-1.12, libart-2.3.20p0,
 cairo-1.8.6p1, popt-1.7p0, libxml-2.6.32p2, gtk+2-2.14.7,
 gettext-0.17p0, libxslt-1.1.24p2
 Full dependency tree is
 python-2.5.4p0,pcre-7.8,desktop-file-utils-0.15,sqlite3-3.6.10p0,libart-2.3.20p0,tiff-3.8.2p3,cairo-1.8.6p1,jasper-1.900.1p0,libxml-2.6.32p2,glib2-2.18.4p1,bzip2-1.0.5,hicolor-icon-theme-0.10p4,libgcrypt-1.4.3p0,png-1.2.35,jpeg-6bp3,pango-1.22.4,xdg-utils-1.0.2p4,atk-1.24.0,libiconv-1.12,libgpg-error-1.5,popt-1.7p0,gtk+2-2.14.7,gettext-0.17p0,glitz-0.5.6p1,libxslt-1.1.24p2
 fontconfig.6.0: partial match in /usr/X11R6/lib: major=5, minor=1 (bad
 major)
 found libspec freetype.17.0 in /usr/X11R6/lib
 found libspec gdk-x11-2.0.1400.1 in package gtk+2-2.14.7
 found libspec gdk_pixbuf-2.0.1400.1 in package gtk+2-2.14.7
 found libspec gio-2.0.1800.2 in package glib2-2.18.4p1
 found libspec glib-2.0.1800.1 in package glib2-2.18.4p1
 found libspec glitz.2.0 in package glitz-0.5.6p1
 found libspec gmodule-2.0.1800.1 in package glib2-2.18.4p1
 found libspec gobject-2.0.1800.1 in package glib2-2.18.4p1
 found libspec gthread-2.0.1800.1 in package glib2-2.18.4p1
 found libspec gtk-x11-2.0.1400.1 in package gtk+2-2.14.7
 found libspec iconv.5.0 in package libiconv-1.12
 found libspec intl.4.0 in package gettext-0.17p0
 found libspec m.5.0 in /usr/lib
 found libspec pango-1.0.1800.0 in package pango-1.22.4
 found libspec pangocairo-1.0.1800.0 in package pango-1.22.4
 found libspec pangoft2-1.0.1800.0 in package pango-1.22.4
 found libspec pcre.2.2 in package pcre-7.8
 found libspec pixman-1.12.0 in /usr/X11R6/lib
 found libspec png.8.1 in package png-1.2.35
 found libspec popt.0.3 in package popt-1.7p0
 found libspec pthread.11.1 in /usr/lib
 found libspec xml2.10.0 in package libxml-2.6.32p2
 found libspec xslt.3.7 in package libxslt-1.1.24p2
 found libspec z.4.1 in /usr/lib
 aleixo:haesbaert:
 
 
 
 dmesg:
 OpenBSD 4.5-current (GENERIC.MP) #29: Fri Apr  3 12:53:13 MDT 2009
 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
 cpu0: Intel(R) Core(TM)2 Duo CPU L7500 @ 1.60GHz (GenuineIntel 686-class) 
 1.60 GHz
 cpu0: 
 FPU,V86,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
 real mem  = 2103726080 (2006MB)
 avail mem = 2025799680 (1931MB)
 mainbus0 at root
 bios0 at mainbus0: AT/286+ BIOS, date 09/19/07, BIOS32 rev. 0 @ 0xfdc80, 
 SMBIOS rev. 2.4 @ 0xe0010 (63 entries)
 bios0: vendor LENOVO version 7NET27WW (1.08 ) date 09/19/2007
 bios0: LENOVO 7666B44
 acpi0 at bios0: rev 2
 acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG HPET SLIC BOOT ASF! SSDT 
 SSDT SSDT SSDT SSDT
 acpi0: wakeup devices LID_(S3) SLPB(S3) DURT(S3) IGBE(S4) EXP0(S4) EXP1(S4) 
 EXP2(S4) EXP3(S4) EXP4(S4) PCI1(S4) USB0(S3) USB1(S3) USB2(S3) USB3(S3) 
 USB4(S3) EHC0(S3) EHC1(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: apic clock running at 199MHz
 cpu1 at mainbus0: apid 1 (application processor)
 cpu1: Intel(R) Core(TM)2 Duo CPU L7500 @ 1.60GHz (GenuineIntel 686-class) 
 1.60 GHz
 cpu1: 
 FPU,V86,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
 ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
 ioapic0: misconfigured as 

newfs block device

2009-04-22 Thread John Brahy
Have I completely lost my mind or should I be able to give newfs a block device?

# df -ht ffs
Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/wd0a 1006M203M753M21%/
/dev/wd0j  7.9G6.0G1.5G81%/home
/dev/wd0i 1006M6.0K956M 0%/tmp
/dev/wd0d  3.9G1.2G2.6G32%/usr
/dev/wd0k  9.8G730M8.6G 8%/usr/local
/dev/wd0f  2.0G   66.6M1.8G 3%/usr/obj
/dev/wd0e  2.0G1.1G774M60%/usr/src
/dev/wd0h 1006M123M833M13%/var
/dev/wd0l  114G   78.4G   30.1G72%/virtualhosts
/dev/wd1a  367G   84.9G264G24%/backups
/dev/wd0g  2.0G221M1.7G12%/usr/ports
# umount obj
# newfs /dev/wd0f
newfs: /dev/wd0f: block device
#

I thought that I have done that before. Have we lost functionality in
4.5 or just my mind?



Re: newfs block device

2009-04-22 Thread Theo de Raadt
Have I completely lost my mind or should I be able to give newfs a block 
device?

The former.  You cannot newfs a block device.



Re: newfs block device

2009-04-22 Thread Ted Unangst
It was always wrong.  Use the raw device.

On Wed, Apr 22, 2009 at 5:02 PM, John Brahy j...@brahy.com wrote:
 Have I completely lost my mind or should I be able to give newfs a block
device?

 # df -ht ffs
 Filesystem SizeUsed   Avail Capacity  Mounted on
 /dev/wd0a 1006M203M753M21%/
 /dev/wd0j  7.9G6.0G1.5G81%/home
 /dev/wd0i 1006M6.0K956M 0%/tmp
 /dev/wd0d  3.9G1.2G2.6G32%/usr
 /dev/wd0k  9.8G730M8.6G 8%/usr/local
 /dev/wd0f  2.0G   66.6M1.8G 3%/usr/obj
 /dev/wd0e  2.0G1.1G774M60%/usr/src
 /dev/wd0h 1006M123M833M13%/var
 /dev/wd0l  114G   78.4G   30.1G72%/virtualhosts
 /dev/wd1a  367G   84.9G264G24%/backups
 /dev/wd0g  2.0G221M1.7G12%/usr/ports
 # umount obj
 # newfs /dev/wd0f
 newfs: /dev/wd0f: block device
 #

 I thought that I have done that before. Have we lost functionality in
 4.5 or just my mind?



Re: newfs block device

2009-04-22 Thread Dorian Büttner

John Brahy schrieb:

Have I completely lost my mind or should I be able to give newfs a block device?

# df -ht ffs
Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/wd0a 1006M203M753M21%/
/dev/wd0j  7.9G6.0G1.5G81%/home
/dev/wd0i 1006M6.0K956M 0%/tmp
/dev/wd0d  3.9G1.2G2.6G32%/usr
/dev/wd0k  9.8G730M8.6G 8%/usr/local
/dev/wd0f  2.0G   66.6M1.8G 3%/usr/obj
/dev/wd0e  2.0G1.1G774M60%/usr/src
/dev/wd0h 1006M123M833M13%/var
/dev/wd0l  114G   78.4G   30.1G72%/virtualhosts
/dev/wd1a  367G   84.9G264G24%/backups
/dev/wd0g  2.0G221M1.7G12%/usr/ports
# umount obj
# newfs /dev/wd0f
newfs: /dev/wd0f: block device
#

I thought that I have done that before. Have we lost functionality in
4.5 or just my mind?
  

According to the man page, use raw device instead /dev/rwd0f.



Re: newbie scrub question in current

2009-04-22 Thread Stuart Henderson
On 2009-04-22, Didier Wiroth dwir...@gmail.com wrote:
 got it, thanks!
 for the archive ...
 match out on $ext_if all scrub (max-mss 1440)

well, you miss some information which was given in current.html there.

for the archive:

if you run -current, you _must_ follow current.html, and you _should_ also
follow source-changes (or the unofficial odc or owc lists on squish.net
if you prefer a more compressed format).

see what changed before you upgrade to a newer snapshot.



Re: azalia beep control [Was: ThinkPad T60 audible bell *very* loud]

2009-04-22 Thread Jacob Meuser
On Wed, Apr 22, 2009 at 01:41:59PM +0200, LEVAI Daniel wrote:
 On Tuesday 21 April 2009 14.37.55 Jacob Meuser wrote:
  On Tue, Apr 21, 2009 at 12:56:22PM +0200, LEVAI Daniel wrote:
   Hi!
  
   I'm using this ThinkPad T60, and just realized that if using an earphone,
   the console's audible bell is blowing my ears off. I couldn't find
   anything relevant in mixerctl -a output, nevertheless I've changed every
   outputs control's volume to 0 to see which one could be it (no luck). Is
   it possible to lower the system beep's volume, so my ears won't bleed by
   tomorrow? :)
 
  hopefully this gets you 'beep' controls.  please let me know.
 
  beep generators should be considered i/o endpoints, like pins and
  converters.
 
 I've applied your diff, and now I have a sel2 control which claims that its 
 source is 'beep'. However, I can not do anything with it; when muted and zero 
 volume the beep still happens:
 
 inputs.sel2_source=beep
 outputs.sel2_mute=on
 outputs.sel2=0
 inputs.mix2_source=sel2,dac,sel4,sel6,cd

might work better if you remove beep sources.  I mean:

$ mixerctl inputs.mix2_source=dac,sel4,sel6,cd

 $ mixerctl -a

always use `mixerctl -v` when showing your mixer. otherwise, lots of info
is missing.

-- 
jake...@sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org



Re: Can't install dia, fontconfig not found.

2009-04-22 Thread Stuart Henderson
your installed X libraries are too old.

On 2009-04-22, Christiano Farina Haesbaert christiano...@gmail.com wrote:
 Hi,

 I'm having the following error trying to install dia, looks like my X
 distribution is broken ? or I'm missing something.

 aleixo:haesbaert: sudo pkg_add -v dia
 parsing dia-0.96.1p11
 Dependencies for dia-0.96.1p11 resolve to: xdg-utils-1.0.2p4,
 desktop-file-utils-0.15, libiconv-1.12, libart-2.3.20p0, popt-1.7p0,
 libxml-2.6.32p2, gtk+2-2.14.7, gettext-0.17p0, libxslt-1.1.24p2
 found libspec X11.11.1 in /usr/X11R6/lib
 found libspec Xau.9.0 in /usr/X11R6/lib
 found libspec Xcomposite.3.0 in /usr/X11R6/lib
 found libspec Xcursor.4.0 in /usr/X11R6/lib
 found libspec Xdamage.3.1 in /usr/X11R6/lib
 found libspec Xdmcp.9.0 in /usr/X11R6/lib
 found libspec Xext.10.0 in /usr/X11R6/lib
 found libspec Xfixes.5.0 in /usr/X11R6/lib
 found libspec Xi.10.0 in /usr/X11R6/lib
 found libspec Xinerama.5.0 in /usr/X11R6/lib
 found libspec Xrandr.6.0 in /usr/X11R6/lib
 found libspec Xrender.5.0 in /usr/X11R6/lib
 found libspec art_lgpl_2.5.20 in package libart-2.3.20p0
 found libspec atk-1.0.2400.0 in package atk-1.24.0
 found libspec c.50.1 in /usr/lib
 found libspec cairo.9.2 in package cairo-1.8.6p1
 found libspec expat.9.0 in /usr/lib
 Can't install dia-0.96.1p11: lib not found fontconfig.6.0
 Dependencies for dia-0.96.1p11 resolve to: xdg-utils-1.0.2p4,
 desktop-file-utils-0.15, atk-1.24.0, libiconv-1.12, libart-2.3.20p0,
 cairo-1.8.6p1, popt-1.7p0, libxml-2.6.32p2, gtk+2-2.14.7,
 gettext-0.17p0, libxslt-1.1.24p2
 Full dependency tree is
 python-2.5.4p0,pcre-7.8,desktop-file-utils-0.15,sqlite3-3.6.10p0,libart-2.3.20p0,tiff-3.8.2p3,cairo-1.8.6p1,jasper-1.900.1p0,libxml-2.6.32p2,glib2-2.18.4p1,bzip2-1.0.5,hicolor-icon-theme-0.10p4,libgcrypt-1.4.3p0,png-1.2.35,jpeg-6bp3,pango-1.22.4,xdg-utils-1.0.2p4,atk-1.24.0,libiconv-1.12,libgpg-error-1.5,popt-1.7p0,gtk+2-2.14.7,gettext-0.17p0,glitz-0.5.6p1,libxslt-1.1.24p2
 fontconfig.6.0: partial match in /usr/X11R6/lib: major=5, minor=1 (bad
 major)
 found libspec freetype.17.0 in /usr/X11R6/lib
 found libspec gdk-x11-2.0.1400.1 in package gtk+2-2.14.7
 found libspec gdk_pixbuf-2.0.1400.1 in package gtk+2-2.14.7
 found libspec gio-2.0.1800.2 in package glib2-2.18.4p1
 found libspec glib-2.0.1800.1 in package glib2-2.18.4p1
 found libspec glitz.2.0 in package glitz-0.5.6p1
 found libspec gmodule-2.0.1800.1 in package glib2-2.18.4p1
 found libspec gobject-2.0.1800.1 in package glib2-2.18.4p1
 found libspec gthread-2.0.1800.1 in package glib2-2.18.4p1
 found libspec gtk-x11-2.0.1400.1 in package gtk+2-2.14.7
 found libspec iconv.5.0 in package libiconv-1.12
 found libspec intl.4.0 in package gettext-0.17p0
 found libspec m.5.0 in /usr/lib
 found libspec pango-1.0.1800.0 in package pango-1.22.4
 found libspec pangocairo-1.0.1800.0 in package pango-1.22.4
 found libspec pangoft2-1.0.1800.0 in package pango-1.22.4
 found libspec pcre.2.2 in package pcre-7.8
 found libspec pixman-1.12.0 in /usr/X11R6/lib
 found libspec png.8.1 in package png-1.2.35
 found libspec popt.0.3 in package popt-1.7p0
 found libspec pthread.11.1 in /usr/lib
 found libspec xml2.10.0 in package libxml-2.6.32p2
 found libspec xslt.3.7 in package libxslt-1.1.24p2
 found libspec z.4.1 in /usr/lib
 aleixo:haesbaert:



 dmesg:
 OpenBSD 4.5-current (GENERIC.MP) #29: Fri Apr  3 12:53:13 MDT 2009
 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
 cpu0: Intel(R) Core(TM)2 Duo CPU L7500 @ 1.60GHz (GenuineIntel 686-class) 
 1.60 GHz
 cpu0: 
 FPU,V86,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
 real mem  = 2103726080 (2006MB)
 avail mem = 2025799680 (1931MB)
 mainbus0 at root
 bios0 at mainbus0: AT/286+ BIOS, date 09/19/07, BIOS32 rev. 0 @ 0xfdc80, 
 SMBIOS rev. 2.4 @ 0xe0010 (63 entries)
 bios0: vendor LENOVO version 7NET27WW (1.08 ) date 09/19/2007
 bios0: LENOVO 7666B44
 acpi0 at bios0: rev 2
 acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG HPET SLIC BOOT ASF! SSDT 
 SSDT SSDT SSDT SSDT
 acpi0: wakeup devices LID_(S3) SLPB(S3) DURT(S3) IGBE(S4) EXP0(S4) EXP1(S4) 
 EXP2(S4) EXP3(S4) EXP4(S4) PCI1(S4) USB0(S3) USB1(S3) USB2(S3) USB3(S3) 
 USB4(S3) EHC0(S3) EHC1(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: apic clock running at 199MHz
 cpu1 at mainbus0: apid 1 (application processor)
 cpu1: Intel(R) Core(TM)2 Duo CPU L7500 @ 1.60GHz (GenuineIntel 686-class) 
 1.60 GHz
 cpu1: 
 FPU,V86,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
 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: 

Infoemail Bradesco - misc

2009-04-22 Thread infoemail
Vocj acaba de receber o seu Infoemail Bradesco.

Sem estar conectado ` Internet, vocj visualiza suas informagues de saldos,

zltimos langamentos e langamentos futuros de conta corrente e conta poupanga.

Bradescompleto.



Obs.: Clique no arquivo anexo para visualiza-lo.



Re: PF and H.323 / Videoconference systems

2009-04-22 Thread Dorian Büttner

Fernando Alvarez schrieb:

Hi all,

I've trying to configure an OpenBSD box to allow PF to pass
video-conference traffic through a NATed network without success.

I tried to setup the most basic configuration in order to find out where
the problem could be. Last test I did, I configured an OpenBSD box with
two network interfaces ($if_int and $if_ext) and PF enabled. NAT is done
on $if_ext, and all the traffic is redirected from LAN to the videoconf
PC.

[VideoConf PC][OpenBSD box]-LAN
192.168.10.2/24  .10   172.22.1.200/16

- When I try to call (using Netmeeting and other H.323 software) from
the VideoconfPC to a PC, the other party answers and audio flows only in
one direction: The PC in the LAN hears what I say, but nothing is heard
in the VideoConf PC.

- When I try to call from the LAN to the VideoConf PC (using OBSD's
external IP as address) Netmeeting says the other party is not
responding.

Tcpdump does not show any blocked packet and the rdr seems to work
properly. As you can see bellow, my pf.conf is very simple:

Any ideas? What do you think I've misconfigured?

pf.conf
-
# interfaces
if_ext = pcn0
if_int = pcn1

videoconf = 192.168.10.2

nat log on $if_ext from $videoconf to any - $if_ext
rdr log on $if_ext - $videoconf

pass log all
--

Thanks in advance,

Fernando Alvarez
  

Hi Fernando,

you could google for H.323 over NAT and find tons of hits, none of 
them giving you an easy answer. The problem is, that the nat device 
rewrites the source ip address in the tcp-header, while it does not 
inspect the H.323 packet's Protocol data unit which also contains the 
source ip address. This is most likely irritating your apps.


Several workarounds exist:
- use H.323 aware firewall
- stick with a provider that lets you use his session border controller
- check your apps if you could propably go with public stun servers
- give gnu gatekeeper a try, which is in ports 
http://www.gnugk.org/h323-proxy.html

- ... (i.e. put netmeeting in a dmz)

Regards,
Dorian



OpenBSD as Wireless access point

2009-04-22 Thread Parvinder Bhasin

All,

Can someone suggest me a good WORKING wireless PCI or USB card (PCI  
preferred) that I could use for setting up machine as Wireless access  
point?
I have tried 3-4 cards already and learnt that they were not supported  
for the AP mode.


Thanks



Re: azalia beep control [Was: ThinkPad T60 audible bell *very* loud]

2009-04-22 Thread Jacob Meuser
On Wed, Apr 22, 2009 at 09:22:56PM +, Jacob Meuser wrote:
 On Wed, Apr 22, 2009 at 01:41:59PM +0200, LEVAI Daniel wrote:
  On Tuesday 21 April 2009 14.37.55 Jacob Meuser wrote:
   On Tue, Apr 21, 2009 at 12:56:22PM +0200, LEVAI Daniel wrote:
Hi!
   
I'm using this ThinkPad T60, and just realized that if using an 
earphone,
the console's audible bell is blowing my ears off. I couldn't find
anything relevant in mixerctl -a output, nevertheless I've changed every
outputs control's volume to 0 to see which one could be it (no luck). Is
it possible to lower the system beep's volume, so my ears won't bleed by
tomorrow? :)
  
   hopefully this gets you 'beep' controls.  please let me know.
  
   beep generators should be considered i/o endpoints, like pins and
   converters.
  
  I've applied your diff, and now I have a sel2 control which claims that its 
  source is 'beep'. However, I can not do anything with it; when muted and 
  zero 
  volume the beep still happens:
  
  inputs.sel2_source=beep
  outputs.sel2_mute=on
  outputs.sel2=0
  inputs.mix2_source=sel2,dac,sel4,sel6,cd
 
 might work better if you remove beep sources.  I mean:
 
 $ mixerctl inputs.mix2_source=dac,sel4,sel6,cd

bleh.  that won't work on this particular mixer.

and the intel docs say, When the beep generator is actively generating
a tone, its output drives all Pin Widgets which are currently defined
output pins in a method of the vendor's choice, either by switching the
pin to the beep signal or by mixing the tone into the currently playing
stream.  This node is never listed on any other node's connection list.
The actual vendor-defined connection only persists while the Beep
Generator is actively generating a tone.  This widget may contain an
optional amplifier.

the beep generator is what you are seeing as beep.  notice that this
codec (AD1981HD) violates the standard by listing the beep generator
in another node's connection list (inputs.sel2_source=beep).  and it
appears that there's no control over the beep through azalia.

the intel docs continue, This Beep Generator feature is independent of
any optional PC Beep Pin or Analog Beep Pin input which is intended
to receive and externally generated tone or sound.  The presence of
such a beep input is not exposed to software, nor defined in this
specification.  If used, this type of beep input would be connected
through the codec to output pins in a vendor defined way, but such a
connection may be maintained only while the Link reset (RST#) is
asserted.

interestingly, the codec's datasheet lists a PC BEEP IN at nid 16,
but the codec tells us nid 16 is:

azalia0: black16 wcap=40
cap=20INPUT
[15/00] color=black device=other conn=none conntype=atapi
location=spec2 chassis=internal special=atapi

I guess that follows the spec, which says The presence of such a beep
input is not exposed to software :/  this is common though.  on several
realtek codecs, the beep input is similarly obscured, but they are
controllable like any other input.  remember, the behaviour is vendor
defined.  but anyway, there is again apparently no way for you to turn
this off through azalia because, well, it is turned off through azalia
but you still hear it.

so I guess you just have to use wsconsctl.

-- 
jake...@sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org



Re: autowhitelister for spamd needs testing

2009-04-22 Thread Stuart Henderson
On 2009-04-22, Gregory Edigarov g...@bestnet.kharkov.ua wrote:
 Hello list,
 I think spamd users would like to try this small utility.
 Although its development is in the very beginning  it does its  job 
 quite well for me it was written for the case
 where a big mass mailer like google  is trying to send us mail. 

 The utility notices such mailers and white lists  it by adding its 
 allowed nets taken through spf queries to the white list. i.e.
 it reads output of spamdb, then checks spf records for all greylisted 
 mails and produces 'whitelist.auto' file  which can
 then be used with spamd-setup.

 it is small, so I put it into attachment.


I see a tiny little problem with this method... sometimes people send
spam from domains whose DNS they control.



troubleshooting printer

2009-04-22 Thread astar

first try at a desktop openbsd.  I have cups and ghostscript installed
from ports. I have a usb printer hp psc 1510.  I have cups configured
enough so port 631 tells me cups is ready to print.  I start printer
and the status goes to idle.  I test page and the printer stops.  I
would like to do something like cat test  /dev/usb/lp0 but I do not
know the values of the device.  Please supply.



OpenBSD 4.5 (GENERIC) #2052: Sat Feb 28 14:55:24 MST 2009
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC
real mem = 1071513600 (1021MB)
avail mem = 1028304896 (980MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf0100 (57 entries)
bios0: vendor Award Software International, Inc. version F4 date 04/30/2008
bios0: Gigabyte Technology Co., Ltd. GA-MA78GM-S2H
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP SSDT HPET MCFG APIC
acpi0: wakeup devices USB0(S3) USB1(S3) USB2(S3) USB3(S3) USB4(S3)
USB5(S3) USB6(S3) SBAZ(S4) P2P_(S5) PCE2(S4) PCE3(S4) PCE4(S4)
PCE5(S4) PCE6(S4) PCE7(S4) PCE9(S4) PCEA(S4) PCEB(S4) PCEC(S4)
PS2M(S5) PS2K(S5) PCI0(S5)
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpihpet0 at acpi0: 14318180 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Athlon(tm) 64 X2 Dual Core Processor 5400+, 2806.36 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
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, 8 4MB entries fully associative
cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: apic clock running at 200MHz
cpu at mainbus0: not configured
ioapic0 at mainbus0 apid 2 pa 0xfec0, version 21, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 2
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 3 (P2P_)
acpiprt2 at acpi0: bus 1 (PCE2)
acpiprt3 at acpi0: bus -1 (PCE3)
acpiprt4 at acpi0: bus -1 (PCE4)
acpiprt5 at acpi0: bus -1 (PCE5)
acpiprt6 at acpi0: bus -1 (PCE6)
acpiprt7 at acpi0: bus -1 (PCE7)
acpiprt8 at acpi0: bus -1 (PCE9)
acpiprt9 at acpi0: bus 2 (PCEA)
acpiprt10 at acpi0: bus -1 (PCEB)
acpiprt11 at acpi0: bus -1 (PCEC)
acpiprt12 at acpi0: bus -1 (AGP_)
acpicpu0 at acpi0: PSS
acpibtn0 at acpi0: PWRB
cpu0: PowerNow! K8 2806 MHz: speeds: 2800 2600 2400 2200 2000 1800 1000 MHz
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0 AMD RS780 Host rev 0x00
ppb0 at pci0 dev 2 function 0 AMD RS780 PCIE rev 0x00: apic 2 int 18 (irq
5)
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 vendor NVIDIA, unknown product 0x06e4 rev
0xa1
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ppb1 at pci0 dev 10 function 0 AMD RS780 PCIE rev 0x00: apic 2 int
18 (irq 5)
pci2 at ppb1 bus 2
re0 at pci2 dev 0 function 0 Realtek 8168 rev 0x02: RTL8168C/8111C
(0x3c00), apic 2 int 18 (irq 5), address 00:1f:d0:5a:ce:f7
rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 2
pciide0 at pci0 dev 17 function 0 ATI SBx00 SATA rev 0x00: DMA
(unsupported), channel 0 configured to native-PCI, channel 1
configured to native-PCI
pciide0: using apic 2 int 22 (irq 11) for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: ST3320620AS
wd0: 16-sector PIO, LBA48, 305244MB, 625140335 sectors
pciide0: channel 1 ignored (not responding; disabled or no drives?)
ohci0 at pci0 dev 18 function 0 ATI SB700 USB rev 0x00: apic 2 int
16 (irq 3), version 1.0, legacy support
ohci1 at pci0 dev 18 function 1 ATI SB700 USB rev 0x00: apic 2 int
16 (irq 3), version 1.0, legacy support
ehci0 at pci0 dev 18 function 2 ATI SB700 USB2 rev 0x00: apic 2 int
17 (irq 10)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 ATI EHCI root hub rev 2.00/1.00 addr 1
ohci2 at pci0 dev 19 function 0 ATI SB700 USB rev 0x00: apic 2 int
18 (irq 5), version 1.0, legacy support
ohci3 at pci0 dev 19 function 1 ATI SB700 USB rev 0x00: apic 2 int
18 (irq 5), version 1.0, legacy support
ehci1 at pci0 dev 19 function 2 ATI SB700 USB2 rev 0x00: apic 2 int
19 (irq 11)
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 ATI EHCI root hub rev 2.00/1.00 addr 1
piixpm0 at pci0 dev 20 function 0 ATI SBx00 SMBus rev 0x3a: SMI
iic0 at piixpm0
spdmem0 at iic0 addr 0x50: 1GB DDR2 SDRAM non-parity PC2-4200CL5
pciide1 at pci0 dev 20 function 1 ATI SB700 IDE rev 0x00: DMA,
channel 0 configured to compatibility, channel 1 configured to
compatibility
atapiscsi0 at pciide1 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: Optiarc, DVD RW AD-7200A, 1.06 ATAPI
5/cdrom removable
cd0(pciide1:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 4
azalia0 at pci0 dev 20 function 2 ATI SBx00 HD Audio rev 0x00: apic
2 int 16 (irq 3)
azalia0: codecs: Realtek ALC885
audio0 at azalia0
pcib0 at pci0 dev 20 function 3 ATI SB700 ISA rev 0x00
ppb2 at pci0 dev 20 function 4 ATI SB600 PCI rev 0x00
pci3 at 

Re: OpenBSD as Wireless access point

2009-04-22 Thread Francisco Valladolid Hdez.
Hi

--- On Thu, 4/23/09, Parvinder Bhasin parvinder.bha...@gmail.com wrote:

 From: Parvinder Bhasin parvinder.bha...@gmail.com
 Subject: OpenBSD as Wireless access point
 To: misc misc@openbsd.org
 Date: Thursday, April 23, 2009, 12:56 AM
 All,
 
 Can someone suggest me a good WORKING wireless PCI or USB
 card (PCI preferred) that I could use for setting up machine
 as Wireless access point?
 I have tried 3-4 cards already and learnt that they were
 not supported for the AP mode.

currently I'm using ral pci card, specifically CWP-854 from Cnet
http://www.cnetusa.com/eng/CWP-854.php

This card use the ral driver and let use it with WPA encryption Algorith and 
work fine.

Regards.

 
 Thanks



Re: troubleshooting printer

2009-04-22 Thread Jacob Meuser
On Wed, Apr 22, 2009 at 09:48:03PM -0400, as...@spamcop.net wrote:
 first try at a desktop openbsd.  I have cups and ghostscript installed
 from ports. I have a usb printer hp psc 1510.  I have cups configured
 enough so port 631 tells me cups is ready to print.  I start printer
 and the status goes to idle.  I test page and the printer stops.  I
 would like to do something like cat test  /dev/usb/lp0 but I do not
 know the values of the device.  Please supply.

 ulpt0 at uhub2 port 1 configuration 1 interface 1 HP PSC 1500 series
 rev 2.00/1.00 addr 2
 ulpt0: using bi-directional mode

/dev/ulpt0

see also http://www.openprinting.org/show_printer.cgi?recnum=HP-PSC_1510

-- 
jake...@sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org



Re: autowhitelister for spamd needs testing

2009-04-22 Thread jared r r spiegel
On Thu, Apr 23, 2009 at 12:30:28AM +, Stuart Henderson wrote:

 I see a tiny little problem with this method... sometimes people send
 spam from domains whose DNS they control.

  +1

  i think part of the success i experience using SPF as a means to create
  whitelists is in the fact that i maintain the list of domains i fancy
  whitelisting.  unfortunately, it would be trivial for someone to take
  advantage of an spf-based automatic whitelist to slip right on thru
  spamd(8).

  it's a pisser.

-- 

  jared



Re: autowhitelister for spamd needs testing

2009-04-22 Thread Dave Anderson
On Wed, 22 Apr 2009, jared r r spiegel wrote:

On Thu, Apr 23, 2009 at 12:30:28AM +, Stuart Henderson wrote:

 I see a tiny little problem with this method... sometimes people send
 spam from domains whose DNS they control.

  +1

  i think part of the success i experience using SPF as a means to create
  whitelists is in the fact that i maintain the list of domains i fancy
  whitelisting.  unfortunately, it would be trivial for someone to take
  advantage of an spf-based automatic whitelist to slip right on thru
  spamd(8).

  it's a pisser.

What might make sense is to alter the script to generate a list of
canditates for whitelisting, but only apply any of them after they are
manually approved.

Dave

-- 
Dave Anderson
d...@daveanderson.com



RAIDframe - screech, smash.

2009-04-22 Thread Aaron Mason
Hey all,

Lately I've been using VMware to delve into the murky waters of
creating and maintaining RAID arrays, and I thought I'd get a bit
adventurous.  I compiled the kernel with the following config file:

# cat /usr/src/sys/arch/i386/conf/GENERIC.RAID

include arch/i386/conf/GENERIC

pseudo-device raid 8
option RAID_AUTOCONFIG

#

The commented out default in the GENERIC file says 4 - I figured if I
changed it to 8, I could get more RAIDs in there for a rather large
nested RAID setup.

My aim was for a RAID 1 array with 4 RAID 0 arrays of 4 10gb disks
each within.  So I set up the first 4 arrays which went without
incident, but when I went to create the RAID 1, it said that raid4
didn't exist.  I ran MAKEDEV to attempt to create another 4 sets (to
complete the 8) to no avail.  So I created the last set of RAID device
files, and went on to create the array.  This went without incident
until I went to initialise the array.  At this point the kernel
panicked.

As I didn't get the panic message the first time, I attempted to
recreate the error, and here's what I did, along with a summary of my
system:

The VM has 16 10gb SCSI disks.  Each one would have the system on it
should any of the disks fail and a reboot be needed at the same
time.  The RAID arrays are configured thus:

# cat /etc/raid0_1.conf
START array
#One column, 4 drives per column, no spares
1 4 0
START disks
# A list of the drives to use
/dev/sd4d
/dev/sd5d
/dev/sd6d
/dev/sd7d
START layout
# 128 bytes per stripe, 1 stripe per parity unit, 1 stripe per
# reconstruction unit, in raid 0
128 1 1 0
START queue
# This establishes a FIFO queue of 100 requests
fifo 100
# cat /etc/raid0_2.conf
START array
#One column, 4 drives per column, no spares
1 4 0
START disks
# A list of the drives to use
/dev/sd8d
/dev/sd9d
/dev/sd10d
/dev/sd11d
START layout
# 128 bytes per stripe, 1 stripe per parity unit, 1 stripe per
# reconstruction unit, in raid 0
128 1 1 0
START queue
# This establishes a FIFO queue of 100 requests
fifo 100
# cat /etc/raid0_3.conf
START array
#One column, 4 drives per column, no spares
1 4 0
START disks
# A list of the drives to use
/dev/sd12d
/dev/sd13d
/dev/sd14d
/dev/sd15d
START layout
# 128 bytes per stripe, 1 stripe per parity unit, 1 stripe per
# reconstruction unit, in raid 0
128 1 1 0
START queue
# This establishes a FIFO queue of 100 requests
fifo 100
#

I would then clone the first disk's table:

# disklabel sd0  disklabel.tpl
# for i in 1 2 3; do echo y | fdisk -i sd$i; disklabel -R sd$i
disklabel.tpl; done
(whole heap of crap)

I would then create a RAID partition inside each RAID device, then I
would initialise the RAID 1, configured as:

# cat /etc/raid1.conf
START array
#One column, 4 drives per column, no spares
1 4 0
START disks
# A list of the drives to use
/dev/raid0d
/dev/raid1d
/dev/raid2d
/dev/raid3d
START layout
# 128 bytes per stripe, 1 stripe per parity unit, 1 stripe per
# reconstruction unit, in raid 1
128 1 1 1
START queue
# This establishes a FIFO queue of 100 requests
fifo 100
#

Then I would initialise the RAID array:

# raidctl -C /etc/raid1.conf raid4
# raidctl -I 100 raid4
# raidctl -iv raid4

At this point, all hell broke loose, but not this time.

Unfortunately I didn't get the error message the first time, but after
I set it up to auto configure and take place as root, I rebooted, only
to find that while the first 4 raid archives appeared, the root one
did not - in fact the first 4's parity statuses were DIRTY.  As such
it booted from the first hard drive as it did before.

I'll be trying this again in a fresh install of OpenBSD to try and
catch the error message.  In the meantime if anybody can shed some
light on why what I've done hasn't worked, I would really appreciate
it.

Regards, and sorry for the TL;DR.

--
Aaron Mason AKA Absorbent Shoulder Man
iOh, why does everything I whip leave me?/i



Re: autowhitelister for spamd needs testing

2009-04-22 Thread Daniel Ouellet

Dave Anderson wrote:

On Wed, 22 Apr 2009, jared r r spiegel wrote:


On Thu, Apr 23, 2009 at 12:30:28AM +, Stuart Henderson wrote:


I see a tiny little problem with this method... sometimes people send
spam from domains whose DNS they control.

 +1

 i think part of the success i experience using SPF as a means to create
 whitelists is in the fact that i maintain the list of domains i fancy
 whitelisting.  unfortunately, it would be trivial for someone to take
 advantage of an spf-based automatic whitelist to slip right on thru
 spamd(8).

 it's a pisser.


What might make sense is to alter the script to generate a list of
canditates for whitelisting, but only apply any of them after they are
manually approved.


Or to may be allow to actually have a list that the script cold checked 
against to make the changes, witch would achieve the user intended 
results and at the same time eliminating the possibility to have one 
domain adding it's own records if that's no restricted.


Like yo could create a google.com in the list and that would allow 
connection from google being automatically added via the SPF records, 
but no others would unless you manually add their name to the allow auto 
extension of the SPF name list.


Just a thought, not sure it's the best idea, but that's one way to keep 
it automatic like intended to be use.


Daniel



Is it possible to build OpenBSD from source using GCC 4.x from port or packages?

2009-04-22 Thread Tito Mari Francis Escaño
Hello everyone!
Is it possible to build OpenBSD from source using GCC 4.x from packages?
There may be some new features on the new compiler that a user wants to use
and also decide to rebuild OpenBSD from source, would that be possible? Or
are we to stick with the provided version 2.95.3 or 3.3.5 compiler?
Thanks!


Tito Mari Francis H. EscaC1o
Computer Engineer and Free Software Proponent



Re: Is it possible to build OpenBSD from source using GCC 4.x from port or packages?

2009-04-22 Thread Philip Guenther
On Wed, Apr 22, 2009 at 8:52 PM, Tito Mari Francis Escaqo
titomarifran...@gmail.com wrote:
 Is it possible to build OpenBSD from source using GCC 4.x from packages?

Possible?  Perhaps.  But what are your expectations after doing so?
It would be completely unsupported and any issues would almost
certainly get a response from developers of okay, but what happens on
a *real* system?  If you don't believe that, then you haven't tracked
the history of gcc on OpenBSD and the amount of pain and effort
particular developers have put into keeping gcc from breaking itself
or the system.

So the *real* question is this: what are you expecting to gain by
compiling the system with a different version of gcc?  To quote a
coworker of mine, What problem are you trying to solve?  If you
can't answer that question, then why are you doing it?


 There may be some new features on the new compiler that a user wants to use
 and also decide to rebuild OpenBSD from source, would that be possible?

What makes you or them think that using a different compiler requires
building the entire system with that compiler?


Philip Guenther



Re: autowhitelister for spamd needs testing

2009-04-22 Thread Aaron Mason
On Thu, Apr 23, 2009 at 10:30 AM, Stuart Henderson s...@spacehopper.org wrote:

 I see a tiny little problem with this method... sometimes people send
 spam from domains whose DNS they control.



If this is the case, then you have an almost direct pointer to the cause.

The only way this wouldn't work is if the SPF records get spoofed as a
result of a lazy sysadmin not updating the DNS server with a more
secure version.

You could blacklist domains that fraudulently pass the SPF filter, but
that would defeat the purpose - you'd be working as hard as you would
be if you were maintaining manual whitelists or blacklists.

-- 
Aaron Mason AKA Absorbent Shoulder Man
iOh, why does everything I whip leave me?/i