Disable IPV6 on Linux/Ubuntu?

Not trying to start a holy war here, but here are the steps on disabling IPV6 in Linux.  The IPV6 standard seems to include your MAC address.  There are plenty of pro/con arguments online if you care to google them.  Until the standard is actually used it’s worth disabling just to eliminate another attack vector.  IPV6 becomes very irrelevant on your subnetted home network, or subnetted corporate VLANs.

 

Open Terminal

2. Enter gksudo gedit /etc/sysctl.conf and open the configuration file and add the following lines at the end

net.ipv6.conf.all.disable_ipv6 = 1

net.ipv6.conf.default.disable_ipv6 = 1

net.ipv6.conf.lo.disable_ipv6 = 1

3. After that run $ cat /proc/sys/net/ipv6/conf/all/disable_ipv6

If it reports ‘1′ means you have disabled IPV6. If it reports ‘0‘ then please followStep 4 and Step 5.

4. Type command sudo sysctl -p you will see this in terminal.

net.ipv6.conf.all.disable_ipv6 = 1

net.ipv6.conf.default.disable_ipv6 = 1

net.ipv6.conf.lo.disable_ipv6 = 1

5. Repeat above “Step 3” and it will now report 1.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s