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
18 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 ...
0 votes
0 answers
16 views

Multiple name matching statements in dhcpd.conf

Can a class have multiple match hostname statements, e.g. match if substring (option host-name,0,2) = "foo"; match if substring (option host-name,0,3) = "DESK" ?
0 votes
1 answer
23 views

trying to get an md5 from badly named files

I am trying to get the md5 from a lot of files. I would use ls to list files and md5 to get a hash of all the files from multiple directories like so md5 `ls -R /` this would work if the names of the ...
0 votes
1 answer
30 views

Is XNU based on FreeBSD or OpenBSD?

I'm curious, is the xnu kernel based on FreeBSD, OpenBSD, or some other BSD distribution? Thank you, James Pedersen
1 vote
1 answer
95 views

Running Shell Script without a Password Prompt

I have a shell script that runs on a freebsd OS. the script has some commands that needs the sudo privileges Im excuting the script remotley and it's skipping the sudo commands i tried the following : ...
0 votes
1 answer
28 views

FreeBSD 13.1 under Hyper-V on Windows 10 Pro

I am building a new FreeBSD 13.1 Workstation on a Windows 10 machine under Hyper-V. I have been successful doing this with previous version of FreeBSD, back to releases 6, and previous releases of ...
1 vote
1 answer
40 views

While using pf on FreeBSD, do I need to explicitly specify both the inet and inet6 parameters?

Suppose I have a rule like rdr on $ext_if inet proto tcp to port https -> $inf_if port $myhttps This is to redirect incoming TCP packets on the https port to a specific internal IP/port. This is ...
  • 325
0 votes
0 answers
16 views

Configuring disparate network segments on openvpn

I am trying to setup an Openvpn server to serve two disparate IP subnets to two different classes of users. See very end of post for motivation: this is not some idle fancy. This openvpn document ...
0 votes
1 answer
68 views

FreeBSD: NAT of internal IPv6 addresses with one external source IPv6 address

I need to make NAT of internal IP addresses with one external source IPv6 address. Is it possible on FreeBSD 13.X? What to use for this: IPFW or PF? As far as I understand IPFW can do prefix ...
0 votes
1 answer
129 views

FreeBSD Bind Non Local IPV6 Address

How to bind non local ipv6 address? I setting socket with below code for enabling non-local bind. setsockopt(sock, IPPROTO_IPV6, IPV6_BINDANY, &on, sizeof on) When run my test socket program ...
0 votes
0 answers
37 views

Migrated JAILs from TrueNAS 11.3 to JAILS over FreeBSD 13 with VNET and now IPFW inside JAIL not work: kldload ipfw - not permitted

In jail under TrueNAS 11, was mail server that can block IPs by IPFW rules. Now I move JAIL to FreeBSD 13.1, and detect that same JAIL with same settings, not allow to load IPFW inside jail. kldload ...
  • 14
0 votes
0 answers
113 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
60 views

Best way to back up and restore zpool in midst of FreeBSD upgrade

My apologies if this is circuitous, but please bear with me. I have a FreeBSD ZFS installation that was originally set up using 12 and upgraded to 13 at some point. It has become so munged up that I ...
0 votes
0 answers
74 views

Free BSD IP forwarding for LVS NAT mode

I am testing LVS NAT mode with centos as Keepalived node and FreeBSD as real server. This question is already answered in context of Linux. Now the question is how to make an L3 host as a default ...
0 votes
0 answers
23 views

When PF firewal runs local network traffic is slowed

OS FreeBSD-13.0p3 We have a gateway router (G) with three physical Ethernet interfaces. One (W1) is the WAN gateway. The other two (L1,L2) are connected to the same wire. L1 belongs to the 192.168....
1 vote
1 answer
479 views

How to get hard disk status from RAID with SmartCTL for monitoring purposes?

I have a FreeBSD with a RAID running 3 Hard Disks. I was given the challenge to monitor its RAID - If a hard disk fails or it presents some problem i need to know. So, the first thing i am doing right ...
1 vote
1 answer
382 views

Installing pfsense 2.5.2 ( freebsd 12 ) in KVM

Seems that I am having an issue installing pfsense firewall which is build on freeBSD12 into a qemu/kvm in Ubuntu. When it starts to boot, prior to the 'Install Box' I get a kernal panic Image of fail ...
0 votes
0 answers
32 views

How to change pickupexten on asterisk 11

I'm looking for a way to change ‍pickupexten in Asterisk 11. Is there a way? The features.conf: pickupexten = *8 pickupgroup=1 pickupsound = beep pickupfailsound = beeperr I want to change *8 with ...
  • 111
0 votes
2 answers
61 views

Issue using dd to write 1GB file to zfs dataset on FreeBSD 13

