Skip to content

Instantly share code, notes, and snippets.

@aptalca
aptalca / iptables-common.local
Created June 1, 2017 21:10
Add this to the /config/fail2ban/action.d folder to disable ipv6 on unraid (which causes errors) until there is a new fail2ban update (issue fixed in their master branch, but they haven't released a new version yet)
[Init?family=inet6]
# Option: blocktype (ipv6) Note: This is what the action does with rules. This can be any jump target
# as per the iptables man page (section 8). Common values are DROP REJECT, REJECT --reject-with icmp6-port-unreachable Values: STRING
blocktype = REJECT --reject-with icmp6-port-unreachable
# Option: iptables (ipv6) Notes.: Actual command to be executed, including common to all calls options Values: STRING
iptables = iptables <lockingopt>

What is docker and what is it for?

Docker is a containerization system. It allows you to run programs or apps in a self contained container, with its own OS, while sharing the host system’s resources, and in some cases libraries and devices.

LinuxServer.io’s docker images and containers can be thought of as mini virtual machines that are much lighter and more efficient than full blown VMs.

How does it work?

LinuxServer.io provides pre-built docker images that can be pulled from the docker hub. These images contain the necessary packages and apps and are either Alpine or Ubuntu Xenial based. A user can pull one of these images, create a container based on the image and run it to perform the tasks. Containers are ephemeral, meaning they can be easily destroyed and recreated from the docker image. For things that are meant to be persistent, like data, volume mounts are used.