{"id":1240,"date":"2021-09-12T10:29:42","date_gmt":"2021-09-12T09:29:42","guid":{"rendered":"https:\/\/wilibre.ga\/blog\/?p=1240"},"modified":"2021-09-12T10:33:06","modified_gmt":"2021-09-12T09:33:06","slug":"network-manager-desactiver-ipv6-lors-de-la-connexion-a-un-vpn","status":"publish","type":"post","link":"https:\/\/wilibre.tk\/blog\/network-manager-desactiver-ipv6-lors-de-la-connexion-a-un-vpn\/","title":{"rendered":"Network Manager : d\u00e9sactiver IPv6 lors de la connexion \u00e0 un VPN"},"content":{"rendered":"\n<p>Dans cet article, vous trouverez la solution pour d\u00e9sactiver automatiquement votre IPv6 afin de ne pas \u00eatre retrouv\u00e9 par ce biais.<!--more--><\/p>\n\n\n\n<p>Cr\u00e9er le fichier <code>\/etc\/NetworkManager\/dispatcher.d\/99-vpn-ipv6-switch<\/code> contenant\u00a0:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">#!\/bin\/sh\n# Script to dispatch NetworkManager events\n# enables\/disables ipv6 on vpn-down\/vpn-up events respectively\n#\n\nINTERFACE=\"$1\"\nACTION=\"$2\"\n\ncase $ACTION in\n    vpn-up)\n    # vpn connected -&gt; disable ipv6\n    sysctl -w net.ipv6.conf.all.disable_ipv6=1\n    ;;\n\n    vpn-down)\n    # vpn disconnected -&gt; enable ipv6\n    sysctl -w net.ipv6.conf.all.disable_ipv6=0\n    ;;\nesac\n\nexit 0\n<\/pre>\n\n\n\n<p>Et le rendre ex\u00e9cutable&nbsp;:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">chmod 755 \/etc\/NetworkManager\/dispatcher.d\/99-vpn-ipv6-switch<\/pre>\n\n\n\n<p>Des variables d&rsquo;environnements sont disponibles (<code>man NetworkManager<\/code> section <code>DISPATCHER SCRIPTS<\/code> pour plus d&rsquo;informations)<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Source : https:\/\/wiki.csnu.org\/index.php\/Network_Manager_:_d%C3%A9sactiver_IPv6_lors_de_la_connexion_%C3%A0_un_VPN<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>Dans cet article, vous trouverez la solution pour d\u00e9sactiver automatiquement votre IPv6 afin de ne pas \u00eatre retrouv\u00e9 par ce biais.<\/p>\n<\/div>","protected":false},"author":4,"featured_media":1277,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[161,163,82],"class_list":["post-1240","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-gnulinux","tag-gnulinux","tag-ipv6","tag-linux"],"_links":{"self":[{"href":"https:\/\/wilibre.tk\/blog\/wp-json\/wp\/v2\/posts\/1240","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wilibre.tk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wilibre.tk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wilibre.tk\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/wilibre.tk\/blog\/wp-json\/wp\/v2\/comments?post=1240"}],"version-history":[{"count":4,"href":"https:\/\/wilibre.tk\/blog\/wp-json\/wp\/v2\/posts\/1240\/revisions"}],"predecessor-version":[{"id":1280,"href":"https:\/\/wilibre.tk\/blog\/wp-json\/wp\/v2\/posts\/1240\/revisions\/1280"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wilibre.tk\/blog\/wp-json\/wp\/v2\/media\/1277"}],"wp:attachment":[{"href":"https:\/\/wilibre.tk\/blog\/wp-json\/wp\/v2\/media?parent=1240"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wilibre.tk\/blog\/wp-json\/wp\/v2\/categories?post=1240"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wilibre.tk\/blog\/wp-json\/wp\/v2\/tags?post=1240"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}