nullconsole?

2007-01-17 Thread Martin Hedenfalk

Hello list,

Is there a nullconsole in OpenBSD, similar to the nullconsole in FreeBSD?

I have a WRAP box where I need to use the serial port to interface an
external device. I don't want the default console on the serial port,
because any kernel console messages would disturb the communication.

On the WRAP, set tty pc0 in /etc/boot.conf still uses the serial
port. This might be due to some BIOS setting, but I'd rather not
change that as re-setting the BIOS seems to be non-trivial.

What I'm looking for is a set tty none or similar in /etc/boot.conf.
Any ideas?
Otherwise I'll go ahead and implement it myself.

TIA
  Martin Hedenfalk



Re: mysql + phpmyadmin

2007-01-17 Thread Dan Farrell
If you are running the phpmyadmin locally with the mysql server, and you
are using the socket, not tcp, as your connection to the db server, then


ps aux | grep mysql

should reveal a 

--socket=/path/to/socket

Then in the phpmyadmin config.inc.php file you would place the
following-

$cfg['Servers'][$i]['host']  = 'localhost'; 
$cfg['Servers'][$i]['port']  = '';  
$cfg['Servers'][$i]['socket']= '/path/to/socket';  
$cfg['Servers'][$i]['connect_type']  = 'socket';   
$cfg['Servers'][$i]['extension'] = 'mysql'; 
$cfg['Servers'][$i]['compress']  = FALSE;   

Keep in mind that if running phpmyadmin in a chrooted apache then it
will perceive the /var/www/ as the root of it's directory structure. In
one of my particular setups, I created '/var/www/var/run/mysql.sock' as
the place the mysql socket is created, and then the socket path (the
'/path/to/socket' shown above) according to phpmyadmin is
'/var/run/mysql.sock'.

Otherwise, if you are using tcp to establish the db connection instead
of the local socket (['connect_type'] = 'tcp';), then in the ['port']
section you would list '3306' (or whatever port you have it running on.)


Then of course you could try telnetting to localhost on 3306 to see if a
connection is established. You should get something similiar this-

# telnet localhost 3306
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
8
5.0.18-log2wxwm;~+X,X35QvUpS/1Connection closed by foreign host.

If you don't, then perhaps your local firewall or hosts.allow file isn't
properly configured to allow a connection from localhost itself (just a
guess.)

Hope this helps,

Dan Farrell
Applied Innovations
[EMAIL PROTECTED]
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of
 Jeroen Massar
 Sent: Tuesday, January 16, 2007 8:23 PM
 To: Der Engel
 Cc: misc@openbsd.org
 Subject: Re: mysql + phpmyadmin
 
 Der Engel wrote:
  Hi,
 
  Installed mysql+phpmyadmin on OBSD 4.0, when doing
  http://host/phpMyAdmin/index.php i get the following error:
 
  #2002 - The server is not responding (or the local MySQL server's
  socket is not correctly configured)
 
  I can connect remotely just fine using mysql query browser tool,
  anyone have had this problem? any ideas on how to resolve it?  I
tried
  #httpd -u but same error.
 
 When using a socket device, check permissions of the MySQL socket and
 the path leading up to it. When using a network socket, check if you
can
 telnet into it.
 
 Also note that Apache (you only mentioned httpd) might be in a chroot
or
 running as a different user than what you expect it to be.
 
 and of course check firewall rules etc.
 
 Greets,
  Jeroen
 
 [demime 1.01d removed an attachment of type application/pgp-signature
 which had a name of signature.asc]



Re: nullconsole?

2007-01-17 Thread Adriaan

On 1/17/07, Martin Hedenfalk [EMAIL PROTECTED] wrote:

Hello list,

Is there a nullconsole in OpenBSD, similar to the nullconsole in FreeBSD?

I have a WRAP box where I need to use the serial port to interface an
external device. I don't want the default console on the serial port,
because any kernel console messages would disturb the communication.



Comment out the line in /etc/syslog.conf that sends stuff to
/dev/console. On my 4.0-current box that isthe default BTW

# Uncomment this line to send important messages to the system
# console: be aware that this could create lots of output.
#*.err;auth.notice;authpriv.none;kern.debug;mail.crit   /dev/console

==Adriaan==



Re: nullconsole?

2007-01-17 Thread Lars Hansson
On Wednesday 17 January 2007 17:15, Martin Hedenfalk wrote:
 Is there a nullconsole in OpenBSD, similar to the nullconsole in FreeBSD?

Not that I know but you could always set it to a non-existant tty (com1?), I 
guess.
But that's not the problem here though...

 On the WRAP, set tty pc0 in /etc/boot.conf still uses the serial
 port. This might be due to some BIOS setting, but I'd rather not
 change that as re-setting the BIOS seems to be non-trivial.

This sounds like the BIOS is redirecting vga to the serial port and if that is 
the case the only way to use the serial port is to disable the console 
redirection in BIOS.


 What I'm looking for is a set tty none or similar in /etc/boot.conf.
If the WRAP is using console redirection this wont help.

---
Lars Hansson



Re: nullconsole?

2007-01-17 Thread Martin Hedenfalk

On 1/17/07, Lars Hansson [EMAIL PROTECTED] wrote:

On Wednesday 17 January 2007 17:15, Martin Hedenfalk wrote:
 Is there a nullconsole in OpenBSD, similar to the nullconsole in FreeBSD?

Not that I know but you could always set it to a non-existant tty (com1?), I
guess.
But that's not the problem here though...


I've tried it, and set tty com1 didn't work. Not sure exactly what
happened but it didn't boot properly anyway.


 On the WRAP, set tty pc0 in /etc/boot.conf still uses the serial
 port. This might be due to some BIOS setting, but I'd rather not
 change that as re-setting the BIOS seems to be non-trivial.

This sounds like the BIOS is redirecting vga to the serial port and if that is
the case the only way to use the serial port is to disable the console
redirection in BIOS.


 What I'm looking for is a set tty none or similar in /etc/boot.conf.
If the WRAP is using console redirection this wont help.


If it was possible to set the default console to nullconsole, ie
discarding all console I/O, what other part of the system would write
(directly) to pc0?

   -martin



Re: nullconsole?

2007-01-17 Thread Joachim Schipper
On Wed, Jan 17, 2007 at 06:32:33PM +0800, Lars Hansson wrote:
 On Wednesday 17 January 2007 17:15, Martin Hedenfalk wrote:
  Is there a nullconsole in OpenBSD, similar to the nullconsole in FreeBSD?
 
 Not that I know but you could always set it to a non-existant tty
 (com1?), I guess. But that's not the problem here though...
 
  On the WRAP, set tty pc0 in /etc/boot.conf still uses the serial
  port. This might be due to some BIOS setting, but I'd rather not
  change that as re-setting the BIOS seems to be non-trivial.
 
 This sounds like the BIOS is redirecting vga to the serial port and if
 that is the case the only way to use the serial port is to disable the
 console redirection in BIOS.
 
 
  What I'm looking for is a set tty none or similar in /etc/boot.conf.
 If the WRAP is using console redirection this wont help.

Why not? If you set the system console device to some non-existent com1,
as you state above, and disable most everything in /etc/ttys, wouldn't
you be able to make sure the system doesn't use the vga port?

Joachim



Trunk to two swichtes, carp on trunk-interfaces

2007-01-17 Thread Falk Brockerhoff - smartTERRA GmbH
Hello,

I want to connect an openbsd router to two swichtes in case of
redundancy. These two switches are connected together, so that I think
trunk in failover mode may be the right way, isn't it?

To create a full redundant setup I want to connect a second openbsd
router. Is there a possibility to run carp on the two trunk interfaces?

Is this the right gentle way to run a full redundant setup or do you
have any other suggestion?

Thanks,

Falk



Re: Install question: FreeBSD installed, no CD drive

2007-01-17 Thread Francois Visconte

PXE install seems to be the most appropriate.
You can also download bsd.rd on your freebsd and boot it. If freebsd 
bootloader

can boot bsd.rd, use grub.

Cheers,
Frangois



pf+altq

2007-01-17 Thread sonjaya

Dear All
here my altq+pf
##---queue+alq---###
altq on $ext_if cbq bandwidth 100Kb queue{q_std}
queue q_std bandwidth 100% cbq \
 {q_def,q_pri,q_web,q_msc,q_dat,q_gms}
queue q_def bandwidth 25% priority 1 cbq(borrow default red ecn)
queue q_dat bandwidth 10% priority 0 cbq(red)
queue q_web bandwidth 25% priority 5 cbq(borrow)
queue q_msc bandwidth 15% priority 4 cbq(borrow)
queue q_gms bandwidth 25% priority 6 cbq(borrow)
queue q_pri priority 7

when i try to use it always get error :
demorate# pfctl -f /etc/pf.conf
pfctl: the sum of the child bandwidth higher than parent q_std
demorate#

when i try use this :
#queue q_pri priority 7
is working .
-sonjaya-
http://sicute.blogspot.com



openbsd 4.0 and utf8

2007-01-17 Thread Diego .
Hello,

I just wondering if openbsd 4.0 supports uft8. I googled around and can't
find nothing about this.

Thanks.



Re: Install question: FreeBSD installed, no CD drive

2007-01-17 Thread Andy Hayward

On 1/17/07, Mark Bucciarelli [EMAIL PROTECTED] wrote:

I have a laptop with FreeBSD and no CD drive.  I'd like to
convert to OpenBSD.  I have the 4.0 CD.

What is the easiest path (other than buying a CD drive ;)?


dd if=floppy40.fs of=/dev/wd0c

sync; sync; sync

-- ach



Re: About pf states

2007-01-17 Thread Brian Candler
On Tue, Jan 16, 2007 at 08:03:52PM +0100, Samuel Mo?ux wrote:
 With this config, I can't access dmz hosts from lan or internet. The
 state gets created:
 
 all tcp $dmz_ip:25 - 192.168.1.161:19399   CLOSED:SYN_SENT
 
 but the response is blocked:
 
 Jan 16 19:32:59.627083 rule 0/(match) block in on xl2: $dmz_ip.25 
 192.168.1.161.19399: [|tcp] (DF)
 
 So, there's something I don't understand from pf.conf  man page
 
 If a packet matches a pass ... keep state rule, the filter creates a
 state for this connection and automatically lets pass all subsequent
 packets of that connection.
 
 
 If just someone could show me what's wrong here, and why

Someone please correct me if I'm wrong, but I believe that the 'keep state'
only applies to the opposite packets through the same interface. For
example:

 pkt1++   pkt1'
--- | ext_if  int_if | --
--- || --
 pkt2++   pkt2'

A rule which matches pkt1 inbound on ext_if with keep state will also
match pkt2 outbound on ext_if.

But I believe you will need another rule to permit pkt1' outbound via
int_if. If that rule has keep state then it will also match pkt2' inbound
via int_if.

If you look at the example at
http://www.openbsd.org/faq/pf/example1.html
you will see that they deal with this by a global pass out keep state
rule. Try adding this to your ruleset after your block in log all

If you were to argue that pf.conf(5) is unclear on this point, especially
where it it says

 By default, packets coming in and out of any interface can match a state

