openbsd-misc mailing list

FromSubjectsort iconDate
Edd Barrett
Open Source OSS for OpenBSD?

Hi guys,

I have been reading a thread on opensolaris.org regarding the
open-sourcing of 4front's OSS. After explaining why CDDL licensing is
unsuitable for OpenBSD, some of the developers have expressed an
interest to contact Theo regarding licensing and OpenBSD.

I do not know much about licensing, nor do I feel that I should email
Theo personally as he may not appreciate it. Just thought I would
point out the thread here.

[ message continues ]

" title="http://www.opensolaris.org/jive/thread.jspa?threadID=32401&tstart=0...">http://www.opensolaris.org/jive/thread.jspa?threadID=32401&tstart=0...Co...

Jun 13, 7:33 pm 2007
Jeff Santos
Re: RTM_ADD and RTM_LOSING

Hi,

Thank you very much.

netstat -ni will not show a single error on any of the three interfaces.

I do not think it has anything to do with PF, because the problem
happens even with a pass quick rule.

I use dlink DGE-530T nics and one onboard vr0.

sk0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
lladdr 00:13:46:71:f2:fa
media: Ethernet autoselect (100baseTX full-duplex,rxpause,txpause)
status: active
inet 200.232.120.1 netmask 0xfffff...

Jun 13, 6:35 pm 2007
Satadru Pramanik
greylisting and mailer pools redux

I have OpenBSD 4.0 setup with spamd doing greylisting for a mail
server, and I am having a problem with more and more companies sending
mail that is getting stuck in spamd from having a pool of mail servers
sending mail from several addresses in the same subnet.

I searched the archives and noticed that this has come up before:

http://openbsd.monkey.org/tech/200410/msg00010.html

Is there a way to enable greylisting based upon the subnet mask of the
sending mailhost without patching spamd & s...

Jun 13, 5:52 pm 2007
Jeff Santos
RTM_ADD and RTM_LOSING

Hi,

I keep getting these "punt RTM_ADD without gateway" in my /var/log/messages
from the routed daemon. Once in a while, I get RTM_LOSING as well.

I noticed that, even with a static default route, every now and then I
try to ping the default gateway, I get ping: sendto: No route to host.

I saw a mention of this message in the list archive, but in that case
the felow managed to stop these messages by changing the rdr rule.

The only rdr rule I use is the default spamd rules:

no rdr on $ext_i...

Jun 13, 5:38 pm 2007
Stuart Henderson
Re: RTM_ADD and RTM_LOSING

RTM_LOSING happens when TCP segments are lost, look for packet loss
somewhere. The usual suspects are bad cables, bad connectors, mismatched
duplex etc. I had it with bge(4) nics onboard Supermicro H8SSL boards,
associated with errors showing up in netstat -ni - in that case moving
to PCI-X em(4) sidestepped the issue.

People who aren't running routed would see these messages, if they

If enough packets are lost to prevent ARP from getting through, you
might see that.

Jun 13, 6:19 pm 2007
David Newman
carp on a /30?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

What is the longest v4 prefix length CARP supports?

In the example given here:

http://www.openbsd.org/faq/pf/carp.html

Each physical interface has two IPv4 addresses, one for a shared IP and
one for the interface address. That would require a /29 or shorter to
accommodate these two addresses, plus at least one address on the other
side of the link.

Is there some means of getting CARP to work where one side of the pf box
sits on a /30?

than...

Jun 13, 2:57 pm 2007
Jon Simola
Re: carp on a /30?

