Skip to main content

Questions tagged [freebsd]

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, and userland utilities such as shells.

Filter by
Sorted by
Tagged with
0 votes
1 answer
1k views

Setting up SSH so that FreeNAS can connect to a Mac without a password

I would like to send a ZFS dataset to a Mac running OpenZFS. I have been able to replicate a FreeNAS dataset to a Mac running OpenZFS using the terminal. I did this using SSH password authentication. ...
1 vote
1 answer
41 views

FreeBSD process group membership not respected

Here's what I do: I let Exim deliver an email using a pipe transport for a dovecot-lda process. This process is running as user/group jdoe:jdoe. (I checked this twice using a self-written wrapper and ...
0 votes
1 answer
76 views

Testing mail-server with mxtoolbox -- SMTP connection time over 5 seconds?

We're having intermittent problems receiving e-mails from one company, and their side are pointing out, that our server takes just over 5 seconds to respond to incoming SMTP connections, whereas their ...
1 vote
0 answers
34 views

Not able to compile PG16 with custom flags in freebsd 14.1 - GCC fatal error cannot read spec file

Hi everyone I am trying to install Postgresql 16 on my freebsd 14.1 hosted in an ec2 machine on AWS. I am using GCC13 to compile the binaries and I keep on running into gcc13: fatal error: cannot read ...
1 vote
2 answers
6k views

Offloading PPPoE from an OPNsense router

I'm running opnSense, a FreeBSD-based firewall and router similar to pfSense, in a virtual machine under VMware ESXi 7 on a Dell PowerEdge R230, as a router for my home network. No other VMs are ...
1 vote
1 answer
53 views

zfs, possibly bad performance

I am looking to confirm if this behaviour is normal as I got a new server and I am testing some SQL queries and they seem to be slightly slower than on the old machine. This is freebsd 14.1 When I ...
20 votes
6 answers
53k 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
0 answers
239 views

How to restore NTFS partition table in FreeBSD

I accidentally deleted my partition table on my old disk through: gpart delete -i ada3 gpart destroy ada3 Which contains all files on it. How can restore these data on this disk? I tried testdisk, ...
4 votes
0 answers
222 views

How can I stop FreeNAS from assigning two disks from different SATA controllers the same device number?

I have FreeNAS running in a VM in XCP-NG. I’ve followed the guides and I’ve dedicated a SATA controller to it using PCI-passthrough. FreeNAS correctly discovers its boot disk, which is virtual, and ...
3 votes
0 answers
265 views

libnss-mysql on FreeBSD 10.1

I have libnss-mysql installed on a FreeBSD system version 10.1. Everything works except the groups command. getent group – OK # getent group ....... froxlorlocal:*:1003:www ⟵ data ...
2 votes
1 answer
3k views

Running Shell Script without a Password Prompt

I have a shell script that runs on a FreeBSD machine. The script has some commands that needs superuser privileges. I’m executing the script remotely and it’s skipping the sudo’d commands. I tried the ...
2 votes
1 answer
767 views

Docker on FreeBSD version 11

I am trying to build a Python application on FreeBSD 11 and Docker. I have installed Docker as per instructions found in the FreeBSD wiki and all seems to work fine. My Dockerfile looks like: FROM ...
2 votes
1 answer
489 views

BSD route(8) MAN page bug

http://www.freebsd.org/cgi/man.cgi?query=route Route is a utility used to manually manipulate the network routing tables. It normally is not needed, as a system routing table management ...
0 votes
0 answers
28 views

Do swapped-out processes ever resurrect?

