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
1 answer
401 views

ifconfig fails because usb ethernet adapter is not ready yet on FreeBSD

I have an ethernet adapter connected via USB-C and its configuration in my /etc/rc.conf. On system startup the configuration fails because the usb stack is loaded after the configuration is initiated ...
1 vote
0 answers
158 views

Equivalent ipfw config for firewalld

On a system managed by firewalld it is possible to redirect incoming traffic on 443 to 8443 so the process listening doesn't have to run as root to bind to 443 which requires root. firewall-cmd --add-...
1 vote
3 answers
12k views

FreeBSD static routing set gateway to link

I am running FreeBSD 8.1 and configuring static routes. What is the route command to set the gateway to link#1 and not an IP address? I tried route add default link#1 but FreeBSD doesn't take it. ...
7 votes
3 answers
47k views

PAM_LDAP Authentication failure with correct credentials on freebsd

I need to get our freebsd servers to auth via AD, but it is giving me problems. Environment: AD backend (Win 2k8r2). This works with other linux hosts which auth via SSSD FreeBSD 9.1 for client ...
0 votes
1 answer
843 views

Scheduling a script execution with cron in a jail on FreeNas

I have a jail on my FreeNAS server containing Plex, and I have at the root of this jail a script called PMS_Updater.sh which checks if a new version of Plex is available and install it if it is the ...
1 vote
1 answer
1k views

How to configure file permissions for written files on my FreeBSD NFS server?

TLDR: When I copy a file from my macOS client to the FreeBSD NFS server, it's written with 777 permission and owned by 501:staff. In my example below, I want "license.properties" to be owned ...
8 votes
3 answers
7k views

What does zfs receive -F do?

When I read man zfs for zfs receive I see -F Force a rollback of the file system to the most recent snap- shot before performing the receive operation. If receiving an ...
1 vote
1 answer
411 views

How to reliably & portably serialize binary information into POSIX shell

Problem context I am trying to implement a job orchestrator whose agent/worker programs, connect to machines via an SSH session/shell. I would like to transfer (potentially binary) files to these ...
5 votes
2 answers
5k views

How to block MAC address in pf firewall

I want to block particular MAC address on PF firewall. I know PF firewall works on the Layer 3 i.e it operates on the IP addresses rather than MAC address.But is there any way to block the MAC address ...
1 vote
1 answer
8k views

How to Install (nic) drivers on TrueNAS

How can one update a network card driver on TrueNAS 12.0? My nic is on the motherboard directly it's a Intel Motherboard DH55HC, the NIC is 82578DC gigabit enabled. I've found the driver directly at ...
13 votes
3 answers
2k views

Bare metal or virtualize?

I am looking to upgrade servers and am trying to figure out a good plan. We currently have 4 servers: OpenBSD firewall/VPN server FreeNAS backup servers (local) that receives ZFS snapshots FreeNAS ...
1 vote
0 answers
520 views

Can't get Wireguard running on Freebsd to ping

I have a Freebsd installation running VirtualBox on my local LAN behind NAT trying to connect out to a Scaleway VPS running Ubuntu 20.04. Using Debian 10 the VPN connects just find and I can ping all ...
1 vote
1 answer
479 views

How to configure FreeBSD to reject configuration options in the ports tree that have graphical dependencies?

I have a couple of personal-use servers on which I would like to prevent the unnecessary installation of X11, Wayland, or any other unnecessary GUI dependencies. Is there a way to configure my ...
1 vote
2 answers
3k views

Exim4 Configuration of Maildir Delivery

Documentation online is rather sparse on how to go about configuring Exim4 to use the Maildir delivery method instead of the default mbox format. This is on a FreeBSD system with Exim4 compiled from ...
0 votes
1 answer
143 views

"service my_service stop" is deemed an error whenever a service is in the "stopped" condition already. How to move on despite an error?

I have a bunch of bash commands that are run via ssh: #!/bin/bash CMD=" set -e cmd1 cmd2 # ........ service my_service stop # ......... # some commands here...... # ......... ...
0 votes
1 answer
114 views

freebsd packet filter match last digit of IP address

On my freebsd system I want to use port forwarding to distribute incoming traffic, based on the last digit of the source IP. The following works on linux with iptables: iptables -t nat -A ...
7 votes
2 answers
8k views

PXE Boot FreeBSD ISO from a Linux PXE server

I have a working PXE boot server running on CentOS 5.5 that works perfectly for any flavor of Linux. I'm trying to add FreeBSD to the install options as a ISO memdisk, but so far nothing is working ...
0 votes
0 answers
651 views

