Skip to content

Commit 99e2213

Browse files
committed
Added IPv6 settings
Added settings, which are required for IPv6, in examples.
1 parent 3c118c3 commit 99e2213

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ services:
5656
context: .
5757
cache_from:
5858
- lsiobase/alpine.python3:latest
59+
sysctls: # For IPv6
60+
- net.ipv6.conf.all.disable_ipv6=0
61+
- net.ipv6.conf.default.forwarding=1
62+
- net.ipv6.conf.all.forwarding=1
5963
networks:
6064
mynetwork:
6165
ipv4_address: 10.0.0.5

docker-compose.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# OpenVPN server sample configuration
33
#
44

5-
version: '2.2'
5+
version: '2.2' # Min version 2.1 for IPv6
66
services:
77
ovpn:
88
image: slocomptech/openvpn
@@ -22,7 +22,11 @@ services:
2222
context: .
2323
cache_from:
2424
- lsiobase/alpine.python3:latest
25-
25+
sysctls: # For IPv6
26+
- net.ipv6.conf.all.disable_ipv6=0
27+
- net.ipv6.conf.default.forwarding=1
28+
- net.ipv6.conf.all.forwarding=1
29+
2630
network_mode: "bridge"
2731
#network_mode: "host"
2832

0 commit comments

Comments
 (0)