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
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
1 answer
43 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
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 ...
1 vote
2 answers
625 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
570 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 ...
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
0 answers
57 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-...
1 vote
2 answers
3k 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
75 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
30 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
2 answers
4k 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
69 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
515 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 ...
6 votes
2 answers
28k 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
166 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
625 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
53k 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 ...
0 votes
0 answers
389 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
338 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
12k 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
9k 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 ...
1 vote
0 answers
302 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
556 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 ...
0 votes
0 answers
149 views

mysql_upgrade / mysql_check fails with unknown database; where are database names stored (capitalization inconsistency)?

Just upgraded my server machine from freebsd 11.4 to freebsd 12.4. Then ungraded the installed packages, in particular mysql57-server. The server is started from a particular user account. When I try ...
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....
27 votes
4 answers
33k 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
219 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 ...
3 votes
1 answer
818 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
50k 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
616 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
579 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 ...
13 votes
4 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
2 answers
3k 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 votes
3 answers
1k views

"su" does not work on FreeBSD

Below I sun "su" command on FreeBSD: FreeBSD rand.vstyle.local 9.0-RELEASE FreeBSD 9.0-RELEASE #0 amd64 This is server RAND :) [svn@rand ~]$ su logostudiotest1 /bin/ls Password: /bin/ls: /bin/ls: ...
4 votes
3 answers
2k views

FreeBSD 32bit to 64bit migration

I need to transfer my FreeBSD 7.0 i386 server to another hosting. I would like to also upgrade to the 64bit version (to eliminate 4GB memory limit). The server has common open source software: apache2,...
7 votes
3 answers
2k views

cpulimit for FreeBSD

Does any one know of an equivalent of the GNU/Linux utility cpulimit for FreeBSD? I'm not talking about process niceness or setting limits on a user account, but actually limiting the percentage of ...
0 votes
1 answer
411 views

PF firewall how to increase `max states per rule`

My firewall is hitting a problem related to max states per rule. # pfctl -vvsi Status: Enabled for 0 days 13:05:38 Debug: Urgent Hostid: 0x6556c6a9 Checksum: ...
0 votes
1 answer
3k views

Having trouble with tcp mode on HAProxy running on OPNsense

I'm trying to setup HAProxy to do simple tcp passthrough to different backends based on SNI. However, I have serious issues on my clients if I do so: Firefox: PR_END_OF_FILE_ERROR Brave/Chrome/Safari:...
0 votes
1 answer
2k views

One domain on Apache goes to default page without www

I'm using Apache/2.4.16 on FreeBSD 10.2. I have two instances of Apache running, each serving several domain names. The server has two network interfaces, one for the public Internet, one only ...
0 votes
1 answer
242 views

jackett pkg outdated. is it possible to manually install the latest update?

The pkg and port listed for Jackett on FreeBSD is Version v0.20.989 however, the most up to date version is v0.20.2189. This version difference is causing some of my trackers to fail and will not ...
0 votes
1 answer
1k views

How to get access to Icinga on Apache 2.4?

I am trying to install Icinga on a FreeBSD 9.1 box with Apache 2.4. I use the Apache config which was provided with the Icinga port. But when i try to access the web frontend, i get the following ...
0 votes
1 answer
462 views

Memory errors in dmesg, do I need to replace a DIMM?

The following errors show up in dmesg 10-20 times per day: MCA: Bank 5, Status 0x8c00004000010092 MCA: Global Cap 0x0000000001000c10, Status 0x0000000000000000 MCA: Vendor "GenuineIntel", ID ...
2 votes
2 answers
1k views

Redirection with natd flags on FreeBSD

I am trying to setup a basic NAT server. I want all traffic coming from the outside world to the NAT server to be redirected to another machine, where I have a lipcap service running to parse this ...
1 vote
1 answer
2k views

Setting enviromental variables for login shells under root account in FreeBSD

I am currently in the process of configuring Open Grid Scheduler in FreeBSD. As part of this process I need to set the environmental variableSGE_ROOTas root. To do this I have been experimenting with ...
0 votes
1 answer
237 views

How to efficiently backup shares (ZFS). Folder structure might change but media usually do not

The Issue: I have 18 large shares (each 24TBs), that contain lots of big media files. Mostly the media files themselves stay untouched. However, sometimes the folder structure changes, and thus my ...
1 vote
1 answer
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 ...

1
2 3 4 5
31