mirror of
https://github.com/unifi-utilities/unifios-utilities.git
synced 2024-08-30 18:32:21 +00:00
840a08a1e3
* initial commit * initial release version
26 lines
839 B
Bash
Executable File
26 lines
839 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# init unbound container - quick and dirty for now
|
|
# no checks, no balances
|
|
|
|
echo "Creating links..."
|
|
# link the script to create an IP on the macvlan for unbound
|
|
ln -s /mnt/data/unbound/on_boot.d/11-unbound-macvlanip.sh /mnt/data/on_boot.d/11-unbound-macvlanip.sh
|
|
|
|
# configure either IPv4 only or IPv4 and IPv6 by uncommenting the proper line
|
|
#
|
|
|
|
# link the IPv4 configuration for CNI
|
|
# ln -s /mnt/data/unbound/cni_plugins/21-unbound.conflist /etc/cni/net.d/21-unbound.conflist
|
|
|
|
# link the IPv4 and IPv6 configuration for CNI
|
|
ln -s /mnt/data/unbound/cni_plugins/21-unboundipv6.conflist /etc/cni/net.d/21-unbound.conflist
|
|
|
|
# create the podman network unbound
|
|
echo "Creating podman network..."
|
|
podman network create unbound
|
|
|
|
# create the container IP
|
|
echo "Creating container IP..."
|
|
sh /mnt/data/on_boot.d/11-unbound-macvlanip.sh
|