Skip to content

wildfielded/samples-freebsd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FreeBSD configuration samples

It should be keep in mind that here are not only files ready for work, but also assemblies from different cases as references. Based on my dummy experience.

  1. loader.conf
    /boot/loader.conf
  • Console in text-mode
  • jme(4) driver has some bugs on particular hardware

  1. .cshrc
    /root/.cshrc
    /usr/home/ded/.cshrc — Some useful tuning, when working in tcsh.

  1. Locale
    /root/.login_conf
    /usr/home/ded/.login_conf — Setting up KOI8-R locale

  1. Proxy configuration
    /root/.subversion/servers — For svn
    /usr/local/etc/pkg.conf — For pkg
    /etc/csh.cshrc — System-wide config for csh
    /etc/profile — System-wide config for sh

  1. Build Kernel and World
    /etc/src.conf
    /etc/src-env.conf
    /etc/make.conf — For building custom system, custom kernel, and custom ports
    /usr/src/sys/amd64/conf/BSDSRV — Kernel config for 11.2 (bare metal)

  1. One image for many different servers
    Let's suppose, for instance, that we have 5 servers with different functional (external — primary, secondary, tester; internal - primary, secondary). But they filesystems are identical (except of some logs, tmp-files, etc.)
    /etc/rc.conf — Main config
    /etc/crontab — Tasks for different servers
    /etc/newsyslog.conf_BFP — Do not forget file rotation (search this filename in /etc/crontab)
    /etc/syslog.conf_B — Logging for one external server
    /usr/local/etc/rsync/rsyncd.conf_BFP — Modules set for periodic files synchronization via cron

  1. Firewall (ipfw)
    /etc/rc.fw - Something for references (creepy censored)

  1. SSH
    /etc/ssh/ssh_config - +Old ssh clients and Git accounts
    /etc/ssh/sshd_config - It works

  1. Inetd sweet Inetd 😊
    When you urgently temporarily need FTP, RSH, TFTP, POP3 without third-party daemons,
    /etc/inetd.conf - this is for you.
    /etc/pam.d/rsh - One line changed for root's remote shell

  1. Squid
    /usr/local/etc/squid/squid.conf - ACLs, logs, peering/sibling, how could we live without it?

  1. Bind
    /usr/local/named/usr/local/etc/namedb/ - All the given configs are only for one external DNS-server with chrooted Bind

  1. Apache
    /usr/local/etc/apache24/ - Nothing special, just work.
    /usr/local/www/apache24/data/wpad.dat - Auto proxy configuration sample
    /usr/local/www/apache24/error/ - Old-way customized error pages
    /usr/local/www/apache24/icons/ - Ancient smiles collection

  1. Sendmail... Yes, I can!
    /etc/mail/ - All the given configs are only for one external mail server
    /etc/mail/sentinel/sentinel.cf - Very old and simple mailfilter

  1. ProFTPd replaces generic ftpd
    /usr/local/etc/proftpd/proftpd.conf - Just anonymous access

  1. MRTG
    /usr/local/etc/mrtg/mrtg.cfg - Config sample

  1. PPPoE uplinks configuration
    /etc/ppp/ - Configs for 2 providers (Primary or Secondary, not simultaneously)
    /etc/rc.conf_PPPoE - PPPoE-related additions to rc.conf
    /etc/start_if.vlan100 - When a provider binds a specific MAC-address on its equipment

  1. DHCP experiments
    /usr/local/etc/dhcpd - Something works, something doesn't.

  1. RADIUS/TACACS+ experiments
    /usr/local/etc/raddb - Works as is. Some adds can be found in rc.conf and syslog.conf
    /usr/local/etc/tac_plus.conf - As well

  1. Unplugged
    /etc/adduser.conf - Template for adding simple mailuser
    /etc/devfs.conf - For workstation and notebook
    /etc/devfs.rules - Experiment fo bpf
    /etc/fstab - Add procfilesystem
    /etc/sysctl.conf - System tuning
    /usr/local/etc/cvsupfile - Oldschool way to get sources tree for upgrade
    /usr/local/etc/cvsupports - Oldschool way to get ports tree for upgrade
    /usr/local/etc/pkgtools.conf - Some adds in default file for pleasure

About

Configuration samples for FreeBSD

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published