Browsing articles tagged with "freebsd - Admins Goodies"
Dec 27, 2012
tom

Is FreeBSD more suitable than CentOS for firing 40k concurrent connections (for Jmeter)?

I am trying to run Jmeter to simulate 40k concurrent users and stress test a particular system. Putting aside the possibility that Jmeter may not be able to push such a high number (although I have read that it is at least possible to handle 10k concurrent threads on a very powerful machine), is FreeBSD a more suitable OS as compare to CentOS to be used for my Jmeter machine for handling 40k (or as [...]

Continue Reading »
Dec 20, 2012
tom

How to grant su access without password to one user only in wheel group (FreeBSD)?

I know how to enable su without a password for all wheel group users by adding the appropriate configuration line in /etc/pam.d/su. I do not want to enable this for all wheel users but only one particular user. I am using FreeBSD 8.1. How do I do this? UPDATE in response to comments below This is a pfSense box. Underlying OS is FreeBSD 8.1 but as usual for pfSense a lot of functionality is missing, [...]

Continue Reading »
Dec 3, 2012
tom

Allow connection to certain port from specified domain

I got two domains, which are pointing on the same IP address, I can use both to connect to the server or certain port (TeamSpeak), the problem is that I would like the only one domain from those two to be working while connecting to a certain port. Eg. example.com points at the 11.22.33.44 — allow connection to the certain port from this domain. sample.com points at the 11.22.33.44 — disallow connection to the port [...]

Continue Reading »
Dec 1, 2012
tom

FreeBSD restore of /rescue

I’m running a restore from a previous backup of my FreeBSD system, and run into trouble when restoring / (excluding mount-points). The problem is that /rescue fills the / partition (to the extent that I can’t restore my entire / partition) by taking up more place than it originally did. I suppose it’s because /rescue contains links and not files, and that files, not links, are restored into my / partition. I’ve tried restoring with [...]

Continue Reading »
Nov 24, 2012
tom

Block Google requests to 16k using pf firewall

I’d like to block access to Google search using PF after the threshold of 17500 requests (connection established) in 24h, from a host running FreeBSD 9. What I came up with, after reading pf-faq is this rule: pass out on $net proto tcp from any to ‘www.google.com’ port www flags S/SA keep state (max-src-conn 200, max-src-conn-rate 17500/86400) NOTE: 86400 are 24h in seconds. The rule should work, but PF is smart enough to know that [...]

Continue Reading »
Nov 15, 2012
tom

Migrating ZFS from using partitions to using the entire disk

I have a simple ZFS setup that I’ve been running for a few years now. When I originally set it up, I created a number of partitions and created a zpool from a partition on each of my two drives, and used the others for booting etc.. Now however I have a separate drive for booting and everything else, so I just want to use the entire drives for my zpool. I recently replaced a [...]

Continue Reading »
Oct 24, 2012
tom

Mounting fuse sshfs fails when invoked by Cron on FreeBSD 9.0

I have a remote server filesystem that I’m attempting to mount locally on a FreeBSD 9 machine via FUSE sshfs, and Cron for a backup routine. I have ssh keys between the boxes setup to allow for passwordless login as the root user on the local machine. Cron is set to run the following script (in Root’s crontab): #!/bin/shecho “Mounting Share”/usr/local/bin/sshfs -C -o reconnect -o idmap=user -o workaround=all <remote user>@<remote domain>.com: /mnt/remote_server As root, I [...]

Continue Reading »
Oct 8, 2012
tom

How can I scroll back the output in FreeBSD’s console without Scroll Lock?

I’ve installed FreeBSD inside a VM on a laptop. As it turns out, the laptop keyboard has no Scroll Lock key, which is used for scrolling the screen back in FreeBSD’s console. How can I scroll back the output without Scroll Lock? Asked by eugene y As root, dump the keyboard map to a file kbdcontrol -d > mykeys Change the file so “Ctrl+NumLock” will set “Scroll Lock”. Find line with scancode “base” 069, or [...]

Continue Reading »
Oct 1, 2012
tom

top process state column under FreeBSD

When running top interactively, I can see various word in the state column : nanslp, biord, select, uwait, lockf, pause, kqread, piperd, sbwait … Some like nanslp or kqread are self explanatory, others are not. Tried man pages : STATE is the current state (one of “START”, “RUN” (shown as “CPUn” on SMP systems), “SLEEP”, “STOP”, “ZOMB”, “WAIT”, “LOCK” or the event on which the process waits), C is the processor number on which the [...]

Continue Reading »
Sep 22, 2012
tom

How can I make exim deliver a single incoming mail to multiple local maildirs?

I’m maintaining an IMAP server running FreeBSD which uses exim 4.80 as its MTA. Right now I try to create an email alias so that I can address all users of the system for informing them about scheduled downtimes and the like. The idea is that a mail to vmailusers@imap.mydomain.com should get forwarded to all users on the system. I initially considered having a simple simple /etc/aliases entry but noticed that it’s not what I [...]

Continue Reading »
Pages:1234567...34»