rsync broken pipe between two servers on different networks

I have two FreeBSD servers, both on different networks, with a firewall in between. I have no control over the firewall. Server 1: IP: 10.1.0.2 GW (firewall): 10.1.0.1 Server2: IP: ...
0 votes
0 answers
97 views

USB Drive at the same location on FreeBSD

I have a number of USB drives that are attached to a FreeNAS server. These are then used as offline backup targets. One problem is that the order that the drives are plugged into matters. On a Linux ...
7 votes
3 answers
3k views

FreeBSD server - certified compatible hardware? [closed]

I am looking for recommendations for hardware that is "certified" with FreeBSD (8+) I suspect I am looking for a small server manufacturer that will build me a server that "just works". I have read ...
2 votes
0 answers
1k views

Why would I configure the /etc/networks file? [closed]

I'm playing with a FreeBSD VM. I'm more accustomed to Linux, which doesn't need /etc/networks as far as I'm aware. Nik Clayton's FreeBSD Network Administrators Guide says this about the /etc/networks ...
19 votes
6 answers
8k views

Backing up a MySQL database via ZFS snapshots

I've found a number of sites talking about doing exactly this, but I'm missing a few important details. The general steps are Run FLUSH TABLES WITH READ LOCK Take the ZFS snapshot Run UNLOCK TABLES ...
0 votes
0 answers
539 views

Cyrus-sasl config in Postfix in FreeBSD without dovecot

Good Afternoon, I have installed a Freebsd 12.1 with postfix and when trying to start see this in /var/log/maillog warning: SASL: Connect to /usr/local/lib/sasl2/smtpd.conf failed: No such file or ...
0 votes
0 answers
903 views

Cannot set MTU for Network interface in FreeNAS-11.3-U3.2 Web Interface

I'm trying to set the MTU value for my network interface in FreeNAS-11.3-U3.2 to 9000. However, when I select the interface to EDIT in the WebUI, enter 9000 for the MTU field, then click "APPLY&...
0 votes
1 answer
78 views

Execute a Program On Remote And Send Back Resulting File

we have a powerful server to compile any code on it. For reasons, I am generally not allowed to copy my files to the server, and when I can, I can only use /temp which will be deleted after a reboot. ...
0 votes
1 answer
2k views

Allowing access to UDP range port in ipfw/FreeBSD

I have prepared the following configuration: # cat /etc/firewall.conf add 1000 count udp from any to me 10000 add 1001 count udp from any to me 10001 add 1002 count udp from any to me 10002 add ...
1 vote
1 answer
128 views

Should a unified bare metal application suite outperform multiple VMs on the same hardware?

Assuming one single-socket Xeon D server, 8 cores, 16 threads, two 10G SFP+ interfaces, 64 GB of RAM, two SSDs... An application bundle that includes a nginx, MariaDB, some app logic, and maybe Redis. ...
2 votes
1 answer
681 views

FreeBSD permissions issue

I am slowly learning FreeBSD through a home server build and have run into a permissions issue that I can't seem to resolve despite a great deal of searching. As my admin user "sadmin", when ...
1 vote
1 answer
3k views

Releasing zfs arc memory on FreeBSD

I have a machine running FreeBSD that is subject to a variety of workloads, rabging from Disk intensive to memory intensive. If large amounts of ZFS data are accessed, then the Wired Memory usage can ...
1 vote
4 answers
7k views

How to automatically restart a process after a crash or reboot in FreeBsd 11?

What's the idiomatic way? I'd prefer the most standard and yet simple way with fewer additional dependencies. Something like an alternative to systemd of Linux.
2 votes
0 answers
127 views

Unresponsive FreeBSD kldload process locks up whole system

Newly installed FreeBSD 12.1 and 11.4 immediately freezes when loading oce by running kldload if_oce. The whole system becomes locked up at this time. CTRL+c and CTRL+z don't work. What is the ...
2 votes
1 answer
2k views

Shrink FreeBSD root partition

I currently have a pfSense 2.3.2-RELEASE which was installed with too little RAM and, now I realized that the swap partition is too small (8GB) and I want to expand it. The problem is there's no free ...
0 votes
1 answer
105 views

Track Bandwidth on shared interface

On our servers running FreeBSD, we've allocated multiple public ip addresses to host different clients on single eth0 interface. The purpose of allocating separate ip to each client is to distinguish ...
3 votes
1 answer
725 views

