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

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 ...
6
votes
2answers
930 views

What does zfs receive -F do?

When I read man zfs for zfs receive I see -F Force a rollback of the file system to the most recent snap- shot before performing the receive operation. If receiving an ...
4
votes
1answer
88 views

pfctl in OpenBSD and FreeBSD

I've noticed that both FreeBSD and NetBSD have extra pfctl options: pfctl [-AdeghmNnOPqRrvz] But OpenBSD doesn't, it's missing around five of the extra options: pfctl [-deghnPqrvz] I would have ...
2
votes
0answers
46 views

calcru: runtime went backwards (FreeBSD) [duplicate]

I have installed a fresh FreeBSD 9.1 machine running in a virtual KVM environment. After some days of uptime I always see the following messages for various PIDs in the system console: calcru: ...
0
votes
1answer
354 views

How to redirect a packet to localhost in pf?

I am trying to redirect packets that are going to internal network to localhost of firewall. I wrote this rule but it doesn't work. int_net = "{10.0.0.0/24}" ext_if = "{igb0}" int_if = "{igb1}" rdr ...
4
votes
1answer
251 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 ...
3
votes
1answer
580 views

Should pam_mkhomedir go in /etc/pam.d/login , sshd or system-auth?

I want to enable pam_mkhomedir.so for users who authenticate to our system. I want a user's home directory to be created when they SSH into the box. One common convention seems to be to put ...
0
votes
0answers
94 views

FreeBSD drops connection on file upload

Very strange error, first I thought it related to PHP settings or nginx (both have all proper settings up to 1G limits and all timeouts are properly set), but then I checked with Ruby (Sinatra), and ...
3
votes
3answers
2k views

Command to output panic/reboot history in FreeBSD

Many years ago while dealing with a FreeBSD (5.3?) box that randomly panic'ed and reboot (bad memory as it turned out), I came across a command in some forum post that when used would output ...
1
vote
1answer
157 views

Puppet agent on FreeBSD skipping runs

I am experimenting with puppet and we are using FreeBSD on some servers. I noticed that the agent on the FreeBSD is for some reason skipping runs, i.e.: May 6 09:19:15 eagle puppet-agent[66970]: ...
0
votes
1answer
541 views

Netstat doesn't work on FreeBSD by php function exec()

