{"id":1916,"date":"2018-10-25T12:53:16","date_gmt":"2018-10-25T17:53:16","guid":{"rendered":"http:\/\/linuxitos.com\/main\/?p=1916"},"modified":"2018-10-25T18:00:24","modified_gmt":"2018-10-25T23:00:24","slug":"cambiando-aleatoriamente-la-mac-de-la-tarjeta-de-red-fedora","status":"publish","type":"post","link":"https:\/\/linuxitos.com\/main\/cambiando-aleatoriamente-la-mac-de-la-tarjeta-de-red-fedora\/","title":{"rendered":"Cambiar aleatoriamente la MAC de la tarjeta de red | Fedora"},"content":{"rendered":"\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"702\" height=\"560\" src=\"https:\/\/linuxitos.com\/main\/wp-content\/uploads\/2018\/10\/macchanger-1.png\" alt=\"\" class=\"wp-image-1926\" srcset=\"https:\/\/linuxitos.com\/main\/wp-content\/uploads\/2018\/10\/macchanger-1.png 702w, https:\/\/linuxitos.com\/main\/wp-content\/uploads\/2018\/10\/macchanger-1-300x239.png 300w\" sizes=\"auto, (max-width: 702px) 100vw, 702px\" \/><\/figure>\n\n\n<p>Si eres de aquellos que se conectan el portatil desde cualquier parte y sobre todo de redes p\u00fablicas (incluso privadas, pero conectarse de manera no tan legal) cambiar la mac aleatoriamente de la tarjeta de red, es altamente recomendable.<\/p>\n<p>No dir\u00e9 que con \u00e9sto no podr\u00e1n ser rastreados o cosas as\u00ed, ya que hay otros aspectos que considerar, como el nombre del equipo no sea obvio, no compartir la ubicaci\u00f3n o algun archivo en la red, o cualquier otro dato.<\/p>\n<p>La idea es simplemente agregar \u00abalgo extra\u00bb al momento de conectarse a una red p\u00fablica, y que la MAC real del equipo no se quede registrada.<\/p>\n<p>\u00c9ste m\u00e9todo explicado en\u00a0<a href=\"https:\/\/fedoramagazine.org\/randomize-mac-address-nm\/\" target=\"_blank\" rel=\"noopener\">https:\/\/fedoramagazine.org\/randomize-mac-address-nm\/<\/a>, es muy \u00fatil para eso, ya que permite cambiar la MAC para todas las dem\u00e1s redes, y marcar como permanente la red que uno requiera, as\u00ed por ejemplo, podemos asignar la red dom\u00e9stica como permanente y las redes p\u00fablicas cambiarlas constantemente.<\/p>\n\n\n<h2 class=\"wp-block-heading\">Configuraci\u00f3n:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Crear un archivo en la ruta&nbsp;<strong>\/etc\/NetworkManager\/conf.d\/00-macrandomize.conf<\/strong>&nbsp;y dentro de \u00e9ste archivo, agregar las siguientes l\u00edneas:<\/p>\n\n\n\n<pre style=\"background: rgb(54, 63, 72); border-radius: 6px; border: 0px; box-sizing: border-box; color: white; font-family: menlo, monaco, monospace; font-style: inherit; font-weight: inherit; line-height: 15.68px; margin-bottom: 1.1em; max-width: 100%; outline: 0px; overflow: auto; padding: 13.125px 16.4062px; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;\">sudo gedit \/etc\/NetworkManager\/conf.d\/00-macrandomize.conf<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Y agregar el siguiente c\u00f3digo dentro del archivo creado:<\/p>\n\n\n\n<pre class=\"xtypo_info\" style=\"background: url(&quot;assets\/shadow.png&quot;) 50% 100% repeat-x rgb(245, 245, 245); border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-shadow: rgb(204, 204, 204) 0px 0px 3px; box-sizing: border-box; color: #262626; font-family: &quot;Courier 10 Pitch&quot;, Courier, monospace; font-size: 1.5rem; font-stretch: normal; font-style: inherit; font-weight: inherit; line-height: 1.6; margin-bottom: 10px; max-width: 100%; outline: 0px; overflow: auto; padding: 9.5px; tab-size: 4; text-shadow: rgb(255, 255, 255) 0px 1px 0px; vertical-align: baseline; word-break: break-all; word-wrap: break-word;\"><span style=\"border: 0px; color: #333333; font-family: &quot;menlo&quot; , &quot;monaco&quot; , &quot;consolas&quot; , &quot;courier new&quot; , monospace; font-size: 15px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\"><span style=\"border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; line-height: 18.5714px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: pre-wrap;\">[device]\nwifi.scan-rand-mac-address=yes\n[connection]\nwifi.cloned-mac-address=stable\nethernet.cloned-mac-address=stable\nconnection.stable-id=${CONNECTION}\/${BOOT}\n<\/span><\/span><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Con esto ya se tendr\u00e1 una MAC aleatoria para cada conexi\u00f3n, una de las desventajas de \u00e9sto, es que la IP que se asigne por DHCP se cambiar\u00e1 cada vez que se conecte el equipo.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Para evitar \u00e9sto, es necesario asignar que la MAC sea permanente para las redes de wifi que se requiera.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Los archivos de configuraci\u00f3n de las redes de wifi almacenadas en el equipo, est\u00e1n en la ruta&nbsp;\/etc\/sysconfig\/network-scripts&nbsp; por lo tanto, si requieren una MAC permanente para la red, por ejemplo&nbsp;ifcfg-LiNuXiToS entonces, editarla de la siguiente manera:<\/p>\n\n\n\n<pre style=\"background: rgb(54, 63, 72); border-radius: 6px; border: 0px; box-sizing: border-box; color: white; font-family: menlo, monaco, monospace; font-style: inherit; font-weight: inherit; line-height: 15.68px; margin-bottom: 1.1em; max-width: 100%; outline: 0px; overflow: auto; padding: 13.125px 16.4062px; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;\">sudo gedit ifcfg-LiNuXiToS<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Al final del archivo modificar la siguiente l\u00ednea, en caso de que no est\u00e9, agregarla como como se muestra a continuaci\u00f3n:<\/p>\n\n\n\n<pre class=\"xtypo_info\" style=\"background: url(&quot;assets\/shadow.png&quot;) 50% 100% repeat-x rgb(245, 245, 245); border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-shadow: rgb(204, 204, 204) 0px 0px 3px; box-sizing: border-box; color: #262626; font-family: &quot;Courier 10 Pitch&quot;, Courier, monospace; font-size: 1.5rem; font-stretch: normal; font-style: inherit; font-weight: inherit; line-height: 1.6; margin-bottom: 10px; max-width: 100%; outline: 0px; overflow: auto; padding: 9.5px; tab-size: 4; text-shadow: rgb(255, 255, 255) 0px 1px 0px; vertical-align: baseline; word-break: break-all; word-wrap: break-word;\"><span style=\"border: 0px; color: #333333; font-family: &quot;menlo&quot; , &quot;monaco&quot; , &quot;consolas&quot; , &quot;courier new&quot; , monospace; font-size: 15px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;\"><span style=\"border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; line-height: 18.5714px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: pre-wrap;\">MACADDR=permanent\n<\/span><\/span><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Ahora s\u00ed, a reiniciar el servicio de red y que inicie con las configuraciones que se han realizado. En caso de que no se requiera una red con MAC permanente, simplemente saltarse \u00e9stos pasos y reiniciar el servicio de red.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Reiniciar el servicio de red con el siguiente comando:<\/p>\n\n\n\n<pre style=\"background: rgb(54, 63, 72); border-radius: 6px; border: 0px; box-sizing: border-box; color: white; font-family: menlo, monaco, monospace; font-style: inherit; font-weight: inherit; line-height: 15.68px; margin-bottom: 1.1em; max-width: 100%; outline: 0px; overflow: auto; padding: 13.125px 16.4062px; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;\">sudo systemctl restart NetworkManager<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Para dejar de utilizar MAC&#8217;s aleatorias, simplemente eliminar el archivo de configuraci\u00f3n y a continuaci\u00f3n reiniciar el servicio de red:<\/p>\n\n\n\n<pre style=\"background: rgb(54, 63, 72); border-radius: 6px; border: 0px; box-sizing: border-box; color: white; font-family: menlo, monaco, monospace; font-style: inherit; font-weight: inherit; line-height: 15.68px; margin-bottom: 1.1em; max-width: 100%; outline: 0px; overflow: auto; padding: 13.125px 16.4062px; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;\">sudo rm \/etc\/NetworkManager\/conf.d\/00-macrandomize.conf<\/pre>\n\n\n\n<pre style=\"background: rgb(54, 63, 72); border-radius: 6px; border: 0px; box-sizing: border-box; color: white; font-family: menlo, monaco, monospace; font-style: inherit; font-weight: inherit; line-height: 15.68px; margin-bottom: 1.1em; max-width: 100%; outline: 0px; overflow: auto; padding: 13.125px 16.4062px; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;\">sudo systemctl restart NetworkManager<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Y eso ser\u00eda todo, espero que sea de \u00fatil, debo aclarar que solo es una idea, no es necesario hacerlo.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Fuentes consultadas para mejor entendimiento:<br><a href=\"https:\/\/fedoramagazine.org\/randomize-mac-address-nm\/\">https:\/\/fedoramagazine.org\/randomize-mac-address-nm\/<\/a><br><a href=\"https:\/\/en.wikipedia.org\/wiki\/MAC_address\">https:\/\/en.wikipedia.org\/wiki\/MAC_address<\/a><br><a href=\"https:\/\/www.wireshark.org\/tools\/oui-lookup.html\">https:\/\/www.wireshark.org\/tools\/oui-lookup.html<\/a><br><br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Si eres de aquellos que se conectan el portatil desde cualquier parte y sobre todo de redes p\u00fablicas (incluso privadas, pero conectarse de manera no tan legal) cambiar la mac aleatoriamente de la tarjeta de red, es altamente recomendable. No dir\u00e9 que con \u00e9sto no podr\u00e1n ser rastreados o cosas as\u00ed, ya que hay otros [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[1562,1561,1560],"class_list":["post-1916","post","type-post","status-publish","format-standard","hentry","category-fedora","tag-aleatoria","tag-fedora","tag-mac"],"_links":{"self":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/1916","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/comments?post=1916"}],"version-history":[{"count":8,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/1916\/revisions"}],"predecessor-version":[{"id":1982,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/1916\/revisions\/1982"}],"wp:attachment":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/media?parent=1916"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/categories?post=1916"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/tags?post=1916"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}