Category: Random UNIX Related Items
-
IPTABLES Tidbits
List off all the rules in order. This helps to see if an allow is overriding one of your denies: iptables -nvL –line-numbers Reject or Drop? Drop means to drop everything at the interface and give no response. Best for port probes and the like. Reject responds to the source. Best practices for TCP/IP
-
FreeBSD ZFS Settings On i386 Hardware
AMD64 Kernel FreeBSD machines are good about autotuning. i386, on the other hand, needs to be adjusted manually. 1. Rebuild your kernel a. Disable/wipe all drivers you are not using or at least those you are highly unlikely to ever use. b. Add: options KVA_PAGES=512 c. Recompile/Install new kernel 2. Add these parameters to /boot/loader.conf […]
-
FreeBSD LAGG rc.conf
This is what your rc.conf should contain to configure LAGG with FreeBSD: ### LAGG NFS Interface ### ifconfig_bce3=”mtu 9000 up” ifconfig_bce0=”mtu 9000 up” cloned_interfaces=”lagg0″ ifconfig_lagg0=”laggproto roundrobin laggport bce3 laggport bce0″ ipv4_addrs_lagg0=”10.10.40.10/24″ Change the bce* interfaces to whatever your server is using for the network interfaces. The “mtu 9000 up” is correct!
-
ZFS Replication on FreeBSD
This script will replicate a ZFS pool to another FreeBSD machine. The sync process is quick, after the initial copy, and depending upon how much data changed. Download this shell script: http://www.tediosity.com/zfsrep.sh This script was written by another author for Solaris and I have fixed it to work on FreeBSD. I chose to use: /root/zfsrep […]