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
1 vote
2 answers
5k 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 ...
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?
2 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
2k 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
149 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
507 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
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 ...
0 votes
0 answers
59 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 ...
0 votes
1 answer
74 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
116 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 ...
4 votes
2 answers
5k views

top process state column under FreeBSD

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, ...
0 votes
1 answer
258 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 ...
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 ...
12 votes
0 answers
656 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
56 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
342 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
40 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/...
12 votes
1 answer
13k 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
194 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 -...
1 vote
2 answers
1k 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
783 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 vote
2 answers
4k views

How can I check the partition name in FreeBSD?

I am currently running my server in the rescue mode, due to the firewall issues. In order to disable the firewall thing I would have to mount the / partition. My problem is that I dont know/remember ...
0 votes
0 answers
400 views

Why does this traffic selector not match?

(Note: I'm really using pfSense, but I'm just going to focus on the ipsec.conf files, since pfSense doesn't seem particularly relevant to the issue.) We're getting the following error from charon: Aug ...
1 vote
0 answers
51 views

FreeBSD Local Smart Card Auth Only

I'm trying to figure out how to configure a FreeBSD CLI installation to only allow authentication via X.509 certificates. I'm not talking about SSH, I'm talking about locally in front of the server. I'...
1 vote
1 answer
127 views

Is it possible to migrate a password file from FreeBSD to Linux?

Moving from a FreeBSD server to Ubuntu. I copied the /etc/passwd file across with no problems, but hand-copying one of the hashes from /etc/master.passwd (FreeBSD) to /etc/shadow (Linux) didn't seem ...
0 votes
1 answer
1k views

Understanding Samba VFS Operations for Full Audit

We have a TrueNAS System running TrueNAS-12.0-U8 for which we are required to log all successful and all failed file access attempts for a specific SMB share. The Samba version is 4.13. Per guidance ...
7 votes
2 answers
30k views

How often should I defrag ZFS pools?

I ZFS scrub once a month which takes ~24 hours for the 72TB. For what I can find about how often I should scrub is: very busy pools, once per week not so busy pools, once per month or run a scrub, ...
0 votes
1 answer
315 views

Frequent server downtime and suspicious server hits to access random Pdf files

Our Server hosting PHP web application is facing frequent downtime Server Information [Nginx, FreeBSD] Web application [PHP 5.6, MYsql 5.7] I have gone through the Nginx logs and below are my findings ...
0 votes
1 answer
662 views

How to hide/remove original source IP address when using OpenSMTPD?

I'm trying to figure out how to remove/hide the originating source IP address of every mail being sent using OpenSMTPD? To do the equivalent in postfix, it would be: http://integer13.wordpress.com/...
4 votes
5 answers
57k views

How to increase /var directory size?

First question: When I run df -h I can see this: # df -h Filesystem Size Used Avail Capacity Mounted on /dev/ad4s1a 9.7G 8.0G 918M 90% / devfs 1.0K 1.0K 0B ...
1 vote
0 answers
491 views

100 concurrent requests to a Django-App with Gunicorn lead to "54: Connection reset by peer" and 502's

I'm hosting a Django-App which serves as an API-Endpoint. Unfortunately the App which uses the API does a lot of concurrent requests on page-load (in the realm of 80-90 requests). Nginx is running as ...
2 votes
2 answers
3k views

FreeBSD pf with NFS

I'm having trouble establishing new NFS connections when my pf is turned on. When I turn off pf on the server and client I'm able to mount with no trouble. I tried keep state and flags S/SA on the ...
0 votes
1 answer
601 views

When running a python script as a service, I get module not found

I have a small script that uses flask to listen to API requests and forwards them to Home Assistant and InfluxDB. It currently has a dummy name, "script.py" and is placed in /usr/local/bin. ...
0 votes
2 answers
6k views

proftpd overwrite permission denied ftp user

I have a freebsd server with proftpd installed. When I chmod 777 the directory I can overwrite files, but using 755 permissions on the folder I can not overwrite files in the folder. In the conf file:...
6 votes
3 answers
13k views

ZFS on enterprise RAID pass-through, and ZFS on FreeBSD root

We've been running ZFS on top of a single hardware RAID on dell poweredge for years. I know most people are against this, but the snapshot/clone, compression and flexible partition of ZFS served us ...
3 votes
5 answers
11k views

Get list of users in a group in FreeBSD

How to get a list of usernames assigned to a group in FreeBSD 11.1? This Question asks for a list of users or a list of groups. This Question asks for users who happen to be members of multiple ...
3 votes
0 answers
611 views

Does Nginx aio work with linux?

We have a VOD service and we are using nginx as webserver. Our system doesn't use nginx-vod-module instead it just has all the small m4s files for a dash stream. I came across this article(Thread ...
2 votes
2 answers
4k views

PF: Block all, but one subnet firewall rule?

I'm trying to do something that I thought would be relatively simple: Block all the traffic to a test server, other than my company's subnet. I've tried things along these lines (111.111.0.0 is my ...
2 votes
1 answer
655 views

OVH IPv6 on ESXi -> pfSense -> VM setup

Currently setting up some VMs on an ESXi host on an OVH machine. I have two IPv4s on OVH including a virtual MAC address as needed by OVH. One IPv4 for the ESXi host itself, another one for the ...
1 vote
1 answer
10k views

How to move iocage jails from one ZFS pool to another?

What is the process to move iocage and all its jails from one ZFS pool to another? I've tried the process from this post: https://www.ixsystems.com/community/threads/how-to-move-jails-between-pools....
29 votes
4 answers
34k 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
2 answers
412 views

sfp and sfp28 compatibility

I have gotten a server which has "Broadcom 57454 10/25GbE SFP28 4-port OCP Ethernet Adapter" When I connect it to a switch port which is sfp the link status on the server is reported as ...
4 votes
1 answer
1k views

How to correctly escape single quotes in AWK

It isn't clear exactly what more needs to be escaped in the following macro to allow it to be used with awk or sed on FreeBSD. define(`RELAY_MAILER_ARGS', `TCP $h 2525')dnl Here is an awk command ...
19 votes
6 answers
52k 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? ...
3 votes
1 answer
879 views

How to Use /etc/hosts on FreeBSD 13.1

This is a plain vanilla fresh install of FreeBSD 13.1. The resolv.conf file is as follows and Unbound is not enabled. nameserver 192.0.2.1 DNS resolution on the local machine is ignoring /etc/hosts. ...
2 votes
1 answer
856 views

iperf3 errors and retransmissions on ESXi

When running iperf3 to test a 100G connection between a VMware ESXi box and a TrueNAS Core box, I'm seeing the following on the ESXi box: The message "iperf3: getsockopt - Function not ...
1 vote
2 answers
4k views

Where to find logs from Postgres 11.1 on FreeBSD 11.2?

Having built Postgres 11.1 on my FreeBSD 11.2 machine, where might I find the logs output from Postgres. Specifically, when attempting to start Postgres for the first time, I get an error message from ...

1
2 3 4 5
31