In my php-app I need the list of all IP's connected on port 80. I've chosen to do it this way: <?php $ips = exec("netstat -an |grep 'tcp\|udp' | awk '{print $5}' | cut -d: -f1 | sort | uniq ...
1
vote
1answer
342 views

blocking packets for a non established connection on freebsd pf

For a freebsd pf firewall; I want it to block packets for non established connections. For example , the attacker should not send Reset packets for an unknown not-yet-established connection. In Linux ...
3
votes
1answer
748 views

100% kernel load on FreeBSD 9

I'm having problems with a FreeBSD 9 server. One of the 8 cores (4 w/ HT) is constantly at 100% kernel load. top gives me: CPU: 0.0% user, 0.0% nice, 12.5% system, 0.0% interrupt, 87.5% idle ...
5
votes
1answer
1k views

FreeBSD IP aliases in different subnets and default outgoing IP address

I have a FreeBSD VPS that until recently had assigned 3 public ip addresses in a /29 subnet. When making outgoing connections, the IP address used was always the non aliased one ".20", however now I ...
2
votes
1answer
365 views

ZFS configuration opinions [closed]

Currently, I'm tasked with progressively building a ZFS store. IOPS are not the priority, data security and capacity are. In essence what we have is one brute of a machine, that contains an OS ...
4
votes
1answer
301 views

How does broadcasting work on a server with multiple IPs?

Say you have two dhcp servers, A and B. Server A has two IP addresses, 10.0.0.1 and 10.0.0.2. Server B has one IP address, 10.0.0.3. Server A has two instances of isc-dhcp running, one specifying a ...
1
vote
1answer
497 views

Safely migrate from 3ware 9650SE-8LPML to a 3ware SAS 9750-8i?

I have a server with a potenially faulty 3ware 9650SE-8LPML. I can log in to the server but the interface keeps reseting causing the whole system to lock down for minutes. My host suspects its the ...
1
vote
1answer
544 views

exim virtual domains vs main domain - rewriting rules

I currently have two servers first.mydomain.com (ip:A.B.C.28) and second.mydomain.com (ip:A.B.C.30) Both servers have DNS and reverse dns entries, e.g. A.B.C.30 -> second.mydomain.com The ...
2
votes
2answers
466 views

How much does FreeBSD differ from Linux?

I was trying to setup a NAS box for my ESXi server using linux, I was going to install ZFS and iSCSI and I thought everything was going to be awesome. I was wrong... ZFS on Linux is not the most ...
0
votes
1answer
124 views

obtain the MAC Address/interface name from GUI on FreeBSD?

Is there any way I can obtain the MAC Address/interface name from GUI on FreeBSD? Are there any system calls to do that? I was searching everywhere but couldn't find any information. Can you please ...
1
vote
1answer
122 views

ProFTPD permissions in FreeBSD 9

I'm currently administrating a FreeBSD 9 server with multiple sites hosted. For example: example1.com example2.com example3.com I need to grant read/write permissions to developers so they will be ...
1
vote
1answer
203 views

natd redirect_port didn't work

I have an virtual box freebsd 9.0 installation, on which I have working moinmoin2.0. Moin works on 127.0.0.1:8080 and I want to get access by external IP, e.g. 192.168.1.145:80. I try to use the ...
0
votes
1answer
345 views

Increase size of multiple FreeBSD slices

I have a KVM virual machine running FreeBSD 9.1, with a typical one-partition layout with slices for swap, /, /tmp, /var, /usr. Now I need to upgrade that virtual server, beside others to a larger ...
2
votes
1answer
746 views

FreeBSD Nic Setup - Dual NICs with lagg

I have a server running FreeBSD 9.0. It has two NICs using the igb network drivers. I was given a range of IPs, for example's sake I'm just going to make up some IP addresses, so let's say ...
1
vote
1answer
271 views

Why are nginx configuration files read-only on FreeBSD?

After installing Nginx on FreeBSD 8.3 from ports, the configuration files in /usr/local/etc/nginx all have read-only permissions. Is there a reason for this? Am I not supposed to edit them? Or can I ...
4
votes
1answer
225 views

Supress FreeBSD “link down: cable prοblem?” messages

I have a FreeBSD lab machine that is regularly connected and disconnected from the network, sometimes to borrow the port temporarily for another machine and other times to test the ability of certain ...
0
votes
1answer
373 views

ZFS import pool ahcich0: timeout (NanoBSD 8.2 -> 9.1)

Many times when I had to make changes to the system, I boot from the USB drive to the new build NanoBSD then import the pool to the system. In the transition from 8.2 to 9.1, I do the same - boot from ...
1
vote
1answer
175 views

ezjail-admin update -i can't create tank/ezjail/basejail

I updated the server FreeBSD 8.2-p10 amd64 to 9.1-p1 amd64, and I want to update jails started ezjail. I downloaded the source, built the world and run the command: ezjail-admin update -i but got ...
0
votes
1answer
185 views

Memory leak in flow_fanout flow_capture. And strange ip in flow_capture output

On my freebsd box: #uname -rimp 9.1-STABLE amd64 amd64 GENERIC flow_tools: > pkg_info -x flow Information for flow-tools-0.68_7: Comment: Suite of tools and library to work with netflow data ...
0
votes
1answer
167 views

Changing WebServer to use BSD Jails

I'm thinking of changing my web server so that Apache (and all of django web apps) run inside of a jail rather then on my host machine. I want to make this change for two reasons, the first and ...
0
votes
1answer
614 views

Protect webmin access with username/password [closed]

I just installed webmin in my FreeBSD box, now it can be accessed as http://my-ip.com:10000, When I enter that address in browser I can see the login page of webmin directly. I want to have some ...
0
votes
1answer
2k views

freebsd pf squid transparent

I have broken my brain dealing with this. Squid was built from ports /usr/ports/www/squid32 with PF_TP enabled. I have internet but strangely it bypasses squid. Obviously, squid logs are empty. I ...
3
votes
2answers
2k views

FreeBSD 9.1; bridge0 and default gateway issue

I've got a FreeBSD 9.1-RELEASE-p1 system with three nics, I'm using: igb0, sfxge1 and sfxge2. igb0 used for internet access and is default gateway. Other two nics, I need to use to create bridge0. ...
2
votes
1answer
787 views

FreeBSD 2 network cards

We have server with 2 network cards with FreeBSD on it. 1 card used for internet (works fine) and another one for local network connection (to 192.168.227.0/24 net). When i try to ping gateway of ...
2
votes
3answers
1k views

Snort Based Firewall

I have not worked with SNORT much or done too much research on this but it sounds possible. If I setup a server and run snort on it. Would it then be possible to route ALL my traffic through it like ...
1
vote
1answer
195 views

Rsync Backup from XFS to ZFS

I currently have a backup solution in place that uses rsync to backup all out Linux servers from remote sites, to an XFS drive in our HQ. I am now trying to rsync the folder from the XFS drive in our ...
3
votes
1answer
4k views

Binary zone file on BIND9

Binary Zone File Problem (FREEBSD) DNS Master transfered zone file to slave But I cannot read zone file less db.example.com "db.example.com "may be a binary file. See it anyway? This happend ...
6
votes
1answer
1k views

FreeBSD Jail with Loopback IP, IPFW, and natd - Outbound connections fail from jail

I've got a FreeBSD 9.0 server. It has several jails, but they all have this same issue. They can not initiate connections to the outside world. They communicate with each other and the host fine. ...
2
votes
3answers
572 views

Shared authentication across FreeBSD Jails

I am using FreeBSD with ZFS to run several jails. For jail management I'm using ezjail, and I have a template jail which I use for provisioning. I want to share passwd, groups, and authentication ...
1
vote
1answer
370 views

How do I confirm that nginx aio is working on FreeBSD?

I have nginx configured with aio on; and no special prep on the OS side. I tested loading lots of small jpegs from multiple clients, but there was not much of a different between aio on and aio ...
6
votes
2answers
511 views

Freebsd Secondary Group not allowing folder deletion

TLDR: I have a user that is a member to a group as a secondary group. This user can delete files with 664 perms as a secondary user, but not directories with perms of 775. Details: I have a user. ...
0
votes
2answers
367 views

FreeBSD rc.d scripts do not return to proper shell

My interesting problem is that when running some rc.d scripts they do not actually drop back to the root shell, but leave me at an intermediate shell as the user they're supposed to be running as. A ...
3
votes
1answer
93 views

Is it possible to update a package w/out rebuilding it from /usr/ports on FreeBSD?

I'm running FreeBSD: # uname -a FreeBSD f9.XXX.org 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 12 02:52:29 UTC 2012 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 # ...
0
votes
2answers
1k views

Force sendmail to ignore local domain when sending mail (FreeBSD)

I send mail using PHP. Everything works good until I send mail to domain (@example.com) which I have in /etc/rc.conf >> hostname="box.example.com". I guess sendmail catches mail for this domain (even ...
3
votes
1answer
800 views

Segfault PHP-FPM, Nginx, Freebsd

We are experiencing CPU shortage at high-load. It only happens at some point when online users are around 1300-1400 (according google analytics). We are receiving Empty Response in browser. It seems ...
5
votes
2answers
2k views

OpenVPN - client-to-client traffic working in one direction but not the other

I have the following VPN configuration: +------------+ +------------+ +------------+ | outpost |----------------| kino |----------------| guchuko | ...
1
vote
1answer
255 views

freebsd iso install on KVM - timer freezes

Trying to boot freebsd iso on KVM/libvirt [debian host] Timer shows: 10 sometimes is 9 or even 7. and that's it, count down stops.. Found some information that it's a bug with newest qemu and my ...
2
votes
1answer
2k views

Freebsd: How to change default shell?

The default shell in freebsd is SH and I really can't stand it: autocomplete is very limited, and rehash commands kill me. I feel like a one armed and one legged man... How can I change the shell ...
1
vote
1answer
70 views

How to suppress compilation output when using ports in FreeBSD?

Is it possible to configure the FreeBSD ports system to suppress the compilation output (like brew does in OS X)? The output is mostly useless for me and can be a waste of bandwidth (when working over ...
2
votes
2answers
685 views

understanding disk space on ec2 freebsd instance

So I probably lack some basic fundamental understanding when it comes to unix drives. On amazon-ec2, I just created an instance where I specified the root device to be 30 GB. If I goto volumes I see ...