Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
You might want to mention, in the the part about editing the /etc/sysctl.conf file, that any changes made to any “tunables” in that file won’t take effect until after a reboot. Alternatively, a particular tunable might be able to be set dynamically (with the sysctl command at the shell prompt). Performing both of the methods for the same tunable would both change its value on the running system and persist it across reboots. Details on how to do this are in the Handbook..
Thanks for your excellent tutorial.
Thanks for the article. I think a nice addition would be a section detailing configuring locales on FreeBSD. This is something that gave me a little bit of trouble when coming from linux.
Typing sudo sysctl net.inet.ip.fw.verbose_limit=5 actually returns an error:
sysctl: unknown oid 'net.inet.ip.fw.verbose_limit': No such file or directory
So you need to reboot for the modification to sysctl.conf to take effect. In other words, you don’t have to run that command.
If you get a disturbing error after activating ntpd in /var/log/messages like this one:
Feb 12 11:55:06 core ntpd[11441]: bind() fd 22, family AF_INET6, port 123, scope 1, addr fe80::601:3dff:fe86:6601, mcast=0 flags=0x11 fails: Can't assign requested address
Feb 12 11:55:06 core ntpd[11441]: unable to create socket on vtnet0 (2) for fe80::601:3dff:fe86:6601#123
Just add in /etc/rc.conf:
and restart or run:
ifconfig $if inet6 -ifdisabled
Any chance we could stop recommending ipfw? pf is amazing, just as simple, and touted as the best firewall in the world. Ie.:
Firewalling with OpenBSD’s PF packet filter http://home.nuug.no/~peter/pf/en/
Turning away the brutes http://home.nuug.no/~peter/pf/en/bruteforce.html
Giving spammers a hard time http://home.nuug.no/~peter/pf/en/spamd.html
PF in FreeBSD https://www.freebsd.org/doc/en/books/handbook/firewalls-pf.html
ipfw is faster. pf’s features are overkill for common use cases. OpenBSD’s pf is touted as the best firewall in the world but FreeBSD’s and OpenBSD’s implementation of pf diverged long ago. FreeBSD’s grew faster while OpenBSD’s grew more featureful. pf is a great option on FreeBSD but I would recommend ipfw to typical users.
@jellingwood I’ve been a bit careless and locked me out of my server. I’ve started the firewall without allowing UDP connections (I did just the Configuring the Basic Firewall part) and can’t connect anymore. Logging in via the VNC Console doesn’t really help as it asks for a password and I don’t have one (just an SSH key). Any way to regain access to my data? Of course I didn’t do a snapshot before…
In FreeBSD 10.2, it is much simpler to set up UDP ports in the firewall: you can just type x/udp or x/tcp in firewall_myservices, where x is a port number or service name. For ex:
firewall_myservices=“ssh http 3000/udp”
This opens ssh and http (22 and 80) over TCP, and port 3000 over UDP. If a port doesn’t have /tcp or /udp after it, it is assumed to be TCP.
Source: http://lists.freebsd.org/pipermail/svn-src-stable/2015-July/029200.html
ntpd_sync_on_start="YES"
There is no offset at boot if you specify the hardware clock is set to UTC (as it appears to be), before selecting your local timezone.
Thank you, I’m really enjoying your tutorials. So far all of them are easy to follow and well-written :)