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

Fail to disable IPv6 in default Raspbian #28

Open
d4tt opened this issue Sep 14, 2015 · 2 comments
Open

Fail to disable IPv6 in default Raspbian #28

d4tt opened this issue Sep 14, 2015 · 2 comments
Assignees

Comments

@d4tt
Copy link

d4tt commented Sep 14, 2015

Hi, I tried 'hello_trema' with phut v0.6.6 on Raspbian(RPi2),
but "No such file or directory" error occurred at:

sh "sudo /sbin/sysctl -w net.ipv6.conf.#{bridge_name}.disable_ipv6=1 -q"

This is because Raspbian disalbes IPv6 by default, so you should enable IPv6 before disabling it.
For example, you should do:

$ sudo modprobe ipv6
$ echo ipv6 | sudo tee -a /etc/modules

ref. https://www.raspbian.org/RaspbianFAQ#How_do_I_enable_or_use_IPv6.3F

My environment:

$ ruby -v
ruby 2.2.3p173 (2015-08-18 revision 51636) [armv7l-linux-eabihf]
$ gem -v
2.4.5.1
$ ./bin/trema --version
trema version 0.5.1
$ ./bin/phut --version
phut version 0.6.6
$ uname -a
Linux raspberrypi 4.1.6-v7+ #812 SMP PREEMPT Thu Sep 10 12:16:06 BST 2015 armv7l GNU/Linux

Setup memo (detailed, but in Japanese):
https://gist.github.com/d4tt/a4c1364df9c35ca80085

@d4tt d4tt changed the title Fail to disable IPv6 in dafault Raspbian Fail to disable IPv6 in default Raspbian Sep 15, 2015
@yasuhito
Copy link
Member

Are there any handy way to detect Linux distro (how to tell whether you are running Raspbian)?

@d4tt
Copy link
Author

d4tt commented Sep 23, 2015

sorry, I'm not sure...
How about (just an idea):

  • check if IPv6 is enabled or enable IPv6, before u disable

or

  • disable IPv6 by adding flow which drop all packets involved.

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

No branches or pull requests

2 participants