WIP Enabled support for ipv6. Plus feature of multiple ips for macvlans. #94
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
IPV6
This PR removes limitations that prevents ipv6 usage.
With this changes user can run cache with ipv6 support.
In case no macvlan is setup but docker is configured for ipv6 support
In case macvlan (name publan) network is setup
Note, how to setup UPSTREAM_DNS ip (+ optional port) properly.
Ipv6 :
[fd01::1]:6453 [fd01::2]
Ipv4 :
8.8.8.8 1.1.1.1:53
mixed :
8.8.8.8 [fd01::1]:6453
ADDITIONAL IPS
This feature requires macvlan to be setup and the container to be granted NET_ADMIN capability.
Since when using macvlan only one external IP can be set (one ipv4 + one ipv6) , this feature makes container to use additional IPs.
Assuming macvlan is set like this:
User can run the container like this:
TEST
You can get images for testing here: https://hub.docker.com/r/pamidur/lancache/tags