FreeBSD jail routing issue

I have the following setup with FreeBSD jails and VNET which is supposed to grow into a DNS core net lab setup. The jailhost and the jails are running FreeBSD 12.1. The jails are connected by epair ...
10 votes
1 answer
69k views

How to print list of users and groups on FreeBSD?

How to print list of users and groups on FreeBSD?
8 votes
5 answers
7k views

How do I non-interactively update FreeBSD system (and ports)?

Essentially, I am looking for a fully silent, non-interactive version of freebsd-update fetch freebsd-update install and portsnap fetch update
0 votes
1 answer
100 views

After upgrade free-bsd 11.1->12.0->12.1 libraries are missing

How can I restore these? pkg misses a library (libarchive.so.6) so that way is closed BTW the missing libs still show up in locate (/usr/lib) J
1 vote
1 answer
575 views

postfix in a jail how to notify blacklistd running in main host

I have postfix compiled with blacklistd support running in a jail. On the main host (FreeBSD 12.1) blascklistd is running with this config: # Blacklist rule # adr/mask:port type proto owner ...
3 votes
1 answer
4k views

How to configure FreeNAS for a WireGuard VPN?

I have a FreeNAS 11.3 system and followed iXsystems' instructions on setting up WireGuard. With a simple wg0.conf I'm now able to connect successfully. I'd like to be able to use this setup as a ...
5 votes
2 answers
6k views

How to change rc.d startup order in FreeBSD?

My question exactly same as this question except I want to change services in FreeBSD. I made some research and I found rcorder command which gives full order of services with below paramaters. ...
3 votes
1 answer
496 views

Verify authenticity of SSH host on Digital Ocean droplet (FreeBSD)

When first connecting via SSH with keys to a newly minted Digital Ocean droplet VM running FreeBSD (per this tutorial), we get a message about “The authenticity of host blah-blah can’t be established”....
9 votes
4 answers
5k views

ZFS on top of Hardware Mirroring, or just mirror in ZFS?

I have an IBM x346 with dual 3.2Ghz Xeons and 2x36GB 15k SCSI disks. I'm running an entirely ZFS-based install of FreeBSD 8.1. I can configure the bios to mirror the two disks, and then put ZFS on ...
2 votes
1 answer
115 views

FreeBSD perform certain task when a new user is created

Is there a way to perform additional tasks every time a new user is created with adduser(8) in FreeBSD? To be more precise, i'd like to create a directory for every new user and map this user with ...
7 votes
5 answers
2k views

RAID-Z Failure Notification

I have a FreeBSD file server with a 10TB array in RAID-Z (so 8TB usable with 2TB redundancy). I am trying to figure out how to get the system to notify me, preferably by email, if one of the drives ...
8 votes
4 answers
52k views

How to flush DNS resolver cache on Linux (and FreeBSD)

I am admin for several Linux and FreeBSD servers and here is a problem I have: The servers run a tool that does a lot of DNS queries every minute for the entire network. When it does a query, the ...
5 votes
0 answers
2k views

FreeBSD networking setup for multiple jails - interface clones or aliases

While setting up multiple jails on a FreeBSD machine, I also (naturally) need to set up the networking for each jail. It seems to me there are two ways of achieving the same goal setting up multiple ...
0 votes
1 answer
780 views

FreeBSD documentation: syslogd_enable and syslogd_flags in /etc/rc.conf?

I am having problems understanding FreeBSD's documentation on "Configuring System Logging": https://www.freebsd.org/doc/handbook/configtuning-syslog.html The documentation: "By default, syslogd is ...
0 votes
0 answers
330 views

Static files getting requested with internal IP address prefix instead of domain-name prefix

I have a smoothly running FreeBSD box with a couple of jails running their own servers. Nginx runs in its own jail and the main machine uses pf to redirect all http/s requests to Nginx. Nginx ...
1 vote
1 answer
375 views

LACP doesn't work on FreeBSD VM without promiscuous mode

I'm running two identical FreeBSD 12.1-RELEASE VMs on VirtualBox. Each VM has 2 network interfaces, em0 and em1, set to Internal network mode. em0 interfaces are set to intnet0 network and em1 are to ...
0 votes
1 answer
94 views

Copying one 16TB folder onto several consecutive 8TB drives on a standalone Freebsd

I have a very old server that stores 16Tb of data. It is running FreeNAS (freebsd). Network cards are physically damaged and the server is on its last breath. I have 2 8TB NTFS external hard drives. ...

1 2 3
4
5
31