[Solved>> faulty hardware ] HOW to Disable ipv6

New to Debian (Or Linux in general)? Ask your questions here!

[Solved>> faulty hardware ] HOW to Disable ipv6

Postby amashee » 2019-01-11 06:48

If anybody is using a debian system with a VPN check for DSN leaks with https://ipleak.net/.

I dont know if there is something wrong with my hardware, but my debian system has a DSN leak issue with ipv6.

How do i disable ipv6 permanently ?

This method fixes temporarily >>

Code: Select all
sudo nano /etc/sysctl.conf


"then added the following to the bottom of the file and saved it."

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
net.ipv6.conf.tun0.disable_ipv6 = 1
net.ipv6.conf.ens4.disable_ipv6 = 1

"next i entered this"

Code: Select all
sudo sysctl -p


But with each reboot i have to re enter "
Code: Select all
sudo sysctl -p
" to disable ipv6.
Last edited by amashee on 2019-01-12 08:01, edited 4 times in total.
amashee
 
Posts: 11
Joined: 2019-01-11 06:32

Re: HOW to Disable ipv6

Postby p.H » 2019-01-11 08:05

To disable the IPv6 subsystem (not recommended because some programs may rely on it), add "ipv6.disable=1" to the kernel command line.
To disable IPv6 on all network interfaces, add "ipv6.disable_ipv6=1" to the kernel command line.
If using GRUB as the boot loader, see in /etc/default/grub.
p.H
 
Posts: 709
Joined: 2017-09-17 07:12

Re: HOW to Disable ipv6

Postby amashee » 2019-01-11 09:07

p.H wrote:To disable the IPv6 subsystem (not recommended because some programs may rely on it), add "ipv6.disable=1" to the kernel command line.
To disable IPv6 on all network interfaces, add "ipv6.disable_ipv6=1" to the kernel command line.
If using GRUB as the boot loader, see in /etc/default/grub.


Hello p.H

The above mentioned method did not work, but thank you for helping!
Last edited by amashee on 2019-01-11 10:36, edited 1 time in total.
amashee
 
Posts: 11
Joined: 2019-01-11 06:32

Re: [ISSUE] HOW to Disable ipv6

Postby p.H » 2019-01-11 09:27

What do you mean by "did not work" ?
Which method ? I described two.
What is the output of
Code: Select all
cat /proc/cmdline
cat /proc/sys/net/ipv6/conf/*/disable_ipv6
p.H
 
Posts: 709
Joined: 2017-09-17 07:12

Re: [ISSUE] HOW to Disable ipv6

Postby amashee » 2019-01-11 09:45

p.H wrote:What do you mean by "did not work" ?
Which method ? I described two.
What is the output of
Code: Select all
cat /proc/cmdline
cat /proc/sys/net/ipv6/conf/*/disable_ipv6


thank you for the reply p.H

i did the second method you suggested. i added the line "ipv6.disable_ipv6=1" to /etc/default/grub. But it did not stop the DSN leak or in other words did not disable ipv6.

the output to
Code: Select all
cat /proc/cmdline
cat /proc/sys/net/ipv6/conf/*/disable_ipv6

is
1
1
0
1
1
0
amashee
 
Posts: 11
Joined: 2019-01-11 06:32

Re: [ISSUE] HOW to Disable ipv6

Postby p.H » 2019-01-11 09:47

You did not post the output of the first command to check that the parameter has been passed to the kernel.
Did you run "update-grub" after editing /etc/default/grub as instructed in the file header comment and reboot ?
Note that you must not add the option as a new line, but to the GRUB_CMDLINE_LINUX (or so) value.
p.H
 
Posts: 709
Joined: 2017-09-17 07:12

Re: [ISSUE] HOW to Disable ipv6

Postby amashee » 2019-01-11 10:19

p.H wrote:You did not post the output of the first command to check that the parameter has been passed to the kernel.
Did you run "update-grub" after editing /etc/default/grub as instructed in the file header comment and reboot ?
Note that you must not add the option as a new line, but to the GRUB_CMDLINE_LINUX (or so) value.


output of the first command
Code: Select all
cat /proc/cmdline
is as follows>>>
    BOOT_IMAGE=/vmlinuz-4.9.0-8-amd64 root=/dev/mapper/apple--vg-root ro ipv6.disable_ipv6=1 quiet
output of the second command
Code: Select all
cat /proc/sys/net/ipv6/conf/*/disable_ipv6
is as follows>>>
    1
    1
    0
    1
    1
    0