Only in the diagram. The actual configuration examples do not have IPs
on the physical interfaces, just the carp interfaces (note the carpdev

--
Jon

Jun 13, 4:23 pm 2007
Bryan Vyhmeister
Re: carp on a /30?

You don't actually need an address for each physical interface. It is
nice but really not essential. This is the way I understand it.
Someone can correct me if I am wrong. I can't remember positively but
I think I did this kind of setup about a year ago for a little while.
I am actually going to put this configuration back into production in
the next month or two.

Bryan

Jun 13, 3:40 pm 2007
ben
2 ISPs, 2 dhclients, 2 routing tables?

I have an OpenBSD box at my office, it's hooked up to a cable modem
and does NAT.

We had a DSL modem put in yesterday that we want to use for certain
users or certain ports or if the cable dies.

In order to properly NAT out on the ADSL link I know I can use a pf
rule with route-to but I'm wondering if I can take advantage of the
new multiple routing table stuff in 4.1.

Can I do this? does that make sense?

Since both ISPs require that I run dhclient all the time, I made some
changes to /sbin...

Jun 13, 2:53 pm 2007
Michael
WRAP wlan lockup / isakmpd / buffer space

Hi,

I suddenly had a weird wlan lockup during a big file transfer over wlan.
The access point is a WRAP.2E, 1 LAN, 128 MB with a ral0 card. See dmesg
below for more infos.

The client is an IBM X41 notebook with iwi0 and I am using an IPsec VPN
between the two machines. Just after the lockup I had the following
message in the wraps logfile:

Jun 13 20:04:02 wrap isakmpd[32542]: sendmsg (10, 0xcfbd9bc0, 0): No
buffer space available
Jun 13 20:04:29 wrap last message repeated 6 times
Jun 13 20:0...

Jun 13, 2:47 pm 2007
Florin Andrei
recommended hardware for Gigabit firewall?

I'm building several firewalls that need to be able to sustain 1000 Mbit
throughput. We're using AMD64 processors a lot, so that's the kind of
architecture I'm looking at right now. I will use OpenBSD 4.1 64 bit
version.
The set of rules on the firewalls will be relatively small and simple.
At least some of these firewalls will need to be redundant, connected in
an active/standby configuration. I will need at least 6 interfaces on
each firewall, at least 2 of them capable of gigabit speed.

W...

Jun 13, 2:08 pm 2007
Daniel Ouellet
Re: recommended hardware for Gigabit firewall?

Well, not a small order for sure, but to sustain 1000 Mbit throughput on
two interface, I would suggest first to find a way to make sure PF will
be able to do this! So, if your business can do this and have that much
bandwidth and needs like that, then I may be wrong and I apologies in
advance if I am, but I would suggest then to help with the request that
just came up on your screen as well not to long ago to make sure your
boxes would do what you want.

Meaning, can't you help with this on...

Jun 13, 2:51 pm 2007
John Nietzsche
OpenBSD 4.1 and Dell PowerEdge 2900

Dear gentleman,

i am trying to install openbsd 4.1 on dell poweredge 2900. Everything
from turnning on the machine to cd booting was ok, but when i get to
the point of installing it (that part when i am given the options:
Upgrade, Install and Shell? ) its usb keyboard is not working. I left
with the only option to manually poweroff the machine.

Does anybody have any ideia ?

Thanks in advance.

Jun 13, 1:53 pm 2007
Renaud Allard
Re: OpenBSD 4.1 and Dell PowerEdge 2900

I just got this from a Dell 2950 a couple of days ago. I unplugged the
keyboard and plugged it back after a few seconds and it worked. You
could also maybe try to boot without keyboard and plug it afterwards.

Jun 13, 5:38 pm 2007
Simon Kuhnle
Gigabyte WI01GS MiniPCI works with ral(4)

Hi,

I just got a Gigabyte WI01GS MiniPCI and booted OpenBSD-current
on my Thinkpad T40:

~% dmesg | grep ral
ral0 at pci2 dev 2 function 0 "Ralink RT2561S" rev 0x00: irq 11, address
00:1a:4d:26:bb:1a
ral0: MAC/BBP RT2561C, RF RT2527

Works like a charm. Associated with my local AP and surfing the internet
with it right now.

Just wanted to tell you. If you need more information, please contact me
offlist as I'm not subscribed to misc@.

Thanks viq for giving me the tip with this card :-)
-...

Jun 13, 10:52 am 2007
viq
Re: Gigabyte WI01GS MiniPCI works with ral(4)

