Menu Close

How to disable ipv6 completely on Ubuntu?

Considering donating if you found my post helpful ๐Ÿ˜Š

Buy Me a Coffee QR Code

You might want to disable ipv6 completely in your Ubuntu system for various reasons. In my case, Transmission was leaking my real ipv6 behind VPN.

First, you will need to edit /etc/sysctl.conf

$ sudo nano /etc/sysctl.conf

and include this value at the very bottom

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
How to disable ipv6 completely on Ubuntu? 1

After that, restart sysctl

sudo sysctl -p

Considering donating if you found my post helpful ๐Ÿ˜Š

Buy Me a Coffee QR Code
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x