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
5
votes
2answers
554 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
283 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 ...
1
vote
1answer
281 views

use provided gateway 2001:4ba0:fffd:1:beef::1 /128 instead of fe80::1.

I am trying to setup some IPV6 address on a FreeBSD 11 server, I was told to use as a gateway this IP: 2001:4ba0:fffd:1:beef::1 /128 My addresses are: 2001:4ba0:fffd:0063::0 /64 I tried this: ...
21
votes
6answers
5k views

How bad is it to have multiple devices with the same SSH server keys?

I am working on an embedded device that runs FreeBSD and SSH. As you know, sshd likes to randomly generate a set of server keys when it first boots up. The problem is that we will be shipping the ...
1
vote
1answer
597 views

Slow network fixed adding hw.vtnet.csum_disable=1 what are the posible side effects?

While using FreeBSD 11 on Google Compute engine creating a vpn with openvpn & l2tp (mpd), I notice that the network speed was extreamly slow, first I disable the TSO: ifconfig vtnet0 -tso But ...
0
votes
2answers
804 views

Problems with static IP addressing on FreeBSD

Appreciate this is quite a basic question for serverfault but I'm quite stuck with a problem with static IP addressing on a FreeBSD server and I'm not greatly familiar with FreeBSD, but I've been ...
0
votes
2answers
437 views

Why does nginx raise a 404 when it tries to acess static files on a FreeBSD server?

I've got nginx 1.8.1 on a server running FreeBSD 10.2. I'm trying to serve files from a subdirectory of /usr/local/www/ (which is default on FreeBSD), but for some reason, requests to the files I'm ...
1
vote
0answers
2k views

Google Firebase Cloud Messaging not in ca_root_nss?