And I got tip offlist from someone too ;)

And I second that it works:
ral0 at pci2 dev 2 function 0 "Ralink RT2561S" rev 0x00: irq 11,
address 00:16:e6:36:92:11
ral0: MAC/BBP RT2561C, RF RT2527

--
viq

Jun 13, 1:40 pm 2007
Jens Mayer
Re: OpenBSD 4.1 crashed, pfsync problems??

Dear all,

sorry to break the thread, but I did not have the originating message in my
mailinglist folder anymore. Nonetheless, I want to reply to "carlopmart" who

I experienced *exactly* the same problem.

As I'm using a modified kernel also, I'm not sure if this is an official
OpenBSD bug. Therefore, I switched the boxes back to GENERIC kernels for the
time being, waiting for one of them to possibly break down again. Since the
problem is not reproducable, it's hard to say if it only affec...

Jun 13, 8:29 am 2007
carlopmart
Re: OpenBSD 4.1 crashed, pfsync problems??

Thanks Jen. I have switched to GENERIC kernel too (without any modification) and
I am waiting to reproduce this problem ....

--
CL Martinez
carlopmart {at} gmail {d0t} com

Jun 13, 11:41 am 2007
Geraerts Andy
Re: Sometime NAT, sometimes NOT?

If I look at the state table, I see :

State Table Total Rate
current entries 3744
searches 2144319853 2594.8/s
inserts 6610702 8.0/s
removals 6606958 8.0/s

Can I have more NAT port consumption than states? Is there a way to see wich
nat consumes the most ports so I can add ip aliases to this specific nat?

Thanks,

Andy.

No v...

Jun 13, 6:01 am 2007
Stuart Henderson
Re: Sometime NAT, sometimes NOT?

hmm, no I don't think so.

'available ports' is taken from ports used by the machine itself
_and_ ports used by NAT, they're all from the same pool, so it's not
'NAT port consumption' as such - could it be processes on the machine
as Peter suggested? netstat -nfinet -ptcp should have a long list

Should just be 'pfctl -sn -v' and look at states..(or parse
pfctl -ss output).

Jun 13, 7:03 am 2007
Brian A. Seklecki
Re: Sometime NAT, sometimes NOT?

Good catch on this guys. We should remember that most modern NAT is
PAT, or hybrid NAT+PAT. You should ask your ISP for more space to NAT
to (A NAT+PAT hybrid pool).

Cisco calls it overloading. Reminds me of a Soundgarden song.

~BAS

IMPORTANT: This message contains confidential information and is intended only for the individual named. If the reader of this message is not an intended recipient (or the individual responsible for the delivery of this message to an intended recipient), p...

Jun 13, 10:18 am 2007
Matt
Two instances of chrooted OBSD Apache?

Hello,

My ultimate goal is to run both php4 and php5 concurrently on a single
machine and I have been looking at the various options.
Easiest way seems to be to install something like LightHTTPd or Apache2
on the side, along with php4.
But I do not like the idea of non-chrooted webservers running php.
So I am trying to have another instance of the OpenBSD version of Apache
1.3 - chrooted and all.

I *think* it can be done by downloading src.tar.gz and compile it again
from there with instruc...

Jun 13, 5:55 am 2007
Vjacheslav V. Borisov
Re: Two instances of chrooted OBSD Apache?

You probably could use mod_fastcgi from ports, and specify for any
location or virtual host custom php config or version. I never tried
this on OpenBSD chrooted apache, but on FreeBSD + apache 2.x it works
well for me.

Jun 13, 8:23 am 2007
Almir Karic
Re: Two instances of chrooted OBSD Apache?

both lighttpd and apache allow you to have both php4 and php5 side by
side. in apache one has to be a FCGI process the other can be either
FCGI or mod_php (and you just AddHandler in
Directory/Location/VirtualHost/.../).

i am NOT too paranoid about security, so my setup includes lighttpd
and each site that wants php get's own FCGI process, so that standard
unix permissions apply.

--
almir

