[+] Post Title :

Disable IPv6 on Linux


[+] Date :
[+] Author : Fouls Code
[+] Link : http://www.foulscode.com/2016/02/disable-ipv6-on-linux.html
[+] Type : ,




Followed the common advice from the Internet to disable IPv6 by adding the following to /etc/sysctl.conf:


# disable IPv6 net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.lo.disable_ipv6 = 1




However, according to ip addr show, there were still 9 inet6 addresses for interfaces like eth0 and wlan0:


ip addr show | grep -c inet6 9







Indeed, according to sysctl output, while net.ipv6.conf.all.disable_ipv6 and net.ipv6.conf.default.disable_ipv6 are set, interfaces not explicitly mentioned still don't have IPv6 disabled:


sudo sysctl -a | grep disable_ipv6




net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.eth0.disable_ipv6 = 0 net.ipv6.conf.lo.disable_ipv6 = 1 net.ipv6.conf.wlan0.disable_ipv6 = 0




Used the following to add disable ipv6 directives for all the interfaces on the system (sudo -s first):


sysctl -a | grep disable_ipv6 | sed 's/0$/1/' | tee -a /etc/sysctl.conf




Enable:


sysctl -p





After this, ip addr show no longer showed any inet6 addresses:


ip addr show | grep -c inet6 0

0 σχόλια:

Δημοσίευση σχολίου

Android app

Κατεβάστε την εφαρμογή του blog μας από εδώ!

Αρχειοθήκης




+
Πολλά και χρήσιμα και σε μερικούς και μη χρήσιμα αρχεία για κατέβασμα!

Κατηγορίες

Ντοκιμαντέρ (6) Τεχνολογία (4) AccountHacking (4) Adsense (4) adwords (1) anony (1) Art (1) Background (5) bettercap (1) Blog (1) Blogger (40) book (22) Buttons (19) Chat (5) Clock (2) Comment box (12) CSS (35) CSS3 (29) DDoS (4) Dead Drops (1) Designers (14) developers (8) Download (4) Engineering (1) eshop (1) exploit (3) Facebook (12) Firefox (2) FoulsCode (2) FreeRTOS (1) Gadgets (18) google map (1) greeklish (1) Hacking (11) Hashcat (1) HD (1) HTML (16) HTML 5 (9) icons (13) Image Slider (3) Injection (3) Internet (11) IP (1) IPv6 (1) Java (1) JavaScript (4) jQuery (14) Kali Linux (1) Linux (6) List (1) Loaders (4) Login (4) mac (6) Menu (39) metasploit (1) Misc (1) Movie (1) News (7) offline (1) online (4) onlineMap (1) passmanager (1) password (4) password Security (1) Phishing (1) php (1) Python (1) Remote (1) Search Box (12) Security (2) SEO (14) server (3) Slider (1) Social (35) SQL (7) SS (1) SSH (2) Templates (3) THC (1) Themes (10) Tips (1) Tools (18) torrent (4) Tricks (15) Tutorials (24) Twitter (8) video (7) Web (1) Widget (50) windows (1) Wordlists (1) WordPress (15) xhtml (1) xss (1) xxs (1) Youtube (5)

Translate