We are trying to migrate our push services to Google Firebase Cloud Messaging. On the development machines (that run linux) everything is fine, but in the integration system (which runs on FreeBSD ...
0
votes
2answers
237 views

How to create a salt stack manifest from an existing machine

We recently lost our system admin. and I have picked up the task of ensuring that if anything bad happens we can recreate our VM's. The systems are FreeBSD various versions. Is there any way i ...
-1
votes
2answers
720 views

System CPU use on freeBSD

I have a large number of small jobs that I need to run. If I run them on a 6core Xeon, Broadwell, it runs with at least 80-90% userland CPU If I run the same assignment on a box with 2X16 core CPU ...
0
votes
1answer
241 views

FreeBSD on AZURE

I am testing AZURE with FreeBSD 10.3. FreeBSD is up and running, configured, can connect remotely to it, but it has limited storage. I would like to attach another disk / mount point in order to have ~...
-1
votes
1answer
510 views

OpenVPN isn't found in FreeBSD 11 — why?

I'm trying to install OpenVPN on Freebsd 11, but it says it's not found: # pkg install openvpn Updating FreeBSD repository catalogue... FreeBSD repository is up-to-date. All repositories are up-to-...
0
votes
1answer
134 views

jails in zfs space in freebsd 11, gives mount descfs error

Good Night, I am trying to deply a multijail environment using freebsd 11 on a OVH dedicated server. I created the cloned interfaces and created the jail , but as soon as I try to start it tells me ...
0
votes
1answer
121 views

What is the best way to build a port of a version that is only available in a newer version of FreeBSD?

I am currently supporting devices which are running FreeBSD 9.2, as well as 10. And I need to somehow install a newer version of archivers/libarchive than that which is available for these FreeBSD ...
9
votes
4answers
12k views

How to check if RAM is running in ECC mode?

I updated this post since I replaced the processor, but the core of my question (and unfortunately the results as well) are the same. I built my first FreeNAS box and wanted to use ECC RAM since I ...
6
votes
2answers
666 views

Migrate FreeBSD Jails to Linux

we are running some jails in FreeBSD 10 and the decision has been made to decommission the FreeBSD server and migrate all the jails to Linux environment Red Hat 6 or 7. Is there a straight forward ...
2
votes
1answer
936 views

FreeBSD jail as gateway

I am trying to set up a jail that will serve as a default gateway for some of my external clients. I have a VIMAGE jail that has a dedicated IP address in my local network which I want to use as a ...
1
vote
1answer
712 views

FreeBSD bandwidth throttling per IP

I have a public HTTP server running FreeBSD. Nginx allows me to limit throughput per connection, but I don't want to limit each IP to only 1 connection so I need a solution to limit per IP. Nginx ...
6
votes
2answers
1k views

Is there a way to set multiple ZFS filesystem properties at once?

My normal ZFS filesystem build process may look something like: zpool create vol1 -o autoexpand=on -o autoreplace=on mirror nvme0n1 nvme1n1 -f zfs set compression=lz4 vol1 zfs set atime=off vol1 zfs ...
2
votes
1answer
689 views

Trying to mount from freebsd to centos NFS server

I cannot map my FreeBSD client to my CentOS NFS server. On trying to mount I get: RPCPROG_NFS: RPC: Port mapper failure - RPC: Unable to send Version of client is: FreeBSD 8.0-RELEASE Version of ...
0
votes
1answer
189 views

Use failover IP as a primary server IP

I bought a dedicated server which has its primary IP blacklisted, I am having a IP failover (NIC I believe) I'd like to use as a primary IP instead. Is action like that possible? if so, what can I do ...
0
votes
1answer
115 views

How to use www ports with several virtual hosts

I've installed www/wordpress port, configured wp-config.php and set up Apache config accordingly. The site is running OK. Now, what should I do if I want another site to run Wordpress? I can't set /...
2
votes
1answer
2k views

All IPv6 traffic blocked by pf

The following pf.conf (FreeBSD 10.3) appears to be blocking all IPv6 traffic and I can't work out why. tcp_inbound = "{ ssh, domain, http, https }" tcp_outbound = "{ domain, http, https, imaps, smtps ...
0
votes
1answer
185 views

FreeBSD process file location

I have a PHP based script that stops two of the same process executing(via crontab), on CentOS I did the check for the running process via the following: if(file_exists("/proc/{$pid}" )) { However ...
12
votes
5answers
3k views

Backing up a MySQL database via ZFS snapshots

I've found a number of sites talking about doing exactly this, but I'm missing a few important details. The general steps are Run FLUSH TABLES WITH READ LOCK Take the ZFS snapshot Run UNLOCK TABLES ...
1
vote
1answer
167 views

Nginx: significance of bracket syntax?

Using Nginx on FreeBSD, wondering what's the difference between events { worker_connections 200; } and just worker_connections 200; by itself? Or server { listen 80; location / { ...
1
vote
0answers
270 views

Sending audit logs with rsyslog from CentOS to auditdistd on FreeBSD

I am trying to send audit trails from rsyslog running on CentOS to auditdistd on FreeBSD using TLS. auditdistd can be both sender and receiver. I would like to trick auditdistd into thinking that ...
0
votes
1answer
367 views

Samba mounted as owner, but still can't change permissions

I've set up a Samba server on my FreeBSD, and it is basically all working exactly as expected. Except for one thing: I can't change file permissions, even when I mount the share as the owning uid. ...
1
vote
1answer
659 views

How to allow write on SFTP only setup?

I'm trying to setup FreeBSD 10 with an account that can SFTP, but not SSH. I've got my sftponly group and my specific account is a member of that group. My sshd_config contains: Match Group ...
7
votes
1answer
1k views

ZFS vdevs accumulate checksum errors, but individual disks do not

I'm running a vendor-specific derivative of FreeNAS 9.3. My trouble started when I installed a new JBOD chassis to add two new vdevs into my pool, and the chassis had a bad board. During this time, I ...
29
votes
8answers
10k views

Delete 10M+ files from ZFS, effectively

I have written a buggy program that has accidentally created about 30M files under /tmp. (The bug was introduced some weeks ago, and it was creating a couple of subdirectories per second.) I could ...
0
votes
1answer
217 views

How to reuse filesystem subtree amongst multiple jails?

I have a FreeBSD 11 host, and I want to setup multiple jails in it. Official guide suggests hard copying /usr/bin into each of the containers. Having that my jails shall be nearly identical, this ...
-1
votes
1answer
1k views

How can I install Oracle JDK on FreeBSD_10.3

I've fetched jdk-8u102-i586.tar.gz from http://www.oracle.com/technetwork/java/javase/downloads/index.html and already place it in /usr/ports/distfiles directory. But, "make install" command prints ...
0
votes
1answer
1k views

How do I list the user that started a service in freebsd

Just a simple question, but I've looked everywhere and can't seem to find this. I just need to know what user started a particular service. In this case, I want to know what user runs the headphones ...
0
votes
0answers
293 views

FreeBSD save default route with gateway on different subnet

I'm trying to set up a default gateway which is not on the same subnet of my freebsd (freenas) machine. According to THIS article, there is way : route add -host <<GW_IP>> -link eth0 -...
0
votes
1answer
88 views

Dumping route changes from openbgpd

I have an openbgpd installation running on FreeBSD. I want to capture the routes whenever there is a change. Is there any way of getting this from the logs, or writing a hook to listen for such events?...
1
vote
2answers
245 views

FreeBSD: Starting PostgreSQL before other services

I run a python application on FreeBSD that uses PostgreSQL, Nginx, and UWSGI. UWSGI I manage with SupervisorD. My /etc/rc.conf looks like this: ... postgresql_enable="YES" nginx_enable="YES" ...
2
votes
2answers
791 views

Can ssh generate a kerberos ticket? (FreeBSD)

TL;DR I want to be able to ssh from a FreeBSD host to a FreeBSD host, using my kerberos ticket generated when I first logged in. Question Environment FreeBSD 10.3 with working openldap-sasl-client,...
0
votes
1answer
535 views

Restrict client IP address on OpenVPN using TAP interface

I've set up an OpenVPN + PF setup on a FreeBSD 10.3 server. Clients to my VPN include administrators, which should have full access to the network and untrusted users who should ONLY be able to ...
1
vote
1answer
826 views

Shrink FreeBSD root partition

I currently have a pfSense 2.3.2-RELEASE which was installed with too little RAM and now I realized that the swap partition is too small (8GB) and I want to expand it. The problem is there's no free ...
0
votes
1answer
630 views

Default http proxy under FreeBSD

I'd like to set default http proxy for all users under my FreeBSD environment. I modified /etc/login.conf file by adding HTTP_PROXY variable: default:\ :passwd_format=sha512:\ :copyright=/etc/...
1
vote
1answer
136 views

Can't read old UFS1 superblock using GELI (Blowfish-CBC) on FreeBSD

Trying to add encrypted partition on FreeBSD10.3 GELI/Blowfish-CBC. AES on / and /swap works fine, but I can't add an additional encrypted partition using Blowfish. Here is the way I did it: # mount -...
1
vote
1answer
4k views

Boot .iso from PXE server via HTTP

I have set up on my FreeBSD 10.3 PXE Boot server, using Syslinux. Boot via TFTP works fine, but via HTTP returns to PXE menu. Getting all files from browser works fine. # cat /usr/tftpdata/pxelinux....
1
vote
1answer
684 views

Phpmyadmin on FreeBSD 10.3 and Nginx 1.10.1

I am trying to install Phpmyadmin on a FreeBSD 10.3 server with Nginx 1.10.1 but it is not working. The Php version is 7. It is a WPMU server, everything is working except Phpmyadmin which is giving ...
1
vote
0answers
102 views

FREEBSD - How to backup permission recursively?

How to backup permission recursively from folder, subfolders and files? I try using getfacl -R /xxx > permissions.acl, but freebsd not accept -R. Have another way to do this?
2
votes
1answer
277 views

NFSv4 parameter specification for exported directories and client IP

On FreeBSD 10.1 REL (for both client and server), I'm trying to share certain directories (/etc and /root) via NFSv4 with a specific client. My /etc/exports - /etc /root -ro -maproot=nobody:...
1
vote
1answer
541 views

FreeBSD bridge ARP replies not forwarded

I have a bridge between two networks using the same address space, and have very strange issues with ARP packets. Interface bridge0 has no IP address assigned, and has two members : em1 and em2. A ...
0
votes
1answer
689 views

Set an network interface in FreeBSD as DHCP-enabled, but totally silent until explicitly enabled

I'm setting up a FreeBSD carp router/firewall backup, my provider is giving out IP by DHCP, it's static and tied to MAC address of my NIC, so when carp switches state I'm trying to switch off the ...
0
votes
1answer
203 views

Why is outbound bandwidth on VPS much less than reversed inbound from same host?

I have a FreeBSD 10.1 VPS in Europe using the VirtIO Ethernet device that sees significantly smaller outbound bandwidth than inbound from the same distant hosts. This problem was originally noticed ...
1
vote
0answers
428 views

Best practice for setuid and setgid in /root and user directories

ZFS allows to created datasets with setuid turned off, which (AFAIK) means that setuid bit can't be set on files stored in those datasets. Assume now that there are two datasets, one for the /root ...