LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-20-2016, 02:44 PM   #1
Higgsboson
Member
 
Registered: Dec 2014
Location: UK
Distribution: Debian 8 Cinnamon/Xfce/gnome classic Debian live usb
Posts: 508

Rep: Reputation: 49
Change IPv6 to IPv4 for faster internet browsing?


I have Debian 8 (jessie) recently installed. Despite increasing RAM and using a fast ethernet cat 6 cable, internet browsing is still slow.

I've found that new linux distros run on IPv6 for browsing by default.
However, it seems that the older IPv4 standard enables faster browsing and is also more secure for the user.

There seem to be many methods of changing the OS to browse back in IPv4 mode.
Can anyone please confirm the merits of IPv4 and the best way to change the OS to this version? Thanks in advance.
 
Old 03-20-2016, 03:51 PM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918
These may interest you:

http://superuser.com/questions/18160...ster-than-ipv4 - speed

https://www.sophos.com/en-us/securit...h-to-ipv6.aspx - security

Have you ensured that you use a fast DNS server?

https://www.howtoforge.com/tutorial/...tion-on-linux/

Last edited by hydrurga; 03-20-2016 at 03:53 PM.
 
Old 03-21-2016, 02:11 PM   #3
Higgsboson
Member
 
Registered: Dec 2014
Location: UK
Distribution: Debian 8 Cinnamon/Xfce/gnome classic Debian live usb
Posts: 508

Original Poster
Rep: Reputation: 49
Quote:
Originally Posted by hydrurga View Post
Thank you. These are interesting links. The first link shows people favouring the new IPv6 standard.
Sophos (software security company) however says:
'Donít enable IPv6 until youíre fully ready. Many platforms come with IPv6 enabled by default, but make sure itís switched off until properly configured. Many current firewalls focus exclusively on IPv4 and will not filter IPv6 traffic at all...'
It then goes on to advertise its wares.

I read on Wikipedia that IPv6 is less secure because it more easily shows your MAC address https://en.wikipedia.org/wiki/IPv6#Privacy.
Yet no-one seems to know that.

Quote:
Have you ensured that you use a fast DNS server?

https://www.howtoforge.com/tutorial/...tion-on-linux/
Yes, it looks like using OpenDNS may be a good idea.
This link is dodgy as hell! The guy tells you to use Google Public DNS. He then tells you to switch off your firewall to get better internet speed!

There's a lot of conflicting ideas about how to efficiently use the net and preserve your anonymity. Quite unbelievable really.
 
Old 03-21-2016, 02:44 PM   #4
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918
Quote:
Originally Posted by Higgsboson View Post
This link is dodgy as hell! The guy tells you to use Google Public DNS. He then tells you to switch off your firewall to get better internet speed!
Oops, I didn't notice that, although it was a bit more nuanced than just "switch it off". I hope no-one would be that stupid.

Personally I use the OpenDNS 208.67.222.222 and 208.67.220.220.
 
Old 03-21-2016, 02:46 PM   #5
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
IPv6 only reveals a MAC address if it is directed to do so, and normally, would not. As I remember it only uses a MAC address if it is directed to generate IPv6 addresses... and would then use a MAC address as the point of last resort.

Some methods use an IPv4 address as the last 32 bits... and the upper 32 bits is the local network number.

The usual problem with speed and IPv6 is the name lookup. Once the connection is established it
depends on whether you are using IPv6 over IPv4 links (really slow).
 
Old 03-21-2016, 02:47 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,152

Rep: Reputation: 3436Reputation: 3436Reputation: 3436Reputation: 3436Reputation: 3436Reputation: 3436Reputation: 3436Reputation: 3436Reputation: 3436Reputation: 3436Reputation: 3436
I've never seen any tests that would indicate that ipv4 would perform at different speeds than ipv6. I've never heard of any suggestion that the two were different in terms of security either.

If I were to desire changing off of IPv6 then I'd disable it in my router, disable in OS and disable in browser.
 
Old 03-21-2016, 03:16 PM   #7
Higgsboson
Member
 