Hey guys I am turning up a little FAMP stack on an Azure VM. 4 Xeon cores 16GB ram. Second SSD is using ZFS and the boot drive is UFS2 (Default). When I dd if=/dev/zero of=testfile bs=1024 count=...
  • 1
0 votes
1 answer
222 views

How to improve TCP tolerance to out-of-order delivery in Linux balance-rr bonds and/or FreeBSD roundrobin laggs?

I have 3 servers networ kwise configured as follows A is a DELL R710 is running Linux 5.13.19-1-pve Proxmox VE 7.1 and has 4 NICs teamed in a balance-rr mode bond. B is a DELL R610 is running Linux 5....
  • 101
0 votes
1 answer
90 views

Joomla redirects wrong after POST

Situation: FreeBSD 13 server with Apache 2.4 as reverse proxy on SSL. Bastille jail with nginx on port 80 and joomla 4.04 Problem: When doing a POST within Joomla (actually any POST except the one ...
  • 21
1 vote
1 answer
301 views

Added dkimproxy to OpenSMTPD ... mail loop when sending to my own domain

I have a nicely working OpenSMTPD configuration and I added dkimproxy to it. Everything is working nicely and mail-tester, etc., all report that I have proper DKIM signing and my email score is 10/10, ...
0 votes
0 answers
195 views

How to get qemu watchdog working in Freebsd 12.1 guest

I am running a couple of OpnSense (based on FreeBSD 12.1) routers in qemu virtual machines in Proxmox 6.4. Promox has its own non-libvert way of configuring VMs, but to add a watchdog device, one adds ...
  • 200
1 vote
0 answers
365 views

Can't mount NFSv4 with Kerberos from a Linux client to a FreeBSD server

I'm trying to set up NFSv4 with Kerberos. The server is FreeBSD 13.0-RELEASE and the client is Ubuntu 20. I have the Kerberos part running and I can automaatically get a ticket on login for my user, ...
  • 181
0 votes
1 answer
725 views

Nextcloud: Failed to open stream: Permission denied

I'm installing Nextcloud on a FreeBSD system and I'm using lighttpd behind a nginx reverse proxy with terminal SSL. lighttpd is able to serve static html files and can serve index.php, but without any ...
  • 273
2 votes
0 answers
115 views

Running zfs trim twice on the same pool still takes forever the second time

I have this ZFS pool consisting of two mirrored 1TB Samsung 870 QVO drives, that I've been using for about a year for storing bhyve guest images as ZVOLs. During that time, I've created / messed with /...
  • 121
0 votes
0 answers
253 views

IPv6 routing for VNET jails on FreeBSD 13-RELEASE

I have a IPv6 address block of prefix size 64. On my host computer running FreeBSD 13-RELEASE I have three jails: jls JID IP Address Hostname Path 1 ...
0 votes
1 answer
285 views

Reload partition table on FreeBSD

I'm searching for a way to reload a partition table in FreeBSD 12 (FreeNAS). I don't have hdparm nor gfdisk nor partprobe. What's the standard way of doing ? PS: my pkg doesn't work behind a firewall ...
0 votes
1 answer
109 views

FreeBSD: How can I tune the lifetime for TCP/UDP for in kernel NAT?

There used to be these sysctls in older versions of FreeBSD, viz: net.inet.ip.fw.dyn_ack_lifetime=3600 net.inet.ip.fw.dyn_udp_lifetime=15 now on FreeBSD 12 sysctl reports that these don't exist. How ...
  • 43
1 vote
0 answers
140 views

/usr/local/sbin/php-fpm: Undefined symbol "setproctitle_fast"

After upgrading php7.2 into a php7.4 following error is showing when trying too start a php-fpm service: /usr/local/sbin/php-fpm: Undefined symbol "setproctitle_fast" Has anybody met this ...
  • 171
2 votes
0 answers
666 views

my bridging configuration on freebsd 13 ins't properly configured because any bhyve VM based on Ubuntu 21.04 and Windows 10 can't connect to internet

I've configured the bridging and the tap interface on freebsd 13 because I want to boot and use a bhyve VM based on Ubuntu 21.04 and Windows 10,but unfortunately,after several readings and help ...
  • 143
0 votes
1 answer
383 views

PfSense FreeBSD on OVH Public Instance - no internet connection

I have no internet connectivity in freshly installed PfSense system. Steps: I've created OVH instance with Ubuntu and I mounted mfsbsd image. After booting to mfsbsd there was also internet problem. ...
  • 487
0 votes
1 answer
56 views

Services whithin jails no longer accessible after upgrade to version 13.0

After upgrading a virtual FreeBSD 12.2 system to 13.0-p3, traffic to services within jails (through Apache 2.4 reverse proxy) was blocked. This is a Hyper-V virtual server and the second one that ...
  • 21
1 vote
2 answers
375 views

FreeBSD 13 PF blocking jail traffic

After upgrading my FreeBSD system from 12.2 to 13.0-p3 PF is blocking all traffic to my jails. When disabling PF everything works fine (except from being unprotected ;)) I tried to figure out what ...
  • 21
