gdmsetup - Segmentation fault (core dumped) at OpenBSD 4.3
i have run gnome at openbsd 4.3, install from package, when i try to run gdmsetup at console i got this error: # gdmsetup gdmsetup:/usr/local/lib/libgthread-2.0.so.1400.3: undefined symbol 'pthread_mutex_trylock' lazy binding failed! Segmentation fault (core dumped) i have try to search with google but can found the solution. th
Unsubscription Confirmation
Thank you for unsubscribing. You have now unsubscribed and no more messages will be sent. If you unsubscribed in error, please go to http://lightwurks.com and follow the subscription link. Thank You
Re: Build Packages Java 1.6 at OpenBSD 4.3
On 2008-09-17, my mail [EMAIL PROTECTED] wrote: I have successfull build jdk 1.6 using ports, after run # make and the proces run sucessful, but why i can't found the packages at /usr/ports/packages/i386/all ? Because you just ran make, not make package or make install. i try to run # make install Now you have created the package too. Look in /usr/ports/packages after doing this.
Re: recommendation for router (COMMELL)
On 2008-09-17, Juan Miscaro [EMAIL PROTECTED] wrote: Has anyone any experience running OpenBSD on this puppy: http://www.commell-sys.com/Product/IPC/EMB-564.htm I'm looking for a replacement for my tower that is currently acting as router, anti-spam, mail server for a small network/domain. They should run OpenBSD fine. But disk storage might be a problem. Continuously running 2.5 drives in fanless cases don't tend to last very long; the alternatives (DOM or compactflash) would not be great choices for a typical mail server.
Re: Build Packages Java 1.6 at OpenBSD 4.3
my mail wrote: I have successfull build jdk 1.6 using ports, after run # make and the proces run sucessful, but why i can't found the packages at /usr/ports/packages/i386/all ? You need to run `make package` (or anything that depends on it, such as `make install` to make the package. i try to run # make install and jdk 1.6 have install perfectly, but i still confused with this because before i have build jdk 1.5 with make only, after build complete, jdk 1.5 automatically install and i can found the packages at /usr/ports/packages/i386/all. AFAIK, no port should make a package from make only. it's a difference build jdk 1.5 and jdk 1.6? thanks
Re: gdmsetup - Segmentation fault (core dumped) at OpenBSD 4.3
There is a difference between the libgthread library you have on your system and the one that was used in the creation of the gnome that you installed from packages. Are you using OpenBSD 4.3 -release and did you get the gnome package from the OpenBSD/4.3/packages/i386 directory of the ftp server you used? Anathae -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of my mail Sent: Tuesday, September 16, 2008 11:35 PM To: misc@openbsd.org Subject: gdmsetup - Segmentation fault (core dumped) at OpenBSD 4.3 i have run gnome at openbsd 4.3, install from package, when i try to run gdmsetup at console i got this error: # gdmsetup gdmsetup:/usr/local/lib/libgthread-2.0.so.1400.3: undefined symbol 'pthread_mutex_trylock' lazy binding failed! Segmentation fault (core dumped) i have try to search with google but can found the solution. th
Re: Build Packages Java 1.6 at OpenBSD 4.3
Dear my mail, On Sep 16 18:25:08, my mail wrote: I have successfull build jdk 1.6 using ports, after run # make and the proces run sucessful, but why i can't found the packages at /usr/ports/packages/i386/all ? i try to run # make install and jdk 1.6 have install perfectly, but i still confused with this because before i have build jdk 1.5 with make only, after build complete, jdk 1.5 automatically install and i can found the packages at /usr/ports/packages/i386/all. it's a difference build jdk 1.5 and jdk 1.6? thanks On Sep 17 10:48:56, Alexander Hall wrote: You need to run `make package` (or anything that depends on it, such as `make install` to make the package. AFAIK, no port should make a package from make only. On Sep 17 08:49:34, Stuart Henderson wrote: Because you just ran make, not make package or make install. see ports(7), sections TARGETS. Running just 'make' is equivalent to running 'make all', which is also aliased as 'make build'. This just compiles the port, and does not install anything anywhere; in particular, it does not copy anything into /usr/ports/packages. So, if you just run 'make' in .../jdk/1.5, you now have it build (in ./w-jdk-1.5.0.14), and that's all. Only after you run 'make package' is a package created in /usr/ports/packages. Running 'make install' depends on 'make package'. Your memory probably plays tricks with you about how you installed 1.5. Jan
Re: recommendation for router (COMMELL)
On Wed, Sep 17, 2008 at 3:33 AM, Juan Miscaro [EMAIL PROTECTED] wrote: Has anyone any experience running OpenBSD on this puppy: http://www.commell-sys.com/Product/IPC/EMB-564.htm Personally I've found that 2,5 disks last longer in the iBase FWA-7304 http://www.ibasetechnology.net/fwa7304.html Something about how they're uses the case to dissipate the heat generated by the CPU seems kinder on the HDD.
pflow send errors (export only 1 packet)
Dear misc@, I am using the 4.4-current CVS from 2008-09-17, and having problem with exporting NetFlow data with the new pflow pseudo-device. The setup used to work just fine using softflowd. There is nfcapd at the receiving end, but this probably is irrelevant. $ netstat -s -f pflow pflow: 25053 flows sent 835 packets sent 0 send failed due to mbuf memory error 834 send error It seems that only the first send succeeds as I can see data around the time I booted to the latest compile of kernel userland. With pfctl I can see the states correctly marked as (pflow, no-sync), using the set state-default pflow, no-sync. But for some reason the sending fails (after 1 successful send?). tcpdump reveals no packets actually being sent out. PF is set to pass all. $ ifconfig pflow0 pflow0: flags=41 mtu 1464 pflow: sender: 10.0.16.1 receiver: 10.0.16.20:9996 groups: pflow 10.0.16.1 is on a vlan interface if that makes any difference. Any ideas? What could I do to dig deeper into the problem or help track down possible bug? Is it still so much work in progress problems are expected? Regards, V (apologies for the hotmail address!) _ Discover the new Windows Vista http://search.msn.com/results.aspx?q=windows+vistamkt=en-USform=QBRE
Re: recommendation for router (COMMELL)
On Wed, Sep 17, 2008 at 08:56:07AM +, Stuart Henderson wrote: On 2008-09-17, Juan Miscaro [EMAIL PROTECTED] wrote: Has anyone any experience running OpenBSD on this puppy: http://www.commell-sys.com/Product/IPC/EMB-564.htm I'm looking for a replacement for my tower that is currently acting as router, anti-spam, mail server for a small network/domain. They should run OpenBSD fine. But disk storage might be a problem. Continuously running 2.5 drives in fanless cases don't tend to last very long; the alternatives (DOM or compactflash) would not be great choices for a typical mail server. I have one, it's okay, but like all PC based system it suffers from crappy BIOS serial port redirection. I second Stuart's opinion regarding not running a mail server on it. diana
Re: recommendation for router (COMMELL)
2008/9/17 Diana Eichert [EMAIL PROTECTED]: On Wed, Sep 17, 2008 at 08:56:07AM +, Stuart Henderson wrote: On 2008-09-17, Juan Miscaro [EMAIL PROTECTED] wrote: Has anyone any experience running OpenBSD on this puppy: http://www.commell-sys.com/Product/IPC/EMB-564.htm I'm looking for a replacement for my tower that is currently acting as router, anti-spam, mail server for a small network/domain. They should run OpenBSD fine. But disk storage might be a problem. Continuously running 2.5 drives in fanless cases don't tend to last very long; the alternatives (DOM or compactflash) would not be great choices for a typical mail server. I have one, it's okay, but like all PC based system it suffers from crappy BIOS serial port redirection. I second Stuart's opinion regarding not running a mail server on it. Thanks everyone for your comments. I guess I'll look elsewhere. Now how about the inverse question? What *would* you recommend? In addition to the listed duties, I am looking for stability, quietness, and low power (in that order). Don't need 4 lan ports (at least 2) but 3 would be nice. /juan
ascii bandwidth report
Now that my ISP is imposing bandwidth caps, I need to start measuring my usage. Graphs are nice, but I've found that graphs are not really that useful to me. I need something to report what my cummalative usage is in a 30 day period. I'd like the data in some sort of ascii format, but html is ok too. I think I need something that can poll snmp stats from fxp0, which is attached to my cable modem. Something small would be preferred. I'm not interested in cacti or other large installations. My needs are very modest...I hope. After googling for a little bit, I only found 2 apps that might work on my OpenBSD 4.3-stable firewall, vmnet and rtg. There is port or package available for either though. The output of vmnet -m is what I'm looking for, so I'll try that first. I was happy to see that rtg is now in current-ports, so I should be able to use it once I get my preordered CDs. If you have any suggestions, or you have a perl/python script that you would like to share, it would be appreciated.
Re: recommendation for router (COMMELL)
What *would* you recommend? In addition to the listed duties, I am looking for stability, For a mail server appliance, Axiomtek units are the only way to fly. Try the NA-820. We've been nothing but pleased, and of all the cheap Award/AMI BIOS's, theirs has been the best performing so far, and priced well http://axiomtek.com/products/ViewProduct.asp?view=429 Also thanks for pointing out Commell. I'll try to have them scare up a demo unit so that I can extract a dmesg(8): http://code.google.com/p/bsd-appliance/wiki/HardwareVendors ~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), please be advised that any re-use, dissemination, distribution or copying of this message is prohibited. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.
relayd http-https-redirects with sticky-address
Hello, I use relayd with redirects to loadbalance between two webservers one redirect is used for http requests and the other for https. the redirects looks like the following: redirect web_http { listen on $ext_ip1 port http sticky-address forward to webservers port http check script /usr/local/sbin/chksrvs } redirect web_https { listen on $ext_ip1 port https sticky-address forward to webservers port https check script /usr/local/sbin/chksrvs } The redirects works fine separately and sticks to the same machine, but when the user navigates from http to https the requests sometimes move over to the other machine. I need the same source-ip to always stay on the same server regardless of which destination port (http or https) is being used. Any suggestions on how to achive this would be greatly appreciated. Regards, Mikael
Re: recommendation for router (COMMELL)
Juan Miscaro schrieb: 2008/9/17 Diana Eichert [EMAIL PROTECTED]: On Wed, Sep 17, 2008 at 08:56:07AM +, Stuart Henderson wrote: On 2008-09-17, Juan Miscaro [EMAIL PROTECTED] wrote: Has anyone any experience running OpenBSD on this puppy: http://www.commell-sys.com/Product/IPC/EMB-564.htm I'm looking for a replacement for my tower that is currently acting as router, anti-spam, mail server for a small network/domain. They should run OpenBSD fine. But disk storage might be a problem. Continuously running 2.5 drives in fanless cases don't tend to last very long; the alternatives (DOM or compactflash) would not be great choices for a typical mail server. I have one, it's okay, but like all PC based system it suffers from crappy BIOS serial port redirection. I second Stuart's opinion regarding not running a mail server on it. Thanks everyone for your comments. I guess I'll look elsewhere. Now how about the inverse question? What *would* you recommend? In addition to the listed duties, I am looking for stability, quietness, and low power (in that order). Don't need 4 lan ports (at least 2) but 3 would be nice. /juan Hm, I also always thougt I needed 2 or 3 NICs (DMZ, int, ext...). But then I replaced my network switch with the Netgear GS108T (8Port, 1000MBit __and__ vlan for around 100b, ) and then I started using vlans. guido
Re: ascii bandwidth report
Hi I use cacti to monitor my routers, servers and firewalls. I also build the associated report (templates) thanks to http://www.packetmischief.ca/openbsd/snmp/): interfaces and temperature. You can install cacti under Windows or under Linux. May be this can also work on OpenBsd (never test it) Regards -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Joe S Envoyi : mercredi 17 septembre 2008 17:20 @ : misc@openbsd.org Objet : ascii bandwidth report Now that my ISP is imposing bandwidth caps, I need to start measuring my usage. Graphs are nice, but I've found that graphs are not really that useful to me. I need something to report what my cummalative usage is in a 30 day period. I'd like the data in some sort of ascii format, but html is ok too. I think I need something that can poll snmp stats from fxp0, which is attached to my cable modem. Something small would be preferred. I'm not interested in cacti or other large installations. My needs are very modest...I hope. After googling for a little bit, I only found 2 apps that might work on my OpenBSD 4.3-stable firewall, vmnet and rtg. There is port or package available for either though. The output of vmnet -m is what I'm looking for, so I'll try that first. I was happy to see that rtg is now in current-ports, so I should be able to use it once I get my preordered CDs. If you have any suggestions, or you have a perl/python script that you would like to share, it would be appreciated.
Re: ascii bandwidth report
2008/9/17 Joe S [EMAIL PROTECTED]: Now that my ISP is imposing bandwidth caps, I need to start measuring my usage. Graphs are nice, but I've found that graphs are not really that useful to me. I need something to report what my cummalative usage is in a 30 day period. I'd like the data in some sort of ascii format, but html is ok too. I think I need something that can poll snmp stats from fxp0, which is attached to my cable modem. Something small would be preferred. I'm not interested in cacti or other large installations. My needs are very modest...I hope. After googling for a little bit, I only found 2 apps that might work on my OpenBSD 4.3-stable firewall, vmnet and rtg. There is port or package available for either though. The output of vmnet -m is what I'm looking for, so I'll try that first. I was happy to see that rtg is now in current-ports, so I should be able to use it once I get my preordered CDs. If you have any suggestions, or you have a perl/python script that you would like to share, it would be appreciated. Yes, I have a shell script that does this. It gives usage breakdown by network protocol and outputs this in an HTML table. It is based on pf rule labels and pfctl output. I'll post it here when I find it. /juan
Re: ascii bandwidth report
Also check this: http://humdi.net/vnstat/ i dont know if its currently working on openbsd, but theres some patches, making it work shoulnt be difficult, and this surely is what youre looking for, heres what the output looks like: Database updated: Wed Sep 17 16:57:02 2008 eth0 received:5813558 MB (87.5%) transmitted: 834246 MB (12.5%) total:6647805 MB rx | tx | total ---++--- yesterday 26487 MB |1478 MB | 27965 MB today 22870 MB |1007 MB | 23878 MB ---++--- estimated 32382 MB |1425 MB | 33807 MB -Mensagem original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em nome de Joe S Enviada: quarta-feira, 17 de Setembro de 2008 16:20 Para: misc@openbsd.org Assunto: ascii bandwidth report Now that my ISP is imposing bandwidth caps, I need to start measuring my usage. Graphs are nice, but I've found that graphs are not really that useful to me. I need something to report what my cummalative usage is in a 30 day period. I'd like the data in some sort of ascii format, but html is ok too. I think I need something that can poll snmp stats from fxp0, which is attached to my cable modem. Something small would be preferred. I'm not interested in cacti or other large installations. My needs are very modest...I hope. After googling for a little bit, I only found 2 apps that might work on my OpenBSD 4.3-stable firewall, vmnet and rtg. There is port or package available for either though. The output of vmnet -m is what I'm looking for, so I'll try that first. I was happy to see that rtg is now in current-ports, so I should be able to use it once I get my preordered CDs. If you have any suggestions, or you have a perl/python script that you would like to share, it would be appreciated.
Re: Soundoutput Probs
On Tue, Sep 16, 2008 at 1:20 PM, Matthias Reim [EMAIL PROTECTED] wrote: Original-Nachricht Datum: Sun, 14 Sep 2008 20:34:28 -0400 Von: Nick Guenther [EMAIL PROTECTED] An: [EMAIL PROTECTED] CC: misc@openbsd.org Betreff: Re: Soundoutput Probs On Sun, Sep 14, 2008 at 6:53 PM, [EMAIL PROTECTED] wrote: Hi all i am new to OpenBSD, installed it, and it looks very interesting, i just have one problem... the Sound output. this is my card: # dmesg | grep ac97 ac97: codec id 0x43585429 (Conexant CX20468 rev 1) ac97: codec features reserved, headphone, 18 bit DAC, 18 bit ADC, No 3D Stereo # this is my soundcard : Conexant Cx20468 what can i do? i tryed to mute / unmute all devices in gnome it seems all ok, when i play a mp3 on Audacious, it shows the lines pumping.. looks ok sry for my bad english. The very first thing you should do when diagnosing audio problems is (just from the terminal, without running gnome or anything) $ cat /dev/urandom /dev/audio and see if you get sound -Nick Hello Nick, thank you for the response, i tryed that, but i dont get a sound. what can i do next? sound is working using a knoppix / backtrack liveCD . something goes wrong for me. -- Okay so then your problem is indeed at the OpenBSD-level. Sometimes the problem is that the sound is there but it's too quiet to notice. I notice you have a outputs.extamp=off, perhaps turning it on would help? I don't know. The only thing you can really do here is try toggling every option you see until it works. Sorry I can't help any better. -Nick
Re: Wireless
On Thu, Sep 11, 2008 at 11:59:55AM +0200, Paul de Weerd wrote: | On Thu, Sep 11, 2008 at 11:33:43AM +0200, Heinrich Rebehn wrote: | Paul, | | when you had success with rum(4), did you use wpa? I am having trouble | getting a Hercules HWGUSB2-54 under OpenBSD 4.4 to work with my FritzBox | 7220 using wpa(tkip). At start, the association succeeds, but after some 15 | minutes it disassociates and than fails to reassociate until i either | reboot the AP or the OpenBSD box. The fritzbox reports authentication | errors. If this works for you, then i would suspect that the fritzbox is to | blame. | | No, I did not use rum(4) with wpa. I can try this sometime later this | week, will let you know the results. A bit later than anticipated, but I found a (one of my) rum(4) and tried it with a FON WPA access point. So far, I've transferred 5+GB of data through this NIC without any issues whatsoever, all using WPA. [EMAIL PROTECTED] $ netstat -nb -I rum0 NameMtu Network Address Ibytes Obytes rum0150d Link 00:80:5a:37:c2:f4 5648770470 170570816 I've seen no association errors or anything. There's only this : ehci_idone: ex=0x80221600 is done! Which I got a couple of times (mostly during ifconfig). Cheers, Paul 'WEiRD' de Weerd -- [++-]+++.+++[---].+++[+ +++-].++[-]+.--.[-] http://www.weirdnet.nl/
Re: ascii bandwidth report
Thanks for the comment. However I'm not looking for a graphing solution like cacti, although there is a report plugin for cacti. Cacti seems overkill. I did setup have some simple temperature and io graphs, courtesy of symon. On Wed, Sep 17, 2008 at 8:44 AM, Christophe Rioux [EMAIL PROTECTED] wrote: Hi I use cacti to monitor my routers, servers and firewalls. I also build the associated report (templates) thanks to http://www.packetmischief.ca/openbsd/snmp/): interfaces and temperature. You can install cacti under Windows or under Linux. May be this can also work on OpenBsd (never test it) Regards -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Joe S Envoyi : mercredi 17 septembre 2008 17:20 @ : misc@openbsd.org Objet : ascii bandwidth report Now that my ISP is imposing bandwidth caps, I need to start measuring my usage. Graphs are nice, but I've found that graphs are not really that useful to me. I need something to report what my cummalative usage is in a 30 day period. I'd like the data in some sort of ascii format, but html is ok too. I think I need something that can poll snmp stats from fxp0, which is attached to my cable modem. Something small would be preferred. I'm not interested in cacti or other large installations. My needs are very modest...I hope. After googling for a little bit, I only found 2 apps that might work on my OpenBSD 4.3-stable firewall, vmnet and rtg. There is port or package available for either though. The output of vmnet -m is what I'm looking for, so I'll try that first. I was happy to see that rtg is now in current-ports, so I should be able to use it once I get my preordered CDs. If you have any suggestions, or you have a perl/python script that you would like to share, it would be appreciated.
Use a USB flash drive to install a snapshot
Has anyone been able to configure a usb flash drive to boot a snapshot install? I don't like to burn so many cd's. I tried to install via PXE, but the laptop I use (Thinkpad X24) doesn't support PXE. I've been able to install 4.3 from usb flash drive thanks to these instructions: http://www.azbsd.org/~marco/openbsd/flashkeyinstaller/
Re: Use a USB flash drive to install a snapshot
Joe S wrote: Has anyone been able to configure a usb flash drive to boot a snapshot install? ... It should be a matter of installing to the flash drive a first time, instead of the the hard disk. Then copy the sets and then point /etc/boot.conf to /bsd.rd Once that is in place, you have /bsd.rd there to update that way, too. -Lars
Re: Use a USB flash drive to install a snapshot
On Wed, Sep 17, 2008 at 10:44:38AM -0700, Joe S wrote: | Has anyone been able to configure a usb flash drive to boot a snapshot | install? I don't like to burn so many cd's. I tried to install via | PXE, but the laptop I use (Thinkpad X24) doesn't support PXE. I've | been able to install 4.3 from usb flash drive thanks to these | instructions: http://www.azbsd.org/~marco/openbsd/flashkeyinstaller/ For CD's, I tend to use a couple of CD-RW's - most machines these days can read 'em, it's not such a waste of CDRs and you only have to carry around one if you have a laptop with CD-RW drive. In answer to your question, I have a 32GB Corsair Voyager with a complete OpenBSD install on it. It's an easy portable environment that I carry around all day and can use on many (but not all) modern (i386) systems. Gives asking people if you can use their computer for a bit a whole new dimension (but you may want to explain that you don't change anything about their Windows enviroment before going that route). I also have a somewhat recent set of installation files on there so I can install OpenBSD (i386 and amd64) easily. Cheers, Paul 'WEiRD' de Weerd -- [++-]+++.+++[---].+++[+ +++-].++[-]+.--.[-] http://www.weirdnet.nl/
Re: nagios check_via_ssh on (chroot) OpenBSD
On Fri, Sep 12, 2008 at 10:26:37PM +0200, Pete Vickers wrote: Does anyone have it running in nagios chroot environment ? I used to. perhaps like the ssh libraries are not needed, but where should the ssh keys be put ? Libraries not needed since it's /usr/local/sbin/nagios that executes the plugin, not httpd. [EMAIL PROTECTED] /grep nagios /etc/passwd _nagios:*:550:550:Nagios user:/var/www/nagios:/sbin/nologin in /var/www/nagios/.ssh/ ? Looks right. Did you try it? TiA, Pete Vickers [EMAIL PROTECTED] | +47 48 17 91 00 SystemNet AS
Re: relayd http-https-redirects with sticky-address
Hi! On Wed, Sep 17, 2008 at 05:45:23PM +0200, Mikael Jansson wrote: I use relayd with redirects to loadbalance between two webservers one redirect is used for http requests and the other for https. the redirects looks like the following: redirect web_http { listen on $ext_ip1 port http sticky-address forward to webservers port http check script /usr/local/sbin/chksrvs } redirect web_https { listen on $ext_ip1 port https sticky-address forward to webservers port https check script /usr/local/sbin/chksrvs } The redirects works fine separately and sticks to the same machine, but when the user navigates from http to https the requests sometimes move over to the other machine. I need the same source-ip to always stay on the same server regardless of which destination port (http or https) is being used. Any suggestions on how to achive this would be greatly appreciated. it does not work without a patch. the problem is that the pf Source Tracking table includes a reference to the rule but your example above will load two different rules into pf - one matching http and another one matching https. the trick is to combine both statements into one rule. we don't support port tables in pf yet (which whould be very helpful in many cases) but there is support for a port range. so the hack is to allow port ranges in the relayd redirection block redirect web { listen on $ext_ip1 port 80:443 sticky-address forward to webservers port http check script /usr/local/sbin/chksrvs } note that this will match any traffic in the 80 - 443 port range, make sure that you add additional pf rules to filter any other ports except 80 and 443. but it works with Source Tracking and should allow your clients to move between http and https on the same server. another limitation is that it only runs checks on one of the ports. reyk Index: parse.y === RCS file: /cvs/src/usr.sbin/relayd/parse.y,v retrieving revision 1.122 diff -u -p -I$OpenBSD.*$ -r1.122 parse.y --- parse.y 22 Jul 2008 23:17:37 - 1.122 +++ parse.y 17 Sep 2008 19:21:53 - @@ -30,6 +30,7 @@ #include sys/queue.h #include net/if.h +#include net/pfvar.h #include netinet/in.h #include arpa/inet.h #include arpa/nameser.h @@ -100,11 +101,12 @@ static in_port_t tableport = 0; struct address *host_v4(const char *); struct address *host_v6(const char *); int host_dns(const char *, struct addresslist *, - int, in_port_t, const char *); + int, struct portrange *, const char *); int host(const char *, struct addresslist *, - int, in_port_t, const char *); + int, struct portrange *, const char *); struct table *table_inherit(struct table *); +int getservice(char *); typedef struct { union { @@ -113,6 +115,7 @@ typedef struct { struct host *host; struct timeval tv; struct table*table; + struct portrange port; struct { enum digest_type type; char*digest; @@ -134,8 +137,9 @@ typedef struct { %token v.string STRING %token v.number NUMBER %type v.string interface hostname table -%type v.number port http_type loglevel sslcache optssl mark parent +%type v.number http_type loglevel sslcache optssl mark parent %type v.number proto_type dstmode retry log flag direction forwardmode +%type v.portport %type v.hosthost %type v.tv timeout %type v.digest digest @@ -231,15 +235,29 @@ eflags: STYLE STRING ; port : PORT STRING { - struct servent *servent; + char*a, *b; + int p[2]; - servent = getservbyname($2, tcp); - if (servent == NULL) { - yyerror(port %s is invalid, $2); + p[0] = p[1] = 0; + + a = $2; + b = strchr($2, ':'); + if (b == NULL) + $$.op = PF_OP_EQ; + else { + *b++ = '\0'; + if ((p[1] = getservice(b)) == -1) { + free($2); + YYERROR; + } + $$.op = PF_OP_RRG; + } + if ((p[0] = getservice(a)) == -1) { free($2); YYERROR; } - $$ = servent-s_port; + $$.val[0] = p[0]; +
Re: ascii bandwidth report
2008/9/17 Joe S [EMAIL PROTECTED]: Thanks for the comment. However I'm not looking for a graphing solution like cacti, although there is a report plugin for cacti. Cacti seems overkill. I did setup have some simple temperature and io graphs, courtesy of symon. On Wed, Sep 17, 2008 at 8:44 AM, Christophe Rioux [EMAIL PROTECTED] wrote: Hi I use cacti to monitor my routers, servers and firewalls. I also build the associated report (templates) thanks to http://www.packetmischief.ca/openbsd/snmp/): interfaces and temperature. You can install cacti under Windows or under Linux. May be this can also work on OpenBsd (never test it) Regards -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Joe S Envoyi : mercredi 17 septembre 2008 17:20 @ : misc@openbsd.org Objet : ascii bandwidth report Now that my ISP is imposing bandwidth caps, I need to start measuring my usage. Graphs are nice, but I've found that graphs are not really that useful to me. I need something to report what my cummalative usage is in a 30 day period. I'd like the data in some sort of ascii format, but html is ok too. I think I need something that can poll snmp stats from fxp0, which is attached to my cable modem. Something small would be preferred. I'm not interested in cacti or other large installations. My needs are very modest...I hope. After googling for a little bit, I only found 2 apps that might work on my OpenBSD 4.3-stable firewall, vmnet and rtg. There is port or package available for either though. The output of vmnet -m is what I'm looking for, so I'll try that first. I was happy to see that rtg is now in current-ports, so I should be able to use it once I get my preordered CDs. If you have any suggestions, or you have a perl/python script that you would like to share, it would be appreciated. Here you go! Comments and improvements welcome. /juan [demime 1.01d removed an attachment of type application/x-sh which had a name of ipaccnt.sh]
Re: Use a USB flash drive to install a snapshot
On Wed, Sep 17, 2008 at 10:44 AM, Joe S [EMAIL PROTECTED] wrote: Has anyone been able to configure a usb flash drive to boot a snapshot install? I don't like to burn so many cd's. I tried to install via PXE, but the laptop I use (Thinkpad X24) doesn't support PXE. I've been able to install 4.3 from usb flash drive thanks to these instructions: http://www.azbsd.org/~marco/openbsd/flashkeyinstaller/ Let me clarify what I'm trying to do. I'm not trying to install OpenBSD on a flash drive. I'm trying to install OpenBSD on a laptop, with the flash drive being the bootable source of the installation, much like a CD. I can't PXE and I'm trying to find a way to avoid burning CD's, although I may buy some CD-RW's if I have to.
Re: relayd http-https-redirects with sticky-address
On 21:39, Wed 17 Sep 08, Reyk Floeter wrote: Hi! On Wed, Sep 17, 2008 at 05:45:23PM +0200, Mikael Jansson wrote: I use relayd with redirects to loadbalance between two webservers one redirect is used for http requests and the other for https. the redirects looks like the following: redirect web_http { listen on $ext_ip1 port http sticky-address forward to webservers port http check script /usr/local/sbin/chksrvs } redirect web_https { listen on $ext_ip1 port https sticky-address forward to webservers port https check script /usr/local/sbin/chksrvs } The redirects works fine separately and sticks to the same machine, but when the user navigates from http to https the requests sometimes move over to the other machine. I need the same source-ip to always stay on the same server regardless of which destination port (http or https) is being used. Any suggestions on how to achive this would be greatly appreciated. it does not work without a patch. the problem is that the pf Source Tracking table includes a reference to the rule but your example above will load two different rules into pf - one matching http and another one matching https. the trick is to combine both statements into one rule. we don't support port tables in pf yet (which whould be very helpful in many cases) but there is support for a port range. so the hack is to allow port ranges in the relayd redirection block redirect web { listen on $ext_ip1 port 80:443 sticky-address forward to webservers port http check script /usr/local/sbin/chksrvs } note that this will match any traffic in the 80 - 443 port range, make sure that you add additional pf rules to filter any other ports except 80 and 443. but it works with Source Tracking and should allow your clients to move between http and https on the same server. another limitation is that it only runs checks on one of the ports. ugh, this looks ugly ;) Instead of going this route I would say: find the source of why the visitor should access the same host, and solve that. We use relayd in front of 6 servers, doing http and https. It doesn't matter what backend box the user go. Hell, they can even go to another box on a reload. This of course means we are storing sessions etc on shared storage (NFS in our case, and the new sharedance port looks like an alternative for that) -- Michiel van Baak [EMAIL PROTECTED] http://michiel.vanbaak.eu GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x71C946BD Why is it drug addicts and computer aficionados are both called users?
Re: Use a USB flash drive to install a snapshot
On Wed, 17 Sep 2008 13:18:38 -0700, Joe S wrote Let me clarify what I'm trying to do. I'm not trying to install OpenBSD on a flash drive. I'm trying to install OpenBSD on a laptop, with the flash drive being the bootable source of the installation, much like a CD. I can't PXE and I'm trying to find a way to avoid burning CD's, although I may buy some CD-RW's if I have to. Ah... now I understand. Warning: I just typed it up. Things may fail, as I have not tested it. Assumption: sd0 is your stick. You don't care about what's on it. Assumption: you're installing 4.3, and have the bootable cd image in your local directory. Change the script accordingly. # mkdir in out # vnconfig svnd0 cd43.iso # mount /dev/svnd0c in # fdisk -iy sd0 # disklabel -E sd0 create an a partition # newfs sd0a # mount -o async,noatime /dev/sd0a out # (cd in; tar cf - .)|(cd out; tar xpf -) # cp -p /usr/mdec/boot out # rm out/etc/boot.conf # /usr/mdec/installboot -v out/boot /usr/mdec/biosboot sd0 # umount in out # vnconfig -u vnd0
Re: Use a USB flash drive to install a snapshot
Joe S wrote: On Wed, Sep 17, 2008 at 10:44 AM, Joe S [EMAIL PROTECTED] wrote: Has anyone been able to configure a usb flash drive to boot a snapshot install? I don't like to burn so many cd's. I tried to install via PXE, but the laptop I use (Thinkpad X24) doesn't support PXE. I've been able to install 4.3 from usb flash drive thanks to these instructions: http://www.azbsd.org/~marco/openbsd/flashkeyinstaller/ Let me clarify what I'm trying to do. I'm not trying to install OpenBSD on a flash drive. I'm trying to install OpenBSD on a laptop, with the flash drive being the bootable source of the installation, much like a CD. I can't PXE and I'm trying to find a way to avoid burning CD's, although I may buy some CD-RW's if I have to. As others already pointed out: -Install OpenBSD on a flash drive. -Copy a bsd.rd on the flash drive. You can even copy one for amd64 (and call it bsd_amd64.rd), i386 (bsd_i386.rd), etc... -Copy the install packages on the flash drive, e.g. in /openbsd/amd64/*, /openbsd/i386/*, etc... -Boot the portable from the flash drive. At the boot prompt enter bsd_amd64.rd. -Select the hard drive of the portable as installation target. -Select the appropriate directory of the sources, e.g. /openbsd/amd64. -Complete the install. -Reboot the portable without the flash drive. The portable should now start booting from the hard drive. PS: No CD's were harmed during this installation process. This is how I installed OpenBSD on my eeepc. Final note: it's possible that you have to change /etc/fstab to reflect the hardware change after removing the flash drive (e.g. sd1 becomes sd0). The rest is up to you. HTH, Stijn
Re: ascii bandwidth report
On 2008-09-17, Joe S [EMAIL PROTECTED] wrote: Now that my ISP is imposing bandwidth caps, I need to start measuring my usage. Graphs are nice, but I've found that graphs are not really that useful to me. I need something to report what my cummalative usage is in a 30 day period. I'd like the data in some sort of ascii format, but html is ok too. You can't get much simpler than logging netstat -Iiface -b... After googling for a little bit, I only found 2 apps that might work on my OpenBSD 4.3-stable firewall, vmnet and rtg. There is port or package available for either though. The output of vmnet -m is what I'm looking for, so I'll try that first. I was happy to see that rtg is now in current-ports, so I should be able to use it once I get my preordered CDs. rtg is nice for ISP billing because it keeps all the data it fetches, this means you can account for bandwidth use in all sorts of ways (not least, accurate 95-percentile) and change the way you process them after the initial configuration (not possible with RRD which decimates old data). But it's a bit of a faff to setup, and not all that lightweight...
Re: ascii bandwidth report
On Wed, Sep 17, 2008 at 09:06:04PM +, Stuart Henderson wrote: On 2008-09-17, Joe S [EMAIL PROTECTED] wrote: Now that my ISP is imposing bandwidth caps, I need to start measuring my usage. Graphs are nice, but I've found that graphs are not really that useful to me. I need something to report what my cummalative usage is in a 30 day period. I'd like the data in some sort of ascii format, but html is ok too. You can't get much simpler than logging netstat -Iiface -b... After googling for a little bit, I only found 2 apps that might work on my OpenBSD 4.3-stable firewall, vmnet and rtg. There is port or package available for either though. The output of vmnet -m is what I'm looking for, so I'll try that first. I was happy to see that rtg is now in current-ports, so I should be able to use it once I get my preordered CDs. rtg is nice for ISP billing because it keeps all the data it fetches, this means you can account for bandwidth use in all sorts of ways (not least, accurate 95-percentile) and change the way you process them after the initial configuration (not possible with RRD which decimates old data). But it's a bit of a faff to setup, and not all that lightweight... I'm being a tease again: nfdb=# SELECT sum(flow_packets) AS packets, sum(flow_octets) AS bytes, dst_addr AS server FROM flows_current where dst_addr = '66.205.209.0/24' AND protocol=6 AND timestamp now() - interval '1 week' GROUP BY dst_addr ORDER BY bytes DESC LIMIT 10; packets | bytes| server -++ 9149276 | 6102457003 | 66.205.209.31 5439809 | 5614875206 | 66.205.209.15 5760540 | 3762630650 | 66.205.209.16 461723 | 297503707 | 66.205.209.12 268520 | 154822480 | 66.205.209.14 102066 | 65937949 | 66.205.209.58 71905 | 64167244 | 66.205.209.252 949452 | 58012301 | 66.205.209.60 65539 | 45630979 | 66.205.209.105 60786 | 42647988 | 66.205.209.106 (10 rows) -- Jason Dixon DixonGroup Consulting http://www.dixongroup.net/
Re: 3ware hardware raid support?
On Tue, Sep 16, 2008 at 09:10:48AM +1000, Jonathan Gray wrote: | This sounds like the new firmware, but I can't see a dmesg | from you to figure out if this is the case for sure. arc0 at pci2 dev 14 function 0 Areca ARC-1210 rev 0x00: apic 2 int 18 (irq 5) arc0: 4 ports, 256MB SDRAM, firmware V1.44 2008-2-1 scsibus0 at arc0: 16 targets sd0 at scsibus0 targ 0 lun 0: Areca, ARC-1210-VOL#00, R001 SCSI3 0/direct fixed sd0: 238418MB, 50862 cyl, 20 head, 480 sec, 512 bytes/sec, 488281088 sec total | The newer firmwares behave slightly differently, but should | report things in bioctl properly with 4.4 and -current. That's what I figured. thanks. ryanc
Re: Build Packages Java 1.6 at OpenBSD 4.3
On Sep 17 10:48:56, Alexander Hall wrote: You need to run `make package` (or anything that depends on it, such as `make install` to make the package. AFAIK, no port should make a package from make only. On Sep 17 08:49:34, Stuart Henderson wrote: Because you just ran make, not make package or make install. see ports(7), sections TARGETS. Running just 'make' is equivalent to running 'make all', which is also aliased as 'make build'. This just compiles the port, and does not install anything anywhere; in particular, it does not copy anything into /usr/ports/packages. So, if you just run 'make' in .../jdk/1.5, you now have it build (in ./w-jdk-1.5.0.14), and that's all. Only after you run 'make package' is a package created in /usr/ports/packages. Running 'make install' depends on 'make package'. Your memory probably plays tricks with you about how you installed 1.5. Jan thanks you all, now i have jdk 1.6 package, and i can save for another machine in my home. great to see in my firefox plugins have java plugins thank you
Re: gdmsetup - Segmentation fault (core dumped) at OpenBSD 4.3
-- On Wed, 9/17/08, Anathae Townsend [EMAIL PROTECTED] wrote: From: Anathae Townsend [EMAIL PROTECTED] Subject: Re: gdmsetup - Segmentation fault (core dumped) at OpenBSD 4.3 To: [EMAIL PROTECTED], misc@openbsd.org Date: Wednesday, September 17, 2008, 9:23 AM There is a difference between the libgthread library you have on your system and the one that was used in the creation of the gnome that you installed from packages. Are you using OpenBSD 4.3 -release and did you get the gnome package from the OpenBSD/4.3/packages/i386 directory of the ftp server you used? Anathae i have installed OpenBSD 4.3 from release, and then install gnome from packages, after that i have update my box into -stable, i have build new kernel, src, xenocara and running good, but the only problem is gdmsetup not running, i try to run this: # ./out-of-date Collecting installed packages Collecting port versions: complete Collecting port signatures: complete Outdated ports: x11/gnome/vfs2,-main # bzip2-1.0.4 - bzip2-1.0.5 it's the problem? i'll try to update vfs2 and will report it again thx
Re: Use a USB flash drive to install a snapshot
Stijn wrote: As others already pointed out: -Install OpenBSD on a flash drive. It's possible to install OpenBSD such that the one and only set installed is bsd.rd. Just deselect all the others, don't set up the network and answer the other questions carefully. That makes a bootable usb stick with just the installation material. If you want, you can also copy INSTALL.i386 (or your architecture) and the tarballs for the sets. Then you'll have the ability to install from usb drive to the main drive. You can also carry around a few live cds on the same stick using different methods so that you can boot and work on a machine you don't want to erase. -Lars
Re: Use a USB flash drive to install a snapshot
Paul de Weerd wrote: For CD's, I tend to use a couple of CD-RW's - most machines these days can read 'em, it's not such a waste of CDRs and you only have to carry around one if you have a laptop with CD-RW drive. That's how I've been doing it for a few years. A sturdy 20-CD wallet at Ikea costs 1 EUR or something like that and is fairly easy to keep in the pack. Labelling can be a challenge. A drawback to the CD-RWs I find is that too many people, even those that should know better, do not handle the CDs safely and end up destroying them physically in short order. Some drives seem to be prone to scratching on insertion or retrieval, too, if the user is not both mindful and mentally present. -Lars
Advbase range?
what is the range of the advbase? advskew is 0-255 but vhid's are 1-255 and the man page just states advbase is an 8-bit number with a default of 1, so its a bit ambiguous. I havent been able to set advbase to 0 so I am assuming its 1-255, however I have seen posts of people configuring the advbase to 0. Is this decapracated now? Thanks.
Re: gdmsetup - Segmentation fault (core dumped) at OpenBSD 4.3
If you have checked out the -stable ports, you should be able to do make and make install in each of the appropriate ports sub directories. Please check the faq on following -stable. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of my mail Sent: Wednesday, September 17, 2008 7:22 PM To: misc@openbsd.org Subject: Re: gdmsetup - Segmentation fault (core dumped) at OpenBSD 4.3 -- On Wed, 9/17/08, Anathae Townsend [EMAIL PROTECTED] wrote: From: Anathae Townsend [EMAIL PROTECTED] Subject: Re: gdmsetup - Segmentation fault (core dumped) at OpenBSD 4.3 To: [EMAIL PROTECTED], misc@openbsd.org Date: Wednesday, September 17, 2008, 9:23 AM There is a difference between the libgthread library you have on your system and the one that was used in the creation of the gnome that you installed from packages. Are you using OpenBSD 4.3 -release and did you get the gnome package from the OpenBSD/4.3/packages/i386 directory of the ftp server you used? Anathae i have installed OpenBSD 4.3 from release, and then install gnome from packages, after that i have update my box into -stable, i have build new kernel, src, xenocara and running good, but the only problem is gdmsetup not running, i try to run this: # ./out-of-date Collecting installed packages Collecting port versions: complete Collecting port signatures: complete Outdated ports: x11/gnome/vfs2,-main # bzip2-1.0.4 - bzip2-1.0.5 it's the problem? i'll try to update vfs2 and will report it again thx
cd drive error
Hi all, I find I'm unable to coerce my mitsumi cd drive into writing a track. I've been using it for years to read, which it does just fine, but it's the first time I've attempted to write with this particular drive (I can write just fine using other drives). Checking the 'Supported HW' page, I see mitsumi is generally supported, except for the comment about the problematic driver device probe. Perhaps this is what's biting me? The error is: cdio -f cd0c tao dummy.iso cdio: mode select failed: 3 and the dmesg entries are: cd0 at scsibus1 targ 0 lun 0: MITSUMI, CR-4804TE, 2.6C SCSI0 5/cdrom removable wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 cd0(pciide0:0:1): using PIO mode 0, DMA mode 1 Thanks paul
Re: gdmsetup - Segmentation fault (core dumped) at OpenBSD 4.3 - can't update!
--- On Thu, 9/18/08, my mail [EMAIL PROTECTED] wrote: From: my mail [EMAIL PROTECTED] Subject: Re: gdmsetup - Segmentation fault (core dumped) at OpenBSD 4.3 To: misc@openbsd.org Date: Thursday, September 18, 2008, 1:22 AM -- On Wed, 9/17/08, Anathae Townsend [EMAIL PROTECTED] wrote: From: Anathae Townsend [EMAIL PROTECTED] Subject: Re: gdmsetup - Segmentation fault (core dumped) at OpenBSD 4.3 To: [EMAIL PROTECTED], misc@openbsd.org Date: Wednesday, September 17, 2008, 9:23 AM There is a difference between the libgthread library you have on your system and the one that was used in the creation of the gnome that you installed from packages. Are you using OpenBSD 4.3 -release and did you get the gnome package from the OpenBSD/4.3/packages/i386 directory of the ftp server you used? Anathae i have installed OpenBSD 4.3 from release, and then install gnome from packages, after that i have update my box into -stable, i have build new kernel, src, xenocara and running good, but the only problem is gdmsetup not running, i try to run this: # ./out-of-date Collecting installed packages Collecting port versions: complete Collecting port signatures: complete Outdated ports: x11/gnome/vfs2,-main # bzip2-1.0.4 - bzip2-1.0.5 it's the problem? i'll try to update vfs2 and will report it again thx i have finish build vfs2 package, but get this error: gmake[2]: Leaving directory `/usr/ports/x11/gnome/vfs2/w-gnome-vfs2-2.20.1/gnome-vfs-2.20.1' gmake[1]: Leaving directory `/usr/ports/x11/gnome/vfs2/w-gnome-vfs2-2.20.1/gnome-vfs-2.20.1' === Building package for gnome-vfs2-2.20.1p2 Create /usr/ports/packages/i386/all/gnome-vfs2-2.20.1p2.tgz Link to /usr/ports/packages/i386/ftp/gnome-vfs2-2.20.1p2.tgz Link to /usr/ports/packages/i386/cdrom/gnome-vfs2-2.20.1p2.tgz `/usr/ports/x11/gnome/vfs2/w-gnome-vfs2-2.20.1/fake-i386/.fake_done' is up to date. === Building package for gnome-vfs2-smb-2.20.1p1 Create /usr/ports/packages/i386/all/gnome-vfs2-smb-2.20.1p1.tgz Link to /usr/ports/packages/i386/ftp/gnome-vfs2-smb-2.20.1p1.tgz Link to /usr/ports/packages/i386/cdrom/gnome-vfs2-smb-2.20.1p1.tgz === Updating for gnome-vfs2-2.20.1p2 Upgrading from gnome-vfs2-2.20.1p2 New package gnome-vfs2-2.20.1p2 contains potentially unsafe operations @exec GCONF_CONFIG_SOURCE=`/usr/local/bin/gconftool-2 --get-default-source` /usr/local/bin/gconftool-2 --makefile-install-rule /usr/local/share/schemas/gnome-vfs2/*.schemas /dev/null Can't safely update to gnome-vfs2-2.20.1p2 (use -F update to force it) /usr/sbin/pkg_add: gnome-vfs2-2.20.1p2:Fatal error *** Error code 1 what must i first to do before build vfs2? thx