Registered: Dec 2014
Location: UK
Distribution: Debian 8 Cinnamon/Xfce/gnome classic Debian live usb
Posts: 508

Original Poster
Rep: Reputation: 49
Wikipedia says:

'IPv6 is not foreseen to supplant IPv4 instantaneously. Both protocols will continue to operate simultaneously for some time'.https://en.wikipedia.org/wiki/IPv6#T...ion_mechanisms

Since new linux installs have IPv6 running by default, perhaps it may be appropriate to change back to IPv4 to see if there is faster browsing speed.
If there is no difference, then you have the option of returning to IPv6.
 
Old 03-21-2016, 04:59 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,152

Rep: Reputation: 3436Reputation: 3436Reputation: 3436Reputation: 3436Reputation: 3436Reputation: 3436Reputation: 3436Reputation: 3436Reputation: 3436Reputation: 3436Reputation: 3436
IPv4 has to continue to run for a very long time. Sure there are 4to6 sort of things out but for backward compatibility you'd need to keep ipv4.

If your isp doesn't have support or limited support for ipv6 then you have no need for it.
 
Old 03-21-2016, 07:39 PM   #9
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
If you make the connection manually.

# dhclient -4 -v wlan0

Where -4 says to use IPv4 (initially). By default it tries IPv6 first. There's also a number /proc/sys/net/ipv6/ stuff that you can disable to force ipv4. But if the thing you are connecting to ONLY does IPv6, then you don't really have the option. And other options as well.

# iw dev wlan0 set 4addr on

YMMV
 
Old 03-21-2016, 09:05 PM   #10
Higgsboson
Member
 
Registered: Dec 2014
Location: UK
Distribution: Debian 8 Cinnamon/Xfce/gnome classic Debian live usb
Posts: 508

Original Poster
Rep: Reputation: 49
Quote:
Originally Posted by Shadow_7 View Post
If you make the connection manually.
# dhclient -4 -v wlan0

Where -4 says to use IPv4 (initially).

By default it tries IPv6 first.
Wow, that's amazing! I didn't know that. Thank you!

Quote:
There's also a number /proc/sys/net/ipv6/
What's the number?

Quote:
stuff that you can disable to force ipv4.
Wow. What's the 'stuff'?

Quote:
But if the thing you are connecting to ONLY does IPv6, then you don't really have the option.
The 'thing' I'm connecting to is a Debian operating system. I think it will give me the choice to run either IPv4 or IPv6.
The internet is mostly IPv4.

Quote:
# iw dev wlan0 set 4addr on

YMMV

I hear you, dude.
# ab cde fghijk000 fck ske sm ppl!
 
Old 03-22-2016, 07:18 PM   #11
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
Hmmm. Seems most of the /proc/sys/net/ipv6 stuff is settings, not the enable/disable (1/0) options they used to be. So ignore that. The iw one is to make bridging work (sort of), with brctl stuff and promisc mode enabled which had defaults change between 2.6.32 and 2.6.34-ish. I really haven't been able to make bridging work (without masquerading) since 2.6.32. Outside of -4 on dhclient, which is mostly for speed since IPv6 has to timeout before it tries IPv4 on my network, I'm not sure anymore, soo many changes. It seems like ifconfig has some options to set/unset things, although we're supposed to use "ip" for a lot of that stuff these days. Not that I have any useful knowledge of ip outside of showing current settings. Perhaps this might help.

http://www.tldp.org/HOWTO/Linux+IPv6-HOWTO/x1073.html
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
transitioning IPv4 router to dual IPv4/IPv6 psycroptic Linux - Networking 0 04-22-2014 01:44 AM
In tspc ipv6 tunnelling, does tunnel broker required for ipv4 to ipv4 communication? nyk.mat Linux - Newbie 2 08-13-2013 09:48 PM
IPv6 /faster browsing? Frankj51 SUSE / openSUSE 5 02-06-2006 11:12 AM
ipv4 vs. ipv6 radix Linux - Security 2 09-17-2003 01:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration