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
-2 votes
1 answer
269 views

Firewall rules does not apply to pfsense hosted machine [closed]

I am using pfsense as my home firewall and configured multi-wan setup. In addition, I have installed package 'Telegraf ' package for exporting my pfsense stats into InfluxDB, also in 'Telegraf' ...
user avatar
7 votes
1 answer
7k 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 ...
user avatar
1 vote
1 answer
256 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 ...
user avatar
  • 797
1 vote
0 answers
79 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-...
user avatar
  • 111
2 votes
0 answers
1k 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 ...
user avatar
0 votes
1 answer
356 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 ...
user avatar
0 votes
1 answer
545 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 ...
user avatar
  • 101
1 vote
1 answer
241 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 ...
user avatar
1 vote
1 answer
5k 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 ...
user avatar
  • 157
3 votes
2 answers
1k views

How to select network interface given ip address in ansible across Debian and FreeBSD?

I'm looking for an expression to fetch the interface name given an ip address assigned to that iface, across Linux and FreeBSD. This question is based on this answer: https://serverfault.com/a/948288/...
user avatar
  • 143
0 votes
0 answers
512 views

speedtest-cli on FreeBSD gives certificate error

Running speedtest-cli on FreeBSD 12.1-RELEASE-p9 on generic i386 gives the folowing error: Prompt: speedtest-cli --secure Retrieving speedtest.net configuration... Cannot retrieve speedtest ...
user avatar
  • 207
0 votes
1 answer
91 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...... # ......... ...
user avatar
1 vote
0 answers
362 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 ...
user avatar
  • 171
0 votes
0 answers
290 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: ...
user avatar
0 votes
0 answers
49 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 ...
user avatar
  • 131
0 votes
1 answer
2k 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:...
user avatar
0 votes
1 answer
247 views

Configuring NUT for old serial connected UPS (Tripp-Lite)

I have an old Tripp-Lite UPS (SU2200RTXL2UA) which I need to communicate with via it's RS232 Port (this model doesn't have a USB port). I'm trying to figure out which Serial NUT driver would be most ...
user avatar
  • 141
1 vote
1 answer
190 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 ...
user avatar
  • 141
2 votes
0 answers
617 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 ...
user avatar
0 votes
0 answers
293 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 ...
user avatar
  • 7
0 votes
0 answers
692 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&...
user avatar
  • 255
1 vote
1 answer
108 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. ...
user avatar
2 votes
1 answer
309 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 ...
user avatar
2 votes
0 answers
80 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 ...
user avatar
  • 71
1 vote
1 answer
338 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 ...
user avatar
  • 548
2 votes
1 answer
3k 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 ...
user avatar
  • 495
0 votes
1 answer
943 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 ...
user avatar
  • 124
3 votes
1 answer
505 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 ...
user avatar
0 votes
1 answer
69 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 ...
user avatar
0 votes
1 answer
52 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. ...
user avatar
2 votes
1 answer
54 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 ...
user avatar
  • 51
0 votes
1 answer
7k 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....
user avatar
  • 495
0 votes
1 answer
57 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
user avatar
0 votes
1 answer
321 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 ...
user avatar
  • 135
0 votes
0 answers
161 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 ...
user avatar
  • 255
1 vote
1 answer
223 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 ...
user avatar
  • 319
0 votes
1 answer
79 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. ...
user avatar
  • 103
0 votes
1 answer
428 views

CARP + IPV6 failover

I am using a vSwitch from Hetzner with an IPv6 network, I have configured CARP and works as expected, but the problem that I have noticed is that either because my IPv6 configuration or the vSwitch, ...
user avatar
  • 548
0 votes
1 answer
95 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 ...
user avatar
  • 297
1 vote
1 answer
149 views

Cannot stop Postgresql in FreeBsd Jail

I installed postgresql in a jail, it starts automatically after adding postgresql_enable="YES" to /etc/rc.conf), but now I can't stop it. I tried /usr/local/etc/rc.d/postgresql stop, but I've got: ...
user avatar
0 votes
1 answer
738 views

MIT Kerberos renew lifetime does not work

I am trying to figure out why my tickets only get a renewable life of 0 instead of 7 days as I specified. I tried setting both the max_renewable_life (as indicated in another question) as well as ...
user avatar
  • 11
1 vote
2 answers
2k views

ZFS: i/o error - all block copies unavailable -zpool unavailable

A server restart produced this output on the console: ZFS: i/o error - all block copies unavailable ZFS: failed to read pool zroot directory object qptzfsboot: failed to mount default pool zroot ...
user avatar
1 vote
0 answers
47 views

How can I capture traffic for a daemon listening on a cloned loopback IP address?

I have a daemon listening on a virtual IP address attached to a cloned loopback interface (lo1) on FreeBSD 11.x. Inbound traffic for that daemon could arrive on several different physical interfaces, ...
user avatar
  • 21k
0 votes
1 answer
121 views

How to delete inaccessible data on root ZFS dataset?

I have a mirrored ZFS array on a FreeBSD that I used for home NAS, consisting of a 6TB internal drive and a 8TB external USB drive. I have 2TB of space occupied that should not be occupied, but I ...
user avatar
  • 15
0 votes
0 answers
41 views

Control lamp from FreeBSD

I have a webcam connected to a FreeBSD server that I want to collect and email an image on a schedule via a cron job. The room it is in may not always be lit. I am hoping to find some solution where a ...
user avatar
0 votes
1 answer
241 views

What is a recommended way of thransferring am iocage jail from one host to another

Source iocage thick jail running on FreeBSD-12.0p12 Destination FreeBSD-12.1p1 Both hosts are using zfs. What is the recommended method to transfer an existing iocage thick jail from the source to ...
user avatar
1 vote
1 answer
928 views

Within FreeBSD jail – setting global environment vars

I need to set a systemwide environment variable (i.e. NODE_ENV=production) in a FreeBSD jail. I did try setting it in /etc/profile, but when I sourced it root@www:/ # source /etc/profile I got ...
user avatar
  • 135
2 votes
0 answers
74 views

Recovering a concatenated disk (ccd)

I need to recover data from an old filesystem, which was located on two small (by today's standards) drives -- using a concatenated disk driver (known as ccd in FreeBSD). I have the drives online (no ...
user avatar
  • 2,252
1 vote
1 answer
596 views

LACP and VLAN routing correct network setup

I am trying to understand the correct way to do LCAP with a VLAN and have all the routing be correct. Hardware OS:FreeNAS-11.2-U7 Server:(2) Intel(R) Xeon(R) CPU E5-2660 v3 @ 2.60GHz 128GB ...
user avatar
  • 121
0 votes
1 answer
80 views

Dragonfly mailer configuration with STARTTLS

We are trying to get a dragonfly mta (dma) client to use STARTTLS with our mailhub. We created a self-signed certificate and key using openssl openssl req -new -newkey rsa:4096 -x509 -sha256 -...
user avatar

1
2
3 4 5
31