Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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, ...

1
vote
1answer
15 views

ZFS replace disks in freebsd, how and when

I have the following zpool configuration: zpool status NAME STATE READ WRITE CKSUM data ONLINE 0 0 0 raidz2-0 ONLINE 0 0 0 da1 ...
-2
votes
1answer
25 views

Freebsd shutdown privileges

I need to create a user and deny them permission to turn off the machine. DO SOMEONE KNOW HOW TO CHANGE THE PERMISSIONS OF A NORMAL USER TO NOT ALLOW ME TO TURN OFF?
3
votes
0answers
78 views

How do I configure ZFS to panic on da (SCSI) disk failure?

Situation: two redundant FreeBSD machines using CARP to share a primary IP, running a frontend proxy (E.G. HAproxy or nginx) Primary machine experiences a loss of SCSI disk (E.G. disk failure, SAN ...
0
votes
0answers
29 views

How to create a user that has a password that expires

how to create a user that has a password that expires, I am using samba4 as AD DC and I need to create a user and make his password expire admemas I need to change his password at his first login, I ...
0
votes
0answers
30 views

Bridge networking in ubuntu guest on freebsd host using vm-bhyve

i'm a little less learned on bridging thus need help in guest networking. I've setup 2 ubuntu guest on a freebsd vm-bhyve. created a single switch public which has 2 tap insterfaces namely tap0 and ...
1
vote
1answer
143 views

I can not compile samba

I can not compile samba,I make the command "./configure" and it returns this error "Samba AD DC and --enable-selftest requires lmdb 0.9.16 or later"
1
vote
0answers
30 views

DKIM - how to account for different hostnames for the mail host (sendmail, FreeBSD 10.3)

I'm trying to use DKIM on a FreeBSD 10.3 box using "stock" sendmail. I followed this tutorial: https://www.dan.me.uk/blog/2016/06/01/add-dkim-signing-to-freebsd-servers and now DKIM "works" -- ...
1
vote
0answers
51 views

Routing troubles on secondary FIB/routing table on FreeBSD

I have a need for a secondary routing table on this machine. I've got everything mostly set up, but I'm having an issue getting the default route working on the secondary fib. In most information I ...
0
votes
1answer
43 views

How can I clear freebsd caсhe

I used scp to copy a file from another system. After copy has finished I want to clear the cache. My os is FreeBS 9.2. Can I do this and how should I do this? Thanks
1
vote
1answer
108 views

Mount a partition from a VM disk ZFS snapshot in FreeNAS

I have a KVM image running on a Zvol in linux that is a block device containing an ext4 partition. It is snapshotted regularly and pushed to a FreeNAS box for backup. If I ever need to recover a ...
1
vote
0answers
117 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 - 1) setting up ...
1
vote
0answers
136 views

How to reinstall boot loader on FreeBSD?

I'm planning to use rsync to clone an entire FreeBSD server to another machine, overwriting the files of the existing old FreeBSD OS (minus /etc/hostid and a few others) But that would break the boot ...
1
vote
0answers
122 views

NFS share group permission not respected

