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

setup ipv6 firewall #8

Open
jacksingleton opened this issue Oct 28, 2015 · 6 comments
Open

setup ipv6 firewall #8

jacksingleton opened this issue Oct 28, 2015 · 6 comments

Comments

@jacksingleton
Copy link
Collaborator

I think we can just block everything for now until we support ipv6

@iflowfor8hours
Copy link
Owner

I just dug around for a little while and it appears that ipv6 is disabled

root@sandstorm:/home/vagrant# sudo sysctl -p | grep disable_ipv6
net.ipv6.conf.all.disable_ipv6 = 1

It is still possible to add some firewalling, but is it necessary?

@iflowfor8hours
Copy link
Owner

It appears we can add ipv6.disable=1 to the kernel command line, but I haven't tested if it breaks anything yet.

@iflowfor8hours
Copy link
Owner

Disabling it anyway, #31 also adds a reboot, so I think we need to start figuring out some smoke tests to make sure everything still works and starts automatically properly.

@iflowfor8hours
Copy link
Owner

This may cause errors on subsequent runs of vagrant provision. To fix it I need to change the hardening role, since the ignoreerrors in the sysctl module doesn't seem to be behaving the way I thought it would. Don't merge yet.

@iflowfor8hours
Copy link
Owner

The hardening module disables ipv6, but the kernel module is stlll loaded at boot, so we're vulnerable to ipv6-based exploits until sysctl is loaded, which is a pretty slim period of time during the boot sequence. I don't know how serious we want to get on this. I think disabling it using sysctl is sufficient and we can close this one.

@jacksingleton
Copy link
Collaborator Author

I think we still want to configure ip6tables:

From https://wiki.archlinux.org/index.php/IPv6#Other_programs

Disabling IPv6 functionality in the kernel does not prevent other programs from trying to use IPv6. In
most cases, this is completely harmless, but if you find yourself having issues with that program, you
should consult the program's manual pages for a way to disable that functionality.

I'm worried we will not think about ipv6 at all and then set up a service that binds itself to an ipv6 port without us realizing.

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