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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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

-2
votes
0answers
29 views

create a back door user on freebsd ssh service [on hold]

I want to create a back door user in FreeBSD ssh server . I want when user request for login on ssh server with a special IP and mac-address automatically accept his request and ignore authentication ...
0
votes
0answers
18 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
0answers
25 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
0answers
28 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
58 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
56 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
51 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
22 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
89 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
0answers
110 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
71 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
61 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
89 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
107 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
44 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
148 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
65 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
56 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
48 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
120 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
50 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
79 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
399 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
82 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
70 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
201 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
123 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
101 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
252 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
82 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
518 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
189 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
150 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
87 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
78 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
35 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
36 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
189 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
173 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). ...
0
votes
0answers
32 views

recreating a disk device in freeBsd

I have a bsd server where one of the hard disks seemingly failed. Dmesg eventually ended with (da4:mpr0:0:14:0): CAM status: Unconditionally Re-queue Request (da4:mpr0:0:14:0): Error 5, Periph was ...
0
votes
0answers
27 views

Looking for methods to keep consistent user/group ids across new systems

I am created several new VMs that are to be used in my office. They are mostly FreeBSD but one will be Ubuntu. I use NFS and need consistent user and group ids across all of these systems. What is ...
1
vote
1answer
299 views

Samba, FreeBSD, ZFS: Group permissions are ignored

I am running Samba 4.6 on FreeBSD 11 with ZFS. Each user belongs to the fileserver group. In addition, there are additional groups for each department, such as sales group. And here comes my problem....
1
vote
1answer
121 views

FreeBSD equivalent for Linux configuration of OpenVPN

I'm following a tutorial (https://snikt.net/blog/2016/12/01/openvpn-over-https/) regarding OpenVPN via SSL on Linux machines. At one point it states: We modify /etc/default/openvpn to automatically ...
2
votes
2answers
113 views

How to fix zpool detach hanging the entire pool?

When trying to replace a disk in a zpool on a FreeBSD 10.3-RELEASE-p20 system yesterday, the zfs filesystems became unresponsive after issuing the zpool detach srv gpt/d0 command. The server acts as ...
0
votes
0answers
57 views

Freenas cross platform permissions and samba shares

I have freenas setup at home and i've been accessing my datasets with no problem from Linux, MacOS and windows via SMB share. For work i had to start an FTP service that will be reached by one user ...