then I would not disagree with you :-)

HTH,

Brian.



Re: nullconsole?

2007-01-17 Thread Lars Hansson
On Wednesday 17 January 2007 19:47, Joachim Schipper wrote:
 Why not? If you set the system console device to some non-existent com1,
 as you state above, and disable most everything in /etc/ttys, wouldn't
 you be able to make sure the system doesn't use the vga port?

I wa thinking of the messages that the BIOS itself usuallt outputs and that 
those would interfere with whatever device is connected.
setting tty to com1 apparently doesn't work either.

---
Lars Hansson



Re: nullconsole?

2007-01-17 Thread Lars Hansson
On Wednesday 17 January 2007 19:39, Martin Hedenfalk wrote:
 If it was possible to set the default console to nullconsole, ie
 discarding all console I/O, what other part of the system would write
 (directly) to pc0?

The BIOS messages that appear before the OS or bootloader is even running.

---
Lars Hansson



Re: Trunk to two swichtes, carp on trunk-interfaces

2007-01-17 Thread Neil Joseph Schelly
On Wednesday 17 January 2007 07:24 am, Falk Brockerhoff - smartTERRA GmbH 
wrote:
 I want to connect an openbsd router to two swichtes in case of
 redundancy. These two switches are connected together, so that I think
 trunk in failover mode may be the right way, isn't it?

This is what I do for my redundant setups.  I have two provider drops, one 
into each switch, one connection into the external interface of each of my 
firewalls from each switch, then one connection back into a trunk port of 
each switch for routing between the various VLANs.  The switches themselves 
are in the same VTP domain, so that the external connections and provider 
drops are all in one VLAN.

-- 
Regards,
Neil Schelly
Senior Systems Administrator

W: 978-667-5115 x213
M: 508-410-4776

OASIS Open http://www.oasis-open.org
Advancing E-Business Standards Since 1993



Re: openbsd 4.0 and utf8

2007-01-17 Thread Jung

Hello,



I just wondering if openbsd 4.0 supports uft8. I googled around and can't
find nothing about this.



Thanks.


OpenBSD 4.0 doesn't support a UTF-8.

if you want to use a UTF-8 on OpenBSD,  you can reference patches on
some sites. (one is a kevlo's previous citrus patch, other site is a
some japanese site)

http://web.archive.org/web/20040604124636/www.kevlo.org/patch-src_citrus
http://sigsegv.s25.xrea.com/distfiles/citrus/OpenBSD/


thanks
- Jung



Re: pf+altq

2007-01-17 Thread Neil Joseph Schelly
On Wednesday 17 January 2007 07:28 am, sonjaya wrote:

  queue q_std bandwidth 100% cbq \
   {q_def,q_pri,q_web,q_msc,q_dat,q_gms}
  queue q_def bandwidth 25% priority 1 cbq(borrow default red ecn)
  queue q_dat bandwidth 10% priority 0 cbq(red)
  queue q_web bandwidth 25% priority 5 cbq(borrow)
  queue q_msc bandwidth 15% priority 4 cbq(borrow)
  queue q_gms bandwidth 25% priority 6 cbq(borrow)
  queue q_pri priority 7

 pfctl: the sum of the child bandwidth higher than parent q_std

The totals for the 6 queues under q_std need to add to 100%. The first 5 
queues make 25%+10%+25%+15%+25% = 100%.  Then you have an extra queue called 
q_pri that there's no room for.  You need to assign it a slice of the 100% 
and lower another queue to accommodate.

-- 
Regards,
Neil Schelly
Senior Systems Administrator

W: 978-667-5115 x213
M: 508-410-4776

OASIS Open http://www.oasis-open.org
Advancing E-Business Standards Since 1993



Re: About pf states

2007-01-17 Thread Samuel Moñux

2007/1/17, Brian Candler [EMAIL PROTECTED]:


Someone please correct me if I'm wrong, but I believe that the 'keep state'
only applies to the opposite packets through the same interface. For
example:

 pkt1++   pkt1'
--- | ext_if  int_if | --
--- || --
 pkt2++   pkt2'

A rule which matches pkt1 inbound on ext_if with keep state will also
match pkt2 outbound on ext_if.

But I believe you will need another rule to permit pkt1' outbound via
int_if. If that rule has keep state then it will also match pkt2' inbound
via int_if.

If you look at the example at
http://www.openbsd.org/faq/pf/example1.html
you will see that they deal with this by a global pass out keep state
rule. Try adding this to your ruleset after your block in log all


Thanks Brian. I've added the global pass out this morning and
everything has started to work, but I wasn't sure why this was needed.
Now I think I understand; every state is a [src, dst, direction] tuple
which lets pass [src - dst, direction ] and [dst - src,
not(direction)], but not [ src- dst, not(direction) ] packets. In my
case:

[192.168.1.161 - dmz_ip, in ] and [dmz_ip - 192.168.1.161, out ] passed but
[192.168.1.161 - dmz_ip, out] and [dmz_ip - 192.168.1.161, in ] did not

is that?

I see that I was also misinterpreting state-policy.

The old pf.conf was full of pass out rules, which I assumed were
needed because of a block out all rule. I also realize that a couple
states are needed for every session.

Thanks again



Re: nullconsole?

2007-01-17 Thread Jeff Quast

On 1/17/07, Joachim Schipper [EMAIL PROTECTED] wrote:

On Wed, Jan 17, 2007 at 06:32:33PM +0800, Lars Hansson wrote:
 If the WRAP is using console redirection this wont help.


there is no such thing, as wrap is headless anyway.



Why not? If you set the system console device to some non-existent com1,
as you state above, and disable most everything in /etc/ttys, wouldn't
you be able to make sure the system doesn't use the vga port?

   Joachim




there is no vga port on the wrap

http://www.pcengines.ch



Re: nullconsole?

2007-01-17 Thread Martin Hedenfalk

On 1/17/07, Lars Hansson [EMAIL PROTECTED] wrote:

On Wednesday 17 January 2007 19:39, Martin Hedenfalk wrote:
 If it was possible to set the default console to nullconsole, ie
 discarding all console I/O, what other part of the system would write
 (directly) to pc0?

The BIOS messages that appear before the OS or bootloader is even running.


Sure, but that output would be acceptable.

I'll implement a nullconsole and post a patch to [EMAIL PROTECTED]

   -martin



Greyscaner question

2007-01-17 Thread Ramdas

Hi Group,

I have a small query for the greyscanner daemon.

I am using this great tool for quite some time :)

While analysing some of the Spamd logs for Blacklisted hosts I found
the following

grepped through maillog file
Jan 17 19:34:00 MYHOST greytrapper[2532]: Trapped x.x.x.x: Invalid
source address  (rfc822)

grep x.x.x.x daemon shows a bounce mail to some of my user.

Does it means that greyscanner considers  (null sender ) as a
voilation of rfc  penalysis the host. In case yes how to bypass such
hosts .

Thanx in advance
Regards
Ram



Re: Sun Type 6 USB kbd on amd64

2007-01-17 Thread Christian Weisgerber
Iain Morgan [EMAIL PROTECTED] wrote:

 I'm attempting to use a Sun Type 6 USB keyboard on 4.0/amd64. The
 keyboard works, but extra functionality such as the compose key does not
 work. Further, wsconsctl detects it as a plain vanilla PC-XT keyboard.

wsconsctl can only access the first keyboard (wskbd0) in the system,
which...

 pckbd0 at pckbc0 (kbd slot)
 pckbc0: using irq 1 for kbd slot
 wskbd0 at pckbd0: console keyboard, using wsdisplay0

... is your PS/2 keyboard.  Even if no actual keyboard is attached to
the port.

If you don't want to use a PS/2 keyboard on that box, you can disable
the driver in the kernel:

# config -ef /bsd 
OpenBSD 4.0-current (GENERIC) #41: Wed Jan 17 14:42:43 CET 2007
[EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC
Enter 'help' for information
ukc disable pckbd
185 pckbd* disabled
ukc quit
Saving modified kernel.
# reboot

This will make the USB keyboard attach as wskbd0, where it is
amenable to configuration with wsconsctl.

-- 
Christian naddy Weisgerber  [EMAIL PROTECTED]



Re: pf+altq

2007-01-17 Thread sonjaya

as far i know min bw 5,59 kbps .
now is working , i got from other queue.
i try to use cbq n hfsc witch better in shaping .

On 1/17/07, Lawrence Horvath [EMAIL PROTECTED] wrote:

Try defining q_pri with a bandwidth, you might even be able to set it as:

 queue q_pri bandwidth 0% priority 7 cbq(borrow)

This way it wouldnt reserve any bandwidth but it shouldnt cause issues
with the bandwidth math either. If you get that working, please let me
know.



On 1/17/07, sonjaya [EMAIL PROTECTED] wrote:
 Dear All
 here my altq+pf
 ##---queue+alq---###
 altq on $ext_if cbq bandwidth 100Kb queue{q_std}
  queue q_std bandwidth 100% cbq \
   {q_def,q_pri,q_web,q_msc,q_dat,q_gms}
  queue q_def bandwidth 25% priority 1 cbq(borrow default red ecn)
  queue q_dat bandwidth 10% priority 0 cbq(red)
  queue q_web bandwidth 25% priority 5 cbq(borrow)
  queue q_msc bandwidth 15% priority 4 cbq(borrow)
  queue q_gms bandwidth 25% priority 6 cbq(borrow)
  queue q_pri priority 7

 when i try to use it always get error :
 demorate# pfctl -f /etc/pf.conf
 pfctl: the sum of the child bandwidth higher than parent q_std
 demorate#

 when i try use this :
  #queue q_pri priority 7
 is working .
 -sonjaya-
 http://sicute.blogspot.com




--
-Lawrence
-Student ID 1028219
-CCNA




--
-sonjaya-



Re: Groklaw artical about the BSD license

2007-01-17 Thread Jeffrey C. Ollie
On Wed, 2007-01-17 at 08:28 +0100, Marc Balmer wrote:
 Marco Peereboom wrote:

  along.  The GPL is fatally flawed and hasn't been tested in court.  I
  wouldn't bet my code or company on it.

 the GPL actually has been tested in court in germany.
 I lack the details, but using google they surely show up.

http://www.google.com/search?q=gpl+court+test

Jeff

[demime 1.01d removed an attachment of type application/pgp-signature which had 
a name of signature.asc]



Re: Greyscaner question

2007-01-17 Thread Bob Beck
1) I don't have enough information to tell what you are asking.  show the
real logs.

2) greyscanner is not part of openbsd - it is a proof of concept piece
written by me, so you should probably ask me directly (with full logs)
rather than asking the list. 

-Bob



* Ramdas [EMAIL PROTECTED] [2007-01-17 07:53]:
 Hi Group,
 
 I have a small query for the greyscanner daemon.
 
 I am using this great tool for quite some time :)
 
 While analysing some of the Spamd logs for Blacklisted hosts I found
 the following
 
 grepped through maillog file
 Jan 17 19:34:00 MYHOST greytrapper[2532]: Trapped x.x.x.x: Invalid
 source address  (rfc822)
 
 grep x.x.x.x daemon shows a bounce mail to some of my user.
 
 Does it means that greyscanner considers  (null sender ) as a
 voilation of rfc  penalysis the host. In case yes how to bypass such
 hosts .
 
 Thanx in advance
 Regards
 Ram
 