I have a linux client and freebsd nfs server (NAS4free actually) NFS share is mounted by fstab this way: server:/mnt/disk/ZHomeData on /data type nfs (rw,nosuid,relatime,vers=3,rsize=32768,wsize=...
0
votes
1answer
31 views

Unable to connect postfix to amavisd in FreeBSD-11 jail

Attempting to send a message through Postfix on a jailed instance of FreeBSD-11 results in the following error when amavisd is configured: /usr/local/sbin/amavisd[47180]: (!)DENIED ACCESS from IP 127....
0
votes
1answer
286 views

swap_pager: indefinite wait buffer

I am using ZFS to receive some datasets around 60GB: bzip2 -c -d mail.bz2 | zfs receive -F tank/jails/mail Almost before finishing I start to get this error multiple times: swap_pager: indefinite ...
0
votes
1answer
189 views

iocage jail with different subnet cannot ping network

I have a FreeBSD 11.1 iocage jail on a different subnet than the host and I want it to reach other hosts on the same subnet as the host. Host IP: 192.168.0.10 (interface re0) Default GW: 192.168.0.1 ...
-5
votes
1answer
73 views

Stuck at setting up Postfix correctly with my own list of domains [closed]

I'm setting up Postfix + PostgreSql on FreeBsd to host my email server. I'm about 50% done. I'm confused with several *.cf files and can't figure out which I should use for this. I own several ...
0
votes
0answers
93 views

FreeBSD Postfix Dovecot Roundcube - unable to login from Roundcube

i'm recieving such error : IMAP Error in /usr/local/www/apache24/data/roundcube/program/lib/Roundcube/rcube_imap.php (196): Login failed for test1@example.com from 1.2.3.4. AUTHENTICATE PLAIN: * OK ...
1
vote
1answer
142 views

Unable to start OpenVpn on FreeBsd 11, it asks for --dev which I've already specified

My /etc/rc.conf in FreeBsd 11: hostname="abcd" sshd_enable="YES" static_routes="linklocal" ifconfig_vtnet0="DHCP" ifconfig_vtnet0_ipv6="inet6 accept_rtadv" ipv6_activate_all_interfaces="...
0
votes
1answer
109 views

migrate stopped mariadb server to new one

Hi I'm running a freenas system where I have two jails. One jail is broken in a way that I cannot start the mariadb server anymore due to userland and kernel version mismatch. So I created a new jail ...
1
vote
1answer
60 views

Plan for hot replacing damaged RAID-1 drive in freebsd 9.0

i have System FreeBSD 9.0 with RAID configuration # mfiutil show config mfi0 Configuration: 2 arrays, 2 volumes, 0 spares array 0 of 2 drives: drive 4 ( 558G) ONLINE <SEAGATE ...
0
votes
1answer
175 views

Move Let's Encrypt from Ubuntu+Nginx to FreeBSD+Nginx

I have been running Let's Encrypt's certbot utility with NGINX on Ubuntu Server 17.10 for a while now, and while it has been working well, I prefer FreeBSD. Until recently (Feb 2018), the nginx plugin ...
1
vote
0answers
83 views

problems getting openvpn to start: segmentation fault 11

I am having some trouble getting open vpn to start on FreeBSD I am doing this in a Freenas Jail and trying to follow the guide at https://forums.freenas.org/index.php?threads/how-to-install-openvpn-...
0
votes
2answers
81 views

carp single wan address

I try to put in place 2 freebsd routers with carp interfaces. since I have only one wan address, lets say : 1.2.3.4 I'd like to use private range ips to do carp jobs : 10.0.0.1(router1) alias (1.2.3....
1
vote
1answer
71 views

set umask 000 on Windows?

Sorry if this sounds like a dumb question, but don't have a lot of experience with NFS and Windows together. I have a user on a Win10 ENT box, connected up to a FreeBSD server. And with the Macs, when ...
1
vote
1answer
48 views

CPU Total is wrong displayed for a process in monit

I am using Monit, and I am monitoring a few processes. I have 12 vCPUS, and system is around 20% usage. Yet M/Monit shows some processes to go up to 100%. Well they actually do but just a single CPU. ...
2
votes
0answers
157 views

Access denied for all users after MariaDb upgrade

I discovered this morning that MariaDb had been removed from my server in the process of upgrading from FreeBSD 10.3 to 11.1. After getting the database engine reinstalled, and resolving the problems ...
3
votes
1answer
54 views

Sendmail process crashes as soon as STARTTLS is received

I just upgraded my server from FreeBSD 10.3 to 11.1. It's now running Sendmail 8.15.2 and OpenSSL 1.0.2k-freebsd 26 Jan 2017. Since the upgrade, sending mail to my server is failing. I cranked up ...
4
votes
0answers
95 views

How can I determine what permissions my user is missing for receiving a ZFS dataset?

I have a FreeNAS (11.1-U1) and a FreeBSD (11.1-RELEASE-p6) machine. On the FreeNAS I'd like to zfs receive recursive snapshots as a non-root user with delegated privileges. This appears to work well ...
0
votes
3answers
524 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.
1
vote
1answer
142 views

need to reset dirty bit on usb flash memory stick

We have a usb memory stick that FreeBSD-11 will not mount because its file system is not clean. It is not clean because it was removed from an extension cable while it was mounted on a FreeBSD-11 ...
0
votes
1answer
95 views

How to fix inode 2 on a FreeBSD ufs filesystem

My FreeBSD 11.1 system keeps panic-ing with this: kernel: panic: ufs_dirbad: /mnt: bad dir ino 2 at offset 0: mangled entry For such an error most forums suggest an older article (http://phaq....
127
votes
11answers
17k views

FreeBSD: Directory called ^C (really!) - how to remove?

I made a typo: $ history 169 9:34 la /usr/local/etc/ 170 9:35 sudo mkdir ^C 171 9:36 sudo mkdir /usr/local/etc/dnsmasq.d Now I have a file that is called ^C (ctrl+C)!! When I use ls I just ...
0
votes
1answer
340 views

sshd matching user config not working

On server i have only ssh auth, but for one user I need to add a specific folder and password based auth. So I created a user sudo adduser myuser then in /etc/ssh/sshd_config file I added: Match ...
0
votes
0answers
133 views

rsync hangs from freebsd zfs to freebsd mounted windows share over ssh

I can't get rsync to work between 2 FreeBSD server. It always hangs during transfer or dry-run. Setup: rsync version 3.1.2 protocol version 31 1 FreeBSD 10.3-RELEASE-p24 server which mounts a ...
0
votes
1answer
122 views

Does using jails in FreeBSD count as having a switch?

My network administrators don't like when I plug switch into the building network to fan-out to multiple computers. They want single link drop per physical NIC. Previously the blocked those MACs on ...
0
votes
0answers
20 views

How to enable users to manage certain groups on file server

Let's assume we are in a business environment and we want to configure a *nix/*BSD file server. The business does work for several customers, thus the folder structure has the clients' names on the ...
1
vote
0answers
271 views

php-fpm (PHP-7.1) cannot serve content to nginx on FreeBSD

I am trying to install nginx and php-fpm following this guide on a FreeBSD 11.1 system on a raspberrypi-B+. Everything behaves as described in the guide up to point 14, which involves opening a php ...
0
votes
1answer
110 views

doas on FreeBSD does not respect 5 minute timeout

I've setup doas to run on FreeBSD 11.1 as per these instructions and added the following line to my doas.conf: permit persist :wheel I've noticed that I need to insert my password every time I run ...
1
vote
0answers
643 views

What to set uwsgi uid and gid to?

I'm trying to have nginx connect to a uwsgi socket on FreeBSD. I've set the socket to 666 but whenever I issue a request in my browser I can see the following in my nginx logs: 2017/12/12 11:34:04 [...
3
votes
1answer
220 views

FreeBSD gateway between two private networks - NAT required?

I have two networks: 10.0.0.0/24 and 10.1.1.1/24. Default gateway to the Internet is 10.1.1.1 and my gateway system gets assigned 10.1.1.20 on the external interface and has 10.0.0.1 on the internal ...
1
vote
2answers
172 views

FreeBSD unecpected shutdown/power off

My digital ocean droplet have some unecpected shutdowns in the last days. The droplet ist off and i have to power it on again. If the system requested a power down then a log entry should exist. But ...
-1
votes
2answers
105 views

How can I adjust the name of a process I run?

I have a rack/ruby application on a server. I run it as follows: nohup rackup -o 0.0.0.0 -p 1234 & In the output of "top" command it appears as simply "ruby" PID USERNAME THR PRI NICE ...
1
vote
1answer
116 views

3-drive RAID-1 on pfSense box

I have a pfSense box with a 2-drive RAID-1 using gmirror. Recently, a drive failed, and I replaced the drive, and the RAID-1 is now back to normal. But this incident also made me interested in ...
0
votes
1answer
101 views

Freebsd ssh gives no prompt

I'm trying to connect to a FreeBsd machine via ssh, but get no prompt in a client. I have changed these options in sshd_config: Port 253 PermitRootLogin no PasswordAuthentication yes It is possible ...
0
votes
0answers
49 views

not able to receive UDP traffic on FreeBSD server

There is a network issue I have not encountered before. It seems that UDP traffic is entering the operating system since using systat -ifstat -match re1 0.5 shows the in bandwidth spiking for a moment ...
0
votes
0answers
40 views

FreeNAS-9.2-x86 almost not reachable after uploading data

two days ago I set up my FreeNas on an old computer. The setup contains of two 3TB HDDs, mirrored. I enabled FTP and started uploading 300gb of data over the night. The next day I tried to reach the ...
0
votes
0answers
43 views

Microsoft Hyper-V get Virtual-Machine network interface configuration

Is there any way to get the network configuration of a Virtual-Machine from the Hyper-V host? I need to get: Default gateway Preferred nameserver Alternate nameserver IP adress Subnetmask from both ...
0
votes
0answers
217 views

How to get TBW (total bytes written) or average writes per day for FreeNAS or freebsd disk?

I'm trying to get the total bytes written to disk in FreeNAS v9.10 running RAIDz2-0. I went under Reporting > Disk and could see output like: But I'm not sure what this means. I'm guessing "M" is ...
2
votes
0answers
193 views

Allowing Incoming Traffic over IPv6 with PF on FreeBSD

This is my current pf.conf on FreeBSD 11.1-RELEASE. It allows incoming connections from OpenVPN/UDP and SSH, as well as allows everything on the private/vpn networks (vtnet1 and tun0 respectively). ...