Hot answers tagged

14 votes

Should I create ZFS zpools with whole disks or partitions?

Use one slice/partition dedicated for ZFS per physical disc and leave some space left unpartitioned. That way if you ever need to replace a drive and the replacement is 10 sectors smaller, you'll ...
user avatar
  • 289
13 votes
Accepted

BSD nc (netcat) does not terminate on EOF

I, too, was puzzled by netcat's behavior, so I dug into the code. Here's the whole story: nc servers (nc -l) and clients only exit after the mutual connection was closed. That is, if each of the ...
user avatar
  • 245
13 votes
Accepted

Should I create ZFS zpools with whole disks or partitions?

It's better to use whole-disks with ZFS, when possible. There's no need to partition in your use case.
user avatar
  • 195k
8 votes
Accepted

Install Java 9, 10, 11, or 12 on FreeBSD 11.1

Java 11 & 12 OpenJDK 11 and 12 can now be found in the Ports tree. See: java/openjdk11 java/openjdk12 An effort is underway to see future versions of OpenJDK for FreeBSD regularly made ...
user avatar
  • 319
6 votes

What is the OS X / BSD equivalent of the GNU "ps auxf" command?

Htop is also a really good process viewer, and it has "tree" view as one of it's main options in the lower status bar (F5).
user avatar
  • 161
5 votes
Accepted

Resize zfs pool

camcontrol reprobe da0 will reprobe. after that I only needed: zpool online -e tank da0
user avatar
  • 289
4 votes

Symbolic Links and Multiple Mount Points

Alright... Let's attempt an answer to this question. The setup and master/skeleton directories The "root" directory of the jail system is /home/j. It contains 3+ subdirectories: /home/j/ |- ...
user avatar
  • 5,527
4 votes

BSD nc (netcat) does not terminate on EOF

nc establishes a bi-directional connection. I.e. it sends stdin from host B to host A as well as the desired one from A to B. Use -d on host B to ignore stdin. -N on host A is still needed to close ...
user avatar
  • 283
4 votes

FreeBSD 10 won't boot to ZFS root after power failure

Ok, never mind what I said in my other answer. You won't be able to boot into single-user mode if you are having problems with ZFS partitions anyway. What's funny is after I posted my answer, I had a ...
user avatar
  • 61
4 votes

Setting up a FreeBSD Server for packet filtering and routing

Unless you already have a deep knowledge of BSD networking, your best bet is to install pfSense on a VM and use that for your routing/firewalling tasks. pfSense is based on FreeBSD, and is a very, ...
user avatar
  • 108k
3 votes

What is the alternative to ls --time-style=full-iso in BSD?

I know this is an old question, but if you're on OS X you can install coreutils to get the GNU version of ls, which includes the --time-style option: brew install coreutils Note that by default the ...
user avatar
  • 151
3 votes
Accepted

How to force Apache to skip binding to failed interface?

If you want Apache to listen on all IP addresses assigned to the machine you can simply specify a bind directive without any IP address, for example: Listen 80 If you need to bind to only a subset ...
user avatar
  • 29.8k
3 votes
Accepted

Where is Apache's 000-default.conf in FreeBSD?

You probably mean sites-enabled/000-default Virtual Host, like in many Linux distributions. There isn't one. In FreeBSD, as described in the handbook, VirtualHosts are configured directly in /usr/...
user avatar
  • 43.1k
3 votes
Accepted

Using bash shell when logging into FreeBSD ssh

If you simplify your command line, the shell likely won't matter. This should likely work ssh </some/filelist -i /home/user/.ssh/some_key user@freebsd11 xargs -n 1 stat -f \"%N;%c;%m\" | sort ...
user avatar
3 votes

What is the OS X / BSD equivalent of the GNU "ps auxf" command?

So far I don't believe OSX has a built in that does this. But here's an answer I posted on stackexchange as well; a small perl script that determines the process hierarchy and prints it in an ...
user avatar
3 votes

netcat -e: the GAPING_SECURITY_HOLE

While I've no definitive answer, I believe the gaping security hole is only present if your nc has -e enabled and is setuid root. (As nc is often used to bind to ports, it might be packaged setuid ...
user avatar
  • 131
2 votes

FreeBSD 10 won't boot to ZFS root after power failure

Have you tried booting into single-user mode and force mount ZFS partitions? # zfs mount -a I've experienced a power failure on my FreeBSD 10 (which is also Root-on-ZFS) and I managed to get it to ...
user avatar
  • 61
2 votes

Layer 3 routing based on HTTP packet content

The problem I see here is that you have to accept the TCP connection before you get to see the http request. So even if the system could use application level data it would not have that data at the ...
user avatar
  • 4,036
2 votes
Accepted

Layer 3 routing based on HTTP packet content

For BSD i would look into relayd(8) - its native to OpenBSD, but i believe FreeBSD has a port too. It is quite powerful and can do more than a few things (ex., proxy, load balancer, application ...
user avatar
  • 693
2 votes

What's a good choice for a general-purpose "non-advanced" filesystem with Linux R/W and Windows/BSD R/O support?

If you can work within the constraints, vfat (fat32) may actually be the most compatible.
user avatar
2 votes

Using bash shell when logging into FreeBSD ssh

Use ansible. You don't need to add any additional software on the target machines and, arguably, it simplifies what you need to do. ansible uses standard ssh to connect to the machines, sudo, pfexec ...
user avatar
  • 14.9k
2 votes
Accepted

How do you expand /var in pfsense when you run it in memory?

It's right there in front of your nose. :) Generally speaking, though, you should limit the amount of data you're storing on your pfsense instance. For logs, ship them off to another loghost for ...
user avatar
  • 108k
2 votes

Should I create ZFS zpools with whole disks or partitions?

People here claim you need to use whole disks to get disk write cache advantages, but that's not true. What is true is that ZFS will try to enable the disk write cache for you if you give it the whole ...
user avatar
  • 789
2 votes

Copy/Snyc files with extended attributes between Linux and BSD

Tar is probably your best bet, as you aren't running ZFS on the Linux box. Otherwise you could probably just zfs send/recv. But you can skip the temporary tarball and simply send the data in one shot:...
user avatar
1 vote
Accepted

During OpenBSD installation, what is "DNS domain name" for?

It wants to know the domain name of the system, so that it can pair that with the hostname to come up with the system's full-qualified domain name (FQDN). See here. I'm guessing this is an ...
user avatar
1 vote

Should I create ZFS zpools with whole disks or partitions?

in my head this question arises because of doubt if i late can designate, what is on that disk... so when you create pool on whole drive (yes, with -f option, if needed), zpool practically create gpt ...
user avatar
1 vote

pf shortcuts for block quick

They are not. To be short, only two rules in the middle are valid, others are just a noise. from requires a pair of addresses and a to keyword, and the last rule is just a total nonense.
user avatar
  • 8,034
1 vote
Accepted

Default http proxy under FreeBSD

There's already an example of how to do this properly in the same file: :setenv=MAIL=/var/mail/$,BLOCKSIZE=K:\ you need to use the setenv setting, which can be a comma-separated list. :setenv=...
user avatar
  • 418
1 vote
Accepted

What operating system is used according to enclosed picture?

Weird question. It's probably FreeBSD, based on the /etc/devd and /etc/boot/zfs presence.
user avatar
  • 195k
1 vote

FreeBSD Jail own network stack with vimage

I'll dig up this bone for anyone who is curious. What I have done in the past is build a jail for each service I want isolated, and then ensure PF is running on the host (un-jailed). Then I can ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible