FreeBSD is an advanced operating system for a variety of architectures. It is derived from BSD, the version of UNIX® developed at the University of California, Berkeley; and is developed and maintained by a large team of individuals. It is a complete Operating System, including the kernel, drivers, ...

learn more… | top users | synonyms

90
votes
4answers
117k views

FreeBSD performance tuning. Sysctls, loader.conf, kernel

I wanted to share knowledge of tuning FreeBSD via sysctl.conf / loader.conf / KENCONF / etc. It was initially based on Igor Sysoev's (author of nginx) presentation about FreeBSD tuning up to ...
13
votes
3answers
1k views

Log every command executed from root

I want to give access to my root server to an external system administrator, but i want to be sure to double check what he is doing to my server, e.g. copying data i don't want them to do and so on. I ...
2
votes
1answer
360 views

FreeBSD: usernames longer than 16 chars

Can someone give me the complete process to change FreeBSD from a 16 char max to 64 char max on unsername length? Essentially this is to add some support for Virtualmin/Webmin. Inspired from ...
0
votes
4answers
333 views

How to make proxy on nginx?

How would I set my webservers to work in way described below? Http request: mypublic.com ---> handled normally by nginx as it is set up already (listen 80;) Http request: myprivate.com ---> handled ...
6
votes
1answer
1k views

Does ZFS replace the need for hardware/software RAID?

I want to provide protection against data loss on my servers. Typically, I'd use hardware RAID 1 or 5, but I've been reading up on ZFS. Is it correct that ZFS itself provides RAID 1 or 5 like data ...
2
votes
2answers
943 views

Installing embedded pfsense, stuck at boot loader

I am trying to install pfSense embedded image 1.2.3 RC1 onto a CF card. The box looks like it is ready to boot, but gets stuck at "Loading /boot/defaults/loader.conf" followed by "/". Can anyone ...
2
votes
1answer
263 views

Binary won't execute when run with a path. Eg >./program won't work but >program works fine

I'm getting some weird behaviour for a binary file I'm trying to run. I'm using Mac OSX snow leopard, and the binary itself is part of labkey software .. built from source. If I try to run the file ...
21
votes
10answers
4k views

I just did a chmod -x chmod

So I did a chmod -x chmod. How I can fix this problem? How do I give execute rights back to chmod?
15
votes
4answers
4k views

How do you manage and deploy FreeBSD's ports in a large environment?

I'm curious to how people are deploying FreeBSD's ports in their environment. I assume that most people using FreeBSD are indeed using Ports (and often portupgrade for upgrading with binaries). I am ...
4
votes
2answers
1k views

Easy multi-level authentication for sudo

I have a FreeBSD server with password-based SSH enabled. I would like to enable sudo, but I do not want a potential attacker to be one password away from root access. My current solution is logging ...
6
votes
1answer
2k views

Is there a tool for managing FreeBSD jails that knows about ZFS?

ZFS under FreeBSD lets one assign filesystems to a jail, such that an account in the jail with the appropriate privileges can access the filesystem, create new subordinate filesystems, and so forth. ...
25
votes
6answers
32k views

FreeBSD vs Linux performance? [closed]

I know that FreeBSD is famous for being highly stable, secure and of course open source. So I am going to try it on one of my servers. However, I am wondering what are the pros and cons of Using ...
2
votes
8answers
6k views

What next after Ubuntu? Arch Linux / FreeBSD / Gentoo

I have been using Ubuntu, mainly as a production system for a very long time. Fedora Core and Mandrake before that. I am a developer, mostly working over networking core - L3/L4. I wish to graduate to ...
7
votes
1answer
953 views

Why change net.inet.tcp.tcbhashsize in FreeBSD?

In virtually every FreeBSD network tuning document I can find: # /boot/loader.conf net.inet.tcp.tcbhashsize=4096 This is usually paired with some unhelpful statement like "TCP control-block hash ...
6
votes
4answers
1k views

ZFS on top of Hardware Mirroring, or just mirror in ZFS?

I have an IBM x346 with dual 3.2Ghz Xeons and 2x36GB 15k SCSI disks. I'm running an entirely ZFS-based install of FreeBSD 8.1. I can configure the bios to mirror the two disks, and then put ZFS on ...
5
votes
1answer
1k views

FreeBSD: periodic(8) is too noisy. How can I control the noise level?

FreeBSD & MacOSX ship with the the periodic(8) utility, which is a neatly organized set of utilities to periodically run system functions like ZFS filesystem checks, security checks, checking for ...
4
votes
13answers
910 views

Source based distros vs Prebuilt package based distros

