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 ...
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 ...
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.
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 ...
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).
5
votes
Accepted
Resize zfs pool
camcontrol reprobe da0
will reprobe. after that I only needed: zpool online -e tank da0
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/
|- ...
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 ...
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 ...
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, ...
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 ...
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 ...
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/...
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
...
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 ...
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 ...
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 ...
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 ...
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 ...
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.
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 ...
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 ...
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 ...
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:...
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 ...
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 ...
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.
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=...
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.
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
bsd × 105freebsd × 43
linux × 31
unix × 13
networking × 10
openbsd × 9
security × 7
mac-osx × 7
firewall × 6
zfs × 5
pf × 5
jail × 5
pfsense × 4
ssh × 3
debian × 3
performance × 3
filesystems × 3
nfs × 3
boot × 3
mysql × 2
apache-2.4 × 2
routing × 2
bash × 2
linux-networking × 2
postgresql × 2