-- 
#!/usr/bin/perl
if ((not 0  not 1) !=  (! 0  ! 1)) {
   print Larry and Tom must smoke some really primo stuff...\n; 
}



Re: pf examples needed [solved]

2007-01-17 Thread Charles Farinella

Charles Farinella wrote:


On Tue, Jan 16, 2007 at 09:32:02AM -0500, Charles Farinella wrote:

I have an OpenBSD 3.9 machine with a public IP providing NAT and
firewalling for our internal network.  It has 3 interfaces:

dc0: public ip from internet X.X.X.25
dc1: 192.168.100.x to internal network.  This works well.
dc2: 192.168.200.x -- to Windows server.

I need to allow public access to the Windows server connected to dc2
(one port only).  Currently I have a private network address assigned
to dc2 and a public one (X.X.X.26) assigned to the machine connected
to it.


I have this working, thanks for the help.  :-)

=
# Network interfaces
external = dc0
internal = dc1
dmz = dc2

# Address ranges
int_add = 192.168.100.0/24
dmz_add = 192.168.200.0/24
ext_add = X.X.X.25

rdr pass log (all) on $external proto tcp from any to $external port 80 
- 192.168.200.122 port 80
rdr pass log (all) on $internal proto tcp from any to $external port 80 
- 192.168.200.122 port 80

==

I actually had it working and didn't realize it as I was accessing the 
server via dc1 and only had the dc0 rule set.  Martin Toft tipped me off 
when he pointed that out to me, and indeed checking from a machine 
outside of our network confirmed that.  Creating the internal redirect 
has solved my problem.


Thanks again.

--charlie


--

Charles Farinella
Appropriate Solutions, Inc. (www.AppropriateSolutions.com)
[EMAIL PROTECTED]
voice: 603.924.6079   fax: 603.924.8668



dying ftp-proxy

2007-01-17 Thread Stefan Olsson
Hello,

ftp-proxy starts up and runs fine for most of the time on one of my firewalls,
but sometimes and intermittently it just silently dies without any trace in
the daemon-log or messages. It is easy enough to just start it again, but it
is a bit annoying. I suppose I should start with upping the logging to max on
the daemon, but are there any suggestions straight away what could cause it to
die, or what files/logs to check?

$ uname -a
OpenBSD here.some.where 4.0 GENERIC#1107 i386

/S



Re: 202 days Uptime in OpenBSD 3.6

2007-01-17 Thread Greg Mortensen

Marc Balmer wrote:


hmm, why are people so proud of their uptimes when it only show they
don't care for their systems?


  I forgot to power it (a Sun IPC) down when I left the company:

[draco:~]$ uname -a; uptime
OpenBSD draco..com 2.6 GENERIC#287 sparc
11:55AM  up 1538 days, 58 mins, 1 user, load averages: 0.22, 0.13, 0.09

  Regards,
Greg

P.S. A current employee provided the uptime -- I didn't use a remote hole. 
;)


 \|/   ___   \|/[EMAIL PROTECTED]+- 2048R/38BD6CAB -+
  @~./'O o`\.~@| 02BD EF81 91B3 1B33 64C2 |
 /__( \___/ )__\   | 3247 6722 7006 38BD 6CAB |
`\__`U_/'  +--+



pf and load balancing some webservers

2007-01-17 Thread Marian Hettwer

Hi All,

I tried to setup a pf(4) based load balancer for some webservers.
I did follow the instructions from openbsd.org's pf FAQ.
However, I seem to make a stupid mistake and I can't see which one.

My Setup:
- OpenBSD 4.0 box, should be the load balancer
- 2 other boxes with official IP addresses somewhere in the
internet, acting as webservers and should be load balanced by
the OpenBSD box.

my pf.conf

ext_if=fxp0
#int_if=int0

set skip on lo

scrub in

web_servers = { 193.99.144.85,66.135.208.93 }
rdr on $ext_if proto tcp from any to any port 80 - $web_servers \
round-robin sticky-address

the two IP addresses are now www.heise.de and www.ebay.de (just for 
testing).


-bash-3.1$ ifconfig fxp0
fxp0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr 00:30:48:52:c1:00
groups: egress
media: Ethernet autoselect (100baseTX full-duplex)
status: active
inet6 fe80::230:48ff:fe52:c100%fxp0 prefixlen 64 scopeid 0x1
inet 85.214.92.226 netmask 0x broadcast 85.214.92.226