Such processes are always 4096 bytes in size (top's RES column), the SIZE column remains whatever it was normally. It's interesting that such processes' start time in ps is displayed as a hyphen (-) ...
1 vote
2 answers
3k views

Which processes are swapped out?

Is there a way to easily find exactly which processes are currently "swapped out" (i.e. currently taking up my swap space). I know that processes are dynamically swapped in and out as needed, but I'...
0 votes
0 answers
95 views

Python Application on Kamatera Server Keeps Dying and Hanging

I'm running a Python application on a Kamatera server with FreeBSD 14, using supervisord for automatic restarts. The supervisord config is as follows: [program:reactivebb] command=poetry run python3....
0 votes
1 answer
53 views

OpenVPN: can't reach client network from server

I have two servers, beta and alpha; beta is an OpenVPN server. Both runs FreeBSD. Both runs jails. OpenVPN network is 192.168.25.0/24. Beta's network for jails is 192.168.24.0/24. Alpha's one is 192....
6 votes
2 answers
5k views

FreeBSD top: meaning of "state" column

When running top interactively, I can see various words in the state column : nanslp, biord, select, uwait, lockf, pause, kqread, piperd, sbwait ... Some like nanslp or kqread are self explanatory, ...
5 votes
5 answers
11k views

ZFS backup advice with another server

I currently have two servers both have the exact same hardware, disks, etc. One server (server1) is going to be the "main" server. It's basically a server with raidz2 that has SMB shares on it that ...
6 votes
2 answers
4k views

How to grant su access to wheel without asking for password on FreeBSD?

I would like to grant users of the wheel group (other sysadmins) su access without being asked for password. I know how to do it with pam in linux, but the question now is for FreeBSD. I am not ...
0 votes
2 answers
6k views

Can't connect to a postgres server

I have a strange situation, I have created a second postgres server that will eventually become a slave to my current master, anyway for testing purposes I have currently installed postgres, and ...
3 votes
2 answers
8k views

FreeBSD: how to syncronize the system clock with the hardware clock in bash?

I am writing a script that synchronizes the system clock with the hardware clock (aka RTC, or CMOS clock) assuming that no Network Time Protocol (NTP) daemon is running. I am running in a virtual ...
3 votes
1 answer
5k views

FreeBSD VMware and CAM status: SCSI Status Error

I'm running a FreeBSD 10.1-RELEASE-p19 on a VPS (VMware). My ISP is experience a rapid data growth, and these messages spontaneous started to show up in our logs a week ago. Sep 25 09:00:50 srv03 ...
0 votes
0 answers
49 views

How to configure the networking on FreeBSD to assign the same IP between host and guest in order to make work CloudFlare Warp on FreeBSD

I've just installed the CloudFlare client on Ubuntu,that I have virtualized with bhyve. That's because it does not work on FreeBSD. The instructions that I have followed are located here : https://www....
0 votes
0 answers
65 views

sshuttle ssh_packet_write_poll error on pfsense

I’m trying to use sshuttle on pFsense CE OS and when I execute sshuttle -r *my_actual_username*@*my_actual_host* 0.0.0.0/0, following error shows up: client_loop: ssh_packet_write_poll: Connection to *...
6 votes
2 answers
3k views

What Emacs package should I install for command-line on FreeBSD?

I'm newbie on BSD. I installed FreeBSD with minimal configuration, so there's no package installed. I tried pkg_add -r emacs, the command tried installing many of X11 related packages (not sure, but ...
0 votes
2 answers
4k views

nss-pam-ldapd ldap group filtering

I'm attempting to setup authentication via ldap for OpenSSH connections on our FreeBSD servers in AWS. The actual ldap server is external to AWS and is accessed over the Internet. I've run into a ...
1 vote
1 answer
150 views

FreeBSD user has no permission on .ssh directory

I have a problem on FreeBSD 14.0 - the ~/.ssh/ directory is owned by me, but I can not access it as myself: $ ls -al .ssh ls: .: Permission denied ls: ..: Permission denied ls: authorized_keys: ...
31 votes
4 answers
36k views

Should I create ZFS zpools with whole disks or partitions?

I am making zpools on FreeBSD machine. While creating zpools I observe these two cases: If I take raw disks and create zpool then I am able to form zpools and they are working perfectly. If I format ...
0 votes
0 answers
32 views

Could not find a package configuration file provided by "PkgConf"

I'm trying to build a project using cmake I use command ccmake and below is the output : CMake Version 3.26.1 of the following names: PkgConfConfig.cmake pkgconf-config.cmake Add the ...
2 votes
5 answers
7k views

System-wide bashrc on FreeBSD

On linux there's usually a global bashrc file (/etc/bash.bashrc or /etc/bashrc). On FreeBSD however bash doesn't seem to support this feature. What's the best way to add a system-wide bashrc then?
3 votes
2 answers
3k views

OPNsense WAN failover causes disruption when non-active WAN is down

I have the latest version of OPNsense set up in a VM on ESXi 7. OPNsense is very similar to pfSense, and I suspect the solution would apply to both. All the NICs are PCI passthrough devices: A ...
13 votes
5 answers
3k views

Freebsd change default Internet channel route

I have two Internet channel and Gateway on freebsd. When I switch channel with the command route change default chan2, the command netstat -nr shows changed default route. But traceroute shows that ...
1 vote
1 answer
213 views

FreeBSD 13.2 install (boot) issues on a DELL PE R430 server hardware

I am a newbie FreeBSD user and I would like to install FreeBSD 13.2 on a DELL PowerEdge R430 server hardware. After downloading and booting from a bootable USB stick made from image "FreeBSD-13.2-...
-2 votes
1 answer
521 views

LSI MegaRAID 9240-4i & RAID1 (mirroring) on ZFS filesystem

Exist any incompatibility between an existing virtual drive created on LSI MegaRAID 9240-4i SAS/SATA Controller with RAID1 and the ZFS filesystem? I tried to make mirror(2xSATA HDD 300Gb) on freebsd ...
0 votes
0 answers
66 views

FreeBSD ZFS raidz1 Started a (da59) drive replacement. During resilver, second drive (da60) failed

Our system started slowing down... Found a couple of drives in the same raid that looked scary. Replaced the drive that S.M.A.R.T. marked as failure eminent. (da59) Then da60 started to error. Finally ...
-1 votes
1 answer
133 views

Best GPU to get for encoding / decoding multiple video streams and files? [closed]

I need to encode / decode multiple videos (both live and pre-recorded video files) at the same time but I'm not sure which GPU to get. I'll be using ffmpeg for the video manipulation. Ideally I'd like ...
0 votes
2 answers
222 views

Why ssh-keygen & ssh-copy-id create files with incorrect permissions

I have a FreeBSD host (sh) that I just set up last week, and it is doing these two weird things that seem to be related: ssh-keygen ON this host is creating both private and pub keys with 775 file ...
1 vote
1 answer
3k views

userauth_pubkey: signature algorithm ssh-rsa not in PubkeyAcceptedAlgorithms after upgrade of OpenSSH

After an upgrade I can no longer log in to my box (FreeBSD 14.0) using RSA key getting: userauth_pubkey: signature algorithm ssh-rsa not in PubkeyAcceptedAlgorithms in /var/logs/auth.log on every ...
12 votes
0 answers
725 views

How much does FreeBSD accept_filter actually improve performance in a modern world?

I recently learned about FreeBSD's accept_filter socket option which can allow a worker process to avoid context switching by, for example, waiting until a full HTTP request is received with accf_http:...
3 votes
1 answer
3k views

How to find the download URL of a specific package/port in FreeBSD's repository?

I'm trying to find the full URL for downloading the Emby Server .txz package from FreeBSD repository, but I got no luck finding it on any search engines. Farther I went was this FreeBSD repository ...
0 votes
1 answer
86 views

Can't exclude a specific message from a remote logging

I manage logs FreeBSD 13.2 via syslog-ng. The current syslog-ng config has some lines to send data to a remote server (Debian 10 - 192.168.0.2:3000). destination lc_net { tcp("192.168.0.2" ...
3 votes
3 answers
379 views

FreeBSD - Is it possible to create a clone of a snapshot in a different disk for improved performance?

I am a new to FreeBSD and want to make a virtual disk service via iSCSI. I create snapshots of a dataset on the same disks, however I would like to create clones on a different disk like a NVMe drive ...
0 votes
0 answers
45 views

Bash script error when trying to create a snapshot

I am trying to create a snapshot using Bash script as below but error occurred. Environment: FreeBSD, Version: 13.2, Script: Bash #!/usr/local/bin/bash name="17102023_1234" zfs snapshot data/...
13 votes
1 answer
14k views

How do I disable hard disk spin down or head parking in FreeBSD?

I have built a new FreeBSD file server with multiple HDDs. I found whenever the disks are not accessed for a while, the disks would spin down completely or park its head. How do I disable HDD spin ...
2 votes
1 answer
2k views

FreeBSD 10.3 SSSD AD integration issues

I'm having a lot of issues with FreeBSD 10.3 I'm finding the binary packages are fairly useless. I've had to build nearly everything to make things "work". I like using the adcli tool to join to a ...
0 votes
1 answer
339 views

Logging Source IP of SMB Login Attempts

We have an TrueNAS System running TrueNAS-13.0-U5.3. It is bound to Active Directory and used solely for SMB file sharing. Recently there have been periodic event where SMB service quality is degraded ...
1 vote
1 answer
2k views

FreeBSD 10 guest on qemu/kvm CentOS 7 host

I'm trying to install FreeBSD 10 on CentOS host without using graphics (using only serial console). I've tried: # virt-install -n freebsd-a -r 512 --vcpus=1 --os-variant=freebsd10.0 --graphics none -...
2 votes
2 answers
2k views

How to pass environment variables with FreeBSD service command?

The rc.subr ${name}_env specifies this for setting environment variable: ${name}_env A list of environment variables to run command with. This will be passed as arguments to ...
9 votes
1 answer
1k views

Finding which process is reading from disk constantly on FreeBSD

EDIT: This ended up being a scrub process. Run zpool status -v and read the scan status for your pool clearly. I have a TrueNAS server running FreeBSD and this morning at 12 AM the disks started to be ...

1
2 3 4 5
32