Re: Simple swap question
RW a écrit : On Thu, 18 Dec 2008 15:13:12 -0500 FreeBSD free...@optiksecurite.com wrote: I can't see any process within parentheses in top... I also looked at the -f option of ps but the process that caused the swapping are not listed. FreeBSD only swaps in extreme cases - most of the time it's paging instead. If it really worries you: swapoff -a ; swapon -a Thanks a lot, it worked great! Martin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
SOLVED: Simple swap question
Jerry McAllister a écrit : On Thu, Dec 18, 2008 at 12:02:06PM -0500, FreeBSD wrote: Daniel Bye a écrit : On Thu, Dec 18, 2008 at 10:28:18AM -0600, Kirk Strauser wrote: On Thursday 18 December 2008 09:16:10 FreeBSD wrote: Hi everyone, I have a FreeBSD 7.0-Release server that started to swap after an error in a shell script (process spawning competition ;-) ). I killed the shell and the RAM is now OK. The problem is that the swap is still used. How can I reset the swap? You don't. The system will handle it for you, I promise. :-) And very well, too. You can prompt it to move pages back into RAM if you start using a swapped- out process again - say, for example, a quiescent word processor had been swapped out, you could get it back by raising it and starting to type. But as Kirk said, there really is no need. It's one of the kernel's many jobs, and I'm inclined to leave it get on with it! Dan Thanks for your answer. I'm asking here because it's been several days and there is still used swap for data that should never be used anymore. If the kernel wants to keep it, why not move it to RAM now that there is some free? Why bother if it isn't being currently used? jerry Because this server is monitored by Nagios and it emails me every hour a warning because the swap is not 100% free (I know it's pretty extreme, but I want to know if the system is swapping). I just tried swapoff -a ; swapon -a and it worked great. Thanks everyone for your answer. Martin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: SOLVED: Simple swap question
Tom Worster a écrit : On 12/19/08 10:37 AM, FreeBSD free...@optiksecurite.com wrote: Because this server is monitored by Nagios and it emails me every hour a warning because the swap is not 100% free (I know it's pretty extreme, but I want to know if the system is swapping). if a swap space is available and swapping not turned off, it seems reasonable to expect the OS to use it as it sees fit. rather than trying to tinker with the kernel's swapping policy on the fly every time you get a warning, perhaps think about either telling nagios not to worry about it or don't use swapping. i'd go with the former. but you say you want to ensure that swap doesn't get used -- so maybe get rid of the swap slice? This server is very lightly used, so most of the time if the swap is getting used it shows that something is going wrong. This warning already proved usefull once, so I don't think I'm going to change it. I don't want to mess with the kernel actions, but there was no reason to keep this in swap. I understand that the kernel can't know that, that's why I wanted to know the way to reset the swap. There is always a lot of free or inactive RAM and, in normal condition, the swap should not be used. It's been like that for months, so I think it's a good idea to be notified if the swap is used. Martin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Snow in my Server
Help, I'm in southern Ontario and I have 20cm of snow on my freebsd 7-release server. IT seems to be causeing some http outages. My FBSD 6-.0 doesn't seem to be affected thou. You probably can't use a standard 7-release. You have to build a custom kernel with LATITUDE set. It causes igloo to get built and installed for environments above 46, should work in both hemispheres. We don't use igloo but do turn on the snow-fence option for ipfw. Keeps most of that kind of unwanted traffic out. BTW, make sure any remote reboots / changes are well tested if you're running igloo. Sometimes the whole thing gets buried and it's days before you can get physical access to do any updates / maintenance. Gary ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Simple swap question
Hi everyone, I have a FreeBSD 7.0-Release server that started to swap after an error in a shell script (process spawning competition ;-) ). I killed the shell and the RAM is now OK. The problem is that the swap is still used. How can I reset the swap? Thanks for sharing your knowledge, Martin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Simple swap question
Daniel Bye a écrit : On Thu, Dec 18, 2008 at 10:28:18AM -0600, Kirk Strauser wrote: On Thursday 18 December 2008 09:16:10 FreeBSD wrote: Hi everyone, I have a FreeBSD 7.0-Release server that started to swap after an error in a shell script (process spawning competition ;-) ). I killed the shell and the RAM is now OK. The problem is that the swap is still used. How can I reset the swap? You don't. The system will handle it for you, I promise. :-) And very well, too. You can prompt it to move pages back into RAM if you start using a swapped- out process again - say, for example, a quiescent word processor had been swapped out, you could get it back by raising it and starting to type. But as Kirk said, there really is no need. It's one of the kernel's many jobs, and I'm inclined to leave it get on with it! Dan Thanks for your answer. I'm asking here because it's been several days and there is still used swap for data that should never be used anymore. If the kernel wants to keep it, why not move it to RAM now that there is some free? Martin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Simple swap question
Daniel Bye a écrit : On Thu, Dec 18, 2008 at 12:02:06PM -0500, FreeBSD wrote: Daniel Bye a ?crit : On Thu, Dec 18, 2008 at 10:28:18AM -0600, Kirk Strauser wrote: On Thursday 18 December 2008 09:16:10 FreeBSD wrote: Hi everyone, I have a FreeBSD 7.0-Release server that started to swap after an error in a shell script (process spawning competition ;-) ). I killed the shell and the RAM is now OK. The problem is that the swap is still used. How can I reset the swap? You don't. The system will handle it for you, I promise. :-) And very well, too. You can prompt it to move pages back into RAM if you start using a swapped- out process again - say, for example, a quiescent word processor had been swapped out, you could get it back by raising it and starting to type. But as Kirk said, there really is no need. It's one of the kernel's many jobs, and I'm inclined to leave it get on with it! Dan Thanks for your answer. I'm asking here because it's been several days and there is still used swap for data that should never be used anymore. If the kernel wants to keep it, why not move it to RAM now that there is some free? Because it has swapped out an entire process, which hasn't subsequently been woken up again. It's you that says the data are never going to be needed again - the kernel doesn't know that, so keeps the pages there in swap until you either reawaken the process, or kill it, at which point the swap space they occupied will be freed up. You can see which processes are swapped out in top - the process name is in parentheses. If it is irking you sufficiently, you can kill the processes and reclaim your swap ;-) Dan I can't see any process within parentheses in top... I also looked at the -f option of ps but the process that caused the swapping are not listed. Thanks for helping me clarify this. Martin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
hardware compatibility question: intel e7200 + foxconn g31mg-s mobo
After having been burned with an AMD cpu/mobo combination that wouldn't run 6.x reliabably which I consequently had to sell, I'm going to ask first. My search of the archives (questions and hardware) came up empty, but that seems likely given that both say their archive index was last updated clear back in Feb of 2007, despite the note saying they are updated every 24 hours... Can anyone vouch for running 6.x or 7.0 on an intel e7200 with a foxconn g31mg-s mobo? I was hoping to run this as a low power system but after reading this http://www.freebsd.org/cgi/getmsg.cgi?fetch=18410+20569+/usr/local/www/db/text/2008/freebsd-hardware/20080727.freebsd-hardware and my past experiences I'm a bit concerned unless someone can vouch for it. Barring that, can someone suggest a low power (particularly when idle) core 2 duo processor mobo combination? Thanks, Gary ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: root /etc/csh
isn't the main reason because other shells may reside on a filesystem which isn't necessarily mounted in maintenance/single user mode? Or, libraries for the same? -- Jim Pazarena [EMAIL PROTECTED] Just link the shell of your choice statically and put it somewhere in /. Problem solved. Why doesn't FreeBSD ship bash and other shells besides the `sh' linked statically is beyond me. It wouldn't break ports, would it? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: UFS2 limits
Erik Trulsson([EMAIL PROTECTED])@2008.11.09 20:54:14 +0100: Besides, for most database applications I can think of, what you would need are lots of *files*, which do not have any special limitations other than the the total space and number of i-nodes on the filesystem. Even if you were using the FS as a DB I can't think of any good reason to need 3+ subdirectories in a single directory. Large Maildirs for postfix and qmail/Courier. Some people don't delete email at all. Again, that requires lots of files, not lots of subdirectories. I agree, I misread the OP. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ports missing their packages.
andrew clarke mail_ozzmosis.com said (on 2008/10/29): You need to understand that the FreeBSD project by its nature is primarily source-code driven. Making packages available (of any port) is of very low priority in comparison to the rest of the system (testing, documentation, etc). Demanding that the FreeBSD volunteers build a package just because you want to use it is a bit unfair, particularly when you can make one yourself without much trouble. I'm not sure I got all the emails in this thread... maybe some just haven't arrived yet. Anyway... I, for one, depend on packages. It literally takes days to build something like Firefox on my (admittedly old) computer. I'm surprised that package creation is such a low priority. Are there so few people running FreeBSD on old hardware? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: collecting pv entries -- suggest increasing PMAP_SHPGPERPROC
Chuck Swiger a écrit : On Oct 27, 2008, at 11:39 AM, Francis Dubé wrote: I've read that this is mainly caused by Apache spawning too many processes. Everyone seems to suggest to decrease the MaxClients directive in Apache(set to 450 at the moment), but here's the problem...i need to increase it ! During peaks all the processes are in use, we even have little drops sometime because there isn't enough processes to serve the requests. Our traffic is increasing slowly over time so i'm affraid that it'll become a real problem soon. Any tips on how I could deal with this situation, Apache's or FreBSD's side ? You need to keep your MaxClients setting limited to what your system can run under high load; generally the amount of system memory is the governing factor. [1] If you set your MaxClients higher than that, your system will start swapping under the load and once you start hitting VM, it's game over: your throughput will plummet and clients will start getting lots of broken connections, just as you describe. According to top, we have about 2G of Inactive RAM with 1,5G Active (4G total RAM with amd64). Swapping is not a problem in this case. After checking multiple things (MySQL, networks, CPU, RAM) when a drop occurs, we determined that everytimes there is drop, the number is Apache's process is MaxClients (ps aux | grep httpd | wc -l) and the new http request doesn't get answer from Apache (the TCP hanshakes completes but Apache never push the data). Thanks for your reply! For a rough starting point, divide system RAM by httpd's typical resident memory size. If your load legitimately exceeds this, you'll need to beef up the machine or run multiple webserver boxes behind a load-balancer (IPFW round-robin or similar with PF is a starting point, but something like a Netscaler or Foundry ServerIron are what the big websites generally use). ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: collecting pv entries -- suggest increasing PMAP_SHPGPERPROC
Simon Chang a écrit : collecting pv entries -- suggest increasing PMAP_SHPGPERPROC I've read that this is mainly caused by Apache spawning too many processes. Everyone seems to suggest to decrease the MaxClients directive in Apache(set to 450 at the moment), but here's the problem...i need to increase it ! During peaks all the processes are in use, we even have little drops sometime because there isn't enough processes to serve the requests. Our traffic is increasing slowly over time so i'm affraid that it'll become a real problem soon. Any tips on how I could deal with this situation, Apache's or FreBSD's side ? On page 85 of Michael Lucas' Absolute BSD, there is a solution to your problem that someone else had come across before. The solution involves (1) increasing the PMAP_SHPGPERPROC parameter in the kernel to a higher value and rebuilding the kernel, and (2) increasing the amount of physical RAM to complement it. For more details, go to http://books.google.com/books?id=vebgS-r9fP8Cpg=PA85lpg=PA85dq=Michael+Lucas+collecting+pv+entriessource=webots=9Fl2T_Uyqisig=6LgchiUI5r0NTL6PaK3sxnFuIBIhl=ensa=Xoi=book_resultresnum=1ct=result Good luck, Simon Chang Thanks for the links, pretty helpful but this server is the only production web server we have. I don't really like the idea of recompiling the kernel with a new option... I don't really understand why we are getting this error since there is plenty of Inactive RAM in the system (2G inactive on a 4G server with amd64). Is this a normal error in this case? Thank you for your quick reply. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Freebsd-update with a custom kernel and jails
FreeBSD a écrit : FreeBSD a écrit : matt donovan a écrit : On Sun, Oct 5, 2008 at 12:58 PM, FreeBSD [EMAIL PROTECTED] wrote: There is my situation: I want to be able to use freebsd-update to update a FreeBSD 7.0-Release installation to the latest security patches (I want an update and not an upgrade if I understand correctly). Where this gets more complicated is that I need a custom kernel (for ULE, pf and ALTQ while also disabling some devices I'll never need) and I want to use jails to isolate every services (Apache and MySQL by now). So, I read at some places that you can't use freebsd-update with a custom kernel, but I'm not sure if this apply only in the case of an upgrade between release or if I'll need to manually recompile the kernel with every use of freebsd-update. I also read that it's possible to update the jails from the host system with the -b flag. In this case, I supposed that I need to update the host system before the jail, but is the procedure going to be exactly the same? yes all you need to do is freebsd-update fetch install your kernel won't be updated but your userland will So it is right to say that the custom kernel problem applies only when upgrading to a newer release? All I have to do is 'freebsd-update fetch install' to update the base system then 'freebsd-update -b /usr/jail/jail_name fetch install' to update the jails? I hope so because it would be very impressing :) Martin Another question just came to my head: May I update the src before compiling my custom kernel or should I keep the original src that shipped with the release to be able to use freebsd-update? Thank you very much for your help! Martin I just tried it (freebsd-update fetch install) and after a reboot uname -a still shows FreeBSD 7.0-RELEASE #0 while freebsd-update told me I was going to update to 7.0-RELEASE-p5. But, I noticed that the files that needed to be updated were updated. I'm a little confused...can someone explain this behaviour to me? Thanks, Martin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Freebsd-update with a custom kernel and jails
Hi everyone, I'm totally new to freebsd-update. I used to recompile the kernel and the world when I wanted to update. But I think it's now time to take advantages of the binary update possibility. I looked at the man pages and some googling couldn't answer my questions properly. I need to roll out a server quick and I just want to be sure I'm on the good path. There is my situation: I want to be able to use freebsd-update to update a FreeBSD 7.0-Release installation to the latest security patches (I want an update and not an upgrade if I understand correctly). Where this gets more complicated is that I need a custom kernel (for ULE, pf and ALTQ while also disabling some devices I'll never need) and I want to use jails to isolate every services (Apache and MySQL by now). So, I read at some places that you can't use freebsd-update with a custom kernel, but I'm not sure if this apply only in the case of an upgrade between release or if I'll need to manually recompile the kernel with every use of freebsd-update. I also read that it's possible to update the jails from the host system with the -b flag. In this case, I supposed that I need to update the host system before the jail, but is the procedure going to be exactly the same? Talking about procedure, it would be nice if someone could confirm that all I need to do is 'freebsd-update fetch' followed by 'freebsd-update install' to update the host system. I'm sorry if this has been explained before but I couldn't find anything clear on this. I least, your answer will make a good, update to date source of information. Thank you all for your replies, Martin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Freebsd-update with a custom kernel and jails
matt donovan a écrit : On Sun, Oct 5, 2008 at 12:58 PM, FreeBSD [EMAIL PROTECTED] wrote: There is my situation: I want to be able to use freebsd-update to update a FreeBSD 7.0-Release installation to the latest security patches (I want an update and not an upgrade if I understand correctly). Where this gets more complicated is that I need a custom kernel (for ULE, pf and ALTQ while also disabling some devices I'll never need) and I want to use jails to isolate every services (Apache and MySQL by now). So, I read at some places that you can't use freebsd-update with a custom kernel, but I'm not sure if this apply only in the case of an upgrade between release or if I'll need to manually recompile the kernel with every use of freebsd-update. I also read that it's possible to update the jails from the host system with the -b flag. In this case, I supposed that I need to update the host system before the jail, but is the procedure going to be exactly the same? yes all you need to do is freebsd-update fetch install your kernel won't be updated but your userland will So it is right to say that the custom kernel problem applies only when upgrading to a newer release? All I have to do is 'freebsd-update fetch install' to update the base system then 'freebsd-update -b /usr/jail/jail_name fetch install' to update the jails? I hope so because it would be very impressing :) Martin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Freebsd-update with a custom kernel and jails
FreeBSD a écrit : matt donovan a écrit : On Sun, Oct 5, 2008 at 12:58 PM, FreeBSD [EMAIL PROTECTED] wrote: There is my situation: I want to be able to use freebsd-update to update a FreeBSD 7.0-Release installation to the latest security patches (I want an update and not an upgrade if I understand correctly). Where this gets more complicated is that I need a custom kernel (for ULE, pf and ALTQ while also disabling some devices I'll never need) and I want to use jails to isolate every services (Apache and MySQL by now). So, I read at some places that you can't use freebsd-update with a custom kernel, but I'm not sure if this apply only in the case of an upgrade between release or if I'll need to manually recompile the kernel with every use of freebsd-update. I also read that it's possible to update the jails from the host system with the -b flag. In this case, I supposed that I need to update the host system before the jail, but is the procedure going to be exactly the same? yes all you need to do is freebsd-update fetch install your kernel won't be updated but your userland will So it is right to say that the custom kernel problem applies only when upgrading to a newer release? All I have to do is 'freebsd-update fetch install' to update the base system then 'freebsd-update -b /usr/jail/jail_name fetch install' to update the jails? I hope so because it would be very impressing :) Martin Another question just came to my head: May I update the src before compiling my custom kernel or should I keep the original src that shipped with the release to be able to use freebsd-update? Thank you very much for your help! Martin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
php5 on a system upgraded from FBSD5.4R to FBSD6.3-p3
dear list, i just upgraded my system from 5.4R to 6.3-p3 when i now try to install php5 w/ apache integration (apache module) i get the following error when i try to start apache20: Cannot load /usr/local/libexec/apache2/libphp5.so into server: /usr/local/libexec/apache2/libphp5.so: Undefined symbol __res_ninit I googled but neither of the solution provided by the net community works ... i would really appreciate help. Thanks in advance! Zheyu ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: installing 7.0-release from .isos: endless mfi status msgs on console
Jacob Yocom-Piatt a écrit : FreeBSD wrote: Jacob Yocom-Piatt a écrit : am setting up a new fileserver on a poweredge 1950 and installing from the freebsd 7.0-release .isos but can't read anything on the console since the PERC 5/i or 5/e card(s) are dumping status messages to the console non-stop (~1000 lines / minute). What are exactly those messages? I have the same server with FreeBSD 7.0-Release too and I don't get any annoying messages. I would be tempted to say that there is something wrong... martin, they are status messages of some sort that are coming from the two PERC cards installed in the machine, a 5/i for the SAS disks inside it and a 5/e for the MD1000 disk array attached to it via a SAS cable. since i don't have a console attached at this machine's location, i can't easily dump the messages here. suffice it to say that i get similar messages on my other freebsd fileserver running on essentially the same hardware (amd64 on poweredge 1950 + MD1000 enclosure). if you really want to see them, i can acquire them from the console whenever i reboot the machine but only after i have the console reading out. Jake, Maybe you're getting those messages because you have 2 cards installed but I still don't think it's normal that you get that much messages from good working cards. I think it would be interesting to see those messages. Martin if i wait 5-10 minutes, the messages 'settle' and the installer gets further along, but the amd64 installer seizes whereas the i386 one gets to the usual install menu, i.e. 'choose your country', etc. if the amd64 installer is seizing up, can anyone recommend a workaround? i'm not about to install a 32-bit arch onto this machine since it needs to do ZFS which is known to have additional problems with 32-bit arches. cheers, jake Martin is there any way to disable these status messages so that i can get freebsd installed? AFAICT there is nothing broken with the battery on either of the PERC 5/i or 5/e cards installed. cheers, jake ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: installing 7.0-release from .isos: endless mfi status msgs on console
Jacob Yocom-Piatt a écrit : am setting up a new fileserver on a poweredge 1950 and installing from the freebsd 7.0-release .isos but can't read anything on the console since the PERC 5/i or 5/e card(s) are dumping status messages to the console non-stop (~1000 lines / minute). What are exactly those messages? I have the same server with FreeBSD 7.0-Release too and I don't get any annoying messages. I would be tempted to say that there is something wrong... Martin is there any way to disable these status messages so that i can get freebsd installed? AFAICT there is nothing broken with the battery on either of the PERC 5/i or 5/e cards installed. cheers, jake ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Multiple installation of one ports
Matthew Seaman a écrit : FreeBSD wrote: Hi everyone, I've been asked by a customer to install Drupal on one server to manage a new site. No problem yet. But, he also asked if it would be possible to install it for other sites. I know that there is a warning if you want to install a port that is already installed, but is there a way to bypass this? I know I could install it from the tarball from the website, but I want to be able to use portupgrade and portaudit to deal with it. Any suggestions? This is an interesting problem. The FreeBSD ports system does not at present allow multiple installations of the same port, even into different ${PREFIX}es. This make sense for most of the software dealt with by the ports system, but in the specific case of web based applications having the same application installed into multiple locations in the same web tree is a perfectly reasonable thing to want to do. Here are some ideas as to ways you might consider for working round the problem and still being able to use the ports system in the usual way. None of these are tested by me in any way, and some of them may not actually work. i) If you have spare IPs available, simply set up jails to run second and subsequent instances of drupal and apache. This is pretty much overkill but it's a tried and tested strategy and should be reliable. The downside is you need to install at least enough of a system in each jail to support running apache, etc. plus you have to maintain each of the different jail environments separately. ii) If you haven't any spare IPs, you can install multiple copies of the same port on the same machine by changing *both* $PKG_DBDIR and $PREFIX in the environment to distinct values for each copy. Unfortunately changing $PREFIX doesn't give you complete freedom to choose where a web app will be installed -- typically a web app will be located at ${PREFIX}/www/app-name. However by judicious use of the Alias directive in httpd.conf you can make all those different directories appear in the same web tree. Like option (i) you've still got multiple copies of ports to maintain, although in this case, it's only the drupal port and anything that depends on drupal that you need multiple copies of, rather than the entire installation tree of ports. iii) A kind of wacky idea this, and it will only work for web apps whose configuration files are contained within the web root. That's true of most PHP based web apps -- other languages may differ. Install the port once only, in the normal fashion. Then create loopback mounts of the application directory multiple time, each to a union fs (see mount_unionfs(8)) where you superpose a separate layer to contain just the configuration files for that instance. It's conceptually complicated, but all the work should be at the setup stage and after that, there's only one instance of your web app to keep properly maintained. iv) I've no idea if this is at all possible with Drupal, but really the absolute easiest solution is to choose a CMS that lets you manage several different web sites (virtual hosts, web trees, what you will) within the same instance. Cheers, Matthew As usual, a very complete answer! Every time I see your name, I'm sure to find a clear and pertinent answer. Thanks for your support to the community. As you outlined in your fourth possibility, I will go with the easiest solution. For web-based apps, I will install them directly, without using the ports if I have to run multiple instance of the same app. In this case, Drupal supports multiple sites so that's not a problem, but I heard that Joomla didn't support this. Thank you and to everyone else that replied, Martin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Multiple installation of one ports
John Nielsen a écrit : On Tuesday 16 September 2008 01:26:35 pm FreeBSD wrote: I've been asked by a customer to install Drupal on one server to manage a new site. No problem yet. But, he also asked if it would be possible to install it for other sites. I know that there is a warning if you want to install a port that is already installed, but is there a way to bypass this? I know I could install it from the tarball from the website, but I want to be able to use portupgrade and portaudit to deal with it. I've done this in the past with Gallery and it looks like Drupal should be workable too. The thing to do is to make either a clone port or a slave port of the original and tweak a few things. In particular you'll want to add some sort of suffix to the port name and change the installation directory. For example, you could make a directory called ports/www/drupal6-customer and drop this in its Makefile: PKGNAMESUFFIX=-${CUSTNAME} DRUPAL_BASE=drupal6-${CUSTNAME} .include ../drupal6/Makefile You could then do things like # cd /usr/ports/www/drupal6-customer # make CUSTNAME=foo install clean # make CUSTNAME=bar install clean which would (with any luck) create independent installations of drupal under /usr/local/www/drupal6-foo and /usr/local/www/drupal6-bar. Or if you didn't want to worry about defining CUSTNAME all the time (or the desired name/location won't follow a predictable pattern) you could make a different slave port for each installation and hard-code the two values. I haven't tested any of this other than some quick verification of variables using make -V. HTH. If you have specific questions about port mechanics the ports@ list might be the best place to ask. See also the Porter's Handbook: http://www.freebsd.org/doc/en/books/porters-handbook/ JN That's a pretty interesting idea...I'll keep it in the back of my head. Thanks, Martin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Multiple installation of one ports
Hi everyone, I've been asked by a customer to install Drupal on one server to manage a new site. No problem yet. But, he also asked if it would be possible to install it for other sites. I know that there is a warning if you want to install a port that is already installed, but is there a way to bypass this? I know I could install it from the tarball from the website, but I want to be able to use portupgrade and portaudit to deal with it. Any suggestions? Thank you for your time, Martin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Multiple installation of one ports
Gavin Spomer a écrit : Hi Martin, You want to install multiple sites on one server or multiple servers? One server only If the former, there is a solution for you at: http://drupal.org/getting-started/6/install/multi-site That would solve my problem in that case... I have yet to try this, but will likely give it a shot some day... If the latter, are your other systems FreeBSD? If so, (and forgive me if I'm telling you something you already know) you simply need to run portupgrade/portaudit on those systems. If, for example, it's some Linux distrobution, see if it has a package management software that will handle installing and upgrading Drupal. In all cases, portupgrade will not do everything for you. You still may have to run update.php sometimes if a particular update needs to have databases changes. Ok but my question was more focusing on the handling of multiple installation of the same port by portupgrade. If it's possible to install the same port multiple times, how is portupgrade going to deal with this? Thanks for your response! Martin Genuinely hope this helps! :) Gavin Spomer Systems Programmer Brooks Library Central Washington University FreeBSD [EMAIL PROTECTED] 09/16/08 10:31 AM Hi everyone, I've been asked by a customer to install Drupal on one server to manage a new site. No problem yet. But, he also asked if it would be possible to install it for other sites. I know that there is a warning if you want to install a port that is already installed, but is there a way to bypass this? I know I could install it from the tarball from the website, but I want to be able to use portupgrade and portaudit to deal with it. Any suggestions? Thank you for your time, Martin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
How to compare 2 images from command line
Hi everyone, I'm trying to determine if 2 jpeg images are identical. The images are screenshots taken with scrot at different times. The point is to know if the display is working correctly. I tried to use 'diff' but without success, probably because of the metadata included in the image. I also tried the 'compare' command from imagemagick, but it produce an image containing the difference between the 2 images instead of telling me if both images are identical. So, my question is what are you using to determine if 2 images are identical? I'm using FreeBSD 7.0 and I need to be able to script this comparaison for an integration in Nagios. Thank you, Martin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How to compare 2 images from command line
Tom Marchand a écrit : Hash the images and compare the hashes. -- Original message -- From: FreeBSD [EMAIL PROTECTED] Hi everyone, I'm trying to determine if 2 jpeg images are identical. The images are screenshots taken with scrot at different times. The point is to know if the display is working correctly. I tried to use 'diff' but without success, probably because of the metadata included in the image. I also tried the 'compare' command from imagemagick, but it produce an image containing the difference between the 2 images instead of telling me if both images are identical. So, my question is what are you using to determine if 2 images are identical? I'm using FreeBSD 7.0 and I need to be able to script this comparaison for an integration in Nagios. Thank you, Martin I just tried it and it doesn't work. The hashes are different. I can't say that I'm surprised since 'diff' is seeing a difference between the two identical images. Thanks for the suggestion ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How to compare 2 images from command line
Andrew Gould a écrit : On Tue, Sep 2, 2008 at 10:23 AM, FreeBSD [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Tom Marchand a écrit : Hash the images and compare the hashes. -- Original message -- From: FreeBSD [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Hi everyone, I'm trying to determine if 2 jpeg images are identical. The images are screenshots taken with scrot at different times. The point is to know if the display is working correctly. I tried to use 'diff' but without success, probably because of the metadata included in the image. I also tried the 'compare' command from imagemagick, but it produce an image containing the difference between the 2 images instead of telling me if both images are identical. So, my question is what are you using to determine if 2 images are identical? I'm using FreeBSD 7.0 and I need to be able to script this comparaison for an integration in Nagios. Thank you, Martin I just tried it and it doesn't work. The hashes are different. I can't say that I'm surprised since 'diff' is seeing a difference between the two identical images. Thanks for the suggestion Yes, there's a huge difference between testing differences in images and testing differences in files. What do you mean by ...know if the display is working correctly.? Andrew I want to determine if Mplayer is working correctly. The best way to be sure is to check if the display on the screen is changing. That's the purpose of the screenshots. The screenshots are taken by Nagios every 5 minutes and the new screenshot is compared with the preceding one. But, by now, it doesn't work because every tool we try is seeing a diffence between 2 identical images. Thank you for your interest ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How to compare 2 images from command line
Bill Moran a écrit : In response to FreeBSD [EMAIL PROTECTED]: Andrew Gould a écrit : On Tue, Sep 2, 2008 at 10:23 AM, FreeBSD [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Tom Marchand a écrit : Hash the images and compare the hashes. -- Original message -- From: FreeBSD [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Hi everyone, I'm trying to determine if 2 jpeg images are identical. The images are screenshots taken with scrot at different times. The point is to know if the display is working correctly. I tried to use 'diff' but without success, probably because of the metadata included in the image. I also tried the 'compare' command from imagemagick, but it produce an image containing the difference between the 2 images instead of telling me if both images are identical. So, my question is what are you using to determine if 2 images are identical? I'm using FreeBSD 7.0 and I need to be able to script this comparaison for an integration in Nagios. Thank you, Martin I just tried it and it doesn't work. The hashes are different. I can't say that I'm surprised since 'diff' is seeing a difference between the two identical images. Thanks for the suggestion Yes, there's a huge difference between testing differences in images and testing differences in files. What do you mean by ...know if the display is working correctly.? Andrew I want to determine if Mplayer is working correctly. The best way to be sure is to check if the display on the screen is changing. That's the purpose of the screenshots. The screenshots are taken by Nagios every 5 minutes and the new screenshot is compared with the preceding one. But, by now, it doesn't work because every tool we try is seeing a diffence between 2 identical images. Can you put the screenshots into some other format? As you mentioned, the jpeg format includes metadata, which might include the creation time and would cause every image to be unique from a filesystem view. For example, I don't believe bitmaps include metadata, which would cause them to be identical if the display were identical. Thank you! It did the trick. I just converted the image from png (sorry it wasn't jpeg...) to bmp and it works with cmp. Even diff now recognize both images as identical. Thanks everyone for your support. Martin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How to compare 2 images from command line
Polytropon a écrit : On Tue, 02 Sep 2008 11:31:49 -0400, FreeBSD [EMAIL PROTECTED] wrote: I want to determine if Mplayer is working correctly. The best way to be sure is to check if the display on the screen is changing. That's the purpose of the screenshots. And this works? I always thought mplayer would output the video stream via DRI / DRM, so on the screenshot, nothing would be seen... Yes it works. I don't know how scrot takes it's screenshot but it does it well ;) The screenshots are taken by Nagios every 5 minutes and the new screenshot is compared with the preceding one. But, by now, it doesn't work because every tool we try is seeing a diffence between 2 identical images. The images may be identical in content, but it's completely possible that other data (others than the pictural information) is coded into the file, for example date and time of creation, so the files may be different, while the pictures they show are identical. It would be useful first to decompile the files - create a new file that only contains pictural information, nothing more. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How to compare 2 images from command line
andrew clarke a écrit : On Tue 2008-09-02 11:57:35 UTC-0400, FreeBSD ([EMAIL PROTECTED]) wrote: Can you put the screenshots into some other format? As you mentioned, the jpeg format includes metadata, which might include the creation time and would cause every image to be unique from a filesystem view. For example, I don't believe bitmaps include metadata, which would cause them to be identical if the display were identical. Thank you! It did the trick. I just converted the image from png (sorry it wasn't jpeg...) to bmp and it works with cmp. Even diff now recognize both images as identical. Before I read this I was going to suggest you could try removing the metadata using something like jhead. As it turns out, you say you're using PNG format images, not JPEGs, but perhaps there's an equivalent to jhead to work with metadata in PNG files - just as an alternative to converting each PNG to BMP (which could be CPU intensive). Regards Andrew Thank you for your almost-suggestion ;) The screenshot are taken once every 5 minutes and the conversion was pretty instant. I don't think it will be a problem in our case. Martin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Ports and 64-bit Processors
FreeBSD has supported 64-bit architectures for a while now... Alpha and UltraSPARC come to mind--even if Alpha is no longer a Tier 1 architecture. I'm surprised to hear so many of you say that certain ports are broken on AMD64. I would think if they worked on other 64-bit processors they'd work on AMD64. Were the ports that are broken on AMD64 also broken on those other architectures, too? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Remote host replies to SYN+FIN
kalin m a écrit : does anybody have any idea how to resolve this? thanks.. kalin m wrote: hi all... after setting up a pf rule set on one of newly installed freebsd 7 i did a scan with nessus 3 on that machine the result i got was like this one: http://www.nessus.org/plugins/index.php?view=singleid=11618 how do 'fix' it using pf?... thanks... Hi, I think that you should look at the 'scrub' directive in pf.conf. I think that a 'scrub in all' should block that kind of malformed packets. Martin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Switching to IPv6?
I've been considering switching my home network to IPv6. I have a computer acting as a firewall sitting between my ISP and my three LANs at home. Of course, my DSL provider gives me an IPv4 address, and everything I want to access on the Internet is on an IPv4 network. The whole point is to learn to set up IPv6, to play with IPv6, and to become familiar with it, so when the day comes that the world actually uses IPv6 (ha ha) I'm ready, armed with knowledge. But the whole idea will go to pot if my firewall can't let my IPv6 networks access my IPv4 Internet connection. Does FreeBSD 7 provide such facilities as to allow access to an IPv4 network from an IPv6 network? What will my Vista, XP, and FreeBSD clients do if they only have an IPv6 address and I try to go to google.com or freebsd.org which are on IPv4 networks? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: High Availability FreeBSD www cluster
Roger Olofsson a écrit : Michael Christie skrev: Hi all , I want to cluster some freeBSD servers, The purpose of this is to learn. I would like to run some basic services like www and mail on a test network. I would like to set up the servers so if one server falls over the other will take over the services automatically, load balanceing would be good as well. I have googled, I could be looking in the wrong place , there seems not to be much in regard to seting up freebsd in a cluster, lots on linux. I have looked at the High Availability Linux project , I see on the front page that it will run on freebsd. So I am a bit lost and i am wanting to learn how to cluster freebsd web and mail servers, I have looked at Beowulf clusters, which seem to give computers more grunt, Can some on on the list please advise me on what clustering softwhere i need to get started and if the High Availability Linux project softwhere will do the job. web links any thing to help me get started would be good. No I do not want to change over to linux. Thanks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.138 / Virus Database: 270.5.12/1595 - Release Date: 2008-08-06 08:23 Hello, I have been running freevrrpd and pen (http://siag.nu/pen/ or in ports) for HA web services. My setup was a firewall/gateway consisting of more than 1 machine using freevrrpd thus enabling failover for the firewall/gateway. I write firewall and not firewalls since freevrrpd creates a virtual ip that is failover'ed between the machines. On the firewall/gateway pen were running and pointed towards the web servers. Pen can point at as many web servers as you like and balances the load between them in a very simple way. If the web servers are identical in setup they become redundant. DNS loadbalancing is very similar. Good luck! /Roger I don't have any experience yet with it but I'm planning on using CARP with PF to do redondant gateways. You can do round-robin RDR with PF to distribute the load. You can even put the same server IP more than one time in the list to forward more traffic to this server! I tested it but I didn't tried CARP yet. I read I couple of articles on CARP with BSD, I'm a little bit surprised that nobody made reference to it yet. Now it's done ;) Martin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
[Fwd: Re: connecting to a secured Windows 2003 terminal server]
Dear List members I am posting this question again since so far I have not been able to find any solution. But I do believe there is one -- which I cannot find and hopefully someone will be able to share her/his effective solution with me. Thanks ---BeginMessage--- Hello, is 3389 filtered in any way between you and that server? On Tue, Jul 22, 2008 at 8:37 PM, FreeBSD [EMAIL PROTECTED] wrote: Dear folks my sincere apologies if this has been discussed earlier, which I seriously doubt, since even after googling for nearly five days I couldn't find any solution. Recently my company has updated their server to Windows 2003. The earlier 2000 server didn't have SSL enabled, so rdp/rdesktop worked for me without any problem. But now, as I try to connect to the server, it simply gives me ERROR: recv: Connection reset by peer I know for a fact that the server is working fine, since all IE and remote desktop softwares are working (they have to install the certificate at the beginning, once). But how can I connect from my freebsd box? any pointers/links sujjestions are highly welcome. Thanks. ___ [EMAIL PROTECTED] mailing list [3]http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- regards, dg using fsdb(8) and clri(8) was like climbing Mount Everest in sandals and shorts. Since writing that, I've tried them more than once and discovered that I was wrong. You don't get the shorts. -- M.W. Lucas References 1. mailto:[EMAIL PROTECTED] 2. mailto:freebsd-questions@freebsd.org 3. http://lists.freebsd.org/mailman/listinfo/freebsd-questions 4. mailto:[EMAIL PROTECTED] ---End Message--- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
The FreeBSD Architecture Handbook
One more book question... Is there anything significant to gain from reading both The Design and Implementation of the FreeBSD Operating System and The FreeBSD Architecture Handbook? I've skimmed the tables of contents for both books, and there seems to be some overlap in topics. What I don't know is if the details are redundant or if there's useful information to glean by reading both as opposed to just one or the other. Thank you, everyone, for your input! I really do appreciate you sharing your thoughts. Kevin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: The Design and Implementation of the FreeBSD Operating System
Thank you all for your input. I'm studying up on OS design and implementation for my own personal edification, so I started reading my old college Tanenbaum text Modern Operating Systems. Then I wanted to learn specifically about FreeBSD, so The Design and Implementation of the FreeBSD Operating System was the next logical step. I'll expand to other topics of interest from there. Again, thank you for your comments! Kevin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: connecting to a secured Windows 2003 terminal server
Dear Darko Thanks for your mail. To answer your question, no, we are on the same network and from my machine everything is open. Also, I tried it from my home, which has the basic firewall allowing me to connect to whereever I want (I tried it with no firewall as well), nothing worked. Since my office lan can connect to the secured TServer using IE and other client from windows, and both my office lan and home can connect to the non-SSL TServer using rdesktop, I am suspecting I might be needing different client. any other pointers / links welcome Thanks darko gavrilovic wrote: Hello, is 3389 filtered in any way between you and that server? On Tue, Jul 22, 2008 at 8:37 PM, FreeBSD [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Dear folks my sincere apologies if this has been discussed earlier, which I seriously doubt, since even after googling for nearly five days I couldn't find any solution. Recently my company has updated their server to Windows 2003. The earlier 2000 server didn't have SSL enabled, so rdp/rdesktop worked for me without any problem. But now, as I try to connect to the server, it simply gives me ERROR: recv: Connection reset by peer I know for a fact that the server is working fine, since all IE and remote desktop softwares are working (they have to install the certificate at the beginning, once). But how can I connect from my freebsd box? any pointers/links sujjestions are highly welcome. Thanks. ___ freebsd-questions@freebsd.org mailto:freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- regards, dg using fsdb(8) and clri(8) was like climbing Mount Everest in sandals and shorts. Since writing that, I've tried them more than once and discovered that I was wrong. You don't get the shorts. -- M.W. Lucas ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: The Design and Implementation of the FreeBSD Operating System
Yet your point is completly valid one.. and that's why The Design and Implementation of the FreeBSD Operating System is the only book that I've been hesitant on buying so far ... Lucas (Absolute FreeBSD, 2nd Edition), Lavigne (The Best of FreeBSD Basics), Kong (BSD rootkits), Lehey (Download edition:) ) are all over my desktop as I write this mail, and I consult them daily ... Farrokhi (Network Administration with FreeBSD) and Hong (Building a Server with FreeBSD 7) are the ones coming in the next batch ... Has anyone on the list read Building a Server with FreeBSD 7: A Modular Approach? The description on bookpool.com makes it sound a little basic/superficial, covering topics such as how to install FreeBSD and how to install/configure programs via the ports. I'm already very familiar with these topics; does anyone know if this book covers more advanced topics or details like the nitty-gritty of configuing sendmail, apache, samba, NFS, etc? And what about Absolute FreeBSD? It's updated for FreeBSD 7, so I know it's current. Is it a good book? Is it worth the read? How valuable is its content? (I know I'm asking some very subjective questions, but if I'm going to spend hundreds of $$$ to build my library in this area, I'd like at least a couple of opinions about the books I buy.) So far .. there are only three books I would have bought but I didn't because I thought the situation could improve ... those are: The Design and Implementation of the FreeBSD Operating System, BSD Hacks and The FreeBSD HandBook... same reason for all of them .. too old by now (although I think I'll buy BSD Hacks anyways .. I just can't resist buying Lavigne books :( ) Personally, I don't think I'd ever buy The FreeBSD Handbook. It's a really good resource, but as long as it's actively updated electronically it's too dynamic to buy a hardcopy. I'd much rather read it online where I can get the latest revisions. Kevin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
The Design and Implementation of the FreeBSD Operating System
This book was printed in August 2004. This predates FBSD 5, and I know there were some significant changes between the 4.x and 5.x branches. We've progressed further and are now into version 7. How well does this book apply to more current versions of FreeBSD, such as version 7? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
connecting to a secured Windows 2003 terminal server
Dear folks my sincere apologies if this has been discussed earlier, which I seriously doubt, since even after googling for nearly five days I couldn't find any solution. Recently my company has updated their server to Windows 2003. The earlier 2000 server didn't have SSL enabled, so rdp/rdesktop worked for me without any problem. But now, as I try to connect to the server, it simply gives me ERROR: recv: Connection reset by peer I know for a fact that the server is working fine, since all IE and remote desktop softwares are working (they have to install the certificate at the beginning, once). But how can I connect from my freebsd box? any pointers/links sujjestions are highly welcome. Thanks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Problem with IF_RE
Abdullah Ibn Hamad Al-Marri wrote: Hello, You should follow RELENG_7, I don't think got any changes in RELENG_7_0. Good luck with it. -- Regards, -Abdullah Ibn Hamad Al-Marri Arab Portal http://www.WeArab.Net/ I followed your path, did a fresh build and install of the kernel and the world -- to no effect. The scenerio is still the same. Thanks for all the suggestions. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Problem with IF_RE
Pietro Cerutti wrote: | | No, I do not have it. Do you suppose I should? I have other devices and | nodes coming up alright -- including mapping for different loopback | devices as well. Well, the os doesn't receive link up notifications from the interface.. I fear is not as simple as devd, but you can't give it a try, it won't hurt... | | Thanks | | Dear Pietro Did that, and nothing happened. The OS is still not going anywhere -- i.e., not responding to ifconfig up or down instructions, and response from ifconfig re0 remains the same. As suggested by Abdullah, I will try to cvsup with RELENG_7 and rebuild the world/kernel. Let's see what happens. Thanks to all. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Problem with IF_RE
Dear List Members I am having an issue with a RealTek card for networking. The card in question is recognised by FB alright, as you can see in the pciconf output [EMAIL PROTECTED]:2:8:0: class=0x02 card=0x311a1385 chip=0x816910ec rev=0x10 hdr=0x00 vendor = 'Realtek Semiconductor' device = 'RTL8110SB Single-Chip Gigabit LOM Ethernet Controller' class = network subclass = ethernet But when I do an ifconfig, the result says Media None and No Carrier re0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=9bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM ether 00:1e:2a:3b:2e:62 inet x.x.x.x netmask 0xffe0 broadcast x.x.x.x media: Ethernet none status: no carrier I know for a fact that the cable and the connection is alright -- I tried with other devices (like Laptops and other desktops), and when I plug the cable into the RTL card, the light on the switch shows connection established. But ifconfig report shows no carrier ? ? ? Any and all help is highly appreciated. I have already CVSupped twice within this week and built world and kernels from scratch as well. uname -a FreeBSD 7.0-RELEASE-p1 FreeBSD 7.0-RELEASE-p1 #3: Thu Jun 12 15:24:40 BST 2008 kldstat Id Refs AddressSize Name 1 18 0xc040 7bdce8 kernel 22 0xc0bbe000 28588linux.ko 31 0xc0be7000 7558c4 nvidia.ko 41 0xc133d000 7a88 if_re.ko 51 0xc1345000 6921cacpi.ko 61 0xc35c5000 4000 nullfs.ko 71 0xc4623000 1e000smbfs.ko 82 0xc4641000 3000 libiconv.ko 92 0xc4644000 3000 libmchain.ko All practical suggestions and pointers are highly appreciated. Thanks. - This message sent through Virus Free Email http://www.vfemail.net ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Problem with IF_RE
Quoting Pietro Cerutti [EMAIL PROTECTED]: Uhm, just out of curiosity, do you have the line devd_enable=YES in your /etc/rc.conf? | | Thanks. No, I do not have it. Do you suppose I should? I have other devices and nodes coming up alright -- including mapping for different loopback devices as well. Thanks - This message sent through Virus Free Email http://www.vfemail.net ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Move data from 3ware RAID-1 disk to MB disk
Hi, I have FreeBSD 7.0 with 3ware 8006-2LP RAID-1 controller hosted at hetzner.de. Now I want remove 3ware controller, and to stay with motherboard controller. Is it possible to do without data loss? I suggest to move one disk to motherboard controller, than boot via LAN to Linux rescue, and than do dd from 3ware to MB disk. Is it possible to do so or I will copy 3ware RAID table, and MB disk will not be bootable? Kind Regards ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Fwd: twe0 interrupt storm
Be careful with hetzner.de hosting, here is their answer: The controller is compatible with the mainboard. With linux there are no problems. FreeBSD is also not officially supported by us (only Debian/Ubuntu/Suse). Sorry, but it is not possible to buy a new model only for a few customers. 2008/6/14 Stanislav [EMAIL PROTECTED]: Dear Daniel, Yes, you're right: Handle 0x0001, DMI type 1, 27 bytes System Information Manufacturer: MICRO-STAR INTERANTIONAL CO.,LTD Product Name: MS-7368 Version: 1.0 Serial Number: To Be Filled By O.E.M. UUID: Not Present Wake-up Type: Power Switch SKU Number: To Be Filled By O.E.M. Family: To Be Filled By O.E.M. Thank you very much! Kind Regards 2008/6/14 Daniel Gerzo [EMAIL PROTECTED]: Hello Stanislav, Thursday, June 12, 2008, 3:45:36 PM, you wrote: Hi, I have problem on FreeBSD 6.2, 7.0 with 3ware 8006-2LP RAID-1 controller: Is it MSI mobo by any cnance? I am seeing these interrupt storms on a few boxes (irq21 too, twe(4) or fxp(4) attached to these) with an Base Board Information Manufacturer: MICRO-STAR INTERANTIONAL CO.,LTD Product Name: MS-7368 Version: 1.0 I was unable so far to fix this problem...seems like some hardware issue -- Best regards, Danielmailto:[EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: NFE setting manually to 1000baseT and half duplex
On Sun, June 8, 2008 00:49, Michael Toth wrote: Hi, You should be doing # ifconfig nfe0 10.202.77.110 media 1000baseTX--- note the 'X' Thanks, tried this but same error. hulk# ifconfig nfe0 10.202.77.110 media 1000baseTX ifconfig: SIOCSIFMEDIA (media): Device not configured hulk$ man nfe The nfe driver supports the following media types: autoselect Enable autoselection of the media type and options. 10baseT/UTP Set 10Mbps operation. 100baseTXSet 100Mbps (Fast Ethernet) operation. 1000baseTSet 1000Mbps (Gigabit Ethernet) operation (recent models only). The nfe driver supports the following media options: half-duplex Force half duplex operation. full-duplex Force full duplex operation. Also for some strange reason I lost a couple of ip aliases and my default route whilst trying to change the media and mediaopt. I start to wonder if the combination 1000baseT and half duplex is possible. However setting the NIC manually to 1000baseT doesnt work either. IF set to autoselect it does negotiate to 1000baseT as I can see on the switch. Thanks Patrick Gelsema, P (Patrick) - FreeBSD wrote: Hi List, I am using the nfe driver on Freebsd 7.0R and I am unable to change the NIC driver manually to 1000baseT with half-duplex. I believe I am not getting the max out of my network connection and want to see if changing the duplex will help. hulk# ifconfig nfe0 10.202.77.110 media 100baseTX hulk# ifconfig nfe0 nfe0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=8VLAN_MTU ether 00:18:f3:9f:f1:b4 inet6 fe80::218:f3ff:fe9f:f1b4%nfe0 prefixlen 64 scopeid 0x2 inet 10.202.77.113 netmask 0xff00 broadcast 10.202.77.255 inet 10.202.77.114 netmask 0xff00 broadcast 10.202.77.255 inet 10.202.77.76 netmask 0xff00 broadcast 10.202.77.255 inet 192.168.0.10 netmask 0xff00 broadcast 192.168.0.255 inet 192.168.1.10 netmask 0xff00 broadcast 192.168.1.255 inet 10.202.77.110 netmask 0xff00 broadcast 10.255.255.255 media: Ethernet 100baseTX (1000baseTX full-duplex) status: active Why between () the 1000baseTX? Is that the actual speed? The maximum speed? hulk# ifconfig nfe0 10.202.77.110 media 1000baseT ifconfig: SIOCSIFMEDIA (media): Device not configured man nfe says this is possible. hulk# ifconfig nfe0 10.202.77.110 media autoselect hulk# ifconfig nfe0 nfe0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=8VLAN_MTU ether 00:18:f3:9f:f1:b4 inet6 fe80::218:f3ff:fe9f:f1b4%nfe0 prefixlen 64 scopeid 0x2 inet 10.202.77.114 netmask 0xff00 broadcast 10.202.77.255 inet 10.202.77.76 netmask 0xff00 broadcast 10.202.77.255 inet 192.168.0.10 netmask 0xff00 broadcast 192.168.0.255 inet 192.168.1.10 netmask 0xff00 broadcast 192.168.1.255 inet 10.202.77.110 netmask 0xff00 broadcast 10.255.255.255 media: Ethernet autoselect (1000baseTX full-duplex) status: active hulk# ifconfig nfe0 mediaopt half-duplex No errors but cant see if it works. Question is, why cant I just do the following; hulk# ifconfig nfe0 media 1000baseT mediaopt half-duplex pciconf -lv [EMAIL PROTECTED]:0:7:0:class=0x068000 card=0x82341043 chip=0x03ef10de rev=0xa2 hdr=0x00 vendor = 'Nvidia Corp' device = 'MCP61 Ethernet' class = bridge hulk# uname -a FreeBSD hulk.superhero.nl 7.0-RELEASE FreeBSD 7.0-RELEASE #1: Sun Feb 24 14:37:26 CET 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC amd64 hulk# Thanks and regards, Patrick ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
NFE setting manually to 1000baseT and half duplex
Hi List, I am using the nfe driver on Freebsd 7.0R and I am unable to change the NIC driver manually to 1000baseT with half-duplex. I believe I am not getting the max out of my network connection and want to see if changing the duplex will help. hulk# ifconfig nfe0 10.202.77.110 media 100baseTX hulk# ifconfig nfe0 nfe0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=8VLAN_MTU ether 00:18:f3:9f:f1:b4 inet6 fe80::218:f3ff:fe9f:f1b4%nfe0 prefixlen 64 scopeid 0x2 inet 10.202.77.113 netmask 0xff00 broadcast 10.202.77.255 inet 10.202.77.114 netmask 0xff00 broadcast 10.202.77.255 inet 10.202.77.76 netmask 0xff00 broadcast 10.202.77.255 inet 192.168.0.10 netmask 0xff00 broadcast 192.168.0.255 inet 192.168.1.10 netmask 0xff00 broadcast 192.168.1.255 inet 10.202.77.110 netmask 0xff00 broadcast 10.255.255.255 media: Ethernet 100baseTX (1000baseTX full-duplex) status: active Why between () the 1000baseTX? Is that the actual speed? The maximum speed? hulk# ifconfig nfe0 10.202.77.110 media 1000baseT ifconfig: SIOCSIFMEDIA (media): Device not configured man nfe says this is possible. hulk# ifconfig nfe0 10.202.77.110 media autoselect hulk# ifconfig nfe0 nfe0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=8VLAN_MTU ether 00:18:f3:9f:f1:b4 inet6 fe80::218:f3ff:fe9f:f1b4%nfe0 prefixlen 64 scopeid 0x2 inet 10.202.77.114 netmask 0xff00 broadcast 10.202.77.255 inet 10.202.77.76 netmask 0xff00 broadcast 10.202.77.255 inet 192.168.0.10 netmask 0xff00 broadcast 192.168.0.255 inet 192.168.1.10 netmask 0xff00 broadcast 192.168.1.255 inet 10.202.77.110 netmask 0xff00 broadcast 10.255.255.255 media: Ethernet autoselect (1000baseTX full-duplex) status: active hulk# ifconfig nfe0 mediaopt half-duplex No errors but cant see if it works. Question is, why cant I just do the following; hulk# ifconfig nfe0 media 1000baseT mediaopt half-duplex pciconf -lv [EMAIL PROTECTED]:0:7:0:class=0x068000 card=0x82341043 chip=0x03ef10de rev=0xa2 hdr=0x00 vendor = 'Nvidia Corp' device = 'MCP61 Ethernet' class = bridge hulk# uname -a FreeBSD hulk.superhero.nl 7.0-RELEASE FreeBSD 7.0-RELEASE #1: Sun Feb 24 14:37:26 CET 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC amd64 hulk# Thanks and regards, Patrick ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Perl not creating symlink when installed from package
Hi everyone, I have a problem with perl-5.8.8_1. When I install it from the ports (via make install clean or make package-recursive clean), it creates symlinks from /usr/local/bin/perl to /usr/bin/perl: [...] Removing stale symlinks from /usr/bin... Skipping /usr/bin/perl Skipping /usr/bin/perl5 Done. Creating various symlinks in /usr/bin... Symlinking /usr/local/bin/perl5.8.8 to /usr/bin/perl Symlinking /usr/local/bin/perl5.8.8 to /usr/bin/perl5 Done. [...] But, when I install the package created with 'make package-recursive clean', it didn't create those symlinks. So, the dependencies that rely on perl and expect to find it in /usr/bin/perl can't find it and the installation fails. Did someone have any information on this issue? Thanks for the support, Martin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD 7.0 and Denyhosts 2.6_1?
Glenn Sieb a écrit : Nevermind :) I think I solved the issue. Thanks anywho :) Best, --Glenn ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Hi, May I ask you what you did to solve your problem? I had a similar problem but didn't solve it. Thank you, Martin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
What happened to NO_OPENSSH in make.conf with FreeBSD 7?
Hello everyone, With FreeBSD 6.2-Release, I added the option NO_OPENSSH=true in the make.conf I use to build jails. But, I just rebuilded a jail in FreeBSD 7-Release and I realized at the mergemaster step of the update that there were a lot of files related to OpenSSH that needed to be installed. By checking the man and /usr/share/examples/etc/make.conf, I find no reference to this option anymore. Can someone shed some light on this? Thank you very much, Martin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: [SSHd] Limiting access from authorized IP's
Hi, Gilles wrote: Hello I have a couple of questions about running SSHd: 1. I'd like to limit connections from the Net only from specific IP's. It seems like there are several ways to do it (/etc/hosts.allow, AllowHosts/AllowUsers, TCP-wrapper, port-knocking, etc.). Which would you recommend? You can limit the access using one of the packet filters available, ipfw(8), ipf(8) or pf(4). 2. Although it's up and running, I can't find SSHd in the list of installed apps: sshd(8) is part of the base system, which is a FreeBSD patched version of OpenSSH. Although, you can find some ports of bulk OpenSSH in /usr/ports/security. Pedro ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: [SSHd] Limiting access from authorized IP's
Hi, Gilles wrote: I don't have a firewall on that host because there's already a NAT router connecting the LAN to the Net. I don't know your setup, but I'm pretty sure you can run the packet filter on your host anyway. You don't need to configure NAT to run your host firewall. I'll just add the following to /etc/ssh/sshd_config, and restart the service: AllowHosts 192.168.0 82.x.x.x OK! BTW, is the SSHd that comes with the system good enough, or should I upgrade to what's in /usr/ports/security/ssh2? For me base system ssh works like a sharm. IMO, you only want to upgrade if you need a specific feature that is not available on system SSH. Pedro ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: how to exec a process in a jail while being on the main host?
Try `jexec JID 'command'` man jexec for more details... You can obtain the JID of your jails with the command `jls` Martin Artem Kuchin a écrit : For example, i have an already runing jail with some JID and i am logged in on the main host (which runs the jail). How can i run a new process inside the jail with a known JID w/o ssh-ing into that jail or doing a lot of strange manupulations? I am asking, because i have about 20 jails running and each has a running special control daemon which changes a lot and often. When change occures i need then to enter each jail as root, kill the old daemon, start the new one. This take a lot of time and is really annoying. -- Regards, Artem ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Local package mirror
Hello Lowell, Thank you so much for the reply. I am trying to do the build once and use prebuilt packages for the target boxes. However the problem I am facing is a bit crude. Lets assume I am trying to build pkgA which has dependencies of pkgB and pkgC. The process I am following is cd /usr/ports/xxx/pkgA ; make package. This makes the prebuilt package in /usr/ports/ packages. However it does not case about pkgB which is a dependency. On a target system when I am trying to pkg_add it, it is rightly complaining about a missing dependency and also saying that it cant find the package in the local repository and aborting. How can this be taken care of? Thanks Subhro Hello, Correct me if I'm wrong but all you need to do is to make package-recursive instead of make package for your pkgA. It will make a package for all the dependencies of pkgA. Good luck, Martin On Sat, Apr 5, 2008 at 6:26 PM, Lowell Gilbert [EMAIL PROTECTED] wrote: Subhro [EMAIL PROTECTED] writes: I am trying to get a Network install working on my local network. I have been able to successfully create a NFS export of the installation disk and perform a install from there. The target machines boot over PXE and fetch stuff from the NFS. However I am unable to figure out how to get the packages working. I have a list of about 180 packages which needs to be installed. But I am unable to figure out how to go about it. I would like to use precompiled packages, but the CD do not contain the packages I am looking for. One of the option is to mirror the whole package directory from the freebsd mirrors, but that story involves a lot of data transfer and bandwidth. Is there something obvious I am missing? Any help would be highly appreciated. There are a number of ways to do this general sort of thing. For the base system approach, with pkg_add(1), setting PACKAGEROOT (or possibly PACKAGESITE depending on exactly how you configure the server for network fetch, or PKG_PATH if the clients have the NFS directory mounted) should be good enough. On the other hand, the way I do it is to have a master server, where I build everything (or fetch everything, if I don't want to build it myself). Then the other machines mount /usr/ports from the master server. I use portupgrade to do the installs from the clients, which knows how to use packages when available locally and only fetch them if they aren't. I hope this helps. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: FreeBSD Traffic Shaping
I gave port 80 as an example but I need this configuration for limiting other services as well. If you have a 100mbps connection and only one client, you want him to only use 50kbps, not the full pipe. If you have 200 clients, they still get 50kbps each. Is this feature that I need so complicated that it can't be implemented easily into FreeBSD or is it that not many people need it ? It sounds quite useful to me :) I have personally tried that before and it did not worked as described, in fact it didn't work at all to limit anything on FBSD6. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Christopher Cowart Sent: Tuesday, April 01, 2008 7:55 PM To: [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD Traffic Shaping [EMAIL PROTECTED] wrote: I am trying to limit the bandwidth available to some connections and I'm not sure FreeBSD can handle this. Maybe some of you can help. Here's what I need to have exactly. No matter what the number of connections, each connection should have at most/least 50kbps guaranteed outbound on port 80. I've tried dummynet but it doesn't do what I need because if I define a pipe with 1mbps and if I have 1000 connections, each connection will have less than 50kbps. Any way to do this in FreeBSD ? The ipfw(8) man page describes a mask configuration parameter. # /sbin/ipfw pipe 1 config mask src-ip 0x bw 56Kbit/s This creates a separate dynamic pipe per source ip address. Each pipe has a dedicated 56kbps. The man page implies that the mask can combine fields, so to uniquely identify each connection, you would mask all bits of source and destination IP and ports. It looks like the all keyword might do just the trick. -- Chris Cowart Network Technical Lead Network Infrastructure Services, RSSP-IT UC Berkeley ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: FreeBSD Traffic Shaping
Hmm, I've tried ipfw pipe 2 config mask all bw 100Kbit/s ipfw add 10 pipe 2 tcp from localip to any 80 it appears to be working but I don't have enough connections on right now to find out if it really gives 100kbit/sec to each or if it shares the bw will come back with an update :) I gave port 80 as an example but I need this configuration for limiting other services as well. If you have a 100mbps connection and only one client, you want him to only use 50kbps, not the full pipe. If you have 200 clients, they still get 50kbps each. Is this feature that I need so complicated that it can't be implemented easily into FreeBSD or is it that not many people need it ? It sounds quite useful to me :) I have personally tried that before and it did not worked as described, in fact it didn't work at all to limit anything on FBSD6. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Christopher Cowart Sent: Tuesday, April 01, 2008 7:55 PM To: [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD Traffic Shaping [EMAIL PROTECTED] wrote: I am trying to limit the bandwidth available to some connections and I'm not sure FreeBSD can handle this. Maybe some of you can help. Here's what I need to have exactly. No matter what the number of connections, each connection should have at most/least 50kbps guaranteed outbound on port 80. I've tried dummynet but it doesn't do what I need because if I define a pipe with 1mbps and if I have 1000 connections, each connection will have less than 50kbps. Any way to do this in FreeBSD ? The ipfw(8) man page describes a mask configuration parameter. # /sbin/ipfw pipe 1 config mask src-ip 0x bw 56Kbit/s This creates a separate dynamic pipe per source ip address. Each pipe has a dedicated 56kbps. The man page implies that the mask can combine fields, so to uniquely identify each connection, you would mask all bits of source and destination IP and ports. It looks like the all keyword might do just the trick. -- Chris Cowart Network Technical Lead Network Infrastructure Services, RSSP-IT UC Berkeley ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD Traffic Shaping
I think you guys went a bit on a tangent here. What I am trying to do is limit the outbound bandwidth of my services and this should be perfectly possible as I control the output. Also, the reason for this need is that some services use burst-bandwidth and I have many peaks and lows throughout the day. This means that my carrier who bills me by the 95th percentile is having a field day. For the services that my server offers it's not imperative that they get rid of the client in 1 second instead of 5 for example. In this sense, stretching out 1MB of traffic over 10 seconds is more beneficial towards my 95th than if I stretch it over 2 seconds for example. Quoting Mel [EMAIL PROTECTED]: On Wednesday 02 April 2008 09:27:21 [EMAIL PROTECTED] wrote: I gave port 80 as an example but I need this configuration for limiting other services as well. If you have a 100mbps connection and only one client, you want him to only use 50kbps, not the full pipe. If you have 200 clients, they still get 50kbps each. Is this feature that I need so complicated that it can't be implemented easily into FreeBSD or is it that not many people need it ? It sounds quite useful to me :) It isn't as useful as you think. I can easily generate 200 clients being only one person. That's why the focus in bandwidth shapers lies on the type of traffic and the origin/destination rather then the state and they divide the bandwidth within those pipes between the states. Secondly - bit besides the point, but not many people think about it - if you have 100% available and limit a single person to 5%, you're more likely to end up at the 100%, simply because it takes more time for that person to get what he wants. So if there's no financial/legal issues involved, it's better to get rid of the clients as fast as possible. -- Mel Problem with today's modular software: they start with the modules and never get to the software part. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: FreeBSD Traffic Shaping
I can now confirm that these two commands do exactly what I mentioned originally. All outbound connections towards any host port 80 will have a maximum bandwidth of 100Kbit/s individually ( output ) ipfw pipe 2 config mask all bw 100Kbit/s ipfw add 10 pipe 2 tcp from localip to any 80 Problem solved :) Hmm, I've tried ipfw pipe 2 config mask all bw 100Kbit/s ipfw add 10 pipe 2 tcp from localip to any 80 it appears to be working but I don't have enough connections on right now to find out if it really gives 100kbit/sec to each or if it shares the bw will come back with an update :) I gave port 80 as an example but I need this configuration for limiting other services as well. If you have a 100mbps connection and only one client, you want him to only use 50kbps, not the full pipe. If you have 200 clients, they still get 50kbps each. Is this feature that I need so complicated that it can't be implemented easily into FreeBSD or is it that not many people need it ? It sounds quite useful to me :) I have personally tried that before and it did not worked as described, in fact it didn't work at all to limit anything on FBSD6. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Christopher Cowart Sent: Tuesday, April 01, 2008 7:55 PM To: [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD Traffic Shaping [EMAIL PROTECTED] wrote: I am trying to limit the bandwidth available to some connections and I'm not sure FreeBSD can handle this. Maybe some of you can help. Here's what I need to have exactly. No matter what the number of connections, each connection should have at most/least 50kbps guaranteed outbound on port 80. I've tried dummynet but it doesn't do what I need because if I define a pipe with 1mbps and if I have 1000 connections, each connection will have less than 50kbps. Any way to do this in FreeBSD ? The ipfw(8) man page describes a mask configuration parameter. # /sbin/ipfw pipe 1 config mask src-ip 0x bw 56Kbit/s This creates a separate dynamic pipe per source ip address. Each pipe has a dedicated 56kbps. The man page implies that the mask can combine fields, so to uniquely identify each connection, you would mask all bits of source and destination IP and ports. It looks like the all keyword might do just the trick. -- Chris Cowart Network Technical Lead Network Infrastructure Services, RSSP-IT UC Berkeley ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD Traffic Shaping
As far as I know, every carrier bills by 95th percentile. This particular server is colocated and the bandwidth average is 2.35mbps while the 95th is 3.7mbps. I don't want my clients to have to compete for bandwidth - if 1000 users share a 3mbps fixed pipe, they will each get 3k/sec -. Rather I want to guarantee a fixed output for each client. This ensures adequate speed for everyone AND flattens out my peaks. Quoting Mel [EMAIL PROTECTED]: On Wednesday 02 April 2008 14:21:38 [EMAIL PROTECTED] wrote: Also, the reason for this need is that some services use burst-bandwidth and I have many peaks and lows throughout the day. This means that my carrier who bills me by the 95th percentile is having a field day. He bills by the second or average hour like most people? It's not as black and white as it seems - you also get higher average when the number of connections increases, not just the bandwidth they consume. I think you'll find that bursts are best counteracted like this: http://www.probsd.net/pf/index.php/Hednod%27s_HFSC_explained#Tips.2FIdeas This seperates 'downloads' from 'webpages', 'normal mails' from 'attachments' and you can then tune accordingly, if you have/get some graph. -- Mel Problem with today's modular software: they start with the modules and never get to the software part. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
FreeBSD Traffic Shaping
I am trying to limit the bandwidth available to some connections and I'm not sure FreeBSD can handle this. Maybe some of you can help. Here's what I need to have exactly. No matter what the number of connections, each connection should have at most/least 50kbps guaranteed outbound on port 80. I've tried dummynet but it doesn't do what I need because if I define a pipe with 1mbps and if I have 1000 connections, each connection will have less than 50kbps. Any way to do this in FreeBSD ? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Error code 1 upon building-installing kernel FreeBSD 7.0
On Thu, March 20, 2008 15:06, Indiana Jones wrote: Hi, If anybody could help, I'd be most grateful. I have been getting this error message during buildinfg and installing a custom kernel on FreeBSD 7.0, after make depend command! SCTP requires options INET6 to be set in kernel conf. Either remove SCTP or add INET6 Cheers Patrick linking kernel.debug uipc_syscalls.o(.text+0x3c1): In function `sctp_generic_recvmsg': ../../../kern/uipc_syscalls.c:2608: undefined reference to `sctp_sorecvmsg' uipc_syscalls.o(.text+0x21a2): In function `sctp_generic_sendmsg_iov': ../../../kern/uipc_syscalls.c:2486: undefined reference to `sctp_lower_sosend' uipc_syscalls.o(.text+0x249d): In function `sctp_generic_sendmsg': ../../../kern/uipc_syscalls.c:2379: undefined reference to `sctp_lower_sosend' uipc_syscalls.o(.text+0x266c): In function `sctp_peeloff': ../../../kern/uipc_syscalls.c:2246: undefined reference to `sctp_can_peel_off' uipc_syscalls.o(.text+0x28e6):../../../kern/uipc_syscalls.c:2287: undefined reference to `sctp_do_peeloff' rtsock.o(.text+0xb7d): In function `rt_newaddrmsg': ../../../net/rtsock.c:897: undefined reference to `sctp_addr_change' in_proto.o(.data+0xa8): undefined reference to `sctp_input' in_proto.o(.data+0xb0): undefined reference to `sctp_ctlinput' in_proto.o(.data+0xb4): undefined reference to `sctp_ctloutput' in_proto.o(.data+0xbc): undefined reference to `sctp_init' in_proto.o(.data+0xc8): undefined reference to `sctp_drain' in_proto.o(.data+0xcc): undefined reference to `sctp_usrreqs' in_proto.o(.data+0xdc): undefined reference to `sctp_input' in_proto.o(.data+0xe4): undefined reference to `sctp_ctlinput' in_proto.o(.data+0xe8): undefined reference to `sctp_ctloutput' in_proto.o(.data+0xfc): undefined reference to `sctp_drain' in_proto.o(.data+0x100): undefined reference to `sctp_usrreqs' in_proto.o(.data+0x110): undefined reference to `sctp_input' in_proto.o(.data+0x118): undefined reference to `sctp_ctlinput' in_proto.o(.data+0x11c): undefined reference to `sctp_ctloutput' in_proto.o(.data+0x130): undefined reference to `sctp_drain' in_proto.o(.data+0x134): undefined reference to `sctp_usrreqs' *** Error code 1 Stop in /usr/src/sys/i386/compile/WWW. WWW# My Config file is as follows: # # GENERIC -- Generic kernel configuration file for FreeBSD/i386 # # For more information on this file, please read the handbook section on # Kernel Configuration Files: # # http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html # # The handbook is also available locally in /usr/share/doc/handbook # if you've installed the doc distribution, otherwise always see the # FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the # latest information. # # An exhaustive list of options and more detailed explanations of the # device lines is also present in the ../../conf/NOTES and NOTES files. # If you are in doubt as to the purpose or necessity of a line, check first # in NOTES. # # $FreeBSD: src/sys/i386/conf/GENERIC,v 1.474.2.2.2.1 2008/02/06 03:24:28 scottl Exp $ #cpu I486_CPU #cpu I586_CPU cpu I686_CPU ident WWW # To statically compile in device wiring instead of /boot/device.hints #hints GENERIC.hints # Default places to look for devices. makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols options SCHED_4BSD # 4BSD scheduler options PREEMPTION # Enable kernel thread preemption options INET # InterNETworking #options INET6 # IPv6 communications protocols options SCTP # Stream Control Transmission Protocol options FFS # Berkeley Fast Filesystem options SOFTUPDATES # Enable FFS soft updates support options UFS_ACL # Support for access control lists options UFS_DIRHASH # Improve performance on big directories options UFS_GJOURNAL # Enable gjournal-based UFS journaling options MD_ROOT # MD is a potential root device #options NFSCLIENT # Network Filesystem Client #options NFSSERVER # Network Filesystem Server #options NFS_ROOT # NFS usable as /, requires NFSCLIENT #options MSDOSFS # MSDOS Filesystem options CD9660 # ISO 9660 Filesystem options PROCFS # Process filesystem (requires PSEUDOFS) options PSEUDOFS # Pseudo-filesystem framework options GEOM_PART_GPT # GUID Partition Tables. options GEOM_LABEL # Provides labelization options COMPAT_43TTY # BSD 4.3 TTY compat [KEEP THIS!] options COMPAT_FREEBSD4 # Compatible with FreeBSD4 options COMPAT_FREEBSD5 # Compatible with FreeBSD5 options COMPAT_FREEBSD6 # Compatible with FreeBSD6 #options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI options KTRACE # ktrace(1) support options SYSVSHM # SYSV-style shared memory options SYSVMSG # SYSV-style message queues options SYSVSEM # SYSV-style semaphores options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions options KBD_INSTALL_CDEV # install a CDEV entry in /dev options ADAPTIVE_GIANT # Giant mutex is adaptive. options STOP_NMI # Stop
linuxpluginwrapper - *second request for help*
I am trying to install the port: /usr/ports/java/jai which depends on: /usr/ports/www/linuxpluginwrapper The problem is: newpdc# make === linuxpluginwrapper-20051113_8 doesn't support ELF symbol versioning, yet.. *** Error code 1 Stop in /usr/ports/www/linuxpluginwrapper. We are using diablo-jdk-1.5.0.07.01_9 as our JDK and the system is FreeBSD 7. uname -a yields: FreeBSD newpdc.dakcs.com 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC i386 Again, any direction or help on this is appretiated and welcome. Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Unable to load dynamic library in httpd-error.log
From the httpd-error.log: [Wed Mar 19 05:40:16 2008] [warn] Init: Session Cache is not configured [hint: SSLSessionCache] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20060613/json.so' - Cannot open quot;/usr/local/lib/php/20060613/json.soquot; in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20060613/hash.so' - Cannot open quot;/usr/local/lib/php/20060613/hash.soquot; in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20060613/filter.so' - Cannot open quot;/usr/local/lib/php/20060613/filter.soquot; in Unknown on line 0 [Wed Mar 19 05:40:24 2008] [notice] Digest: generating secret for digest authentication ... [Wed Mar 19 05:40:24 2008] [notice] Digest: done [Wed Mar 19 05:40:25 2008] [notice] Apache/2.2.8 (FreeBSD) mod_ssl/2.2.8 OpenSSL/0.9.7e-p1 DAV/2 PHP/5.2.5 with Suhosin-Patch configured -- resuming normal operations The three files mentioned above are all available in the '/usr/local/lib/php/20060613-debug' directory. Should I be modifying a config file or something, or is this just a harmless error message? -- Gerard [EMAIL PROTECTED] An adequate bootstrap is a contradiction in terms. signature.asc Description: PGP signature
Error installing /usr/ports/java/jai port
When attempting install the /usr/ports/java/jai port I get this error. Is there a solution to this? The OS info is: FreeBSD newpdc.dakcs.com 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC i386 newpdc# make install === Installing for jai-1.1.2_2 === jai-1.1.2_2 depends on file: /usr/local/diablo-jdk1.5.0/bin/java - found === jai-1.1.2_2 depends on file: /usr/local/lib/pluginwrapper/jai.so - not fo und ===Verifying install for /usr/local/lib/pluginwrapper/jai.so in /usr/ports/ www/linuxpluginwrapper === linuxpluginwrapper-20051113_8 doesn't support ELF symbol versioning, yet.. *** Error code 1 Stop in /usr/ports/www/linuxpluginwrapper. *** Error code 1 Stop in /usr/ports/java/jai. Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FW: VMWare Tools for FreeBSD
On Tue, March 18, 2008 12:23, Peter Boosten wrote: Gelsema, P (Patrick) - FreeBSD wrote: On Tue, March 18, 2008 11:40, Peter Boosten wrote: http://open-vm-tools.sourceforge.net/ Just to confirm. This one runs on RELENG_7_0? quote Kernel modules for FreeBSD, including an experimental port of HGFS to FreeBSD. /quote It allows dymanic memory management by the VM Ware host? It also allows the VMWare host to gracefully shutdown the Freebsd guest? I get an error running an install on RELENG_7_0 I386. Making check in hgfsmounter gcc -DPACKAGE_NAME=\open-vm-tools\ -DPACKAGE_TARNAME=\open-vm-tools\ -DPACKAGE_VERSION=\2008.03.03-79993\ -DPACKAGE_STRING=\open-vm-tools\ 2008.03.03-79993\ -DPACKAGE_BUGREPORT=\[EMAIL PROTECTED] -DPACKAGE=\open-vm-tools\ -DVERSION=\2008.03.03-79993\ -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DX_DISPLAY_MISSING=1 -DHAVE_DLOPEN=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_WCHAR_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_USER_H=1 -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 -DHAVE_STRUCT_STAT_ST_RDEV=1 -DTIME_WITH_SYS_TIME=1 -DNO_MULTIMON=1 -I. -Wall -Werror -Wno-pointer-sign -Wno-unused-value -fno-strict-aliasing -Wno-unknown-pragmas -Wno-uninitialized -DVMX86_TOOLS -I/tmp/open-vm-tools-2008.03.03-79993/lib/include -DUSING_AUTOCONF=1 -MT hgfsmounter.o -MD -MP -MF .deps/hgfsmounter.Tpo -c -o hgfsmounter.o hgfsmounter.c hgfsmounter.c: In function 'ParseOptions': hgfsmounter.c:607: error: 'MNT_NODEV' undeclared (first use in this function) hgfsmounter.c:607: error: (Each undeclared identifier is reported only once hgfsmounter.c:607: error: for each function it appears in.) *** Error code 1 Someone seen this before? Rgds, Patrick quote The following components have been released as OSS: * Drivers for devices and filesystems access * Memory ballooning * Shared folders * Drag and Drop, Text and File Copy/Paste * Clipboard sharing * Disk wiping and shrinking * Time synchronization * Automatic guest screen resolution resizing * GuestInfo (provides statistics about guest environment) * Guest SDK (provides information about the VM) * Soft power operations * Multiple monitor support * GTK Toolbox UI /quote Peter -- http://www.boosten.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FW: VMWare Tools for FreeBSD
On Tue, March 18, 2008 11:40, Peter Boosten wrote: Terry Sposato wrote: Ted / Jeff, Could you please let me know where to download these free vm tools. The only description at google I can find is that of the actual VMWare Tools by VMWare. If you point me to a download link that would be great! Although my name isn't Ted or Jeff I will post the link :-) This is from a discussion last week: http://open-vm-tools.sourceforge.net/ Just to confirm. This one runs on RELENG_7_0? It allows dymanic memory management by the VM Ware host? It also allows the VMWare host to gracefully shutdown the Freebsd guest? thanks Patrick Gelsema Peter -- http://www.boosten.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Superuser password lost
On 12 mrt 2008, at 19:26, Mel wrote: On Wednesday 12 March 2008 16:27:36 Bill Moran wrote: I don't know of anywhere in the FreeBSD base system that the term superuser is used In the kernel even! suser(9), suser_cred(9), vfs_suser(9) Have you had a look at 'man su' ? Arno ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: bsd.port.mk broken: malformed conditional
On Fri, February 29, 2008 16:40, Lystopad Oleksandr wrote: Hello, Gelsema, P (Patrick) - FreeBSD! On Fri, Feb 29, 2008 at 04:06:44PM +0100 [EMAIL PROTECTED] wrote about bsd.port.mk broken: malformed conditional: Hi, When I run portupgrade I get errors and portupgrade crashes. Any ideas? Similar trouble. Completly deleting /var/db/portsnap/ + /usr/ports and portsnap again helps me. I don't use portsnap, so I just deleted /usr/ports after which I issued the portupgrade -ai command again. No avail, still same error. Someone more ideas? Error: wolverine# portupgrade -ai --- Session started at: Sat, 01 Mar 2008 19:08:06 +0100 [Updating the pkgdb format:bdb_btree in /var/db/pkg ... - 223 packages found (-0 +1) . done] /usr/ports/INDEX-7.bz2100% of 1161 kB 353 kBps done [Updating the portsdb format:bdb_btree in /usr/ports ... - 18151 port entries found .1000.2000.3000.4000.5000.6000.7000.8000.9000.1.11000.12000.13000.14000.15000.16000.17000.18000. . done] ** Makefile possibly broken: devel/pear: /usr/ports/Mk/bsd.php.mk, line 337: Malformed conditional (${_USE_PHP_VER${PHP_VER}:Mpcre} != ) /usr/ports/Mk/bsd.php.mk, line 337: Malformed conditional (${_USE_PHP_VER${PHP_VER}:Mxml} != ) /usr/ports/Mk/bsd.port.mk, line 6144: if-less endif /usr/ports/Mk/bsd.port.mk, line 6147: if-less endif make: fatal errors encountered -- cannot continue --- Session ended at: Sat, 01 Mar 2008 19:08:43 +0100 (consumed 00:00:37) /usr/local/sbin/portupgrade:1433:in `get_pkgname': Makefile broken (MakefileBrokenError) from /usr/local/sbin/portupgrade:622:in `main' from /usr/local/sbin/portupgrade:613:in `each' from /usr/local/sbin/portupgrade:613:in `main' from /usr/local/sbin/portupgrade:588:in `catch' from /usr/local/sbin/portupgrade:588:in `main' from /usr/local/lib/ruby/1.8/optparse.rb:1303:in `call' from /usr/local/lib/ruby/1.8/optparse.rb:1303:in `parse_in_order' from /usr/local/lib/ruby/1.8/optparse.rb:1299:in `catch' ... 6 levels... from /usr/local/lib/ruby/1.8/optparse.rb:785:in `initialize' from /usr/local/sbin/portupgrade:229:in `new' from /usr/local/sbin/portupgrade:229:in `main' from /usr/local/sbin/portupgrade:2173 Running: FreeBSD wolverine.superhero.nl 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 14:28:41 CET 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/WOLVERINE i386 wolverine# portupgrade -ai --- Session started at: Fri, 29 Feb 2008 15:59:35 +0100 ** Makefile possibly broken: devel/pear: /usr/ports/Mk/bsd.php.mk, line 337: Malformed conditional -- Oleksandr Lystopad ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
bsd.port.mk broken: malformed conditional
Hi, When I run portupgrade I get errors and portupgrade crashes. Any ideas? Running: FreeBSD wolverine.superhero.nl 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 14:28:41 CET 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/WOLVERINE i386 wolverine# portupgrade -ai --- Session started at: Fri, 29 Feb 2008 15:59:35 +0100 ** Makefile possibly broken: devel/pear: /usr/ports/Mk/bsd.php.mk, line 337: Malformed conditional (${_USE_PHP_VER${PHP_VER}:Mpcre} != ) /usr/ports/Mk/bsd.php.mk, line 337: Malformed conditional (${_USE_PHP_VER${PHP_VER}:Mxml} != ) /usr/ports/Mk/bsd.port.mk, line 6144: if-less endif /usr/ports/Mk/bsd.port.mk, line 6147: if-less endif make: fatal errors encountered -- cannot continue --- Session ended at: Fri, 29 Feb 2008 15:59:57 +0100 (consumed 00:00:22) /usr/local/sbin/portupgrade:1433:in `get_pkgname': Makefile broken (MakefileBrokenError) from /usr/local/sbin/portupgrade:622:in `main' from /usr/local/sbin/portupgrade:613:in `each' from /usr/local/sbin/portupgrade:613:in `main' from /usr/local/sbin/portupgrade:588:in `catch' from /usr/local/sbin/portupgrade:588:in `main' from /usr/local/lib/ruby/1.8/optparse.rb:1303:in `call' from /usr/local/lib/ruby/1.8/optparse.rb:1303:in `parse_in_order' from /usr/local/lib/ruby/1.8/optparse.rb:1299:in `catch' ... 6 levels... from /usr/local/lib/ruby/1.8/optparse.rb:785:in `initialize' from /usr/local/sbin/portupgrade:229:in `new' from /usr/local/sbin/portupgrade:229:in `main' from /usr/local/sbin/portupgrade:2173 Rgds, Patrick ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Mirroring / Cloning FreeBSD System
I have a question on how to mirror a FreeBSD installation / system. This environment will have two identical / separate systems referred to as System A and System B - I want to install FreeBSD on to System A - Once that installation is complete with selected ports and custom applications, I want to make an exact duplicate of System A on System B I dont want to do this with drives in the same system, rather I would like to clone System A Also, it would be nice to be able to do this as a mirroring solution to keep a clone over time of the system in the case of failure of either System A or System B Is this possible to do? If so, any direction on how I would do this would be welcome. Is there a port / application that enables this? Thank you in advance! Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: accessing a jailed samba server
On Wed, February 13, 2008 17:44, Dave wrote: Hello, Has anyone got samba running in a jail? And if so, is it possible to access that server from outside this jail? I'm implementing some items in a jailed environment and now have to test samba before going production. If any workarounds are needed i'd appreciate knowing them. Thanks. Dave. Running Samba within a jail on Freebsd 7-RC2 serving data from a ZFS pool. No issues or anything special required. Rgds, Patrick ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: 7.0 installation problem
Hi there, I got X working -- I went into sysinstall and installed one of the NVIDIA drivers. No luck with the mouse. Here is my dmesg: Copyright (c) 1992-2007 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 7.0-RC1 #0: Mon Dec 24 10:10:07 UTC 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC Timecounter i8254 frequency 1193182 Hz quality 0 CPU: Intel(R) Core(TM)2 Quad CPUQ6600 @ 2.40GHz (2402.42-MHz K8-class CPU) Origin = GenuineIntel Id = 0x6fb Stepping = 11 Features=0xbfebfbffFPU,VME,DE ,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE Features2=0xe3bdSSE3,RSVD2,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM AMD Features=0x20100800SYSCALL,NX,LM AMD Features2=0x1LAHF Cores per package: 4 usable memory = 4280856576 (4082 MB) avail memory = 4119498752 (3928 MB) ACPI APIC Table: GBTGBTUACPI FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 cpu2 (AP): APIC ID: 2 cpu3 (AP): APIC ID: 3 ioapic0: Changing APIC ID to 2 ioapic0 Version 2.0 irqs 0-23 on motherboard kbd1 at kbdmux0 ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) hptrr: HPT RocketRAID controller driver v1.1 (Dec 24 2007 10:08:39) acpi0: GBT GBTUACPI on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) acpi0: reservation of 0, a (3) failed acpi0: reservation of 10, cfde (3) failed Timecounter ACPI-fast frequency 3579545 Hz quality 1000 acpi_timer0: 24-bit timer at 3.579545MHz port 0x408-0x40b on acpi0 acpi_hpet0: High Precision Event Timer iomem 0xfed0-0xfed003ff on acpi0 Timecounter HPET frequency 14318180 Hz quality 900 cpu0: ACPI CPU on acpi0 acpi_perf0: ACPI CPU Frequency Control on cpu0 p4tcc0: CPU Frequency Thermal Control on cpu0 cpu1: ACPI CPU on acpi0 est1: Enhanced SpeedStep Frequency Control on cpu1 est: CPU supports Enhanced Speedstep, but is not recognized. est: cpu_vendor GenuineIntel, msr 928092806000928 device_attach: est1 attach returned 6 p4tcc1: CPU Frequency Thermal Control on cpu1 cpu2: ACPI CPU on acpi0 est2: Enhanced SpeedStep Frequency Control on cpu2 est: CPU supports Enhanced Speedstep, but is not recognized. est: cpu_vendor GenuineIntel, msr 928092806000928 device_attach: est2 attach returned 6 p4tcc2: CPU Frequency Thermal Control on cpu2 cpu3: ACPI CPU on acpi0 est3: Enhanced SpeedStep Frequency Control on cpu3 est: CPU supports Enhanced Speedstep, but is not recognized. est: cpu_vendor GenuineIntel, msr 928092806000928 device_attach: est3 attach returned 6 p4tcc3: CPU Frequency Thermal Control on cpu3 acpi_button0: Power Button on acpi0 pcib0: ACPI Host-PCI bridge port 0xcf8-0xcff on acpi0 pci0: ACPI PCI bus on pcib0 pcib1: PCI-PCI bridge irq 16 at device 1.0 on pci0 pci1: PCI bus on pcib1 vgapci0: VGA-compatible display port 0x9000-0x907f mem 0xe600-0xe6ff,0xd000-0xdfff,0xe400-0xe5ff irq 16 at device 0.0 on pci1 uhci0: UHCI (generic) USB controller port 0xe500-0xe51f irq 16 at device 26.0 on pci0 uhci0: [GIANT-LOCKED] uhci0: [ITHREAD] usb0: UHCI (generic) USB controller on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 on usb0 uhub0: 2 ports with 2 removable, self powered uhci1: UHCI (generic) USB controller port 0xe000-0xe01f irq 21 at device 26.1 on pci0 uhci1: [GIANT-LOCKED] uhci1: [ITHREAD] usb1: UHCI (generic) USB controller on uhci1 usb1: USB revision 1.0 uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 on usb1 uhub1: 2 ports with 2 removable, self powered uhci2: UHCI (generic) USB controller port 0xe100-0xe11f irq 18 at device 26.2 on pci0 uhci2: [GIANT-LOCKED] uhci2: [ITHREAD] usb2: UHCI (generic) USB controller on uhci2 usb2: USB revision 1.0 uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 on usb2 uhub2: 2 ports with 2 removable, self powered ehci0: EHCI (generic) USB 2.0 controller mem 0xee101000-0xee1013ff irq 18 at device 26.7 on pci0 ehci0: [GIANT-LOCKED] ehci0: [ITHREAD] usb3: EHCI version 1.0 usb3: companion controllers, 2 ports each: usb0 usb1 usb2 usb3: EHCI (generic) USB 2.0 controller on ehci0 usb3: USB revision 2.0 uhub3: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 on usb3 uhub3: 6 ports with 6 removable, self powered pcib2: ACPI PCI-PCI bridge irq 16 at device 28.0 on pci0 pci2: ACPI PCI bus on pcib2 pcib3: ACPI PCI-PCI bridge irq 17 at device 28.1 on pci0 pci3: ACPI PCI bus on pcib3 em0: Intel(R) PRO/1000 Network Connection Version - 6.7.3 port 0xa000-0xa01f mem 0xe902-0xe903,0xe900-0xe901 irq 17 at device 0.0 on pci3 em0: Using MSI interrupt em0: Ethernet address: 00:1b:21:05:14:8e em0: [FILTER] pcib4: ACPI PCI-PCI bridge irq 19 at device 28.3 on pci0 pci4: ACPI PCI bus on pcib4 atapci0: JMicron JMB363 SATA300
7.0 installation problem
Hello, I have tried installing FreeBSD 7.0-Current for amd64, and I am having problems with my mouse and video card. My hardware is as follows: Gigabyte p35-ds3r motherboard Intel Core 2 Quad 2.4GHz (Q6600) NVidia 8400GS Microsoft Comfort Optical 3000 mouse Microsoft Natural Ergonomic Keyboard 4000 Problem 1: The mouse is not working at all. When I look at the output of dmesg, I see the mouse (ums0), however no movement. I have gone into sysinstall and tried every available option under mouse configuration, but I can't get it to work. Problem 2: I cannot get X started. I get the following errors: Failed to load module nv (module does not exist, 0) Failed to load module mouse (module does not exist, 0) Failed to load module kbd (module does not exist, 0) No drivers available Chris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
suggested size of /var/mail
Dear list, I am currently setting up a server which should include email service. Are there any smart ways to decide how to size /var/mail. I plan to put it on a seperate partition ... or shouldn't I? TIA for any related tips! Zheyu ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
relocation and USB keyboards
Hi guys; I moved my computer to another room and in the process I unplugged all the USB devices. After pluging everything again my USB keyboard doesn't respond unless I start in single user mode first. I tried changing the keyboard to all the other USB slots with no luck. Any idea what is going on? FWIW, this is and amd64x2 running 6.3-RC2. cheers, Pedro. ___ L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: http://it.docs.yahoo.com/nowyoucan.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
When is 7.0 being released?
Hello, Does anybody have an idea when 7.0 will be released? It looks like the schedule hasn't been updated, and it was scheduled for January 14th. Where can I find additional information? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: jail on ZFS - Unable to mount devfs
hi patrick, If I remember correctly there was no password file for in the jail. I think you have to rerun a certain command. Of course I do not remember the command :( The command should create the master password database. using the ServiceJail model, after populating the jail skeleton and running mergemaster, the two commands i run are, /usr/bin/cap_mkdb /j/jSKEL/etc/login.conf /usr/sbin/pwd_mkdb -d /j/jSKEL/etc -p /j/j/etc/master.passwd which should take care of that. Also you have to run within in the jail newaliases to create the aliases file, do a touch /etc/fstab to stop complaints about unable to read mountpoints. hm. i did not do that this time around. i'd built my jail-world with *both* NO_MAILWRAPPER=true NO_SENDMAIL=true, so i mayhave caused myself a problem. rather than cp'ing bins, tobe safe, i'll just rebuild world ... and see in a bit if that helps. thanks. Furthermore I am not sure that you can run a jail on a zfs file system. The setup I have is that I run my jails on ufs and have a zfs filesystem available within the jail. ?? if that's true, then that renders the rest moot -- and i have a problem. atm, i have cat /etc/fstab /dev/mirror/gm0s1a /bootdirufs rw1 1 /dev/mirror/gm0s1b noneswapsw0 0 /dev/acd0 /cdrom cd9660 ro,noauto 0 0 /j/jMROOT /j/jTESTnullfs ro0 0 /j/s/jTEST /j/jTEST/s nullfs rw0 0 zfs list NAME USED AVAIL REFER MOUNTPOINT z5.23G 213G 250M /z z/data 20K 213G20K /data z/home 28.5K 213G 28.5K /home z/j23K 213G23K /j z/tmp 406K 213G 406K /tmp z/usr4.88G 213G 4.88G /usr z/var 105M 213G 105M /var where z/j is a zfs mount. i *can* access the jail, and do just about 'all' i need to in the jail (builds, exec, etc). but do *not* yet know if, by running the jail on zfs space whehter i've compromised anything. do you have a reference for your comment? or, perhaps, someone else can comment, as well? thanks! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: jail on ZFS - Unable to mount devfs
hi wesley, I have a jail running in a ZFS environment. [EMAIL PROTECTED] ~ % jls JID IP Address Hostname Path 3 192.168.1.100 asterisk /u/jails/asterisk [EMAIL PROTECTED] ~ % mount | grep data data on /u (zfs, NFS exported, local, noatime) [EMAIL PROTECTED] ~ % mount | grep devfs devfs on /dev (devfs, local) devfs on /u/jails/asterisk/dev (devfs, local) [EMAIL PROTECTED] ~ % here's what i have jls JID IP Address Hostname Path 1 10.0.0.200 jTEST.internal.net /j/jTEST mount z on / (zfs, local) devfs on /dev (devfs, local) /dev/mirror/gm0s1a on /bootdir (ufs, local, soft-updates) z/data on /data (zfs, local) z/home on /home (zfs, local) z/j on /j (zfs, local) z/tmp on /tmp (zfs, local) z/usr on /usr (zfs, local) z/var on /var (zfs, local) /j/jMROOT on /j/jTEST (nullfs, local, read-only) /j/s/jTEST on /j/jTEST/s (nullfs, local) devfs on /j/jTEST/dev (devfs, local) which, i think?, says the same. argh. confused. following too many threads with partial solutions ... can you share your setup-a-jail-on-a-zfs'd-host steps? thanks! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: corporate backers of freebsd
Check out the BSDMall - iXSystems: http://www.freebsdmall.com/cgi-bin/fm/community.html?id=QcQ8NEb5mv_arg=mv_argmv_pc=3 They provide all you are looking for in both products and support of the community. On Jan 2, 2008 10:50 AM, Gary Smithe [EMAIL PROTECTED] wrote: On Jan 2, 2008 4:56 AM, Ted Mittelstaedt [EMAIL PROTECTED] wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Gary Smithe Sent: Monday, December 31, 2007 10:11 AM To: freebsd-questions@freebsd.org Subject: corporate backers of freebsd Good Day All and Happy New Year, I'm not looking to incite anyone, but here comes a BSD vs Linux question. Yes, I tried searching the archives and found nothing. I used FreeBSD back in 2000 for a few firewalls, but due to certain influences I switched to Linux after a couple of years. I'm interested in getting back to the BSD's but have just one big concern. As most users Unix and it's clones, I prefer the free as in beer licensing model, but want to know that someone else is paying the big bills. In short, here's my question: Canonical, RedHat, IBM, Novell, and a slew of others are funding / supporting Linux development and pushing some of that development into the free community, so that all can benefit from full-time developers and the money that supports them. I've seen where Cisco and Juniper are using FreeBSD, and assuming there are other big names, do they directly fund or contribute to the community? Gary, FreeBSD USED TO HAVE a single large corporate sponsor. Walnut Creek. Well, while the upside of this is that you have a pot of money that can be used to fund advertising ventures, fund a position to act as the public face of the project, etc. the downside is that this ties the project to the fortunes of that big money pot. When Walnut Creek went downhill it caused a LOT of people who were using FreeBSD very much consternation. This is why today the project basically operates as a completely distributed project. You might as well ask who the corporate sponsor of the Gnutella network is. Nobody, and Everybody. Yet, that network carries billions of bytes of pirat... I mean, valuable video data, and is dependended on by many bootleggers.. I mean enterprenuers. ;-) People look at Linux and say how great it is that Linux has RedHat to make Linux look legitimate to the corporate world. They forget that as RedHat is a corporation, it is under a mandate to make a profit every year. Well, what happens if the day ever comes that RedHat starts losing money? Don't you think that people will suddenly start thinking that Linux has run out of steam? I do. There is no single corporation that is ever guarenteed to exist forever, last forever, and remain profitable forever. History is littered with large, rich companies that people once upon a time thought would never ever go out of business - yet they did anyway. By contrast, MOVEMENTS in history NEVER run out of steam. There are still, today, billions of people dumping billions of dollars every year into the Catholic Church - despite it's sordid history and current coverups of pedophiles - and that particular religious movement has been around more than 2000 years. We want to keep FreeBSD operating as a movement. As long as 1 person still believes and maintains it, it won't die. No matter how profitable or unprofitable it is to run. Ted Thank you all for the responses. I've tried to track down ways to contribute funds, as my programming skills are just above that of an intoxicated monkey. I found the FreeBSD foundation, which seems like the best place to start. I can't find, however, that any book, T-Shirt, or CD purchase from any vendor (including BSDmall) will send money back to the project. I understand there is value in evangelism from promoting FreeBSD via T-Shrits, stickers etc., as well as showing the profitability of books on BSD related topics to publishers (like No Starch). Have I missed an avenue of getting monetary support to FreeBSD? Thanks again. GS ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- --I'm not 'renting' my OS-- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
amd64 native boot loader?
hi, i've FBSD/amd64 62Rp9 installed. kernel world are my own builds from latest cvsup. on boot I see: FreeBSD/i386 bootstrap loader odd. i'd expect a native loader ... checking in, /usr/src/sys/boot ls Makefile alpha/arm/ efi/ forth/ia64/ pc98/ sparc64/ READMEarc/ common/ ficl/ i386/ ofw/ powerpc/ other arches seem to be there ... just not amd64. where's the src for the amd64? thanks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
freebsd 7-BETA4+MS USB Wireless Mouse
Hi All I've just installed Freebsd 7-Beta4 and I cannot get my mouse to work. During the boot I can see that the mouse is detected ums0: Microsoft Microsoft USB Wireless Mouse, class 0/0, rev 2.00/0.13, addr 2 on uhub1 ums0: 5 buttons and a TILT dir. but it doesn't move I tested with moused and I got the following freebsd# moused -f -d -p /dev/ums0 -t auto moused: proto params: f8 80 00 00 8 00 ff moused: port: /dev/ums0 interface: usb type: sysmouse model: generic moused: received char 0x87 moused: received char 0x0 moused: received char 0x1 moused: received char 0x1 moused: received char 0x1 moused: received char 0x0 moused: received char 0x0 moused: received char 0x7f moused: assembled full packet (len 8) 87,0,1,1,1,0,0,7f moused: tv: 1197798434 122191 moused: flags:8000 buttons: obuttons: moused: activity : buttons 0x dx 1 dy -2 dz 0 after that mouse hangs usbdevs output: Controller /dev/usb3: addr 1: full speed, self powered, config 1, UHCI root hub(0x), VIA(0x), rev 1.00 port 1 addr 2: low speed, power 50 mA, config 1, product 0x00b9(0x00b9), vendor 0x045e(0x045e), rev 0.13 port 2 powered How can I get my mouse to work? Regards Zbyszek ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
named / BIND 9.4.1-P1 /etc/named/master ownership
Hi list, I've got the following. Everytime when I start /etc/rc.d/named I get the following issue. hulk# /etc/rc.d/named start etc/namedb/master changed user expected 0 found 53 modified gid expected 0 found 53 modified Starting named. If I leave it like this I get the following in /var/log/messages Dec 3 19:10:57 hulk named[854]: dumping master file: master/tmp-giHHnonSuW: open: permi ssion denied Dec 3 19:21:12 hulk named[854]: dumping master file: master/tmp-MnAidukvm5: open: permi ssion denied Dec 3 19:25:48 hulk named[854]: dumping master file: master/tmp-sCNwwiScbK: open: permi ssion denied This is solved if I do the following: hulk# chown bind:bind /etc/named/master However when I restart the service the problem re-appears. In /etc/rc.conf I got the following. hulk# cat /etc/rc.conf | grep named named_enable=YES named_uid=bind named_chrootdir=/var/named I find it weird that named resets the ownership of the master directory as named is running under uid bind and would require ownership or permissions to dump, change any of the files. Rgds, Patrick ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: named / BIND 9.4.1-P1 /etc/named/master ownership
On Mon, December 3, 2007 23:29, Philip M. Gollucci wrote: When I change the ownership, problem goes away. How can I get the problem away without changing the ownership? in the options {} section what do you have for: options { // Relative to the chroot directory // named_chrootdir=/var/named directory /etc/namedb; pid-file/var/run/named/pid; dump-file /var/dump/named_dump.db; statistics-file /var/stats/named.stats; . acl home {10.202.77.0/24;127.0.0.1;}; options { // Relative to the chroot directory, if any directory /etc/namedb; pid-file/var/run/named/pid; dump-file /var/dump/named_dump.db; statistics-file /var/stats/named.stats; allow-query {home; }; listen-on { 10.202.77.110; 127.0.0.1; }; Ok.. In the /var directory there is no dump directory. So solving this I should do the following: hulk# mkdir /var/dump hulk# chown bind:bind /var/dump Is that correct? Whilst I am on the BIND topic, does BIND automatically refreshed the content of a zone. Will it notice that the serial of a loaded zone has been changed and reload it? Rgds, Patrick -- Philip M. Gollucci ([EMAIL PROTECTED]) o:703.549.2050x206 Senior System Admin - Riderway, Inc. http://riderway.com / http://ridecharge.com 1024D/EC88A0BF 0DE5 C55C 6BF3 B235 2DAB B89E 1324 9B4F EC88 A0BF Work like you don't need the money, love like you'll never get hurt, and dance like nobody's watching. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: named / BIND 9.4.1-P1 /etc/named/master ownership
On Mon, December 3, 2007 23:03, Philip M. Gollucci wrote: Gelsema, P (Patrick) - FreeBSD wrote: In /etc/rc.conf I got the following. hulk# cat /etc/rc.conf | grep named named_enable=YES named_uid=bind named_chrootdir=/var/named grep named /etc/defaults/rc.conf # named. It may be possible to run named in a sandbox, man security for named_enable=NO # Run named, the DNS server (or NO). named_program=/usr/sbin/named # path to named, if you want a different one. #named_flags= # Flags for named named_pidfile=/var/run/named/pid # Must set this in named.conf as well named_uid=bind# User to run named as named_chrootdir=/var/named# Chroot directory (or not to auto-chroot it) named_chroot_autoupdate=YES # Automatically install/update chrooted # components of named. See /etc/rc.d/named. named_symlink_enable=YES # Symlink the chrooted pid file As you can see, your named_uid and named_chrootdir are not needed, that is the default. The thing causing your issue is named_chroot_autoupdate=YES (the default) and it is correct to do so, you should not be changing these without very good reason. Okido. I understand that. The fact is that I do get lines logged that permission is denied for dump: Dec 3 21:36:51 hulk named[854]: dumping master file: master/tmp-aET3vZVt47: open: permission denied Dec 3 21:42:22 hulk named[854]: dumping master file: master/tmp-Epzp4gKXgI: open: permission denied When I change the ownership, problem goes away. How can I get the problem away without changing the ownership? Rgds, Patrick -- Philip M. Gollucci ([EMAIL PROTECTED]) o:703.549.2050x206 Senior System Admin - Riderway, Inc. http://riderway.com / http://ridecharge.com 1024D/EC88A0BF 0DE5 C55C 6BF3 B235 2DAB B89E 1324 9B4F EC88 A0BF Work like you don't need the money, love like you'll never get hurt, and dance like nobody's watching. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: named / BIND 9.4.1-P1 /etc/named/master ownership
On Mon, December 3, 2007 23:44, Philip M. Gollucci wrote: Philip M. Gollucci wrote: Gelsema, P (Patrick) - FreeBSD wrote: Ok.. In the /var directory there is no dump directory. So solving this I should do the following: hulk# mkdir /var/dump hulk# chown bind:bind /var/dump Well, if its relative to the chroot, its /var/named/var/dump hulk# pwd /var/named/var hulk# ll total 8 drwxr-xr-x 2 bind wheel 512 Aug 17 05:10 dump drwxr-xr-x 2 bind wheel 512 Aug 17 05:10 log drwxr-xr-x 3 bind wheel 512 Dec 3 15:46 run drwxr-xr-x 2 bind wheel 512 Aug 17 05:10 stats uhmpf.. That directory does exist and bind has permissions. I will do a search on BIND dumps and read some manpages tomorrow. See if that will shed some light. Thanks Patrick -- Philip M. Gollucci ([EMAIL PROTECTED]) o:703.549.2050x206 Senior System Admin - Riderway, Inc. http://riderway.com / http://ridecharge.com 1024D/EC88A0BF 0DE5 C55C 6BF3 B235 2DAB B89E 1324 9B4F EC88 A0BF Work like you don't need the money, love like you'll never get hurt, and dance like nobody's watching. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: named.conf - unable to set control bit
On Fri, November 30, 2007 20:11, David Robillard wrote: Hi list, I have got the following issue. I have added the following settings in named.conf but am unable to get it working. If I read the man page it seems that what I have put in is completely correct. REason to put it in is that I want the DHCP server to automatically update the DNS zone. the error I get is: Nov 30 14:09:31 hulk named[6848]: reloading configuration failed: failure Nov 30 14:09:45 hulk named[6848]: /etc/namedb/named.conf:20: expected 'allow' near ';' Nov 30 14:09:45 hulk named[6848]: reloading configuration failed: unexpected token head -n 25 /etc/named/named.conf # generated with dnssec-keygen -a HMAC-MD5 -b 128 -n USER DHCP_UPDATER key DHCP_UPDATER { algorithm HMAC-MD5.SIG-ALG.REG.INT; secret hashedstring==; }; acl home {10.202.77.0/24;127.0.0.1;}; options { // Relative to the chroot directory, if any directory /etc/namedb; pid-file/var/run/named/pid; dump-file /var/dump/named_dump.db; statistics-file /var/stats/named.stats; allow-query {home; }; }; controls { inet 127.0.0.1 port 953; allow { 127.0.0.1;10.202.77.110; } keys { DHCP_UPDATER; }; }; Line 20 is where controls start. Any help much appreciated. rgds, Patrick Patrick, When you update your named.conf file, make sure you run a syntax check before (re)starting named. Here's how you do it: named-checkconf /path/to/your/named.conf echo $? Thanks for the command. If echo returns zero, then you're good to go. Otherwise, fix whatever problem is displayed. In your case, you need to remove one semi-colomn (;) to fix your problem. Here's what your control statement should look like: controls { inet 127.0.0.1 port 953 allow { 127.0.0.1;10.202.77.110; } keys { DHCP_UPDATER; }; }; Ok. I was in the impression that the inet line had to be a seperate line. Changing it on one line and removing the ; solved it for me. Thanks Cheers, David -- David Robillard UNIX systems administrator Oracle DBA CISSP, RHCE Sun Certified Security Administrator Montreal: +1 514 966 0122 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
named.conf - unable to set control bit
Hi list, I have got the following issue. I have added the following settings in named.conf but am unable to get it working. If I read the man page it seems that what I have put in is completely correct. REason to put it in is that I want the DHCP server to automatically update the DNS zone. the error I get is: Nov 30 14:09:31 hulk named[6848]: reloading configuration failed: failure Nov 30 14:09:45 hulk named[6848]: /etc/namedb/named.conf:20: expected 'allow' near ';' Nov 30 14:09:45 hulk named[6848]: reloading configuration failed: unexpected token head -n 25 /etc/named/named.conf # generated with dnssec-keygen -a HMAC-MD5 -b 128 -n USER DHCP_UPDATER key DHCP_UPDATER { algorithm HMAC-MD5.SIG-ALG.REG.INT; secret hashedstring==; }; acl home {10.202.77.0/24;127.0.0.1;}; options { // Relative to the chroot directory, if any directory /etc/namedb; pid-file/var/run/named/pid; dump-file /var/dump/named_dump.db; statistics-file /var/stats/named.stats; allow-query {home; }; }; controls { inet 127.0.0.1 port 953; allow { 127.0.0.1;10.202.77.110; } keys { DHCP_UPDATER; }; }; Line 20 is where controls start. Any help much appreciated. rgds, Patrick ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
skip bad block in QIC-150 tar
I'm trying to recover some files from a 5 yr old tar on a QIC-150 tape. Unfortunately, there's a bad block on the tape; tar barfs and quits when it gets to it: tar: Unrecognized archive format: Inappropriate file type or format I managed to get a complete directory listing using tar t on my first attempt, before the tape became unreadable; it had to work at it but apparently managed to eventually get the block read. I've cleaned the tape and retried multiple times, to no avail. I've tried omitting the directory containing the bad block, but that hasn't prevented it from terminating. Anyone know a way to get around this? Thanks, Gary ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ipfw -- why need to let icmp out that I already let in?
Are you sure you don't have some other rule which is letting those returned packets out the other port? When I substitute your rule for my two: ipfw delete 10531 ipfw delete 10532 ipfw add 10531 allow icmp from any to any icmptypes 0,3,11,12 in The returning packets are dropped inside the firewall. (traceroute still works from the firewall itself, but not from an internal machine). Gary Dan Nelson wrote: In the last episode (Oct 31), Ivan Voras said: [EMAIL PROTECTED] wrote: add 10510 allow icmp from any to any out via oif() keep-state I don't think ICMP is stateful :) You need both in and out rules for ICMP because the logical responses to packets can't be reliably connected into a single communication. I use allow icmp from any to any icmptypes 0,3,11,12 in those types being echo reply, destination unreachable, time-to-live exceeded, and IP header bad. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ifconfig -- how to remove address and mask?
I tried delete, but it only works for *additional* ip addresses added using the alias command, not the original, primary one. I can't remember the error message. Yuri Pankov wrote: On Sun, 2007-10-28 at 21:14 -0700, [EMAIL PROTECTED] wrote: running 6.1, Is there a way to bring an interface down and remove the ipaddr and mask? I've tried ifconfig destroy with no effect, and I'm getting tired of twiddling rc.conf and rebooting... The problem arises when testing a new configuration where an existing interface has an assigned ip addr, and is then changed to be used with pppoe. The routine tables get really confused... ... Try ifconfig interface delete. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ifconfig -- how to remove address and mask?
I stand corrected. ifconfig interface delete did the job; destroy is what failed. Thanks. I tried delete, but it only works for *additional* ip addresses added using the alias command, not the original, primary one. I can't remember the error message. Yuri Pankov wrote: On Sun, 2007-10-28 at 21:14 -0700, [EMAIL PROTECTED] wrote: running 6.1, Is there a way to bring an interface down and remove the ipaddr and mask? I've tried ifconfig destroy with no effect, and I'm getting tired of twiddling rc.conf and rebooting... The problem arises when testing a new configuration where an existing interface has an assigned ip addr, and is then changed to be used with pppoe. The routine tables get really confused... ... Try ifconfig interface delete. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
ifconfig -- how to remove address and mask?
running 6.1, Is there a way to bring an interface down and remove the ipaddr and mask? I've tried ifconfig destroy with no effect, and I'm getting tired of twiddling rc.conf and rebooting... The problem arises when testing a new configuration where an existing interface has an assigned ip addr, and is then changed to be used with pppoe. The routine tables get really confused... Thanks, Gary ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
ipfw -- why need to let icmp out that I already let in?
I'm now running 6.1 using PPPoE through a bridging DSL modem. Using ipfw I have the following rules regarding for ping / traceroute: oip, oif are the outside tun0 ip addr and interface inet, imask, and iif are the internal netip/mask/interface from ipfw.conf: # Allow pings out # Note that for internal machines, this is an INCOMING request on the INTERNAL interface. add 10510 allow icmp from any to any out via oif() keep-state add 10511 allow icmp from inet():imask() to any in via iif() keep-state # Allow traceroute # Note that for internal machines, this is an INCOMING request on the INTERNAL interface. # Note the need to relay letting the icmp replies back out the internal interface in 10532! add 10520 allow udp from oip() to any out via oif() keep-state add 10521 allow icmp from any to oip() in via oif() icmptypes 3,11 add 10530 allow udp from inet():imask() to any in via iif() keep-state add 10531 allow icmp from any to inet():imask() in via oif() icmptypes 3,11 add 10532 allow icmp from any to inet():imask() out via iif() icmptypes 3,11 My question is regarding entry 10532. Without it, packets for traceroute come in on iif and are routed out on oif, but the returning icmp time exceeded in-transit packets are not forwarded to the internal network; they come in on oif (line 10531) but never go out on iif. Why is 10532 necessary? Other requests from the internal network, such as http requests, get forwarded out the other interface just fine, and returning packets are routed back to the internal interface, with a single entry of the form: add 10220 allow tcp from inet():imask() to any http in via iif() setup keep-state When dynamic rules are built, are they built for all interfaces to allow a packet to go anywhere appropriate, and similarly for return packets? Is the above only a problem because of the stateless nature of icmp? I assumed that if I allowed a packet in, it would be allowed out to its destination automatically. Gary ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: user ppp and PPPoE bridging
To answer my own question: I had the mux type set wrong -- VC-based instead of LLC-based. While the line comes up, the session is never opened because of the mux mismatch. moving right along now... Gary The freebsd box is connected directly via ed1 to the dsl modem; a crossover cable is used; the packets are clearly reaching the modem, as it records them as received. I've simplified ppp.conf to the following, essentially the ppp.conf.sample: default: set log all -timer blackfoot: set device PPPoE:ed1 enable lqr echo set cd 5 set redial 0 0 set dial set login set authname set authkey add! default HISADDR #ifconfig ed1 ed1: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST mtu 1500 inet6 fe80::220:18ff:fe72:8b72%ed1 prefixlen 64 scopeid 0x3 ether 00:20:18:72:8b:72 #tcpdump -efntl -i ed1 tcpdump: WARNING: ed1: no IPv4 address assigned tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on ed1, link-type EN10MB (Ethernet), capture size 96 bytes 00:20:18:72:8b:72 ff:ff:ff:ff:ff:ff, ethertype PPPoE D (0x8863), length 32: PPPoE PADI [Host-Uniq 0x402DA4C1] [Service-Name] 00:20:18:72:8b:72 ff:ff:ff:ff:ff:ff, ethertype PPPoE D (0x8863), length 32: PPPoE PADI [Host-Uniq 0x402DA4C1] [Service-Name] It appears that no PADO reply is being received by the modem; the modem shows two packets being transmitted, but non being received. Since the line is marked as up by the modem, and since the line comes up properly when the modem is operating in full PPPoE mode, I'm puzzled as to what kind of mismatch could be preventing the ISP end from responding. This is a zyxel 642r modem; I can't try my other modem, a cisco 678, because it doesn't support a vci 63. The modem is set to use VC-based multiplexing, vpi=0, vci=100 These are the parameters used for PPPoE, and I presume are still required as part of the ATM layer when bridging. I am assuming there should be no need for my ISP to be notified that I am trying to use bridging in the modem, since it should be transparent on their end. They claim not to support bridging, but I don't see how they can say that, other than that they don't want to deal with the support issues. Is this a reasonable assumption? Nikos Vassiliadis wrote: On Tuesday 23 October 2007 05:31:45 [EMAIL PROTECTED] wrote: I'm attempting to change a DSL link from using PPPoE in the DSL modem to doing PPPoE on 6.1, with the modem in bridging mode. I've put the DSL modem in bridging mode, and it brings up the link properly -- or at least it reports it as up (DSL led steady; modem status report shows it as up, rfc 1483. Using user ppp, when I attempt to establish the PPPoE connection, I never get very far -- ppp dies when it tries to acquire carrier. I don't understand this, as there isn't a carrier signal to acquire on an ethernet. There is carrier on ethernet. Ethernet belongs to the CSMA/DA model where CS means carrier sense. I tried disabling cd in ppp.conf but as noted in the doc, it's required for a PPPoE connection and is forced on. Also, how do I know know which interface it is attempting to connect to? The debug log shows it found five interfaces, but doesn't indicate which one it is trying to connect to. It tries to use ed1 for PPPoE(set device PPPoE:ed1) Can you use the minimal configuration labelled pppoe from /usr/share/examples/ppp/ppp.conf.sample? The only things you have to change are: The ethernet interface it will try PPPoE. username and password. Is your ed1 connected to the modem directly? Or it goes through a switch? Can you try connecting your ed1 directly on your DSL modem's ethernet port? You might need a crossover cable to do this( http://en.wikipedia.org/wiki/Ethernet_crossover_cable) or not since these days many ethernet ports do this automatically. Please post also ifconfig and run tcpdump on ed1 during try. ... I dont'see anything wrong, but I may be wrong. The small sample configuration always worked for me. Why don't you use it as a starting point? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
ed1 interface sometimes not recognized
Can anyone offer suggestions as to why an ed1 interface is not always recognized when booting? This is on 6.1 on an old P200 system. ed1 is the second nic, ep0 is the first; ep0 is always recognized. Rebooting usually solves the problem. I'm also puzzled as to why it's ed1 and not ed0. As nearly as I can tell it's on its own irq (5). Also, what causes the unknown: PNP can't assign resources messages, and how do I map the to something I can look for? dmesg: Copyright (c) 1992-2006 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.1-RELEASE #0: Sun May 7 04:32:43 UTC 2006 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC Timecounter i8254 frequency 1193182 Hz quality 0 CPU: Pentium/P54C (199.31-MHz 586-class CPU) Origin = GenuineIntel Id = 0x52c Stepping = 12 Features=0x1bfFPU,VME,DE,PSE,TSC,MSR,MCE,CX8 real memory = 134217728 (128 MB) avail memory = 121806848 (116 MB) Intel Pentium detected, installing workaround for F00F bug kbd1 at kbdmux0 cpu0 on motherboard pcib0: Host to PCI bridge pcibus 0 on motherboard pci0: PCI bus on pcib0 isab0: PCI-ISA bridge at device 7.0 on pci0 isa0: ISA bus on isab0 atapci0: Intel PIIX3 WDMA2 controller port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfcf0-0xfcff at device 7.1 on pci0 ata0: ATA channel 0 on atapci0 ata1: ATA channel 1 on atapci0 bt0: Buslogic Multi-Master SCSI Host Adapter port 0xfcec-0xfcef irq 9 at device 17.0 on pci0 bt0: BT-946C FW Rev. 4.25J Narrow SCSI Host Adapter, SCSI ID 7, 100 CCBs bt0: [GIANT-LOCKED] pci0: display, VGA at device 18.0 (no driver attached) pmtimer0 on isa0 orm0: ISA Option ROMs at iomem 0xc-0xc7fff,0xc8000-0xcbfff on isa0 ep0: 3Com 3C509-Combo EtherLink III at port 0x300-0x30f irq 10 on isa0 ep0: Ethernet address: 00:60:97:63:2f:b5 atkbdc0: Keyboard controller (i8042) at port 0x60,0x64 on isa0 atkbd0: AT Keyboard irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: PS/2 Mouse irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model Generic PS/2 mouse, device ID 0 fdc0: Enhanced floppy controller at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 fdc0: [FAST] fd0: 1440-KB 3.5 drive on fdc0 drive 0 ppc0: Parallel port at port 0x378-0x37f irq 7 on isa0 ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode ppbus0: Parallel port bus on ppc0 plip0: PLIP network interface on ppbus0 lpt0: Printer on ppbus0 lpt0: Interrupt-driven port ppi0: Parallel I/O on ppbus0 sc0: System console at flags 0x100 on isa0 sc0: VGA 16 virtual consoles, flags=0x300 sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A sio1 at port 0x2f8-0x2ff irq 3 on isa0 sio1: type 16550A vga0: Generic ISA VGA at port 0x3c0-0x3df iomem 0xa-0xb on isa0 unknown: PNP0501 can't assign resources (port) unknown: PNP0501 can't assign resources (port) unknown: PNP0401 can't assign resources (port) unknown: PNP0700 can't assign resources (port) unknown: PNP0c02 can't assign resources (memory) unknown: PNP0303 can't assign resources (port) unknown: PNP0f13 can't assign resources (irq) ed1: Plug Play Ethernet Card at port 0x280-0x29f iomem 0xcc000-0xc irq 5 on isa0 ed1: Ethernet address: 00:20:18:72:8b:72 ed1: type NE2000 (16 bit) unknown: Audio can't assign resources (irq) Timecounter TSC frequency 199310275 Hz quality 800 Timecounters tick every 1.000 msec Waiting 5 seconds for SCSI devices to settle da0 at bt0 bus 0 target 5 lun 0 da0: SEAGATE ST15230W SUN4.2G 0738 Fixed Direct Access SCSI-2 device da0: 10.000MB/s transfers (10.000MHz, offset 15), Tagged Queueing Enabled da0: 4095MB (8386733 512 byte sectors: 255H 63S/T 522C) cd0 at bt0 bus 0 target 2 lun 0 cd0: PLEXTOR CD-ROM PX-8XCS 1.02 Removable CD-ROM SCSI-2 device cd0: 10.000MB/s transfers (10.000MHz, offset 15) cd0: Attempt to query device size failed: NOT READY, Medium not present Trying to mount root from ufs:/dev/da0s1a ipfw2 (+ipv6) initialized, divert loadable, rule-based forwarding disabled, default to deny, logging disabled ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: user ppp and PPPoE bridging
]: tun0: LCP: deflink: RecvProtocolRej(2) state = Opened Oct 24 12:33:35 nightmare ppp[859]: tun0: LCP: deflink: -- Protocol 0x80fd (Compression Control Protocol) was rejected! Oct 24 12:33:35 nightmare ppp[859]: tun0: CCP: deflink: State change Req-Sent -- Stopped Oct 24 12:33:35 nightmare ppp[859]: tun0: IPCP: deflink: RecvConfigRej(1) state = Ack-Sent Oct 24 12:33:35 nightmare ppp[859]: tun0: IPCP: COMPPROTO[6] 16 VJ slots with slot compression Oct 24 12:33:35 nightmare ppp[859]: tun0: IPCP: deflink: SendConfigReq(2) state = Ack-Sent And after the line is up, I see this: Oct 24 12:33:35 nightmare ppp[859]: tun0: Debug: deflink: PPPoE:ed1: Cannot determine bandwidth I presume this is a result of the lost LQR packets. Prior to closing the line, there are a number of what look like sync attempts; they look to me like they succeed: Oct 24 12:38:36 nightmare ppp[859]: tun0: Debug: deflink: DescriptorRead: read 14/2048 from 3 Oct 24 12:38:36 nightmare ppp[859]: tun0: Debug: proto_LayerPull: unknown - 0xc021 Oct 24 12:38:36 nightmare ppp[859]: tun0: Debug: link_PullPacket: Despatch proto 0xc021 Oct 24 12:38:36 nightmare ppp[859]: tun0: LCP: deflink: RecvEchoRequest(30) state = Opened Oct 24 12:38:36 nightmare ppp[859]: tun0: LCP: deflink: SendEchoReply(30) state = Opened Oct 24 12:38:36 nightmare ppp[859]: tun0: Debug: fsm_Output Oct 24 12:38:36 nightmare ppp[859]: tun0: Debug: 0a 1e 00 0c 0b 58 fc 84 0b 58 fc 84 .X...X.. Oct 24 12:38:36 nightmare ppp[859]: tun0: Debug: proto_LayerPush: Using 0xc021 Oct 24 12:38:36 nightmare ppp[859]: tun0: Debug: link_PushPacket: Transmit proto 0xc021 Oct 24 12:38:36 nightmare ppp[859]: tun0: Debug: m_enqueue: len = 1 Oct 24 12:38:36 nightmare ppp[859]: tun0: Debug: m_dequeue: queue len = 1 Oct 24 12:38:36 nightmare ppp[859]: tun0: Debug: link_Dequeue: Dequeued from queue 1, containing 0 more packets Oct 24 12:38:36 nightmare ppp[859]: tun0: Debug: deflink: DescriptorWrite: wrote 14(14) to 3 Oct 24 12:38:36 nightmare ppp[859]: tun0: LQM: deflink: Output: Oct 24 12:38:36 nightmare ppp[859]: tun0: LQM: Magic: 0b58fc84 LastOutLQRs:0005 Oct 24 12:38:36 nightmare ppp[859]: tun0: LQM: LastOutPackets: 20464846 LastOutOctets: 46454d44 Oct 24 12:38:36 nightmare ppp[859]: tun0: LQM: PeerInLQRs: 0005 PeerInPackets: 002f Oct 24 12:38:36 nightmare ppp[859]: tun0: LQM: PeerInDiscards: PeerInErrors: Oct 24 12:38:36 nightmare ppp[859]: tun0: LQM: PeerInOctets: 0a6c PeerOutLQRs:000b Oct 24 12:38:36 nightmare ppp[859]: tun0: LQM: PeerOutPackets: 0049 PeerOutOctets: 0ac2 The above summary appears to indicate that line quality requests are being transferred; so what's with the too many LQR packets lost message? Finally, Where does the initial IP address used in the negotiation come from? I did not specify specific IP address assignment, yet the request appears to have asked for 12.32.36.65 This is the IP of the other interface on the machine, and my ppp.conf has no mention of it. Can you also check the number of cells going out/coming in from the ATM interface? I'm not sure what you mean by this... Thanks for any help; I'm going to be out for a day or so, so may be slow to reply Gary ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
user ppp and PPPoE bridging
nightmare ppp[84336]: tun0: Phase: deflink: dial - carrier Oct 22 16:34:24 nightmare ppp[84336]: tun0: Debug: Waiting for carrier Oct 22 16:34:28 nightmare last message repeated 4 times Oct 22 16:34:29 nightmare ppp[84336]: tun0: Phase: deflink: Disconnected! Oct 22 16:34:29 nightmare ppp[84336]: tun0: Phase: deflink: carrier - hangup Oct 22 16:34:29 nightmare ppp[84336]: tun0: Debug: deflink: Close Oct 22 16:34:29 nightmare ppp[84336]: tun0: Phase: deflink: Connect time: 5 secs: 0 octets in, 0 octets out Oct 22 16:34:29 nightmare ppp[84336]: tun0: Phase: deflink: 0 packets in, 0 packets out Oct 22 16:34:29 nightmare ppp[84336]: tun0: Phase: total 0 bytes/sec, peak 0 bytes/sec on Mon Oct 22 16:34:24 2007 Oct 22 16:34:29 nightmare ppp[84336]: tun0: Phase: deflink: hangup - closed Oct 22 16:34:29 nightmare ppp[84336]: tun0: Debug: route_IfDelete (5) Oct 22 16:34:29 nightmare ppp[84336]: tun0: Debug: Found ff01:5::/32 AF_UNSPEC Oct 22 16:34:29 nightmare ppp[84336]: tun0: Debug: route_IfDelete: Skip it (pass 0) Oct 22 16:34:29 nightmare ppp[84336]: tun0: Debug: Found ff02:5::/32 AF_UNSPEC Oct 22 16:34:29 nightmare ppp[84336]: tun0: Debug: route_IfDelete: Skip it (pass 0) Oct 22 16:34:29 nightmare ppp[84336]: tun0: Debug: Found ff01:5::/32 AF_UNSPEC Oct 22 16:34:29 nightmare ppp[84336]: tun0: ID0: 2 = socket(17, 3, 0) Oct 22 16:34:29 nightmare ppp[84336]: tun0: ID0: 148 = write(2, data, 148) Oct 22 16:34:29 nightmare ppp[84336]: tun0: Debug: wrote 148: cmd = Delete, dst = ff01:5::/32, gateway = none Oct 22 16:34:29 nightmare ppp[84336]: tun0: Debug: Found ff02:5::/32 AF_UNSPEC Oct 22 16:34:29 nightmare ppp[84336]: tun0: ID0: 2 = socket(17, 3, 0) Oct 22 16:34:29 nightmare ppp[84336]: tun0: ID0: 148 = write(2, data, 148) Oct 22 16:34:29 nightmare ppp[84336]: tun0: Debug: wrote 148: cmd = Delete, dst = ff02:5::/32, gateway = none Oct 22 16:34:29 nightmare ppp[84336]: tun0: ID0: 2 = socket(2, 2, 0) Oct 22 16:34:29 nightmare ppp[84336]: tun0: ID0: 0 = ioctl(2, 3223349521, 0xbfbfe660) Oct 22 16:34:29 nightmare ppp[84336]: tun0: ID0: 0 = ioctl(2, 2149607696, 0xbfbfe660) Oct 22 16:34:29 nightmare ppp[84336]: tun0: Phase: bundle: Dead Oct 22 16:34:37 nightmare ppp[84336]: tun0: Command: /dev/ttyp3: quit Oct 22 16:34:37 nightmare ppp[84336]: tun0: Debug: DoLoop done. Oct 22 16:34:37 nightmare ppp[84336]: tun0: Phase: PPP Terminated (normal). ppp.conf: === default: set log all set log -timer ident user-ppp VERSION (built COMPILATIONDATE) set redial 15 0 set reconnect 15 1 isp: set device PPPoE:ed1 disable acfcomp protocomp deny acfcomp set mtu max 1492 set mru max 1492 enable mssfixup set speed sync enable lqr set lqrperiod 5 set ctsrts off disable ipv6cp set dial set login set timeout 0 set authname xx set authkey yy add! default HISADDR ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: user ppp and PPPoE bridging
Hi Nikos, Thank you and rw for your replies. The freebsd box is connected directly via ed1 to the dsl modem; a crossover cable is used; the packets are clearly reaching the modem, as it records them as received. I've simplified ppp.conf to the following, essentially the ppp.conf.sample: default: set log all -timer blackfoot: set device PPPoE:ed1 enable lqr echo set cd 5 set redial 0 0 set dial set login set authname set authkey add! default HISADDR #ifconfig ed1 ed1: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST mtu 1500 inet6 fe80::220:18ff:fe72:8b72%ed1 prefixlen 64 scopeid 0x3 ether 00:20:18:72:8b:72 #tcpdump -efntl -i ed1 tcpdump: WARNING: ed1: no IPv4 address assigned tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on ed1, link-type EN10MB (Ethernet), capture size 96 bytes 00:20:18:72:8b:72 ff:ff:ff:ff:ff:ff, ethertype PPPoE D (0x8863), length 32: PPPoE PADI [Host-Uniq 0x402DA4C1] [Service-Name] 00:20:18:72:8b:72 ff:ff:ff:ff:ff:ff, ethertype PPPoE D (0x8863), length 32: PPPoE PADI [Host-Uniq 0x402DA4C1] [Service-Name] It appears that no PADO reply is being received by the modem; the modem shows two packets being transmitted, but non being received. Since the line is marked as up by the modem, and since the line comes up properly when the modem is operating in full PPPoE mode, I'm puzzled as to what kind of mismatch could be preventing the ISP end from responding. This is a zyxel 642r modem; I can't try my other modem, a cisco 678, because it doesn't support a vci 63. The modem is set to use VC-based multiplexing, vpi=0, vci=100 These are the parameters used for PPPoE, and I presume are still required as part of the ATM layer when bridging. I am assuming there should be no need for my ISP to be notified that I am trying to use bridging in the modem, since it should be transparent on their end. They claim not to support bridging, but I don't see how they can say that, other than that they don't want to deal with the support issues. Is this a reasonable assumption? Nikos Vassiliadis wrote: On Tuesday 23 October 2007 05:31:45 [EMAIL PROTECTED] wrote: I'm attempting to change a DSL link from using PPPoE in the DSL modem to doing PPPoE on 6.1, with the modem in bridging mode. I've put the DSL modem in bridging mode, and it brings up the link properly -- or at least it reports it as up (DSL led steady; modem status report shows it as up, rfc 1483. Using user ppp, when I attempt to establish the PPPoE connection, I never get very far -- ppp dies when it tries to acquire carrier. I don't understand this, as there isn't a carrier signal to acquire on an ethernet. There is carrier on ethernet. Ethernet belongs to the CSMA/DA model where CS means carrier sense. I tried disabling cd in ppp.conf but as noted in the doc, it's required for a PPPoE connection and is forced on. Also, how do I know know which interface it is attempting to connect to? The debug log shows it found five interfaces, but doesn't indicate which one it is trying to connect to. It tries to use ed1 for PPPoE(set device PPPoE:ed1) Can you use the minimal configuration labelled pppoe from /usr/share/examples/ppp/ppp.conf.sample? The only things you have to change are: The ethernet interface it will try PPPoE. username and password. Is your ed1 connected to the modem directly? Or it goes through a switch? Can you try connecting your ed1 directly on your DSL modem's ethernet port? You might need a crossover cable to do this( http://en.wikipedia.org/wiki/Ethernet_crossover_cable) or not since these days many ethernet ports do this automatically. Please post also ifconfig and run tcpdump on ed1 during try. ... I dont'see anything wrong, but I may be wrong. The small sample configuration always worked for me. Why don't you use it as a starting point? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]