Kategoriarkiv: FreeBSD

Installing FreeBSD 2017 (OpenVPN)

wget https://download.freebsd.org/ftp/releases/amd64/amd64/ISO-IMAGES/11.1/FreeBSD-11.1-RELEASE-amd64-memstick.img root@defiant:/home/mike/Downloads# dd if=FreeBSD-11.1-RELEASE-amd64-memstick.img of=/dev/sdb bs=10240 dpkg search openvpn dpkg install openvpn-2.4.3 cd /usr/local/etc/ mkdir openvpn root@beastie:/usr/local/etc/openvpn # cp /root/beastie.mikjaer.com.ovpn . add to /etc/rc.conf openvpn_enable=”YES” openvpn_configfile=”/usr/local/etc/openvpn/beastie.mikjaer.com.ovpn” reboot

Udgivet i FreeBSD, Knowledge Base, Old Base, OpenVPN | Skriv en kommentar

Extend FreeBSD ZFS inside KVM with virsh

## Example details: # Disk is sized 15G, we will extend it to 25G. # RAM is 2G, Swap is also 2G. # First partition is freebsd-boot. # Second and third is eigher freebsd-swap or freebsd-zfs. I will cover both … Læs resten

Udgivet i FreeBSD, Knowledge Base, Old Base, Zfs | Skriv en kommentar

Hotswaping SCSI in FreeBSD

camcontrol stop sd0 stops device sd0 , flushes cache’s and stuff camcontrol rescan all scan all scsi busses for new devices.

Udgivet i FreeBSD, Knowledge Base, Old Base | Skriv en kommentar

Boundling NIC’s in FreeBSD

ckh #!/bin/sh ckh # Configure NICs as up and load kernel module ckh ifconfig vr0 up ckh ifconfig vr1 up ckh kldload ng_ether.ko ckh # Plumb notes together ckh ngctl mkpeer vr0: one2many upper one ckh ngctl connect vr0: vr0:upper … Læs resten

Udgivet i FreeBSD, Knowledge Base, Networking, Old Base | Skriv en kommentar

FreeBSD Trafic Shaping

http://www.bsdnews.org/02/dummynet.php

Udgivet i FreeBSD, Knowledge Base, Links, Old Base | Skriv en kommentar

Software raid in freebsd

you can if you want add: device ccd but it shouldnt be necesary: ccdconfig ccd1 32 0 /dev/ad0 /dev/ad1 Unites ad0 and ad1 in a harddisk named ccd1 which has twice the size Save config: ccdconfig -g > /etc/ccd.conf echo … Læs resten

Udgivet i FreeBSD, Knowledge Base, Old Base | Skriv en kommentar

Creative port forwarding in FreeBSD (multivnc)

We needed some dynamic forwarding in FreeBSD cd /usr/ports/sysutils/socket make install We needed to forward some vnc vbcafe# echo vnc 5900/tcp >> /etc/services vbcafe# echo vnc1 5901/tcp >> /etc/services vbcafe# echo vnc2 5902/tcp >> /etc/services vbcafe# echo vnc3 5903/tcp >> … Læs resten

Udgivet i FreeBSD, Knowledge Base, Networking, Old Base | Skriv en kommentar

Cafe firewall FreeBSD

==== rc.conf =============================================== defaultrouter=”192.168.10.1″ hostname=”npcafe.secure-net.dk” ifconfig_vr0=”inet 10.10.10.254 netmask 255.255.255.0″ ifconfig_sis0=”inet 192.168.10.199 netmask 255.255.255.0″ gateway_enable=”YES” sshd_enable=”YES” usbd_enable=”YES” apache2_enable=”YES” named_enable=”YES” smbd_enable=YES nmbd_enable=YES dhcpd_enable=YES dhcpd_ifaces=vr0 firewall_enable=YES natd_enable=”YES” natd_interface=”sis0″ ==== firewall ============================================= #!/bin/sh case “$1” in start) echo Starting firewall ipfw -f flush natd … Læs resten

Udgivet i FreeBSD, Knowledge Base, Networking, Old Base | Skriv en kommentar

Make UFS BT combatible

impreza# df -h Filesystem Size Used Avail Capacity Mounted on …. /dev/da1 33G 1.2G 29G 4% /data2 …. impreza# umount -f /data2 impreza# tunefs -m 0 /data2 tunefs: minimum percentage of free space changes from 8% to 0% tunefs: should … Læs resten

Udgivet i FreeBSD, Knowledge Base, Old Base | Skriv en kommentar

Disk quotas in freebsd

The quotas used to restrict the disk space for system users. It will be useful in case if you have not enough free disk space on your server and etc. The quotas may be used by two ways: # User … Læs resten

Udgivet i FreeBSD, Knowledge Base, Old Base | Skriv en kommentar