Jun 13, 6:59 am 2007
Nick Holland
Re: Two instances of chrooted OBSD Apache?

Matt wrote:

No, that would be a painful way to do things...and it wouldn't fix
your problem, as both instances would bind to the IP, port and config
files by default.

Just did this yesterday myself, in fact, so I'm suddenly an "expert" :)
(i.e., wait a bit for people to tell you how wrong I am!)

httpd can be run multiple times with multiple configs, just configure
it to use different ports/IPs, and run each with a different config.

Copy your httpd.conf file to another name.
Configure it as ...

Jun 13, 6:38 am 2007
Geraerts Andy
Re: Sometime NAT, sometimes NOT?

Well I can't find anything that could block it. There is no ftp daemon or ftp
proxy or whatever running on the box. What does the pf do when it tries to
allocate a nat port and doesn't succeed, doesn't it do the nat at all or does
it try again? It could explain the behavior that we see that sometimes packets
aren't natted as they should be. So then can I enlarge the range?

Thanks,

Andy.

No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.472 / Virus Databa...

Jun 13, 5:37 am 2007
Raimo Niskanen
Troubleshooting PCMCIA modem 3Com 3CXM756

Hi all!

I have an old laptop on whith I want to use ppp
to connect to Internet, using a PCMCIA modem
3Com 3CXM756 "Global GSM & Cellular Modem PC Card"

First, I _think_ it shows up as /dev/cua03. In
dmsg it pops up as device pccom3, and when trying
with tip it appears that while the card is in
it fails as described below, while the card is
out it fails with "device not configured".

Nevertheless. ppp, minicom and tip all try to
send AT commands but get no responses, as
it appears. I do n...

Jun 13, 5:21 am 2007
Matthew Clarke
Re: Troubleshooting PCMCIA modem 3Com 3CXM756

I don't know anything about that 3Com card. If you can't get it working,
I do know that the following two (fairly old) PCMCIA modems work well for
me with OpenBSD in a couple of laptops that I use:

- "Megahertz by USRobotics" model XJ4288

- IBM 56K PC Card Modem (FRU 02K4249)

--
"Perfection [in design] is achieved not when there is nothing left to add,
but rather when there is nothing left to take away."
-- Antoine de Saint-Exupery

Jun 13, 12:51 pm 2007
Raimo Niskanen
Re: : Troubleshooting PCMCIA modem 3Com 3CXM756

Thank you guys!

I am looking for a new modem. Unfortunately is it hard to find
your suggested ones in Sweden...

--

/ Raimo Niskanen, Erlang/OTP, Ericsson AB

Jun 13, 1:15 pm 2007
Mitch Parker
Re: Troubleshooting PCMCIA modem 3Com 3CXM756

Hello,

I have one of these cards. It won't work unless you use the 3Com
drivers on Windows, and even then it doesn't work right. If you use a
standard US Robotics external modem, preferably a Sportster, or even
possibly a Zoom PCMCIA modem, they should work.

Mitch

-----Original Message-----
From: owner-misc@openbsd.org [mailto:owner-misc@openbsd.org] On Behalf
Of Raimo Niskanen
Sent: Wednesday, June 13, 2007 5:22 AM
To: misc@openbsd.org
Subject: Troubleshooting PCMCIA modem 3Com 3CXM756
...

Jun 13, 9:00 am 2007
Fred Crowson
Re: Troubleshooting PCMCIA modem 3Com 3CXM756

Can you show us the dmesg with the card inserted?

--
OpenBSD on the Zaurus C3200
http://www.crowsons.com/puters/zaurus.htm

Jun 13, 7:39 am 2007
Geraerts Andy
Re: Sometime NAT, sometimes NOT?

Brian,

Jun 13 11:05:01 spock /bsd: pf: NAT proxy port allocation (50001-65535)
failed

Can this be the cause of my errors?

Andy.

-----Oorspronkelijk bericht-----
Van: Brian A. Seklecki [mailto:lavalamp@spiritual-machines.org]
Verzonden: dinsdag 12 juni 2007 22:03
Aan: Geraerts Andy
CC: misc@openbsd.org
Onderwerp: RE: Sometime NAT, sometimes NOT?

