FreeBSD includes many modern OS features including advanced IP stacks and networking, Virtualization, hardened security, and high availability techniques. For more information about FreeBSD, see their website (FreeBSD.org). Questions are welcome here on Server Fault, or the FreeBSD Forums. ...
0
votes
2answers
18 views
FreeBSD jails access
I want to run an application inside jail so that allowed uses can only connect to the jailed env (application) and nothing else on my box.
But they need to be able to connect to the jail over the ...
0
votes
0answers
12 views
Redirecting port 80 requests to local web server with IPFW
I'm setting up a freebsd router and want certain IPs on my network to be forwarded to our local webserver if they make port 80 requests.
An example would be - banned user tries to surf the web, but ...
2
votes
1answer
28 views
Should pam_mkhomedir.so be in /etc/pam.d/sshd or /etc/pam.d/$anotherservice?
I want to enable pam_mkhomedir.so for users who authenticate to our system. I want a user's home directory to be created when they SSH into the box.
One common convention seems to be to put ...
2
votes
1answer
30 views
FreeBSD - monitor aggregate bandwidth of individual local network devices
I'm looking for ways to monitor the Internet usage - the total amount of data transferred - of individual devices on my network. I'm using FreeBSD 9.0-RELEASE with pf for filtering and NAT. I'm not ...
2
votes
2answers
20 views
How do I find out my CD ROM hardware specifics on FreeBSD?
I can usually use dmesg soon after bootup to display hardware info that my kernel loads. After my system has been up for a while however, dmesg no longer produces anything of value concerning ...
0
votes
0answers
24 views
PHP5 OCI8 FreeBSD
I'm running a FreeBSD server with Apache and PHP 5.3. I'm trying to get the Oracle DB extension (OCI8) running with PHP but I can't find a port or anything for it. Half of the Internet says it's no ...
0
votes
1answer
56 views
OSPF routing (quagga) FreeBSD. Routing tables doesn't change. Help please
I have a problem with my lab work.
I need to provide network routing with ospf.
My Net has the following layout:
So... When I start 3 virtual machine with all working interfaces, everything is ok - ...
0
votes
0answers
27 views
How to filter out “bad-len 0” packets with tcpdump?
When I listen internal network interface of router on freebsd, I get outputs like this
10:36:02.372026 IP 192.168.1.11.8888 > 192.168.1.2.49831: Flags [.], ack 1097, win 65050, length 0
...
0
votes
1answer
43 views
Which process is eating my hard drives?
Today, after I logged in with ssh, I see a lot of lag on my FreeBSD server.
Something is eating 100% of my both hard drives (RAID1 with gmirror).
systat -vmstat
5 users Load 0,06 0,16 ...
0
votes
0answers
69 views
FreeBSD + mrouted + IPTV
I am using FreeBSD 9.0. I have configured NATD and DHCPD with IPFW (open for now). I am trying to configure mrouted because my ISP is streaming IPTV (udp://@239.250.250.8:1234). What steps should I ...
1
vote
3answers
80 views
Will dropping only SYN packets improve or decrease firewall performance?
I'm setting ipfw, and the following was suggested to me: If I make the rule only to drop SYN packets for TCP, no connection could be established and the firewall won't even have to look at other ...
0
votes
1answer
51 views
FreeBSD vs. Illumos [closed]
I am using FreeBSD since some years now for server use and archlinux for desktop.
I really use many features of FreeBSD (ports, zfs, jails, pf, ...) now I read about Illumos an OpenSolaris derivate. ...
0
votes
0answers
26 views
FreeBSD Jail own network stack with vimage
I want to throw all services from the host system and put them in jails.
Unfortunatly this doesn't work for file sharing (e.g. nfsd) because the jails don't have there own network stack by default. I ...
1
vote
2answers
91 views
DHCPD on FreeNAS?
I've got a FreeNAS install I've been using for a while, and wanted to set it up to serve as a network boot server. I downloaded and installed the isc-dhcpd-server, configured the tftp+iscsi+etc ...
0
votes
1answer
13 views
How do I use the excape characters properly in csh's builtin echo command?
I'm trying to build my fstab during install with a script, so I want to have something like this:
printf '# Device\t\tMountpoint\tFSType\tOptions\t\tDump\tPass#' >> /mnt/etc/fstab
printf ...
1
vote
1answer
30 views
How do I use a shell builtin command rather than the system command?
I'm specifically asking about FreeBSD. I am using the default /bin/csh as my shell. There is a binary version of echo at /bin/echo, and there is an echo command built into the shell. The system ...
0
votes
4answers
67 views
Getting ;5D when hitting ctrl + arrow key in a Terminal on FreeBSD
On centos I can skip a word by hitting ctrl + arrow (left or right) in a terminal. When I ssh into a FreeBSD box and I try the same pattern I get:
$ tail -f 20120412.log;5D;5D;5D
(each try = ;5D)
...
0
votes
0answers
55 views
How can i share printer using freenas 7 or 8 [closed]
i would like to share my printer on my freenas server. i can use either 7 or 8 it does not bother me, however when i tried to follow some tutorials online and used some file that they said i got an ...
0
votes
1answer
27 views
Lighttpd can not start when including mod_rewrite
Here is my server modules list (modules.conf), its working without any problems, and lighttpd is running correctly while using this list:
server.modules = (
"mod_access",
# "mod_alias",
# ...
-1
votes
0answers
116 views
FreeBSD vs NetBSD vs OpenBSD as PF firewall prozy [closed]
Which would be a more ideal distribution to use to create a proxy firewall? I want to setup a BSD PF box to filter attacks and forward traffic to my servers. I've hear PF does a much better job at ...
1
vote
1answer
67 views
How do I disable NFSv3/v2 connections to a FreeBSD NFSv4 server?
I am using a Kubuntu 11.10 client with a FreeBSD 9.0 server.
The server has the following lines in /etc/rc.conf
nfs_server_enable="YES"
nfsv4_server_enable="YES"
nfsuserd_enable="YES"
and the ...
2
votes
1answer
48 views
Moving data from linux mirrors into freebsd ZFS
I got an 3 years old computer with 4GB RAM Dualcore/Intel, and 4 hotswapable SATA HDD's (500GB each, 2+2 in LINUX RAID-1 configuration - so i have 2 500GB mirrored volumes). Each volume is full of ...
3
votes
3answers
51 views
Moving files off volume and then back on while preserving all attributes?
I have a situation where I'm testing a new filesystem that has an issue with some metadata. All of the files are intact, however I ultimately have to effectively move every single file off to another ...
0
votes
1answer
55 views
Pf examples for host and jails configuration - freebsd
Can anyone point me to some examples to "best practices" for PF configuration for host and several jails?
In my environment I have a host (freebsd) system nearly only base install, and all ...
5
votes
1answer
97 views
Supermicro + IPMI + FreeBSD: Kernel prints at 1-bps
I am running FreeBSD 8.2-RELEASE. The machine is a Supermicro 5015M with a IPMI 2.0 daughterboard.
When I boot this host, the boot process proceeds fine. I see the BIOS, the RAID BIOS, the first and ...
0
votes
0answers
25 views
trafficserver on freebsd9.0 equal "[connect] ERROR (main_socket_fd 3): No such file or directory
I use freeBSD and trafficserver for caching:
and this is my freeBSD version and trafficserver version:
FreeBSD videocache.cnwisp.com 9.0-RELEASE FreeBSD 9.0-RELEASE #0:
Tue Jan 3 ...
0
votes
0answers
40 views
ZFS send/receive and mysterious data dissapearance
Odd behavior after zfs send/receive. Very basic command set here:
I had created a snapshot to replicate from:
# zfs send tank/storage1@04172012 | zfs receive -F usb1/storage1-slave
...
1
vote
1answer
58 views
FreeBSD Netboot over TFTP
Is there a way to boot FreeBSD over TFTP?
All the instructions I've seen require you to transition to NFS after PXEBOOT has loaded.
1
vote
0answers
46 views
Livestatus doesnt work with Nagios on FreeBSD
Im trying to use livestatus with nagios on FreeBSD.
I've managed to compile and configure it, but Nagios doesnt seem to be loading the module and dont produce any errors.
Other info:
$ grep broker ...
-1
votes
1answer
59 views
Can huge error log cause performance issues?
We have big nginx error log(1GB).
Can this cause serious performance issue while nginx writes new errors in that file?
Sometimes our webserver hangs and recovers itself for about 2 minute.
OS: ...
1
vote
1answer
49 views
FreeBSD Jail with Ruby multiple web deployment
I am looking to offer a free deployment system for ruby web applications (based on rack and not ruby on rails) so essentially I will allow users to upload a file with their app and the app will show ...
0
votes
1answer
38 views
How to view the disk bandwidth used by each process on FreeBSD
top than m (view disk iops) than o than write (order by write desc)
Will show a sort of iotop ordering by the process that uses the most write operation per second. Any way to se the bandwidth used ...
2
votes
1answer
47 views
How can i view the disk latency of a ZFS pool, or of the disks in it?
I'm using FreeBSD. I would like to write a munin plugin to log it, but i don't understand how to get this data.
0
votes
0answers
47 views
FreeBSD - memory gap
I came across script that prints some memory informations and here is my output:
SYSTEM MEMORY INFORMATION:
mem_wire: 4133535744 ( 3942MB) [ 12%] Wired: disabled for paging out
mem_active: ...
10
votes
3answers
555 views
Log every command executed from root
I want to give access to my root server to an external system administrator, but i want to be sure to double check what he is doing to my server, e.g. copying data i don't want them to do and so on. I ...
3
votes
1answer
108 views
FreeBSD network performance fluctuating
I just installed a fresh FreeBSD 9.0 on a new server. The machine is using the onboard gbit nic (Atheros AR8151). It runs Samba and FTP and has a ZFS pool of ~3TB. When I download files from some ...
0
votes
2answers
54 views
freebsd pid file not created
Pid files not created in /var/run folder.
rc.d script:
#!/bin/sh
. /etc/rc.subr
name=phpcgi
rcvar=phpcgi_enable
pidfile=/var/run/${name}.pid
command=/usr/local/bin/php-cgi
load_rc_config $name
...
2
votes
2answers
159 views
Are there any PCIe SSD cards compatable with OpenIndianna (OpenSolaris) and/or FreeNAS (freebsd) 8+?
Has anyone had any success at all with any PCIx SSD cards around the 200GB+ mark under FreeNAS 8 or OpenIndiana? Specifically either of these platforms because of ZFS support for which we'd be using ...
6
votes
2answers
87 views
FreeBSD ports: remove build dependencies after installing port
Is there any way to remove build dependencies of the port after installing it?
Many ports use exotic tools for building and these tools are not used anymore when port is builded and installed.
4
votes
1answer
44 views
Check changelog of FreeBSD port before upgrading?
Is there an easy way to check a changelog of a FreeBSD port before you upgrade? For instance, I'd like to check what upgrades are manditory before I do portmaster -ad. It would be nice to have ...
0
votes
3answers
35 views
Apache22 displays PHP source
I've just install Apache22, PHP 5 with Apache module, and MySQL. The Apache conf file has the PHP LoadModule line, but it still displays the PHP source code. Are there any other reasons why this ...
1
vote
3answers
72 views
FreeBSD rc.d script doesn't work when starting up
I am trying to write a rc.d script to startup the fastcgi-mono-server4 on FreeBSD when the computer starts up - in order to run it with nginx.
The script works when I execute it while being logged in ...
3
votes
1answer
86 views
How to rebuild gmirror from bad hard drive
On my freebsd box
$uname -rms
FreeBSD 7.2-RELEASE-p5 i386
hard disk want to die.
smartd daemon write in log:
Mar 29 21:25:04 smartd[935]: Device: /dev/ad7, 10 Currently unreadable (pending) ...
4
votes
1answer
143 views
FreeBSD Host ZFS on Root Running VirtualBox with Windows Server 2003 Guests Very Slow HD Speeds
Here is my setup: I am running a Dual Quad Core Xeon 2.0Ghz with 16GB of Ram and 2 x 2TB WD Green drives with FreeBSD 7 that has ZFS on root. The Hard Drives are in a ZFS Mirror. I am running ...
3
votes
2answers
220 views
Building one big filesystem with JBOD and ZFS
How to build a really big ZFS filesystem?
The above question is vague in the 1st reading, so more precise.
I know how to build big ZFS volume with one computer. e.g.
get a good computer with ECC ...
-1
votes
1answer
99 views
Dropping Cached Memory on FreeBSD
i use FreeNAS server which is built on OS version FreeBSD 8.2-RELEASE-p6.
I use ZFS file system with 13TB HDD on my 8GB physical ram installed box.
It almost uses all of RAM installed while ...
2
votes
1answer
110 views
Expanding raidz vdev
I'm currently planning on installing FreeBSD 9 on my home server. The machine has 4x 1.5TB disks, and at some point, when HDD prices drop I'll be upgrading to something bigger, perhaps 3TB.
The disks ...
1
vote
1answer
140 views
How to use nginx PAM module?
I would like to use nginx PAM module to authenticate a site with existing users on a FreeBSD system. I tried to use pam_unix.so, but no luck. It's just not let me in with my usr/psw pair. :(
nginx ...
5
votes
1answer
112 views
Why change net.inet.tcp.tcbhashsize in FreeBSD?
In virtually every FreeBSD network tuning document I can find:
# /boot/loader.conf
net.inet.tcp.tcbhashsize=4096
This is usually paired with some unhelpful statement like "TCP control-block hash ...
4
votes
2answers
126 views
How to grant su access to wheel without asking for password on FreeBSD?
I would like to grant users of the wheel group (other sysadmins) su access without being asked for password.
I know how to do it with pam in linux, but the question now is for FreeBSD. I am not ...