Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

in lxc/docker/openvz IPv6 is always disabled by ufw-configuration #402

Closed
lduesing opened this issue Feb 11, 2021 · 3 comments
Closed

in lxc/docker/openvz IPv6 is always disabled by ufw-configuration #402

lduesing opened this issue Feb 11, 2021 · 3 comments

Comments

@lduesing
Copy link
Contributor

Describe the bug
There is no way to enable IPv6 in lxc/docker/openvz systems because in ufw IPv6 is only enabled when "{{ 'no' if sysctl_config['net.ipv6.conf.all.disable_ipv6'] is defined and sysctl_config['net.ipv6.conf.all.disable_ipv6'] == 1 else 'yes' }}" (devsec/hardening/roles/os_hardening/templates/etc/default/ufw.j2) and sysctl_config['net.ipv6.conf.all.disable_ipv6'] is disabled by default, while building combined sysctl-dict if overwrites are defined is not done on above containerd systems "when: ansible_virtualization_type not in ['docker', 'lxc', 'openvz']" (devsec/hardening/roles/os_hardening/tasks/sysctl.yml)

Expected behavior
IPv6=yes

Actual behavior

IPv6=no

Example Playbook

    sysctl_overwrite:
      net.ipv6.conf.all.disable_ipv6: 0

OS / Environment

debian 10.8

Ansible Version

ansible 2.10.5

Role Version

devsec.hardening  7.2.0

Additional context
Add any other context about the problem here.
lxc container

@lduesing
Copy link
Contributor Author

And - by the way - in ssh_hardening there is an option: "network_ipv6_enable" which could be used here, too.

@rndmh3ro
Copy link
Member

We decided that we remvoe the disablement of ipv6 (see #406 (comment)) so this problem should then be obsolete.

@lduesing
Copy link
Contributor Author

I agree. Issue closed. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants