firewall:docker

Configure iptables rules to allow Docker containers to communicate through the host.

juggernaut --task=firewall:docker
Option
Value Default Description
--DOCKER <1|0> 0 Enable the configuration of iptables rules to allow Docker containers to communicate through the host. If the generated rules do not work with your setup you will have to use a /etc/csf/csfpost.sh file and add your own iptables configuration instead.
--DOCKER_DEVICE <string> docker0 The Docker network device on the host.
--DOCKER_NETWORK4 <string> 172.17.0.0/16 Docker container IPv4 range.
--DOCKER_NETWORK6 <string> 2001:db8:1::/64 Docker container IPv6 range. IPV6 must be enabled and the IPv6 nat table available. Leave blank to disable.
--default <yes> Reset all settings to their default values.
--default_option <option> Reset a specific setting to its default value.
--restart <yes> Restart the service after saving settings.

Examples

// enable DOCKER
juggernaut --task=firewall:docker --DOCKER=1

// reset DOCKER back to default
juggernaut --task=firewall:docker --default_option=DOCKER --restart=yes

// reset all settings back to default
juggernaut --task=firewall:docker --default=yes --restart=yes