I wonder what is the general preference and where does it come from. Having used FreeBSD actively for a couple of years I'm leaning towards Gentoo, but I've had an unpleasant experience of wasting ...
4
votes
2answers
5k views

How can I adjust subversion repository file permissions automatically for use w. Apache/DAV?

I've set-up a subversion server accessible with Apache/DAV and after screwing up the repositories file permissions a couple of days ago I started wondering if there's a better way to do this than the ...
2
votes
1answer
634 views

Find the source of malware?

I have a server that was running an older version of lighttpd (1.4.19 on a freebsd 6.2-RELEASE (yea, old) machine) and google alerted me that it had found malware embedded on one of my server's pages. ...
2
votes
2answers
493 views

What's your suggested mail server configuration for a FreeBSD server?

What would be your suggestion if installing a FreeBSD 7 (7.2, actually) email server? I am interested in: SMTP agent Imap/Pop backend Authentication (OS users, OpenLDAP) Anti-Spam server side tools ...
7
votes
4answers
1k views

ZFS and non Sun OS's

Is there any other Unix like distros that can read and write to ZFS filesystems. I know its currently unstable in FreeBSD :( The reason I am asking is I love ZFS but don't get on so well with Solaris. ...
5
votes
2answers
971 views

Need to replace disk in zpool … confused

I need to replace a bad disk in a zpool on FreeNAS. zpool status shows pool: raid-5x3 state: ONLINE scrub: scrub completed after 15h52m with 0 errors on Sun Mar 30 13:52:46 2014 config: ...
5
votes
1answer
1k views

Does kern.hz still have any relevance in FreeBSD if “dynamic tick mode” is enabled?

I'm running a FreeBSD 9.0 setup as a virtual machine in a KVM setup. In previous versions of FreeBSD it was common to force the kern.hz setting to a lower value so that the virtual machine does not ...
4
votes
2answers
490 views

ZFS Reporting (on FreeBSD and Linux via ZoL)

As a longtime mdadm user is was just experiencing a disk error and remembered that I configured a Auto Mail reporting for mdadm on disk errors. Therefore i just had to insert my Mail address inside ...
4
votes
5answers
5k views

/server-status shows over 240 requests like “OPTIONS * HTTP/1.0” 200 - “-” “Apache (internal dummy connection)”

Some details: Webserver: Apache/2.2.13 (FreeBSD) mod_ssl/2.2.13 OpenSSL/0.9.8e OS: FreeBSD 7.2-RELEASE This is a FreeBSD Jail. I believe I use the Apache 'prefork' MPM (I run the default for ...
2
votes
1answer
805 views

HP MDS 600 compatibility questions

I've bought a used HP MDS 600 to use as JBOD to a ZFS filesystem. Originally I just assumed that it was a pretty 'dumb' box and I'd be able to use a SAS card like the 16-port LSI one, and most any ...
2
votes
1answer
402 views

What are the security implications of using allow.sysvipc in a FreeBSD jail

The man page for jail says that allow.sysvipc enables "System V primitives [to] share a single namespace across the host and jail environments..." thus "... processes within a jail would be able to ...
5
votes
3answers
3k views

PAM: Execute a command before pam_mkhomedir?

When a user logs into a system and there is no home directory, we would like to to create the user's home directory using pam_mkhomedir. This is a common practice. Here's a quick description of ...
5
votes
3answers
3k views

httpready problem on Apache httpd restart on FreeBSD?

I run Apache HTTPD 2.2 on my FreeBSD 7.2 webserver. I have enabled the httpready and dataready in my /boot/loader.conf, like this: accf_http_load="YES" accf_data_load="YES" That works great when ...
5
votes
13answers
7k views

Network monitoring tool for FreeBSD [closed]

I am using FreeBSD 6.1 as router. Now I looking for Network Traffic Monitoring software to see what's happening with internet link. I have two installed LAN cards in my system, one for lan and other ...
4
votes
1answer
179 views

Multi homed firewall with ipnat

i am trying (without success) to configure a ipnat/ipf box under FreeBSD 8.2, here is the scenario: outside inside +----+ ADSL ...
4
votes
1answer
656 views

How can I make bash to log shell commands to syslog?

Bash 4.1 is able to log the history to syslog. However I can't seem to make it work under FreeBSD 8. I've tried re-compiling bash from ports with -DWITH_SYSLOG= but to no avail. Has anyone managed to ...
4
votes
2answers
905 views

FreeBSD server - certified compatible hardware?

I am looking for recommendations for hardware that is "certified" with FreeBSD (8+) I suspect I am looking for a small server manufacturer that will build me a server that "just works". I have read ...
4
votes
4answers
3k views

PXE boot FreeBSD iso from pxelinux server

I'm using FOG as a TFTP / PXE server and would like to be able to boot a FreeBSD LiveCD (specifically pfSense, but it could be any LiveCD, really); I've found HOWTOs for booting a "netboot" BSD but ...
4
votes
3answers
7k views

Failed to enable the 'dataready' Accept Filter

I'm not sure why, but I'm getting this warning when I start my apache... su-3.2# /usr/local/apache2/bin/apachectl start [Wed Sep 23 13:40:42 2009] [warn] (2)No such file or directory: Failed to ...
4
votes
3answers
5k views

How to install Java JRE on FreeBSD with as few dependencies as possible

I've been trying to get Java working on my FreeBSD 7.1 server. I just want the runtime, since the JDK drags all kinds of unnecessary dependencies with it, and I just need it to run a jar file ...
3
votes
2answers
2k views

ZFS RaidZ Import Failure when migrating

So my the USB drive attached to my FreeNas 7 system, went bad so I used the situation as an opportunity to upgrade to FreeNas 8. The problem is now I'm having trouble getting my ZFS to spin up: ...
3
votes
1answer
809 views

Newsyslog wildcards - rotate all logs in a directory

I am running FreeBSD 8.1. I am trying to make newsyslog rotate logs defined by a dynamic path: # logfilename [owner:group] mode count size when flags [/pid_file] [sig_num] ...
3
votes
1answer
721 views

Automated installation of FreeBSD

I would like to automate the installation of FreeBSD 8.2 for a project I'm working on. I know the answer to every question in the standard installation, so even a script that just pushes keystrokes ...
3
votes
5answers
2k views

Apache DDoS Protection in router (pFsense) [duplicate]

I'm soon going to change my infrastructure when I buy a new server. I'm going to replace my D-Link DIR-655 router with an pFsense router (and probably use the 655 as an AP) using my old server ...
3
votes
2answers
1k views

Run cgi-script on commandline as user www?

I'm running FreeBSD 7 and apache-2.2.13. I am trying to debug a cgi script at http://www.example.org/cgi-bin/printenv . This script is a simple script written in Bourne shell. I would like to run ...
3
votes
3answers
526 views

Use default options when compiling ports

I am compiling a few ports on FreeBSD, however during the compiling process I am often greeted with options for the dependencies of the port. This causes the compiling process to pause until I select ...
2
votes
1answer
170 views

Move data from root ZFS into child filesystem

I have a zpool (pool verion 13, FS version 3, called tank0) with about 2.5TB of data in the root of the pool (i.e. directly in /mnt/tank0). OS is FreeBSD, actually FreeNAS version 0.7.2. I would like ...
1
vote
1answer
364 views

FreeNAS: “swap_pager: I/O error - pagein failed”

Our FreeNAS server log is constantly filling up with Apr 5 15:13:49 Wheelhouse NAS kernel: swap_pager: I/O error - pagein failed; blkno 524312,size 4096, error 6 Apr 5 15:13:49 Wheelhouse NAS ...
1
vote
2answers
375 views

Need to identify disk in zpool … how?

I need to replace a bad disk in a zpool on FreeNAS. zpool status shows gptid/5fe33556-3ff2-11e2-9437-f46d049aaeca UNAVAIL 0 0 0 cannot open How do I find the serial # of that disk? ...
1
vote
2answers
1k views

FreeBSD Listen Queue Overflows - can't increase max queue size

I have a decently high trafficked FreeBSD Nginx server, and I'm starting to get a large number of listen queue overflows: [root@svr ~]# netstat -sp tcp | fgrep listen 80361931 listen queue overflows ...
1
vote
1answer
514 views

How to share multicast traffic to many vlans

I have linux computer , this computer connected with entire my network via zyxel gs-2200. In this zyxel also connected router with 500 vlans, one by client. On linux computer i have vlc program ...
1
vote
0answers
1k views

how to force stop/delete a VirtualMachine under XenServer (possible bug)

I was testing XenServer 5.6 100-47101p, I installed four VM's, two FreeBSD and two Windows. After installing the four VM's, I recompiled the VM containing FreeBSD 8.2 i386 kernel to enable/support ...
1
vote
2answers
2k views

freebsd 8 mail log status, what do these mean?

I'm new at some of the server stuff and need a bit of help understanding what the /var/log/maillog file is saying. I've sent 200 emails for an email newsletter I'm running. In the "maillog" file I ...
1
vote
1answer
792 views

What's the diablo-jre? (FreeBSD)

This link mentions about diablo-jre. http://serverfault.com/questions/1077/how-to-install-java-jre-on-freebsd-with-as-few-dependencies-as-possible What's that and why should I use it instead of ...