pfctl -x loud && tail -f /var/log/messages

~BAS

interface without NAT. So the ip packet contains the source ip address of my
...

Jun 13, 5:12 am 2007
Stuart Henderson
Re: Sometime NAT, sometimes NOT?

Yes, you have run out of available ports to NAT from.

The straightforward answer is to NAT from a larger pool of addresses
i.e. nat ... -> { 1.1.1.1, 2.2.2.2, 3.3.3.0/24}

The 50001:65535 range is set in /usr/src/sbin/pfctl/pfctl_parser.c
(PF_NAT_PROXY_PORT_LOW and ..._HIGH) which might give some opportunity
to shoot yourself in the foot (especially if you don't bother to make
related changes to sysctl net.inet.ip.port* to keep some hiports free
for connections from the box itself).

Jun 13, 5:48 am 2007
Peter N. M. Hansteen
Re: Sometime NAT, sometimes NOT?

this almost sounds like you have something else which grabs these
ports. do you, intentionally?

--
Peter N. M. Hansteen, member of the first RFC 1149 implementation team
http://www.blug.linux.no/rfc1149/ http://www.datadok.no/ http://www.nuug.no/
"First, we kill all the spammers" The Usenet Bard, "Twice-forwarded tales"
delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.

Jun 13, 5:20 am 2007
Kian Mohageri
syslog disabling question

Hello,

I was setting up a central logserver this afternoon and some of the
functionality I need wasn't in the stock syslogd(8), so I chose to use
syslog-ng.

I noticed that you cannot specify syslogd=NO or syslogd_flags=NO to
disable it (in rc.conf.local), and I was mostly curious why.

I'm sure it has something to do with the gap between when things start
up and may need to log vs. when the local startup happens -- if that's
true, what is the suggested way around that?

Originally I thought t...

Jun 13, 5:00 am 2007
Stuart Henderson
Re: syslog disabling question

How about leaving them both running, and binding syslog-ng to just
the relevant IP address?

Jun 13, 5:19 am 2007
Kian Mohageri
Re: syslog disabling question

Thank you all for the suggestions. For some reason I didn't think of
what Stuart suggested, so I'll try that out. I think it is better
than modifying rc(8).

I think I will have the stock syslogd do it's thing default thing and
maybe even forward messages to syslog-ng in addition so there is some
consistency with the rest of the hosts.

Thanks again,
Kian

Jun 13, 5:09 pm 2007
Brian A. Seklecki
Re: syslog disabling question

modify /etc/rc (this looks questionable anyway -- looks like someone
snook the named stuff in there because it needs aprivate log device in
the chroot):

echo 'starting system logger'
rm -f /dev/log

if [ X"${named_flags}" != X"NO" ]; then
rm -f /var/named/dev/log
syslogd_flags="${syslogd_flags} -a /var/named/dev/log"
fi
if [ -d /var/empty ]; then
rm -f /var/empty/dev/log
mkdir -p -m 0555 /var/empty/dev
syslogd_flags="${syslogd_flags} -a /var/empty/...

Jun 13, 10:33 am 2007
Henning Brauer
hardware needed for network stack performance work

As some of you might have noticed, I worked on network stack and
especially pf performance in calgary. This lead to quite massive
improvements - one diff in particular doubled pf performance in
our test scenario; undeadly covered that:
http://www.undeadly.org/cgi?action=article&sid=20070528213858
dlg an I gave a quick talk about it:
http://www.openbsd.org/papers/cuug2007/

Now I am back in Hamburg and would like to continue that work. There
is quite a lot more performance to gain, but I need...

Jun 13, 4:41 am 2007
Florin Andrei
Re: hardware needed for network stack performance work

I assume the changes that you're making will show up in OpenBSD 4.2?
Or what's the timeframe for including these changes in a "stable" branch
of the code? (i.e. ready for production)

