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, and userland utilities such as shells.

1
vote
0answers
106 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
131 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
107 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
53 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
210 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
59 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
125 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
704 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
296 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
125 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....
128
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
541 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
153 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
148 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
308 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
181 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
865 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
273 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
220 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
107 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
155 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
146 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 ...
2
votes
0answers
225 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). ...
1
vote
1answer
395 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
173 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
186 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 ...
4
votes
3answers
332 views

check if two ZFS filesystems are identical

I would like to verify that two ZFS filesystems (in this case on different pools) are identical. Is there a best practice way to do this?
1
vote
0answers
417 views

BTX halted error on FreeBSD

I understand there are a few threads about this out there but my issue seems particular. Recently my boot disk, an SSD, failed and I have just rebuilt it. Given the opportunity, I thought I might go ...
0
votes
0answers
416 views

FreeBSD Mongodb 3.4 poor performance

I setup an FreeBSD 11.1 box on Digital Ocean and install mongodb34. I try the pkg and ports version but for both the performance is really bad compared with the same setup under Ubuntu, 10s vs. 0.6s ...
0
votes
1answer
105 views

Bhyve + IPv6 can't ping from guest to host until host ping guest

Both host/guest are using FreeBSD 11.1, I created the VM using vm-byhbe. This is host configuration in /etc/rc.conf ifconfig_igb0_ipv6="inet6 2a01:4f8:150:84ec::1 prefixlen 64" ...
2
votes
0answers
184 views

Configure Munin to monitor multiple instances on one node

I need to configure Munin to monitor multiple instances of a server daemon that run on a single host. I've tried creating a different named symlink for each instance, but unless I also pass an env ...
-2
votes
1answer
32 views

A web app isn't visible from the Internet

I have a ruby webapp running on the port 5555 on FreeBsd 11. For some reason it's not visible from the Internet at all, although ipfw isn't running. $ curl -i 12.34.55.66:5555 curl: (7) Failed to ...
1
vote
0answers
217 views

Can't access FreeNAS Jail via router VPN

I have a VPN running on my Linksys router. I have been able to configure a client to connect to it, and can access my FreeNAS server via the web interface with no issues. I can also ping it. But, I ...
2
votes
1answer
415 views

Apache 403 Forbidden for Nagios on FreeBSD

I have the following conf file in /usr/local/etc/apache24/Includes and when I try to sign in to Nagios GUI, I get a 403 forbidden. I guess this a permissions issue with Apache accessing Nagios data, ...
4
votes
1answer
445 views

What is the Microsoft iSCSI initiator target limit?

What is the Microsoft iSCSI initiator target limit ? I mean - how many disks from single iSCSI server can the initiator handle ? I have a FreeBSD 11.x kernel iSCSI target, and hundreds of disks ...
3
votes
2answers
1k views

Trying to Reinstall FreeNAS 11 After Failed Upgrade

Yesterday, I tried to upgrade my FreeNAS 9.10.2 system to FreeNAS 11. The upgrade failed to set the boot environment to FreeNAS 11, so I did that manually after seeing a reboot simply took me back to ...
2
votes
0answers
84 views

How can I apply security patches to an offline freebsd machine?

Synopsis: We would like to use FreeBSD (version 11.0) on one of our products. Once the product leaves the company, it will be disconnected from the Internet for good. However, as part of our support ...
0
votes
1answer
168 views

DNS servers provided by dhcp are automatically routed to local MAC address

On my freebsd, when ip and network conf is given by the dhcp, these routes are added for unknown reason : 192.168.138.6 54:a0:xx:xx:xx:xx UHS re0_vlan100 192.168.138.5 54:a0:xx:xx:xx:xx ...
2
votes
4answers
166 views

Running an application in background

I have a web app on a freebsd server. An app is a single executable file, with a built-in webserver. My default shell is zsh. When I'm running it as "./my_website &" and close a connection, it ...
2
votes
2answers
737 views

FreeBSD rc.d script doesn't start as a daemon

I have developed the following script at location /usr/local/etc/rc.d/bluesky #!/bin/sh # PROVIDE: bluesky # REQUIRE: mysql sshd # BEFORE: # KEYWORD: . /etc/rc.subr name="bluesky" rcvar=...
2
votes
1answer
194 views

bind address of application on multihomed server

I have a multi-homed server running bgp via quagga If I fire up an application on this server that initiates a connection, by default it is going to choose the interface with the lowest metric, ie ...
0
votes
1answer
1k views

Locking down FreeNAS (FreeBSD) to just a single IP address

I want to host a FreeNAS server (Server B) on the Internet for remote ZFS replication. Server A is a FreeNAS server in an office with a dedicated IP behind a Firewall, which will be sending ZFS data ...
0
votes
1answer
384 views

Setting up SSH so that FreeNAS can connect to a Mac without a password

I would like to send a ZFS dataset to a Mac running OpenZFS. I have been able to replicate a FreeNAS dataset to a Mac running OpenZFS using the terminal. I did this using SSH password authentication. ...
1
vote
1answer
366 views

Synchronise Samba 4.4 passwords with the Unix password database

I run a small Samba 4.4 server, and I would like to keep the Samba password database in sync with the Unix password database. I would like the Samba password to be updated when a user changes their ...
0
votes
1answer
142 views

PHP update not recognized in Apache on FreeBSD

I'm trying to update the PHP installation on my FreeBSD machine. I ran portsnap fetch update cd /usr/ports/lang/php56 make reinstall cd /usr/ports/lang/php56-extensions make reinstall service ...
2
votes
0answers
29 views

Files saved to Samba share are randomly differing from originals?

I manage a small network of windows clients and a BSD file server running Samba 4.6.x. We had some odd issues which led to the discovery that when users save files to the server, about 12% of the ...
1
vote
1answer
39 views

What's the most common and recommended directory for a web application on FreeBsd? [closed]

I have a website on a FreeBSD server which is reachable from the Internet. I know I can run it from whichever directory I wish. But still, which directory is more right, common and recommended? At the ...
4
votes
0answers
722 views

Getting to enforcing google safe search using CNAME with unbound and nsd?

I am trying to implement this using Unbound and Nsd: https://support.google.com/websearch/answer/186669?hl=en To force SafeSearch for your network, you’ll need to update your DNS. configuration. ...
1
vote
1answer
376 views

In Arch linux — systemd, in FreeBsd -?

In Arch linux, for example, when I'm running my web application on it, I create a systemd service so it'll be supervised and restarted when needed. On FreeBsd systemd isn't installed by default, then, ...