0 votes
1 answer
46 views

Again see the Welcome menu after installing FreeBSD on Virtualbox [closed]

I've installed Virtualbox 6.1 on my local computer with Windows 10. Next I've downloaded FreeBSD image and select it as virtual optical disk. Next I gone the FreeBSD installation process and restarted ...
  • 121
1 vote
1 answer
170 views

ipfw testing without blocking the FreeBSD server in the case of ipfw error

I'm a newbie with ipfw, trying to learn it and testing its commands on the server with FreeBSD. Every time when I run ipfw command via SSH with a syntax error/typo and then restart ipfw service, the ...
  • 121
0 votes
1 answer
195 views

Failed to set up Apache for executing PERL file in FreeBSD

I've successfully installed perl5 and apache24 in FreeBSD 12. Then I enabled apache24 in /etc/rc.conf and see index.html placed in the path /usr/local/www/apache24/data. Then in the file /usr/local/...
  • 121
1 vote
2 answers
456 views

Issue with connecting several remote Windows 10 clients to Strongswan with lets-encrypt certificates (IKEv2-EAP)

I set up a Strongswan server for VPN clients to access the internal network (EAP-IKEv2). I have successfully configured it using Letsencrypt server certificates and it works for clients using Mac OS X,...
0 votes
1 answer
3k views

pfSense - Enable ssh (port 22) access through the WAN using terminal/console/shell

We need to enable pfSense ssh (port 22) access through the WAN interface to perform certain configurations using pfSense's terminal/console/shell. Actions already taken... "Secure Shell (sshd)&...
0 votes
1 answer
153 views

How to correctly benchmark sequential read speeds on 2.5" hard drive with fio on FreeBSD?

Like suggested in https://askubuntu.com/a/991311 I tested the read speed of a 2.5" spinning hard drive on a TrueNAS/FreeBSD system. For "Sequential READ speed with big blocks": fio --...
  • 63
0 votes
1 answer
1k views

Testing zpool IO performance

To test the write speed of a 2.5 inch SATA3 spinning hard drive (some old Seagate one) installed in my TrueNAS system I used dd if=/dev/zero of=/mnt/pool/test.dd bs=1024 count=1m (found this in ...
  • 63
0 votes
1 answer
176 views

How return to prompt after execution of script that spawns a daemon?

$ cat appleclue.sh #!/usr/local/bin/bash source ~/.venv/appleclue/bin/activate cd ~/applications/appleclue/appleclue-web/ git pull pip install -r requirements.txt python3.9 manage.py migrate --...
0 votes
1 answer
376 views

FreeBSD: Cant stop program started by rc.d ("is not running")

I've created a rc script to start gunicorn as a daemon on boot. #!/bin/sh # PROVIDE: gunicorn_appleclue # REQUIRE: DAEMON . /etc/rc.subr name=gunicorn_appleclue rcvar=gunicorn_appleclue_enable ...
1 vote
1 answer
154 views

Fix “stripped down” install of FreeBSD 12

I have several legacy FreeBSD VMs made by ex-sysadmin who did some strange trick to save hypervisor storage space: he installed one VM from iso, the set it up a bit, installed needed software, then ...
  • 299
0 votes
0 answers
112 views

PF Nat over OpenVPN Client

I have FreeBSD 12.1-RELEASE router with 3 interfaces: LAN HOME(192.168.22.) LAN WORK(192.168.11.) WAN(1.2.3.4) My router connect to NordVPN over OpenVPN as a client (creates new TUN0 with address 10....
0 votes
0 answers
114 views

Apparent Negative free disk space and FreeBSD 12

Just curious as to what's happening here. This is just a non-prod VM that I have at home. Curious as to what leads to the 'negative' available diskspace. This is FreeBSD 12 running under VMWare ...
1 vote
1 answer
186 views

CLI php errors on FreeBSD Server

I manage a FreeBSD server running usual AMP setup. Apache, Mysql, Php-fmp Everything is working fine. In order to help out with speeding up a couple of Wordpress sites; we run php cli to run the ...
1 vote
1 answer
2k 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 ...
0 votes
0 answers
115 views

How to get custom option on client from ISC DHCP server

Over ISC-DHCP server I wanted to define a custom DHCP Option, for which I am using below config option imagefile code 224 = ip-address; subnet 192.168.29.0 netmask 255.255.255.0 { range 192.168.29.1 ...
0 votes
1 answer
57 views

pkg OSVERSION mismatches jail/host

I have a FreeBSD Host and some jails, the output of freebsd-version -u in the host and in the jail is 12.2-STABLE. In the host the output of uname -K and pkg -vv | grep OSVERSION matches 1202505 but ...
  • 548

1
2 3 4 5
31