I added " GRUB_CMDLINE_LINUX=ipv6.disable_ipv6=1 "to /etc/default/grub
I tried it both with and without the Quotation marks in between ipv6.disable_ipv6=1 . Next i ran
Code: Select all
sudo update-grub
amashee
 
Posts: 11
Joined: 2019-01-11 06:32

Re: [ISSUE] HOW to Disable ipv6

Postby p.H » 2019-01-11 11:43

Weird. All interfaces should have ipv6_disable=1. Can you find out which interfaces in /proc/sys/net/ipv6/conf have ipv6_disable=0 ?
p.H
 
Posts: 709
Joined: 2017-09-17 07:12

Re: [ISSUE] HOW to Disable ipv6

Postby Bulkley » 2019-01-11 16:35

amashee wrote:If anybody is using a debian system with a VPN check for DSN leaks with https://ipleak.net/.

I dont know if there is something wrong with my hardware, but my debian system has a DSN leak issue with ipv6.


When I first learned about and tried ipleak.net I was shocked at how much was revealed. My connection was leaking every which way but safe. Many of the links were the result of browser trackers and geo-locaters. Upon checking I found that my VPN had a newer, better version of its software which I installed. The biggest surprise was that some of the VPN servers leaked like a sieve. Did you read that correctly? Yes you did. There are some jurisdictions that are flaky at best, probably because of local conditions. So, I learned to avoid servers in England and to prefer safer places like the Netherlands. I now always open a browser with ipleak.net as the home page and check it before proceeding.

BTW, beware of imitators like ipleak.org or ipleak.com or whatever.
Bulkley
 
Posts: 5704
Joined: 2006-02-11 18:35

Re: [ISSUE] HOW to Disable ipv6

Postby millpond » 2019-01-11 18:33

From ipleak:
Mozilla Firefox: Type "about:config” in the address bar. Scroll down to “media.peerconnection.enabled”, double click to set it to false.
Google Chrome: Install Google official extension WebRTC Network Limiter.
Opera: Type "about:config" in the address bar or go to "Settings". Select "Show advanced settings" and click on "Privacy & security". At "WebRTC" mark select "Disable non-proxied UDP".

NB:
If you are now connected to a VPN and between the detected DNS you see your ISP DNS, then your system is leaking DNS requests
Keyword is *your* -VPN server DNS address/location does not count.
millpond
 
Posts: 634
Joined: 2014-06-25 04:56

Re: [ISSUE] HOW to Disable ipv6

Postby Head_on_a_Stick » 2019-01-11 19:55

amashee wrote:with each reboot i have to re enter "
Code: Select all
sudo sysctl -p
" to disable ipv6.

Try
Code: Select all
# systemctl enable systemd-sysctl.service

I think it should already be enabled though :?
"French riots get results! U lot are instagram zzzombies" — graffiti over Euston underpass
User avatar
Head_on_a_Stick
 
Posts: 8590
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: [ISSUE] HOW to Disable ipv6

Postby amashee » 2019-01-12 07:55

thank you guys for the support!

I think the issue is related to hardware.
amashee
 
Posts: 11
Joined: 2019-01-11 06:32

Re: [ISSUE] HOW to Disable ipv6

Postby Head_on_a_Stick » 2019-01-12 11:27

amashee wrote:I think the issue is related to hardware.

How did you arrive at this conclusion?

What is broken, exactly?
"French riots get results! U lot are instagram zzzombies" — graffiti over Euston underpass
User avatar
Head_on_a_Stick
 
Posts: 8590
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: [Solved>> faulty hardware ] HOW to Disable ipv6

Postby amashee » 2019-01-12 11:55

Head_on_a_Stick wrote:
amashee wrote:I think the issue is related to hardware.

How did you arrive at this conclusion?

What is broken, exactly?


I'm running Linux-firmware for (ath10k).
I came up with that assumption, because sometimes my network(Wifi) crashes and restarts. Apparently i am not the only one with this problem.
I got this from the manufactures website.
link below->>
https://www.killernetworking.com/killersupport/driver-downloads/kb/faq/80-wi-fi-disconnects-and-latency-on-debian-ubuntu-and-arch-3
amashee
 
Posts: 11
Joined: 2019-01-11 06:32

Re: [Solved>> faulty hardware ] HOW to Disable ipv6

Postby Head_on_a_Stick » 2019-01-12 11:58

Thanks for the link, I'm sure others will find that useful.
"French riots get results! U lot are instagram zzzombies" — graffiti over Euston underpass
User avatar
Head_on_a_Stick
 
Posts: 8590
Joined: 2014-06-01 17:46
Location: /dev/chair

Next

Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 8 guests

fashionable