docker: Add ipv6 nat
This commit is contained in:
parent
075465c112
commit
bd68c437e3
|
@ -1,4 +1,6 @@
|
||||||
{
|
{
|
||||||
|
"ipv6": true,
|
||||||
|
"fixed-cidr-v6": "fd00:d0ce:d0ce:d0ce::/64",
|
||||||
"dns": [
|
"dns": [
|
||||||
"46.182.19.48",
|
"46.182.19.48",
|
||||||
"74.82.42.42"
|
"74.82.42.42"
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
---
|
---
|
||||||
|
- name: Add IPv6 NAT iptables rules
|
||||||
|
shell: ip6tables -t nat -A POSTROUTING -s fd00:d0ce:d0ce:d0ce::/64 -j MASQUERADE && ip6tables-save > /etc/iptables/rules.v6
|
||||||
|
|
||||||
- name: add docker configuration
|
- name: add docker configuration
|
||||||
copy:
|
copy:
|
||||||
dest: /etc/docker/daemon.json
|
dest: /etc/docker/daemon.json
|
||||||
|
|
|
@ -19,3 +19,8 @@
|
||||||
name: "docker-ce"
|
name: "docker-ce"
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
|
- name: install iptables-persistent
|
||||||
|
apt:
|
||||||
|
name: iptables-persistent
|
||||||
|
state: present
|
||||||
|
|
Reference in a new issue