and yep, the netmask needs to be like that (it's a bloody Strato box - 
german el cheap'o ISP).


The OpenBSD box can indeed contact the IP addresses I'd like to load 
balance to.

-bash-3.1$ telnet 193.99.144.85 80
Trying 193.99.144.85...
Connected to 193.99.144.85.
Escape character is '^]'.

-bash-3.1$ telnet 66.135.208.93 80
Trying 66.135.208.93...
Connected to 66.135.208.93.
Escape character is '^]'.

But when I try to access my OpenBSD box at port 80, nothing happens at all.
Nothing as in this tcpdump ouput:


-bash-3.1$ sudo tcpdump -vvv -i fxp0 port 80
tcpdump: listening on fxp0, link-type EN10MB
17:34:49.098464 194.50.69.62.4137  85.214.92.226.www: S [tcp sum ok] 
2596160711:2596160711(0) win 65535 mss 1460,nop,wscale 
1,nop,nop,timestamp 3827602433 0,sackOK,eol (DF) (ttl 54, id 18346, len 64)
17:34:52.097210 194.50.69.62.4137  85.214.92.226.www: S [tcp sum ok] 
2596160711:2596160711(0) win 65535 mss 1460,nop,wscale 
1,nop,nop,timestamp 3827605433 0,sackOK,eol (DF) (ttl 54, id 18348, len 64)
17:34:55.297352 194.50.69.62.4137  85.214.92.226.www: S [tcp sum ok] 
2596160711:2596160711(0) win 65535 mss 1460,nop,wscale 
1,nop,nop,timestamp 3827608633 0,sackOK,eol (DF) (ttl 54, id 18350, len 64)
17:34:58.497131 194.50.69.62.4137  85.214.92.226.www: S [tcp sum ok] 
2596160711:2596160711(0) win 65535 mss 1460,sackOK,eol (DF) (ttl 54, 
id 18356, len 48)
17:35:01.697134 194.50.69.62.4137  85.214.92.226.www: S [tcp sum ok] 
2596160711:2596160711(0) win 65535 mss 1460,sackOK,eol (DF) (ttl 54, 
id 18359, len 48)
17:35:04.974937 194.50.69.62.4137  85.214.92.226.www: S [tcp sum ok] 
2596160711:2596160711(0) win 65535 mss 1460,sackOK,eol (DF) (ttl 54, 
id 18368, len 48)
17:35:11.097441 194.50.69.62.4137  85.214.92.226.www: S [tcp sum ok] 
2596160711:2596160711(0) win 65535 mss 1460,sackOK,eol (DF) (ttl 54, 
id 18387, len 48)


This doesn't look good. Nothing gets forwarded at all...
And I can't see what I'm missing.

anybody any idea?

best regards,
Marian



Re: Groklaw artical about the BSD license

2007-01-17 Thread Marco Peereboom
Good for Germany, they have jurisprudence established.  Now the rest of
the world.

I meant a REAL case with real money and fancy lawyers involved.
Something like what happened with BSD and ATT.


On Wed, Jan 17, 2007 at 07:37:00AM -0600, Jeffrey C. Ollie wrote:
 On Wed, 2007-01-17 at 08:28 +0100, Marc Balmer wrote:
  Marco Peereboom wrote:
 
   along.  The GPL is fatally flawed and hasn't been tested in court.  I
   wouldn't bet my code or company on it.
 
  the GPL actually has been tested in court in germany.
  I lack the details, but using google they surely show up.
 
 http://www.google.com/search?q=gpl+court+test
 
 Jeff
 
 [demime 1.01d removed an attachment of type application/pgp-signature which 
 had a name of signature.asc]



Re: mixed (compile from source, binary update) approach

2007-01-17 Thread Patrick Useldinger

Nick Holland wrote:


I think you were confusing UPGRADE and UPDATE there someplace.


No, I updated 3.9-release to 3.9-stable.


Remove (or don't install) Sendmail...  Boom, your daily reports are
now non-functional.  There are other ways you could get the same info,
but none of them quite as simple or built-in.  Remove Perl, suddenly,
the package tools would stop working (and that would be unfortunate
when you wished to reinstall Perl). The developers have assumed
certain things are in the basic installation.  Verifying the
dependencies for every combination of core packages would be
difficult...and pointless.


Well I think that's feasible, it the package manager manages 
dependencies and the dependencies in the packages are correct.



Plus, the whole thing would look like a number of Linux distributions,
which think nothing of requiring some of six CDs for a basic install,
installing five different screen editors, but think that locate(1) and
sudo(8) are options (and lots of the stuff is broken, because there
is just too much stuff to test).  The developers have picked a set of
apps they feel makes a system highly useful, and yet keep the system
very lean.  We can be pretty sure that unless you do something strange,
your base system looks a lot like my base system.  The base system
can still be installed with ease on a 250M flash device or a very old
hard disk, which is leaner than most of the more modular systems
end up being.


That's true, but by actually using packages, following -stable could be 
done by updating small packages and it would perhaps make binary updates 
easier because only parts of the OS would have to be updated.


-pu



Re: 202 days Uptime in OpenBSD 3.6

2007-01-17 Thread Gilles Chehade
Marc Balmer wrote:

 hmm, why are people so proud of their uptimes when it only show they
 don't care for their systems?



Below is a patch which adds an -i flag to 'uptime' converting an uptime
period to a size in inches:

evilkittens:w {160} ./uptime
11:13AM  up 24 days, 16:42, 1 user, load averages: 0.14, 0.15, 0.13
evilkittens:w {161} ./uptime -i
11:13AM  up 3 inches, 1 user, load averages: 0.14, 0.15, 0.13
evilkittens:w {162}

As you see, I better let my system run a bit longer :(


--- /usr/src/usr.bin/w/w.c  Tue Jul 19 23:19:08 2005
+++ w.c Wed Jan 17 11:16:15 2007
@@ -92,6 +92,7 @@
 intheader = 1; /* true if -h flag: don't print heading */
 intnflag = 1;  /* true if -n flag: don't convert addrs */
 intsortidle; /* sort bu idle time */
+intinches = 0; /* compute len of uptime in inches */
 char *sel_user;  /* login of particular user selected */
 char   domain[MAXHOSTNAMELEN];
 
@@ -137,7 +138,7 @@
   p = hiflM:N:asuw;
  } else if (!strcmp(p, uptime)) {
   wcmd = 0;
-  p = ;
+  p = i;
  } else
   errx(1,
this program should be invoked only as \w\ or \uptime\);
@@ -149,7 +150,10 @@
header = 0;
break;
   case 'i':
-   sortidle = 1;
+   if (wcmd == 1)
+  sortidle = 1;
+   else
+  inches = 1;
break;
   case 'M':
header = 0;
@@ -402,29 +406,36 @@
  size = sizeof(boottime);
  if (sysctl(mib, 2, boottime, size, NULL, 0) != -1) {
   uptime = now - boottime.tv_sec;
-  if (uptime  59) {
-   uptime += 30;
-   days = uptime / SECSPERDAY;
-   uptime %= SECSPERDAY;
-   hrs = uptime / SECSPERHOUR;
-   uptime %= SECSPERHOUR;
-   mins = uptime / SECSPERMIN;
+  if (inches == 1) {
+   inches = uptime / (60*60*24*7);
(void)printf( up);
-   if (days  0)
-  (void)printf( %d day%s,, days,
-  days  1 ? s : );
-   if (hrs  0  mins  0)
-  (void)printf( %2d:%02d,, hrs, mins);
-   else {
-  if (hrs  0)
-   (void)printf( %d hr%s,,
-   hrs, hrs  1 ? s : );
-  if (mins  0 || (days == 0  hrs == 0))
-   (void)printf( %d min%s,,
-   mins, mins != 1 ? s : );
-   }
-  } else
-   printf( %d secs,, uptime);
+   (void)printf( %d inch%s,, inches, inches  1 ? es: );
+  }
+  else {
+   if (uptime  59) {
+  uptime += 30;
+  days = uptime / SECSPERDAY;
+  uptime %= SECSPERDAY;
+  hrs = uptime / SECSPERHOUR;
+  uptime %= SECSPERHOUR;
+  mins = uptime / SECSPERMIN;
+  (void)printf( up);
+  if (days  0)
+   (void)printf( %d day%s,, days,
+   days  1 ? s : );
+  if (hrs  0  mins  0)
+   (void)printf( %2d:%02d,, hrs, mins);
+  else {
+   if (hrs  0)
+ (void)printf( %d hr%s,,
+ hrs, hrs  1 ? s : );
+   if (mins  0 || (days == 0  hrs == 0))
+ (void)printf( %d min%s,,
+ mins, mins != 1 ? s : );
+   }
+   } else
+  printf( %d secs,, uptime);
+  }
  }
 
  /* Print number of users logged in to system */



Re: dying ftp-proxy

2007-01-17 Thread Camiel Dobbelaar
Please try this diff:

http://www.openbsd.org/cgi-bin/cvsweb/src/usr.sbin/ftp-proxy/ftp-proxy.c.diff?r1=1.10r2=1.11


On Wed, 17 Jan 2007, Stefan Olsson wrote:

 Hello,
 
 ftp-proxy starts up and runs fine for most of the time on one of my firewalls,
 but sometimes and intermittently it just silently dies without any trace in
 the daemon-log or messages. It is easy enough to just start it again, but it
 is a bit annoying. I suppose I should start with upping the logging to max on
 the daemon, but are there any suggestions straight away what could cause it to
 die, or what files/logs to check?
 
 $ uname -a
 OpenBSD here.some.where 4.0 GENERIC#1107 i386
 
 /S



Re: mixed (compile from source, binary update) approach

2007-01-17 Thread Sebastian Benoit
Patrick Useldinger([EMAIL PROTECTED]) on 2007.01.17 18:34:35 +:
 Nick Holland wrote:
 Verifying the
 dependencies for every combination of core packages would be
 difficult...and pointless.
 
 Well I think that's feasible, it the package manager manages 
 dependencies and the dependencies in the packages are correct.

And the version- and dependency information that the package managers
decisions are based on is provided by ... the developers, whose work gets
more difficult. q.e.d.

 That's true, but by actually using packages, following -stable could be 
 done by updating small packages and it would perhaps make binary updates 
 easier because only parts of the OS would have to be updated.

You can update parts of the OS right now: see the instructions in every
patch-file on http://www.openbsd.org/errata.html

/Benno
-- 
Sebastian Benoit [EMAIL PROTECTED]



disk quota

2007-01-17 Thread ejun
guys i want ask to regarding quota

this is my fstab:
/dev/wd0a / ffs rw 1 1
/dev/sd0a /data ffs rw,nodev,nosuid 1 2
/dev/wd0g /home ffs rw,nodev,nosuid 1 2
/dev/wd0d /tmp ffs rw,nodev,nosuid 1 2
/dev/wd0e /usr ffs rw,nodev 1 2
/dev/wd0f /var ffs rw,nodev,nosuid 1 2
/dev/wd0g /home ffs rw,userquota=/var/quotas/quota.user 1 1

this the output of repquota /home:
# repquota /home
KByte limits   File limits
Userusedsofthard  graceused  soft  hard  grace
root  --   43886   0   0   1642 0 0
uucp  --   0   0   0 28 0 0
ejun  --505670008000  1 0 0
yinh  --5056   1   11000  1 0 0

this the message of quota yinh:
# quota -u yinh
Disk quotas for user yinh (uid 1002): none

why quota yinh message says none?
somethings wrong with configuration?

this is also the edquota yinh:
Quotas for user yinh:
/home: KBytes in use: 8736, limits (soft = 1, hard = 11000)
inodes in use: 2, limits (soft = 0, hard = 0)



CCD

2007-01-17 Thread Chris Mika

I'm trying to get CCD working correctly, but it just doesn't want to.

I have two identical 300GB disks that I'm trying to interleave.

Here's exactly what I'm doing:
# fdisk -i wd1 
# fdisk -i wd3

# disklabel -E wd1
  - creating one partition of type ccd spaning entire disk
# disklabel -E wd3
  - creating one partition of type ccd spaning entire disk
# ccdconfig ccd0 32 0 /dev/wd1a /dev/wd3a
# newfs /dev/ccd0c

When I run newfs it only creates a 300GB filesystem, whereas it SHOULD 
create a 600GB file system.


Any ideas? I can send the dmesg or any output if that helps (I didn't to 
save space).


-Chris Mika



fdformat a usb floppy drive

2007-01-17 Thread James Turner
I recently got my hands on a IBM branded usb floppy drive.  I am trying to 
format it with fdformat before I dd the floppy40.fs image to it.  Below is the 
error that fdformat exits with and a full dmesg.  The floppy information is at 
the bottom.  I've tried both attaching the drive with and without a floppy in 
it.  Thanks for any help.

[EMAIL PROTECTED] james]# fdformat /dev/rsd0c
fdformat: not a floppy disk: /dev/rsd0c

OpenBSD 4.0-current (GENERIC) #1342: Sun Jan  7 23:55:37 MST 2007 
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) M processor 1.40GHz (GenuineIntel 686-class) 599 MHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,TM,SBF,EST,TM2
real mem  = 1063743488 (1038812K)
avail mem = 962195456 (939644K)
using 4256 buffers containing 53309440 bytes (52060K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(59) BIOS, date 12/14/04, BIOS32 rev. 0 @ 0xfd740, 
SMBIOS rev. 2.33 @ 0xe0010 (56 entries)
bios0: IBM 2371GHU
apm0 at bios0: Power Management spec V1.2
apm0: battery life expectancy 85%
apm0: AC off, battery charge high, estimated 2:53 hours
apm0: flags 30102 dobusy 0 doidle 1 
pcibios0 at bios0: rev 2.1 @ 0xfd6d0/0x930
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdeb0/256 (14 entries)
pcibios0: PCI Interrupt Router at 000:31:0 (Intel 82371FB ISA rev 0x00)
pcibios0: PCI bus #3 is the last bus
bios0: ROM list: 0xc/0xc800! 0xcc800/0x1000 0xcd800/0x1000 0xdc000/0x4000! 
0xe/0x1
acpi at mainbus0 not configured
cpu0 at mainbus0 
cpu0: Enhanced SpeedStep 600 MHz (988 mV): speeds: 1400, 1300, 1200, 1100, 
1000, 900, 800, 600 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel 82852GM Hub-PCI rev 0x02 
Intel 82852GM Memory rev 0x02 at pci0 dev 0 function 1 not configured
Intel 82852GM Configuration rev 0x02 at pci0 dev 0 function 3 not configured
vga1 at pci0 dev 2 function 0 Intel 82852GM AGP rev 0x02: aperture at 
0xe000, size 0x800
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
Intel 82852GM AGP rev 0x02 at pci0 dev 2 function 1 not configured
uhci0 at pci0 dev 29 function 0 Intel 82801DB USB rev 0x01: irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0 
uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 29 function 1 Intel 82801DB USB rev 0x01: irq 11
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 29 function 2 Intel 82801DB USB rev 0x01: irq 11
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 29 function 7 Intel 82801DB USB rev 0x01: irq 11
usb3 at ehci0: USB revision 2.0
uhub3 at usb3
uhub3: Intel EHCI root hub, rev 2.00/1.00, addr 1
uhub3: 6 ports with 6 removable, self powered
ppb0 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0x81
pci1 at ppb0 bus 2
cbb0 at pci1 dev 0 function 0 Ricoh 5C476 CardBus rev 0x8d: irq 11
sdhc0 at pci1 dev 0 function 1 Ricoh 5C822 SD/MMC rev 0x13: irq 11
sdmmc0 at sdhc0
em0 at pci1 dev 1 function 0 Intel PRO/1000MT Mobile (82541GI) rev 0x00: irq 
11, address 00:0a:e4:2e:be:36
iwi0 at pci1 dev 2 function 0 Intel PRO/Wireless 2200BG rev 0x05: irq 11, 
address 00:0e:35:e9:82:41
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 3 device 0 cacheline 0x0, lattimer 0xb0
pcmcia0 at cardslot0
ichpcib0 at pci0 dev 31 function 0 Intel 82801DBM LPC rev 0x01
pciide0 at pci0 dev 31 function 1 Intel 82801DBM IDE rev 0x01: DMA, channel 0 
configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: HITACHI_DK13FA-40B
wd0: 16-sector PIO, LBA, 38154MB, 78140160 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
pciide0: channel 1 disabled (no drives)
ichiic0 at pci0 dev 31 function 3 Intel 82801DB SMBus rev 0x01: irq 11
iic0 at ichiic0
auich0 at pci0 dev 31 function 5 Intel 82801DB AC97 rev 0x01: irq 11, ICH4 
AC97
ac97: codec id 0x41445374 (Analog Devices AD1981B)
ac97: codec features headphone, 20 bit DAC, No 3D Stereo
audio0 at auich0
Intel 82801DB Modem rev 0x01 at pci0 dev 31 function 6 not configured
isa0 at ichpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
spkr0 at pcppi0
aps0 at isa0 port 0x1600/31
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
biomask effd netmask effd ttymask 
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a
rootdev=0x0 

Re: CCD

2007-01-17 Thread christian widmer
first:
YOU WROTE: - creating one partition of type ccd spanning entire disk

i take you're word then you should have a close look at 'man ccd'

Note that the `raw' partitions of the disks should not be combined. Each 
component partition should be offset at least one cylinder from the beginning 
of the component disk.

this is not what you said you did.

second:
i would use disklabel to create explicitly a partition on ccd0 (not 
using 'c'). but i'm not sure if this is really necessary.



On Wednesday 17 January 2007 19:11, Chris Mika wrote:
 I'm trying to get CCD working correctly, but it just doesn't want to.

 I have two identical 300GB disks that I'm trying to interleave.

 Here's exactly what I'm doing:
 # fdisk -i wd1
 # fdisk -i wd3
 # disklabel -E wd1
- creating one partition of type ccd spaning entire disk
 # disklabel -E wd3
- creating one partition of type ccd spaning entire disk
 # ccdconfig ccd0 32 0 /dev/wd1a /dev/wd3a
 # newfs /dev/ccd0c

 When I run newfs it only creates a 300GB filesystem, whereas it SHOULD
 create a 600GB file system.

 Any ideas? I can send the dmesg or any output if that helps (I didn't to
 save space).

 -Chris Mika



Re: fdformat a usb floppy drive

2007-01-17 Thread James Turner
Although I was unable to format the floppy using fdformat I am able to dd the 
floppy image to the disk.  dd if=floppy40.fs of=/dev/rsd0c bs=32k.  I am also 
able to boot from the floppy and use the install program.

On Wed, 17 Jan 2007 13:09:39 -0700
Tim Jones [EMAIL PROTECTED] wrote:

 On Jan 17, 2007, at 12:47 PM, James Turner wrote:
 
  I recently got my hands on a IBM branded usb floppy drive.  I am  
  trying to format it with fdformat before I dd the floppy40.fs image  
  to it.  Below is the error that fdformat exits with and a full  
  dmesg.  The floppy information is at the bottom.  I've tried both  
  attaching the drive with and without a floppy in it.  Thanks for  
  any help.
 
  [EMAIL PROTECTED] james]# fdformat /dev/rsd0c
  fdformat: not a floppy disk: /dev/rsd0c
 
 This probably won't work as the floppy is mounted as a SCSI hard  
 drive rather than a floppy disk, so the major for the device is being  
 assigned to the sd driver instead of the fd driver.  You won't be  
 able to format it with fdformat as the sd driver doesn't work with  
 devices in the same manner as the fd driver.
 
  umass0 at uhub1 port 1 configuration 1 interface 0
  umass0: Y-E DATA USB Floppy Drive, rev 1.10/5.01, addr 2
  umass0: using UFI over CBI with CCI
  scsibus0 at umass0: 2 targets
  sd0 at scsibus0 targ 1 lun 0: Y-E DATA, USB-FDU, 5.01 SCSI0 0/ 
  direct removable
  sd0: 1MB, 1 cyl, 64 head, 32 sec, 512 bytes/sec, 2880 sec total
 
 You would need to re-route the umass0 match to the fd driver instead  
 of the SCSI sd driver.
 
 Does anyone have detains on that type of remap, or is this a driver  
 level issue that will require new code work?
 
 Tim



ral, txpower and powersave

2007-01-17 Thread Bram Van Dam

Hi there,

Quick question about the way ifconfig deals with txpower for ral cards.. 
Maybe I'm being silly, but I find it rather hard to believe that my wireless 
card is transmitting at 100dBm. Yet, that's what ifconfig claims. Call me 
stupid, but I'd much rather see no value than one that's incorrect.


The man pages don't really mention anything about how this value is 
obtained, or what happens if you tell the card to use a txpower level that 
it simply can't reach, so I'm a bit at a loss here.. On my windows box I can 
just tell the thing to broadcast at 25/50/75/100% of it's capacity, and the 
lower end of that scale always works just fine here. How exactly do I tell 
my interface to that in openbsd?


Also .. seems like both my ral cards (edimax EW7108PCg and a usb version of 
it) have a problem with the powersave option. Ifconfig just tells me that 
the option is an invalid operation or some such. Is this a known problem? If 
not, I'll gladly provide you with a dmesg or anything else you might need..


(And just FYI, I am running a patched 4.0)

Thanks :)

_
Who is the sweetheart of the Japanese and always holds something in his 
hands? Live Search knows! How about you? 
http://search.live.com/images/results.aspx?q=Manneken%20pisFORM=QBIR




Flash Player 9 on OpenBSD

2007-01-17 Thread Matthew Szudzik
Adobe released Flash Player 9 for Linux today.  (I know, it's not
open-source, but it's sometimes hard to navigate the web without it.)

 
http://www.adobe.com/aboutadobe/pressroom/pressreleases/200701/011707FlashPlayerLinux.html

Do we expect OpenBSD to support Flash 9 in the near future?  The old
Flash 7 plugin (there was no Flash 8 for Linux) could be run with
Linux binary emulation, but the emulator only mentions support for
the OSS audio API

 http://www.openbsd.org/cgi-bin/man.cgi?query=compat_linux

and the new Flash Player uses the ALSA API

 http://blogs.zdnet.com/Stewart/?p=96

Are there active efforts to get this working on OpenBSD?



Re: CCD

2007-01-17 Thread Chris Mika
I've read that. That's why I began the offset using disklabel's default 
setting, which is 63. Sorry, that's why I said you can ask for 
clarification.


As for the second part, it wasn't so clear, but with FreeBSD's ccd you 
create the file system on /dev/ccd0c so I assumed it was the same. If you 
use disklabel -E ccd0 it can't get the approrpriate geometry.


On Wed, 17 Jan 2007, christian widmer wrote:


first:
YOU WROTE: - creating one partition of type ccd spanning entire disk

i take you're word then you should have a close look at 'man ccd'

Note that the `raw' partitions of the disks should not be combined. Each
component partition should be offset at least one cylinder from the beginning
of the component disk.

this is not what you said you did.

second:
i would use disklabel to create explicitly a partition on ccd0 (not
using 'c'). but i'm not sure if this is really necessary.



On Wednesday 17 January 2007 19:11, Chris Mika wrote:

I'm trying to get CCD working correctly, but it just doesn't want to.

I have two identical 300GB disks that I'm trying to interleave.

Here's exactly what I'm doing:
# fdisk -i wd1
# fdisk -i wd3
# disklabel -E wd1
   - creating one partition of type ccd spaning entire disk
# disklabel -E wd3
   - creating one partition of type ccd spaning entire disk
# ccdconfig ccd0 32 0 /dev/wd1a /dev/wd3a
# newfs /dev/ccd0c

When I run newfs it only creates a 300GB filesystem, whereas it SHOULD
create a 600GB file system.

Any ideas? I can send the dmesg or any output if that helps (I didn't to
save space).

-Chris Mika




cdboot BUG with big .iso images

2007-01-17 Thread Andreas Bihlmaier
Hello misc@,

after many hours of debugging (well kind of) I'm desperate about this
problem:

Josh Grosse told be about a bug he encountered while building big
(e.g. 1GB) LiveCDs containing many files.

I tried to hunt down the limitation one hits, but I could not find a
definite answer. Here my observations:

# Command used for all tests,
# btw. mkhybrid doesn't work at all with many files
/usr/local/bin/mkisofs \
-no-iso-translate \
-R \
-T \
-allow-leading-dots \
-l \
-d \
-D \
-N \
-v \
-V LiveCD OpenBSD${vers} \
-A LiveCD OpenBSD${vers} \
-p Andreas Bihlmaier [EMAIL PROTECTED] \
-publisher Andreas Bihlmaier [EMAIL PROTECTED] \
-b cdbr \
-no-emul-boot \
-c boot.catalog \
-o /home/ahb/livecd.iso \
/usr/livecd/

# Test 1:
# Size of livecd/
Tested with up to 4GB and only a few files
- works

# Test 2:
# Number of files inside livecd/
Tested with ~50MB, but 200k (200.000) files
- works

# Test 3:
# Real image
$ find livecd -type f | wc -l
 231886 # it breaks  200k already
$ du -s livecd
3.8G


- breaks
boot
heap full (0xhex+hex)
reboot

The heap full is certainly issued by cdboot
$ grep -a heap full cdboot
heap full (0x%lx+%u)
# I'm certain because I changed the string heap full and the changed
# string was displayed.

# I tried to fix it
$ grep -i heap /usr/src/sys/arch/i386/stand/Makefile.inc
HEAP_LIMIT=0x9

Raising it and recompiling cdboot results in different crash.
(I can provide output, but I don't have it at hand ATM)


If anybody knows how to fix this or could at least explain the problem
I'd be very happy :)

A LiveCD is nice, but Josh Grosse (and I) would like to put KDE onto an
OpenBSD LiveCD, but this goes over the limit.

Regards,
ahb

p.s.:  Should I send a bug report to [EMAIL PROTECTED]



Re: Flash Player 9 on OpenBSD

2007-01-17 Thread Trond Danielsen

Sorry about the wrong link it the previous post. The correct link to
flashsupport is:
http://labs.adobe.com/wiki/index.php/Flash_Player:Additional_Interface_Support_for_Linux



Re: Flash Player 9 on OpenBSD

2007-01-17 Thread Trond Danielsen

2007/1/17, Matthew Szudzik [EMAIL PROTECTED]:

Adobe released Flash Player 9 for Linux today.  (I know, it's not
open-source, but it's sometimes hard to navigate the web without it.)

 
http://www.adobe.com/aboutadobe/pressroom/pressreleases/200701/011707FlashPlayerLinux.html

Do we expect OpenBSD to support Flash 9 in the near future?  The old
Flash 7 plugin (there was no Flash 8 for Linux) could be run with
Linux binary emulation, but the emulator only mentions support for
the OSS audio API

 http://www.openbsd.org/cgi-bin/man.cgi?query=compat_linux

and the new Flash Player uses the ALSA API

 http://blogs.zdnet.com/Stewart/?p=96

Are there active efforts to get this working on OpenBSD?



I read that flashsupport[1] can be used to provide OSS support for flash player.

[1] 
http://labs.adobe.com/wiki/index.php/Flash_Player:Additional_Interface_Support_for_Lin

--
Trond Danielsen



Re: mixed (compile from source, binary update) approach

2007-01-17 Thread Patrick Useldinger

Joachim Schipper wrote:


For instance, OpenBSD 4.0 introduced a warning for large stacks, and 4.0
kernels are compiled with this option. Compiling a pre-4.0 -current on
3.9 is thus impossible.


That's indeed a good example. While there's probably a way around it by 
upgrading in several steps, indeed the upgrade could become quite messy 
and complicated, and change from release to release.



Other, usually more subtle, problems also exist. Since snapshots are
easy to support and easy to use, they are preferred.


Don't get me wrong, I prefer the binary approach. I'd rather have only 
binary upgrades and updates than only upgrades and updates from source.



Again, because there are lots of interdependencies. It's not like you
can get away with using packages for gcc, glibc and binutils on Linux,
for instance. Sure, they'll package them for you, but don't try to make
any other combination than the official...


Well, you could, if your package manager manages dependencies correctly. 
OpenBSD's package manager does AFAIK.



However, some things are just that way for historical reasons - it might
be possible to make a package out of Apache 1.3, for instance. (However,
Apache in particular has been changed quite a bit from the 'official'
version.)


Yes, that's probably the main reason.

Thanks for your explanations. Now I'm wondering why FreeBSD maintains 
the upgrade from source approach, but that's for a different list 
(yes, I read that in FreeBSD 6.2 you can do binary upgrades now - but 
actually I am not interested in FreeBSD at this point).


Thanks very much for your explanations. I hate it when things don't make 
sense to me.


-pu



Re: Flash Player 9 on OpenBSD

2007-01-17 Thread Nick Guenther

On 1/17/07, Matthew Szudzik [EMAIL PROTECTED] wrote:

Adobe released Flash Player 9 for Linux today.  (I know, it's not
open-source, but it's sometimes hard to navigate the web without it.)

 
http://www.adobe.com/aboutadobe/pressroom/pressreleases/200701/011707FlashPlayerLinux.html

Do we expect OpenBSD to support Flash 9 in the near future?  The old
Flash 7 plugin (there was no Flash 8 for Linux) could be run with
Linux binary emulation, but the emulator only mentions support for
the OSS audio API

 http://www.openbsd.org/cgi-bin/man.cgi?query=compat_linux

and the new Flash Player uses the ALSA API

 http://blogs.zdnet.com/Stewart/?p=96

Are there active efforts to get this working on OpenBSD?



Seeing the hardline the devs take against driver binary blobs it's
unlikely. However, I am looking forward myself to 4.1, because Gnash
http://www.gnu.org/software/gnash/ has been added to ports and upon
release it will become a package too.

-Nick



Re: CCD

2007-01-17 Thread Chris Mika
I sat down and calculated one cylinder, and it's not 63 sectors, it's 
1008. So I redid the disklabel and it seems to be working. I ran newfs and 
it's reporting 600GB.


You can't create a partition on ccd0, you must use ccd0c.

On Wed, 17 Jan 2007, Chris Mika wrote:

I've read that. That's why I began the offset using disklabel's default 
setting, which is 63. Sorry, that's why I said you can ask for clarification.


As for the second part, it wasn't so clear, but with FreeBSD's ccd you create 
the file system on /dev/ccd0c so I assumed it was the same. If you use 
disklabel -E ccd0 it can't get the approrpriate geometry.


On Wed, 17 Jan 2007, christian widmer wrote:


first:
YOU WROTE: - creating one partition of type ccd spanning entire disk

i take you're word then you should have a close look at 'man ccd'

Note that the `raw' partitions of the disks should not be combined. Each
component partition should be offset at least one cylinder from the 
beginning

of the component disk.

this is not what you said you did.

second:
i would use disklabel to create explicitly a partition on ccd0 (not
using 'c'). but i'm not sure if this is really necessary.



On Wednesday 17 January 2007 19:11, Chris Mika wrote:

I'm trying to get CCD working correctly, but it just doesn't want to.

I have two identical 300GB disks that I'm trying to interleave.

Here's exactly what I'm doing:
# fdisk -i wd1
# fdisk -i wd3
# disklabel -E wd1
   - creating one partition of type ccd spaning entire disk
# disklabel -E wd3
   - creating one partition of type ccd spaning entire disk
# ccdconfig ccd0 32 0 /dev/wd1a /dev/wd3a
# newfs /dev/ccd0c

When I run newfs it only creates a 300GB filesystem, whereas it SHOULD
create a 600GB file system.

Any ideas? I can send the dmesg or any output if that helps (I didn't to
save space).

-Chris Mika




Re: CCD

2007-01-17 Thread Chris Mika

Although I did get an error: # newfs /dev/ccd0c
newfs: /dev/ccd0c: not a character-special device, but it still ran. Any 
suggestions anyone? Can this be ignored (I'm guessing since it printed it 
it can't be)?


On Wed, 17 Jan 2007, Chris Mika wrote:

I sat down and calculated one cylinder, and it's not 63 sectors, it's 1008. 
So I redid the disklabel and it seems to be working. I ran newfs and it's 
reporting 600GB.


You can't create a partition on ccd0, you must use ccd0c.

On Wed, 17 Jan 2007, Chris Mika wrote:

I've read that. That's why I began the offset using disklabel's default 
setting, which is 63. Sorry, that's why I said you can ask for 
clarification.


As for the second part, it wasn't so clear, but with FreeBSD's ccd you 
create the file system on /dev/ccd0c so I assumed it was the same. If you 
use disklabel -E ccd0 it can't get the approrpriate geometry.


On Wed, 17 Jan 2007, christian widmer wrote:


first:
YOU WROTE: - creating one partition of type ccd spanning entire disk

i take you're word then you should have a close look at 'man ccd'

Note that the `raw' partitions of the disks should not be combined. Each
component partition should be offset at least one cylinder from the 
beginning

of the component disk.

this is not what you said you did.

second:
i would use disklabel to create explicitly a partition on ccd0 (not
using 'c'). but i'm not sure if this is really necessary.



On Wednesday 17 January 2007 19:11, Chris Mika wrote:

I'm trying to get CCD working correctly, but it just doesn't want to.

I have two identical 300GB disks that I'm trying to interleave.

Here's exactly what I'm doing:
# fdisk -i wd1
# fdisk -i wd3
# disklabel -E wd1
   - creating one partition of type ccd spaning entire disk
# disklabel -E wd3
   - creating one partition of type ccd spaning entire disk
# ccdconfig ccd0 32 0 /dev/wd1a /dev/wd3a
# newfs /dev/ccd0c

When I run newfs it only creates a 300GB filesystem, whereas it SHOULD
create a 600GB file system.

Any ideas? I can send the dmesg or any output if that helps (I didn't to
save space).

-Chris Mika




Re: CCD

2007-01-17 Thread Chris Mika
Sorry, I was just looking at the other problem to hard to notice the 
obvious!


# newfs ccd0c, not /dev/ccd0c.

On Wed, 17 Jan 2007, Chris Mika wrote:


Although I did get an error: # newfs /dev/ccd0c
newfs: /dev/ccd0c: not a character-special device, but it still ran. Any 
suggestions anyone? Can this be ignored (I'm guessing since it printed it it 
can't be)?


On Wed, 17 Jan 2007, Chris Mika wrote:

I sat down and calculated one cylinder, and it's not 63 sectors, it's 1008. 
So I redid the disklabel and it seems to be working. I ran newfs and it's 
reporting 600GB.


You can't create a partition on ccd0, you must use ccd0c.

On Wed, 17 Jan 2007, Chris Mika wrote:

I've read that. That's why I began the offset using disklabel's default 
setting, which is 63. Sorry, that's why I said you can ask for 
clarification.


As for the second part, it wasn't so clear, but with FreeBSD's ccd you 
create the file system on /dev/ccd0c so I assumed it was the same. If you 
use disklabel -E ccd0 it can't get the approrpriate geometry.


On Wed, 17 Jan 2007, christian widmer wrote:


first:
YOU WROTE: - creating one partition of type ccd spanning entire disk

i take you're word then you should have a close look at 'man ccd'

Note that the `raw' partitions of the disks should not be combined. Each
component partition should be offset at least one cylinder from the 
beginning

of the component disk.

this is not what you said you did.

second:
i would use disklabel to create explicitly a partition on ccd0 (not
using 'c'). but i'm not sure if this is really necessary.



On Wednesday 17 January 2007 19:11, Chris Mika wrote:

I'm trying to get CCD working correctly, but it just doesn't want to.

I have two identical 300GB disks that I'm trying to interleave.

Here's exactly what I'm doing:
# fdisk -i wd1
# fdisk -i wd3
# disklabel -E wd1
   - creating one partition of type ccd spaning entire disk
# disklabel -E wd3
   - creating one partition of type ccd spaning entire disk
# ccdconfig ccd0 32 0 /dev/wd1a /dev/wd3a
# newfs /dev/ccd0c

When I run newfs it only creates a 300GB filesystem, whereas it SHOULD
create a 600GB file system.

Any ideas? I can send the dmesg or any output if that helps (I didn't to
save space).

-Chris Mika




Re: Flash Player 9 on OpenBSD

2007-01-17 Thread Travers Buda
On Wed, 17 Jan 2007 16:29:20 -0500
Nick Guenther [EMAIL PROTECTED] wrote:

 
 Seeing the hardline the devs take against driver binary blobs it's
 unlikely. However, I am looking forward myself to 4.1, because Gnash
 http://www.gnu.org/software/gnash/ has been added to ports and upon
 release it will become a package too.

Don't forget that both opera and opera-flashplugin are in the ports
tree. The new linux flash if supported, would probably be used
in a similar fashion (compat et al..) but it uses ALSA. As you know,
ALSA is the (advanced) linux sound architecture. This is a problem that
would consume time for not much gained in return--the easy solution to
watching inane flash animations and google videos in your browser is as
simple as installing linux. Just use ssh X forwarding. You DO have more
than one box, don't you?

Travers Buda



Re: CCD

2007-01-17 Thread christian widmer
On Wednesday 17 January 2007 22:30, Chris Mika wrote:
 I sat down and calculated one cylinder, and it's not 63 sectors, it's
 1008. So I redid the disklabel and it seems to be working. I ran newfs and
 it's reporting 600GB.

 You can't create a partition on ccd0, you must use ccd0c.
i don't know what makes you thing so. but it's wrong.
from the FAQ - 14.18.1 - CCD:
  Just use disklabel on it like you normally would to make the partition or 
partitions you want to use. Again, don't use the 'c' partition as an actual 
partition that you put stuff on.



 On Wed, 17 Jan 2007, Chris Mika wrote:
  I've read that. That's why I began the offset using disklabel's default
  setting, which is 63. Sorry, that's why I said you can ask for
  clarification.
 
  As for the second part, it wasn't so clear, but with FreeBSD's ccd you
  create the file system on /dev/ccd0c so I assumed it was the same. If you
  use disklabel -E ccd0 it can't get the approrpriate geometry.
 
  On Wed, 17 Jan 2007, christian widmer wrote:
  first:
  YOU WROTE: - creating one partition of type ccd spanning entire disk
 
  i take you're word then you should have a close look at 'man ccd'
 
  Note that the `raw' partitions of the disks should not be combined.
  Each component partition should be offset at least one cylinder from the
  beginning
  of the component disk.
 
  this is not what you said you did.
 
  second:
  i would use disklabel to create explicitly a partition on ccd0 (not
  using 'c'). but i'm not sure if this is really necessary.
 
  On Wednesday 17 January 2007 19:11, Chris Mika wrote:
  I'm trying to get CCD working correctly, but it just doesn't want to.
 
  I have two identical 300GB disks that I'm trying to interleave.
 
  Here's exactly what I'm doing:
  # fdisk -i wd1
  # fdisk -i wd3
  # disklabel -E wd1
 - creating one partition of type ccd spaning entire disk
  # disklabel -E wd3
 - creating one partition of type ccd spaning entire disk
  # ccdconfig ccd0 32 0 /dev/wd1a /dev/wd3a
  # newfs /dev/ccd0c
 
  When I run newfs it only creates a 300GB filesystem, whereas it SHOULD
  create a 600GB file system.
 
  Any ideas? I can send the dmesg or any output if that helps (I didn't
  to save space).
 
  -Chris Mika



Re: Groklaw artical about the BSD license

2007-01-17 Thread Marc Balmer

Marco Peereboom wrote:

Good for Germany, they have jurisprudence established.  Now the rest of
the world.


US of A is not the rest of the world, it is the beginning of the end..


I meant a REAL case with real money and fancy lawyers involved.
Something like what happened with BSD and ATT.


On Wed, Jan 17, 2007 at 07:37:00AM -0600, Jeffrey C. Ollie wrote:

On Wed, 2007-01-17 at 08:28 +0100, Marc Balmer wrote:

Marco Peereboom wrote:


along.  The GPL is fatally flawed and hasn't been tested in court.  I
wouldn't bet my code or company on it.

the GPL actually has been tested in court in germany.
I lack the details, but using google they surely show up.

http://www.google.com/search?q=gpl+court+test

Jeff

[demime 1.01d removed an attachment of type application/pgp-signature which had 
a name of signature.asc]




Re: Flash Player 9 on OpenBSD

2007-01-17 Thread Nick Guenther

On 1/17/07, Travers Buda [EMAIL PROTECTED] wrote:

On Wed, 17 Jan 2007 16:29:20 -0500
Nick Guenther [EMAIL PROTECTED] wrote:


 Seeing the hardline the devs take against driver binary blobs it's
 unlikely. However, I am looking forward myself to 4.1, because Gnash
 http://www.gnu.org/software/gnash/ has been added to ports and upon
 release it will become a package too.

Don't forget that both opera and opera-flashplugin are in the ports
tree. The new linux flash if supported, would probably be used
in a similar fashion (compat et al..) but it uses ALSA. As you know,
ALSA is the (advanced) linux sound architecture.


Yeah but then I'd have to use Opera.


This is a problem that
would consume time for not much gained in return--the easy solution to
watching inane flash animations and google videos in your browser is as
simple as installing linux. Just use ssh X forwarding. You DO have more
than one box, don't you?


I just use Windows for flash, it works best on that. And no, I don't
actually have any spare boxes at the moment, at least none that I'm
willing to waste on Linux.

-nick



Re: Flash Player 9 on OpenBSD

2007-01-17 Thread Peter Hessler
On 2007 Jan 17 (Wed) at 16:29:20 -0500 (-0500), Nick Guenther wrote:
:Seeing the hardline the devs take against driver binary blobs it's
:unlikely. However, I am looking forward myself to 4.1, because Gnash
:http://www.gnu.org/software/gnash/ has been added to ports and upon
:release it will become a package too.
:
:-Nick
:

gnash looks very cool, but as of right now, it still can't play strongbad 
email, nor google video.



Re: Flash Player 9 on OpenBSD

2007-01-17 Thread Jeremy Huiskamp

On 17-Jan-07, at 4:29 PM, Nick Guenther wrote:


Seeing the hardline the devs take against driver binary blobs it's
unlikely.


Not that this is reason to support it, but there's obviously a  
monumental difference between a driver and a browser plugin.



However, I am looking forward myself to 4.1, because Gnash
http://www.gnu.org/software/gnash/ has been added to ports and upon
release it will become a package too.

-Nick


Read [EMAIL PROTECTED]  Gnash doesn't appear to be useful at all right now.

Jeremy



Re: Flash Player 9 on OpenBSD

2007-01-17 Thread Marco S Hyman
  gnash looks very cool, but as of right now, it still can't play strongbad 
  email, nor google video.

gnash (last tried was their cvs version as of about 1 month ago)
would play maybe 30% of the flash I ran into on my amd64.  It
has a long way to go to become usable.   If enabled I found that
it played just about all of the advertising content and none of
the content I actually wanted to see.

// marc



Re: pf and load balancing some webservers

2007-01-17 Thread Bryan Chapman

Marian Hettwer wrote:


my pf.conf

ext_if=fxp0
#int_if=int0

set skip on lo

scrub in

web_servers = { 193.99.144.85,66.135.208.93 }
rdr on $ext_if proto tcp from any to any port 80 - $web_servers \
round-robin sticky-address



Do you have a pass rule along with that rdr rule?



Re: Flash Player 9 on OpenBSD

2007-01-17 Thread Darrin Chandler
On Wed, Jan 17, 2007 at 02:41:56PM -0800, Marco S Hyman wrote:
 gnash (last tried was their cvs version as of about 1 month ago)
 would play maybe 30% of the flash I ran into on my amd64.  It
 has a long way to go to become usable.   If enabled I found that
 it played just about all of the advertising content and none of
 the content I actually wanted to see.

Of course. That's because advertisers actually care about communicating
to their prospects, whereas most real content in flash is about using
the newest coolest features to get acros what could easily be done in
plain old HTML.

Most clicked item on the web: Skip Intro

-- 
Darrin Chandler|  Phoenix BSD Users Group
[EMAIL PROTECTED]   |  http://bsd.phoenix.az.us/
http://www.stilyagin.com/  |



Re: Flash Player 9 on OpenBSD

2007-01-17 Thread prad
On Wed, 17 Jan 2007 15:55:12 -0700
Darrin Chandler [EMAIL PROTECTED] wrote:

 Most clicked item on the web: Skip Intro

exactly!!

i find gnash to be more than enough (and was quite happy previously
without it - if i didn't see it, i figured i wasn't missing anything).
if i get really desperate i just use opera and the flash plugin.

the pleasure in using these for me really boils down to:
1) it's fun to see them work without any problems
2) i get to click Skip Intro

-- 
In friendship,
prad

  ... with you on your journey
Towards Freedom
http://www.towardsfreedom.com (website)
Information, Inspiration, Imagination - truly a site for soaring I's



Re: mixed (compile from source, binary update) approach

2007-01-17 Thread Darren Spruell

On 1/17/07, Patrick Useldinger [EMAIL PROTECTED] wrote:

Thanks for your explanations. Now I'm wondering why FreeBSD maintains
the upgrade from source approach, but that's for a different list
(yes, I read that in FreeBSD 6.2 you can do binary upgrades now - but
actually I am not interested in FreeBSD at this point).


Even in FreeBSD it has been standard to simply upgrade via (binary)
CDROM media as well. This isn't a new thing, unless I'm mistaken.

DS



Re: Flash Player 9 on OpenBSD

2007-01-17 Thread Matthew Szudzik
 Don't forget that both opera and opera-flashplugin are in the ports
 tree. The new linux flash if supported, would probably be used
 in a similar fashion (compat et al..) but it uses ALSA. As you know,
 ALSA is the (advanced) linux sound architecture. This is a problem that
 would consume time for not much gained in return

But getting ALSA working in compat_linux would not only benefit people 
watching silly flash animations--it would presumably be used by other 
applications, too.  The usefulness of OpenBSD's Linux binary emulation is 
diminished if it does not support a common audio API.



Re: Flash Player 9 on OpenBSD

2007-01-17 Thread Frank Denis

Le Wed, Jan 17, 2007 at 03:36:07PM -0500, Matthew Szudzik ecrivait :

Adobe released Flash Player 9 for Linux today.  (I know, it's not
open-source, but it's sometimes hard to navigate the web without it.)

http://www.adobe.com/aboutadobe/pressroom/pressreleases/200701/011707FlashPlayerLinux.html


 Well, I see two ways of having flash work with native apps:

- linuxpluginwrapper: this is an horrible hack for DragonflyBSD and FreeBSD.
It's an userland linux to openbsd functions wrapper. Scary, but it works. It
easily compiles on OpenBSD but don't expect it to run without much tweaking.

- GenRes, a generic scriptable plugin. It's designed to use external
programs for EMBED and OBJECT tags , like OpenOffice documents, mplayer, etc.
Is there a standalone Flash 9 player for Linux, or is it easy to build one
around the plugin? If this is the case, we could get Flash 9 run as an
external Linux app, and GenRes would be the bridge to Firefox / Seamonkey /
Konqueror.

 Best regards,

--
Frank Denis - frank [at] nailbox.fr - NSI / Young Nails / Akzentz nail tech
Authorized Akzentz dealer - http://www.nailbox.fr
http://forum.manucure.info - http://www.manucure-pro.com



Multicast

2007-01-17 Thread Stuart Henderson
Does anyone know of a simple IGMP proxy that runs on OpenBSD?



Re: Flash Player 9 on OpenBSD

2007-01-17 Thread Marco S Hyman
Frank Denis writes:
Well, I see two ways of having flash work with native apps:

And these methods work on my hppa box?  Or my Sparc64 box?  Or on
any non-i386/amd64 box?

// marc



Re: Flash Player 9 on OpenBSD

2007-01-17 Thread besnard michel
hi,
i also use opera with flash plugin

what about : packages/i386/flash/flash-0.4.10.tgz
it's a standalone flash player but on the website
http://www.swift-tools.net/Flash/
it's also a netscape plugin based on GPL license
so i get the source and try to compile it on OB 4.0
but some errors stop the compilation

--
mike

2007/1/18, prad [EMAIL PROTECTED]:

 On Wed, 17 Jan 2007 15:55:12 -0700
 Darrin Chandler [EMAIL PROTECTED] wrote:

  Most clicked item on the web: Skip Intro
 
 exactly!!

 i find gnash to be more than enough (and was quite happy previously
 without it - if i didn't see it, i figured i wasn't missing anything).
 if i get really desperate i just use opera and the flash plugin.

 the pleasure in using these for me really boils down to:
 1) it's fun to see them work without any problems
 2) i get to click Skip Intro

 --
 In friendship,
 prad

   ... with you on your journey
 Towards Freedom
 http://www.towardsfreedom.com (website)
 Information, Inspiration, Imagination - truly a site for soaring I's




-- 
Cdt,
Michel BESNARD

http://blog.yumanet.com
http://blog.mfl42.net
http://sweetlili.yumanet.com
# make   
for subdir in Jpeg Zlib Lib Player Plugin Kflash; do (cd $subdir; make); done
`libz.a' is up to date.
c++ -O3 -Wall -fno-rtti -fno-exceptions -I../Jpeg -I../Zlib -c shape.cc
shape.cc: In function `void flushPaths(ShapeParser*)':
shape.cc:311: error: `sqrt' undeclared (first use this function)
shape.cc:311: error: (Each undeclared identifier is reported only once for each 
   function it appears in.)
*** Error code 1

Stop in /tmp/flash/flash-0.4.10/Lib.
*** Error code 1

Stop in /tmp/flash/flash-0.4.10 (line 4 of Makefile).
# 



Re: Flash Player 9 on OpenBSD

2007-01-17 Thread Greg Thomas

On 1/17/07, Nick Guenther [EMAIL PROTECTED] wrote:

On 1/17/07, Travers Buda [EMAIL PROTECTED] wrote:
 On Wed, 17 Jan 2007 16:29:20 -0500
 Nick Guenther [EMAIL PROTECTED] wrote:

 
  Seeing the hardline the devs take against driver binary blobs it's
  unlikely. However, I am looking forward myself to 4.1, because Gnash
  http://www.gnu.org/software/gnash/ has been added to ports and upon
  release it will become a package too.

 Don't forget that both opera and opera-flashplugin are in the ports
 tree. The new linux flash if supported, would probably be used
 in a similar fashion (compat et al..) but it uses ALSA. As you know,
 ALSA is the (advanced) linux sound architecture.

Yeah but then I'd have to use Opera.



Actually I wish it was open source.  I use it every once in awhile for
Flash and it's much, much snappier than Firefox or Konqueror on my IBM
T40.

Greg



Re: pf+altq

2007-01-17 Thread Lawrence Horvath

Try defining q_pri with a bandwidth, you might even be able to set it as:

queue q_pri bandwidth 0% priority 7 cbq(borrow)

This way it wouldnt reserve any bandwidth but it shouldnt cause issues
with the bandwidth math either. If you get that working, please let me
know.



On 1/17/07, sonjaya [EMAIL PROTECTED] wrote:

Dear All
here my altq+pf
##---queue+alq---###
altq on $ext_if cbq bandwidth 100Kb queue{q_std}
 queue q_std bandwidth 100% cbq \
  {q_def,q_pri,q_web,q_msc,q_dat,q_gms}
 queue q_def bandwidth 25% priority 1 cbq(borrow default red ecn)
 queue q_dat bandwidth 10% priority 0 cbq(red)
 queue q_web bandwidth 25% priority 5 cbq(borrow)
 queue q_msc bandwidth 15% priority 4 cbq(borrow)
 queue q_gms bandwidth 25% priority 6 cbq(borrow)
 queue q_pri priority 7

when i try to use it always get error :
demorate# pfctl -f /etc/pf.conf
pfctl: the sum of the child bandwidth higher than parent q_std
demorate#

when i try use this :
 #queue q_pri priority 7
is working .
-sonjaya-
http://sicute.blogspot.com





--
-Lawrence
-Student ID 1028219
-CCNA



hoststated and 802.11

2007-01-17 Thread Sam Fourman Jr.

I was reading about the new hoststated tool in OpenBSD, and wondering
if it would be possible to use rssi as a link health check.


Sam Fourman Jr.



p5-MIME-tools-5.420.tgz

2007-01-17 Thread sausted
I am trying to install p5-MIME-tools-5.420 using pkg_add but I keep getting
the following error:

p5-MIME-tools-5.420:Can't find p5-Convert-BinHex-1.119
/usr/sbin/pkg_add: p5-Convert-BinHex-1.119:Fatal error

I am new to OpenBSD...could someone help me?
-- 
View this message in context: 
http://www.nabble.com/p5-MIME-tools-5.420.tgz-tf3031865.html#a8424046
Sent from the openbsd user - misc mailing list archive at Nabble.com.



Re: p5-MIME-tools-5.420.tgz

2007-01-17 Thread Will Maier
On Wed, Jan 17, 2007 at 06:36:31PM -0800, sausted wrote:
 I am trying to install p5-MIME-tools-5.420 using pkg_add but I keep getting
 the following error:
 
 p5-MIME-tools-5.420:Can't find p5-Convert-BinHex-1.119
 /usr/sbin/pkg_add: p5-Convert-BinHex-1.119:Fatal error
 
 I am new to OpenBSD...could someone help me?

Did you read the FAQ[0] and pkg_add[1] man page? Is PKG_PATH set
correctly in your environment?

[0] http://www.openbsd.org/faq
[1] http://www.openbsd.org/cgi-bin/man.cgi?query=pkg_add, pkg_add(1)

-- 

o--{ Will Maier }--o
| web:...http://www.lfod.us/ | [EMAIL PROTECTED] |
*--[ BSD Unix: Live Free or Die ]--*



Re: Flash Player 9 on OpenBSD

2007-01-17 Thread Nick Guenther

On 1/17/07, besnard michel [EMAIL PROTECTED] wrote:

hi,
i also use opera with flash plugin

what about : packages/i386/flash/flash-0.4.10.tgz
it's a standalone flash player but on the website
http://www.swift-tools.net/Flash/
it's also a netscape plugin based on GPL license
so i get the source and try to compile it on OB 4.0
but some errors stop the compilation


It only supports up to flash 4, and doesn't do sound (it uses OSS;
OpenBSD has an OSS layer but it didn't work for me). I tried to hack
on it for a night once but my sore lack of ioctl skillz killed that
plan.

-Nick



Re: p5-MIME-tools-5.420.tgz

2007-01-17 Thread Mike Erdely

sausted wrote:

I am trying to install p5-MIME-tools-5.420 using pkg_add but I keep getting
the following error:

p5-MIME-tools-5.420:Can't find p5-Convert-BinHex-1.119
/usr/sbin/pkg_add: p5-Convert-BinHex-1.119:Fatal error

I am new to OpenBSD...could someone help me?


You have to build the port yourself.
No acceptable license.  From the Makefile:
PERMIT_PACKAGE_CDROM=   no license
PERMIT_PACKAGE_FTP= no license
PERMIT_DISTFILES_CDROM= no license
PERMIT_DISTFILES_FTP=   Yes

-ME



Re: LANDISK: USB 10/100 ethernet recommendation?

2007-01-17 Thread Jonathan Gray
On Fri, Jan 12, 2007 at 03:21:00PM +1100, Jonathan Gray wrote:
 On Thu, Jan 11, 2007 at 06:51:51PM -0800, Marco S Hyman wrote:
  Jonathan Gray writes:
Just about anything you can buy should work.  The MosChip MCS7830
ones (ie syba usb ethernet) being the only exception that comes to mind.
  
  The current rev of the D-link DUB-E100 does NOT work.  At least it
  did't with code as of about the middle of last month.
  
  // marc
 
 Ah yes I forgot about that one, I suspect it is an AX88772 but perhaps
 with slightly different gpio init sequence.  I've updated the man
 page to mention only rev A currently works, I will look into this
 in future.  Thanks again for sending me one to play with.

Just a followup on this, I've added support for the D-Link DUB-E100 B1
and other AX88772 devices with external PHY to -current.

So my original comment about Moschip MCS7830 based devices being
the only thing I am aware of not working stands :)

Jonathan



Re: Greyscaner question

2007-01-17 Thread Ramdas

On 1/17/07, Bob Beck [EMAIL PROTECTED] wrote:




1) I don't have enough information to tell what you are asking.  show the
real logs.

2) greyscanner is not part of openbsd - it is a proof of concept piece
written by me, so you should probably ask me directly (with full logs)
rather than asking the list.

   -Bob



* Ramdas [EMAIL PROTECTED] [2007-01-17 07:53]:
 Hi Group,

 I have a small query for the greyscanner daemon.

 I am using this great tool for quite some time :)

 While analysing some of the Spamd logs for Blacklisted hosts I found
 the following

 grepped through maillog file
 Jan 17 19:34:00 MYHOST greytrapper[2532]: Trapped x.x.x.x: Invalid
 source address  (rfc822)

 grep x.x.x.x daemon shows a bounce mail to some of my user.

 Does it means that greyscanner considers  (null sender ) as a
 voilation of rfc  penalysis the host. In case yes how to bypass such
 hosts .

 Thanx in advance
 Regards
 Ram


--
#!/usr/bin/perl
if ((not 0  not 1) !=  (! 0  ! 1)) {
  print Larry and Tom must smoke some really primo stuff...\n;
}



I am sorry for this. Will mail u directly . the real logs

Thanx for replying.

Regards
Ram



Re: p5-MIME-tools-5.420.tgz

2007-01-17 Thread Mike Erdely

Scott Austed wrote:

On 1/17/07, *Mike Erdely* wrote:

 You have to build the port yourself.

 Could you point me in the right direction on how I can do this?

See:
http://www.openbsd.org/faq/faq15.html

# Extract the ports tree.
# cd /usr/ports/converters/p5-Convert-BinHex
# make install

Then pkg_add p5-MIME-tools-5.420 will work.

-ME



Re: pf freezing with MS remote desktop

2007-01-17 Thread Allen

Peter Matulis wrote:
I am using OBSD 3.8 as a firewall for a small office and I have an XP 
user that connects to a remote host via MS Remote Desktop (TCP 3389).


Occasionally, this user complains that her connection is severed and 
that afterwards she can no longer reconnect.  (She has taken the bad 
habit, of which I have recently became aware, of goig into the next 
room and cold booting the machine; which solves the problem.)  So far, 
this appears to be a random occurence.
  
I have a feeling it's not so random. It's probably related to when the 
connection has been left idle for an extended period of time.


FWIW: I've seen this problem with wy more than just OpenBSD pf 
firewalls though, so it doesn't seem to be a pf thing per se IMHO. 
(Irritating in either case, but not pf's fault, really.)
I have a fairly beefy system that is a dedicated firewall: 1 GHz intel 
CPU with 128 MB of RAM.  The network interfaces: rl and ste.


I do not have any logs yet to help diagnose the problem.  I was 
wondering that maybe others have experienced the same issue or whether 
people have some ideas on how to troubleshoot.
  

The quick-and-easy answer is:

1.) For you to add an rdr rule for ICMP to that machine from (at least) 
her IP. (This allows the remote pinging of _that_ machine through the 
firewall, thus maintaining state with the RDP client.)
2.) From a DOS prompt have her open a 'ping -t   rdp.ip.goes.here' to 
recursively ping the Windows RDP machine whilst she's connected. (You 
can even do this through an automagic log-on script for her if you'd like.)


Not particularly elegant, but it *should* easily solve the problem with 
super, super minimal effort. (I've used it in the past, keeping 
connections open quite literally over a weekend when I've had to run 
silly software that wouldn't run unless someone was logged in with a 
desktop, so I'm sure this does the trick.)


Alternately, you could also selectively crank up your timeouts and such 
in pf.conf for that remote ip/port combination. This would keep the 
state from timing out when there's no activity on the link to that IP/port.


N.B. It's also trivially easy to reset a TS/RDP connection via MSSQL 
*if* the machine has SQL Server installed.


Good luck,
Allen

--
http://www.memetrics.com -
Multivariate testing with Memetrics xOs.
Landing page optimization, design  consulting.



Re: Flash Player 9 on OpenBSD

2007-01-17 Thread Frank Denis

Le Wed, Jan 17, 2007 at 05:14:33PM -0800, Marco S Hyman ecrivait :

Frank Denis writes:
   Well, I see two ways of having flash work with native apps:

And these methods work on my hppa box?  Or my Sparc64 box?  Or on
any non-i386/amd64 box?


 The second method could work through qemu :)



Re: Friendly registrar

2007-01-17 Thread Allen

Jean-Daniel Beaubien wrote:

I'm about to purchase a domain name and I was wondering if there are
any registrar out there that are friendly to OpenBSD (donations,
contributions, etc...).


www.GoDaddy.com donated $10,000 to OpenBSD in '06.

There are many references to the donation out on the web like this one:
http://digg.com/linux_unix/GoDaddy_donates_$10k_to_OpenBSD_OpenSSH

...and also the original GoDaddy press release:
http://www.godaddy.com/gdshop/pdf/04_19_06_OpenSSH.pdf

Most folks would probably consider a $10K no-strings-attached donation 
pretty OpenBSD friendly.   :-)



Allen

--
http://www.memetrics.com -
Multivariate testing with Memetrics xOs.
Landing page optimization, design  consulting.



Openbsd+Spamassassin+milter-spamd

2007-01-17 Thread Mike Spenard
Could someone direct me to a howto on setting up Openbsd,sendmail and 
spamassassin

to use milter-spamd?

Thank you,
-Mike