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

0
votes
1answer
597 views

Set up nginx + php to serve php files from home directories [closed]

Here is the relevant part of my nginx.conf, which does not work for php files that are located in the home directories of the users: location ~ ^/~(.+?)(/.*)?$ { alias /usr/home/$1/www$2; ...
0
votes
0answers
615 views

Freenas not mounting zfs pool

I'm using FreeNAS-11.0-RC2 (a4687be8c) without issues since two weeks ago, then yesterday I did a shutdown, then after powering it on again the zpool wasn't available. Then after reading this: zfs ...
1
vote
2answers
1k views

FreeBSD: how to syncronize the system clock with the hardware clock in bash?

I am writing a script that synchronizes the system clock with the hardware clock (aka RTC, or CMOS clock) assuming that no Network Time Protocol (NTP) daemon is running. I am running in a virtual ...
2
votes
0answers
235 views

FreeBSD: How to extend an encrypted ZFS zroot pool

I installed a vanilla FreeBSD 11.0 (amd64) and chose the installation option "ZFS on / (encrypted)" (or however it is really called). Now I have a nice ZFS pool: root@storage:~ # zpool list NAME ...
0
votes
1answer
116 views

apache dev package installation in FreeBSD 11?

How do you install the dev package of apache24 in FreeBSD 11. It is not in the ports or in the package repositories or is it?
1
vote
1answer
284 views

Where is Apache's 000-default.conf in FreeBSD?

Where is Apache 2.4's 000-default.conf in FreeBSD 11? It seems it does not exist in FreeBSD 11.
1
vote
1answer
1k views

Permission denied: fusefs inside freebsd (freenas) jail

Host server: FreeNAS-9.10 (FreeBSD 10.3-STABLE) I've installed a jail, for backup purposes, mounting the to-be-backed-up filesystems of the FreeNAS host inside the jail. Backing up using borgbackup ...
0
votes
0answers
34 views

Who/What is abusing our fileserver?

Usually our TrueNAS (really FreeBSD with a GUI) servers perform well with iostat -x showing hundreds of megabytes/second read or written with the %b at only several percent for each disk. But every ...
2
votes
1answer
1k views

mount FreeBSD encrypted ZFS from live CD AND find the root partition

I followed the menu to install FreeBSD 11 with encrypted ZFS. After using the system fine for some days, I messed something in /boot/loader.conf so can not boot. I searched and the way to recover is ...
0
votes
1answer
77 views

FreeBSD script - different result to manual execution (tcsh)

This question has been asked previously in https://joomla.stackexchange.com/questions/20697/securing-a-joomla-installation-on-apache-mod-php but it may belong here better since it is not Joomla ...
0
votes
2answers
320 views

vSphere on same subnet as FreeNAS - how to limit FreeNAS management access to a specific VLAN or subnet?

I have a fairly common setup - vSphere and ESXi hosts using FreeNAS as the VM store. The servers can see each other (obviously) so I want to segregate system admin traffic and user traffic onto ...
1
vote
2answers
256 views

Opendkim doesn't sign emails sending from external clients

I've setup opendkim with my sendmail and it looks like everything works correctly, but it signs only those messages that sent locally (from webmail client or automatic subscriptions). when I try to ...
-1
votes
2answers
148 views

pfSense networking/routing troubleshooting

I have set up a pfSense virtual machine with two networks adaptators : WAN : 192.168.0.27/24 that is connected to an other router 192.168.0.1 to get internet access LAN : 172.16.0.1/16 that is ...
0
votes
1answer
1k views

FreeBSD 11, setting up a DNS server

i want to setup dns server on my system. I do the configs from freeBSD document, but I don't succeed. I do these steps: 1. ee /etc/hosts 127.0.0.1 my-server my-server.my.domain 192.168....
1
vote
1answer
309 views

Proper permissions on FreeBSD with nginx and php for multiple users

I am trying to set up a multi-user FreeBSD server using nginx. Here are my steps so far: In my /usr/local/etc/nginx/nginx.conf file I set user www www; so that nginx acts as the www user, part of ...
0
votes
1answer
167 views

freebsd set quota for users per zfs share

Is there any way to set multi quota for a user? example: I have a zfs pool named storage, three folder are in this folder, now, I want to: user1 has 10G on /storage/folder1 user1 has 5G on /...
0
votes
1answer
816 views

Bhyve : tap0 bridged network interface for ubuntu instance times out during startup

I'm trying to setup an ubuntu instance using iohyve under FreeNAS 9.10, the instance will boots up but timeout when trying to raise the network interface. So far I've tried to double check the ...
0
votes
1answer
180 views

Putting all blocked ips into a table

I would like to block all the incoming traffic for a specific port and to put the source ips of these blocked packets into a table... I don't know about a pf.conf solution, I guess I would use another ...
0
votes
1answer
48 views

SSH into a jail takes so long

I have only one ip address and so I get to my jail through NAT. SSH to the host is lightning-fast but SSH to the jail is awfully long... Like 20 seconds between ssh command and prompt for public key ...
1
vote
2answers
333 views

syslog config for sftp logging

I'm on FreeBSD11. I changed syslog config file to log sftp actions in a file, but it doesn't work. /etc/ssh/sshd_config Subsystem sftp /usr/libexec/sftp-server -f LOCAL5 -l INFO /etc/...
3
votes
1answer
3k views

nginx php-fpm child exited with code 0

Anyone had a similar problem with php-fpm 7 with 11.0-RELEASE-p8 or know how to debug it? Situation starts after few minutes and show only half pages to clients. Any pages show up about ~62kb of ...
3
votes
1answer
109 views

zfs on FreeBSD 10

I have encountered to be what I consider a very strange performance issue I have an application that processes some data and creates 100GB or so of files. This runs fine, and I can scp the files off ...
1
vote
1answer
357 views

Check headers of a sent e-mail (by sendmail)

When I send an e-mail in console, like: echo "Body of the message" | mail -s "Some clever subject" my.address@myisp.com I would like to check the headers of the e-mail once it is sent. They do not ...
1
vote
1answer
539 views

Trying to “zfs attach” a new disk, how to get correct specification for the disk I'm adding?

I'm migrating data from my old server to zfs on FreeBSD 10.x (I'm actually on FreeNAS 9.10.2-u1 but doing this activity in console so it's pure FreeBSD). My problem is that zpool attach needs a ...
3
votes
2answers
815 views

What is bottlenecking my SMB share?

I set up a SMB/CIFS share on my FreeNAS box (Xeon E3-1220v5, 8GB DDR4 RAM) and I noticed that transfer rates are limited to ~70 MB/s, while I can easily get around 110 MB/s via WebDAV and using iperf ...
0
votes
1answer
642 views

nss-pam-ldapd ldap group filtering

I'm attempting to setup authentication via ldap for OpenSSH connections on our FreeBSD servers in AWS. The actual ldap server is external to AWS and is accessed over the Internet. I've run into a ...
4
votes
1answer
618 views

FreeBSD 11 not showing RX,TX packets and counts

I am having a FreeBSD 11 system in which I get the following output for ifconfig command # ifconfig lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384 options=600003<...
1
vote
0answers
107 views

pfSense quit - File system unknown - harddisk corrupt?

I have a pfSense router, and it stopped working. When I connect a monitor the display stays black. When I remove the internal disk and connect it to an Ubuntu laptop, I don't see it in the file ...
3
votes
1answer
84 views

What's included in the base image?

FreeBSD has some software included in the "base system", and optional software can be installed from pkg and the ports collection. What exactly is included in the base system? Is the list maintained ...
1
vote
1answer
153 views

FreeBSD CARP doesn't work in VirtualBox with bridged adapter [closed]

I have two identical VirtualBox machines running FreeBSD. Their networking is set up using "Bridged Adapter" option. I've followed FreeBSD Handbook instructions step-to-step, but I still not able to ...
1
vote
1answer
309 views

Where did load balancing using FreeBSD CARP go?

In some old manuals I see net.inet.carp.arpbalance sysctl, that turns on load balancing between CARP'ed interfaces. Recent manuals (FreeBSD 10+) say nothing about it. Where did that feature go and ...
3
votes
1answer
671 views

Slow read and write speeds on FreeBSD ZFS

my home storage server, which currently consists of 6 x 3 TB Seagate drives, 12 GB DDR3 RAM and a Core i3 540, has really poor performance when reading from or writing to the raidz2 I set up on. ...
1
vote
1answer
76 views

How can destination addresses 132.148.77.28 and 132.148.77.28/32 be use different network interfaces for routing?

The output of netstat -rn on my FreeBSD virtual machine shows that: Internet: Destination Gateway Flags Netif Expire default 10.195.51.254 UGS vtnet0 10....
-1
votes
1answer
2k views

How do you expand /var in pfsense when you run it in memory?

I have a pfsense box running 32GBs of RAM. I enabled /var and other directories to be in RAM due to have so much space and wanted to improve performance. How do you alter and increase the size of /...
1
vote
1answer
302 views

Why is there non-127.x.x.x traffic on my loopback device?

I've got an issue which caused me quite a bit of a headache and found the solution, but I cannot understand why the problem was happening in the first place. I've got an nginx reverse proxy which is ...
12
votes
2answers
774 views

Bare metal or virtualize?

I am looking to upgrade servers and am trying to figure out a good plan. We currently have 4 servers: OpenBSD firewall/VPN server FreeNAS backup servers (local) that receives ZFS snapshots FreeNAS ...
0
votes
0answers
112 views

ipfw blocks IPs not in table

FreeBSD this_server 10.3-RELEASE-p11 FreeBSD 10.3-RELEASE-p11 #0: Mon Oct 24 18:49:24 UTC 2016 IPFW seems to be full of ghosts for me. Here is an example. First the evidence of blocking with my IP ...
0
votes
1answer
1k views

Tinc on OPNsense

Having this kind of network layout https://imgur.com/rhLepAU I can get it working using mode=switch in with tinc, but not using mode=routed Those are the network details On quantum those are the ...
2
votes
2answers
779 views

FreeBSD shows high load, cannot find bottleneck

So we have set up a server(11.0-RELEASE-p2) that hosts around 150-200 jails. The server has 24 cores and 192gb of ram. When using top it shows no sign of stress - except the high load. All jails ...
1
vote
1answer
124 views

IPFW denies ssl connections

I'm having an issues loading https websites (google, facebook, amazon) through my PHP scripts using functions like fsockopen, file_get_contents. Operation is being timed out. So I started looking ...
3
votes
0answers
86 views

Solaris fmadm equivalent for FreeBSD

I've been looking for the equivalent of fmadm, the fault management configuration tool of Solaris / illumos on FreeBSD. But I'm unable to find an equivalent or even a subset of tools that mimics the ...
0
votes
0answers
44 views

Setting up remote console & poweron/off access for a single isolated physical machine

I have a server which will be sitting in a location without any smart hands (or any 'hands' at all) which is accessible but not easily. While I don't anticipate needing to power it off or on, or to ...
-2
votes
1answer
474 views

Rescue fstab, invalid argument mounting my disk ext4

I have a problem, I think I wrong to edit /etc/fstab on centos7 and I cannot reboot my remote server. I'm in rescue mode with freebsd. I cannot mount my ada0s3 (on centos was sda3) to fix my fstab. ...
1
vote
1answer
136 views

PF temporary reroute to different IP

I have a FreeBSD host that serves as an entry point to additional systems on an internal network. As such I have pf configured to redirect incoming traffic on certain ports (say, port 5000) to the ...
0
votes
2answers
771 views

Unable to connect to postgresql 9.6 server from 9.4 client

Specs Server Environment: FreeBSD (FreeNAS Jail) Postgresql version: 9.4 Listening_address: '*' Listening_port: 8096 pg_hba.conf entry: host all all 0.0.0.0/0 md5 Client Environment: Linux Ubuntu ...
2
votes
1answer
192 views

ZFS corrupted directory, but zpool doesn't detect anything wrong

A directory on my FreeBSD 10.2 server somehow got hopelessly corrupted (wasn't ZFS supposed to prevent that?) ls or any other command against it leads to current session getting frozen on the kernel ...
3
votes
1answer
713 views

How to change GELI passphrase on FreeBSD 11 Root-On-ZFS system with mirror RAID?

How to change GELI passphrase on FreeBSD 11 Root-On-ZFS system with mirror RAID? Swap devices are also mirrored and ancrypted. I have /dev/ada0p5.eli /dev/ada1p5.eli and /dev/mirror/swap.eli devices....
1
vote
0answers
422 views

How can I use a wildcard with pkg -upgrade?

As an example, when I want to list all installed packages of php70 I can just enter: pkg info php70\* But I cannot use the wildcard in this for pkg upgrade: pkg upgrade php70\* When I do get this ...
5
votes
2answers
434 views

Using bash shell when logging into FreeBSD ssh

I'm searching a way to be sure my commands are executed by bash on some FreeBSD 11 machines that use csh as default shell. The following is my code that works on Linux CentOS / Debian / MacOS X / ...
4
votes
2answers
192 views

How to tell if a FreeBSD host needs a reboot to activate the new kernel?

"uname" will tell me the version of the running kernel. How do I know if this is different from the installed kernel (i.e. the one that will be loaded on the next reboot)? Ideally I'd like to write a ...