--
Florin Andrei

http://florin.myip.org/

Jun 13, 7:56 pm 2007
bofh
Re: hardware needed for network stack performance work

Got me a t-shirt, a 4.1 CD set, and $100 to you.

--
"This officer's men seem to follow him merely out of idle curiosity."
-- Sandhurst officer cadet evaluation.

Jun 13, 12:00 pm 2007
Theo de Raadt
Re: hardware needed for network stack performance work

Thanks a lot.

However I wish there were some large companies out there using and
relying in pf, who could just decide (right now) to ship Henning two
machines. Not because it is the right thing to do, but because they
will directly benefit, immediately. They could do so completely out
of self-interest.

But perhaps there are no large companies using pf? That's entirely
possible, I suppose.

Supporting requests like Henning's out of the pocket change that our
private user community has is r...

Jun 13, 1:02 pm 2007
Greg Thomas
Re: hardware needed for network stack performance work

That's the problem right there. As a huuuuuuuuuuuuge user of OpenSSH
I'm ashamed of my company for it not stepping up back when I requested
donations. It's a lack of vision, pure and simple.

Greg

--
http://ticketmastersucks.org/tracker.html

Dethink to survive - Mclusky

Jun 13, 1:31 pm 2007
Jason Dixon
Re: hardware needed for network stack performance work

I'm probably going to lose a friend over this, but I'd like to challenge iXsystems to step up and donate a couple systems for this purpose. It would benefit everyone for you guys to donate the hardware to further optimize PF. We all know that PF has become as ubiquitous as OpenSSH, at least in the BSD world.

How about it Matt, is iXsystems up to the challenge?

Thanks,

--
Jason Dixon
DixonGroup Consulting
http://www.dixongroup.net

Jun 13, 1:26 pm 2007
Diana Eichert
Re: hardware needed for network stack performance work

I do know they donated stuff in the past, when I used to buy systems from
them. However that's been a number of years.

diana

Jun 13, 4:07 pm 2007
Matt Olander
Re: hardware needed for network stack performance work

Damn you. Let me see what I can do. But yes, we had planned to do some OpenBSD
support after the BSD Mall merger and integration.

What kind of specs are we looking for? And remember, we're not a huge
company!
I just req'd a few systems for work on FreeBSD 10 GigE support, a system for
BSD Cert (plus cash), and I'm sure that I am forgetting a few we recently
handed around.

Where is Henning located? Shipping free stuff out of country is sometimes a
pain and takes longer.

We just did a network...

Jun 13, 2:18 pm 2007
Martin Schröder
Re: hardware needed for network stack performance work

Hamburg, Germany.

Henning, is DENIC still using OpenBGPD?

Best
Martin

Jun 13, 7:17 pm 2007
Jack J. Woehr
Re: hardware needed for network stack performance work

Suggestion for tapping the Large Company resource for OpenBSD:

1) Create an OpenBSD User Survey
a) should include questions that identifies user classes such as
Private Dude and Large Company
b) should allow user to self-identify if willing for
followup surveys and appeals
2) Place survey
a) on website
b) on the next CDROM
3) Use info garnered through survey to
a) craft appeals on website
b) create email appeals to self-identified users ...

Jun 13, 1:19 pm 2007
Jim Razmus
Re: hardware needed for network stack performance work

This could possibly be as useful as vendorwatch.org|com whatever it was.
And I can say that as I participated in updating it and along with what,
three other people.?.?.

So in a nutshell, nice idea, but deleted with all the other "Worthless
Good Intention Ideas".

An admin working in a large company using pf simply needs to pick up the
sword and make it happen.

Jim

Jun 13, 1:45 pm 2007
Bob Beck
Re: hardware needed for network stack performance work

Don't need a survey for this. we have a pretty good idea what biggies

Oh, a directed spam campaign. perfect. that will endear us to our
users. Please return to marketing school from whence you came, and think
before you suggest such things.

-Bob

Jun 13, 1:34 pm 2007
previous daytodaynext day
NoneJune 13, 2007None