{"id":447,"date":"2022-03-05T19:21:30","date_gmt":"2022-03-06T01:21:30","guid":{"rendered":"https:\/\/techexperiencemx.com\/?p=447"},"modified":"2022-03-07T11:11:56","modified_gmt":"2022-03-07T17:11:56","slug":"cloudflare-ddns-docker","status":"publish","type":"post","link":"https:\/\/techexperiencemx.com\/?p=447","title":{"rendered":"Cloudflare-DDNS\u00a0docker"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hola es un peque\u00f1o articulo pero de mucha utilidad los que tenemos una IP  Dinamica  poder ingresar fuera de nuestra casa mcesitamos ciertos servicios como duckdns,noip,changeip,etc para poder utilizar estos hay que generar usuarios y dem\u00e1s configuraciones para que puedan apuntar hacia nuestro servidor, navegando por la web pudimos encontrar que esto puede ser menos complicado con <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-ast-global-color-0-color\">synology docker + Cloudlfare<\/mark> lo \u00fanico que necesitamos es la API de cloudflare y nuestros subdominios<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Esto nos lleva a obtener primeramente la API de cloudflare siguiendo estos pasos :<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Una vez iniciada la sesi\u00f3n de CloudFlare no dirigimos a el apartado de <a href=\"https:\/\/dash.cloudflare.com\/profile\/api-tokens\" target=\"_blank\" rel=\"noopener\">Obtenga el token de la API<\/a>  <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"799\" src=\"https:\/\/techexperiencemx.com\/wp-content\/uploads\/2022\/03\/Captura-de-Pantalla-2022-03-05-a-las-18.41.36-1024x799.png\" alt=\"\" class=\"wp-image-448\" srcset=\"https:\/\/techexperiencemx.com\/wp-content\/uploads\/2022\/03\/Captura-de-Pantalla-2022-03-05-a-las-18.41.36-1024x799.png 1024w, https:\/\/techexperiencemx.com\/wp-content\/uploads\/2022\/03\/Captura-de-Pantalla-2022-03-05-a-las-18.41.36-300x234.png 300w, https:\/\/techexperiencemx.com\/wp-content\/uploads\/2022\/03\/Captura-de-Pantalla-2022-03-05-a-las-18.41.36-768x599.png 768w, https:\/\/techexperiencemx.com\/wp-content\/uploads\/2022\/03\/Captura-de-Pantalla-2022-03-05-a-las-18.41.36.png 1086w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">Nombre :<\/p>\n\n\n\n<p class=\"has-small-font-size wp-block-paragraph\"> elegir alg\u00fan nombre para la API<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">Permisos :<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">zona : configuraci\u00f3n de la zona : leer<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">zona : zona : leer<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">zona : dns : editar<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">Recursos de la zona :<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">incluir : todas la zonas<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Una vez generado guardarlo ya que podr\u00edas volver a utilizarlo en el futuro<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Ahora no vamos a synology docker <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ff0000\" class=\"has-inline-color\">Panel Control\/Programador de tareas<\/mark><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:rgba(0, 0, 0, 0);color:#fd0606\" class=\"has-inline-color\">Crear\/tareas programadas\/script definido por el usuario<\/mark><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"528\" height=\"528\" src=\"https:\/\/techexperiencemx.com\/wp-content\/uploads\/2022\/03\/Captura-de-Pantalla-2022-03-05-a-las-18.59.10.png\" alt=\"\" class=\"wp-image-450\" srcset=\"https:\/\/techexperiencemx.com\/wp-content\/uploads\/2022\/03\/Captura-de-Pantalla-2022-03-05-a-las-18.59.10.png 528w, https:\/\/techexperiencemx.com\/wp-content\/uploads\/2022\/03\/Captura-de-Pantalla-2022-03-05-a-las-18.59.10-300x300.png 300w, https:\/\/techexperiencemx.com\/wp-content\/uploads\/2022\/03\/Captura-de-Pantalla-2022-03-05-a-las-18.59.10-150x150.png 150w\" sizes=\"auto, (max-width: 528px) 100vw, 528px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"532\" height=\"528\" src=\"https:\/\/techexperiencemx.com\/wp-content\/uploads\/2022\/03\/Captura-de-Pantalla-2022-03-05-a-las-19.00.14.png\" alt=\"\" class=\"wp-image-451\" srcset=\"https:\/\/techexperiencemx.com\/wp-content\/uploads\/2022\/03\/Captura-de-Pantalla-2022-03-05-a-las-19.00.14.png 532w, https:\/\/techexperiencemx.com\/wp-content\/uploads\/2022\/03\/Captura-de-Pantalla-2022-03-05-a-las-19.00.14-300x298.png 300w, https:\/\/techexperiencemx.com\/wp-content\/uploads\/2022\/03\/Captura-de-Pantalla-2022-03-05-a-las-19.00.14-150x150.png 150w\" sizes=\"auto, (max-width: 532px) 100vw, 532px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"529\" height=\"527\" src=\"https:\/\/techexperiencemx.com\/wp-content\/uploads\/2022\/03\/Captura-de-Pantalla-2022-03-05-a-las-19.00.53.png\" alt=\"\" class=\"wp-image-452\" srcset=\"https:\/\/techexperiencemx.com\/wp-content\/uploads\/2022\/03\/Captura-de-Pantalla-2022-03-05-a-las-19.00.53.png 529w, https:\/\/techexperiencemx.com\/wp-content\/uploads\/2022\/03\/Captura-de-Pantalla-2022-03-05-a-las-19.00.53-300x300.png 300w, https:\/\/techexperiencemx.com\/wp-content\/uploads\/2022\/03\/Captura-de-Pantalla-2022-03-05-a-las-19.00.53-150x150.png 150w\" sizes=\"auto, (max-width: 529px) 100vw, 529px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>docker run \\\n  -e API_KEY=xxxxxxx \\\n  -e ZONE=example.com \\\n  -e SUBDOMAIN=subdomain \\\n  oznu\/cloudflare-ddns<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">API Key : api generado en cloudflare<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">zone : tener un dominio en cloudlfare o manejado por cloudflare<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">subdomain : aqui pondremos los subdomnios a los que queramos que tenga los distintos servicios en nuestro nas<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">ejemplo <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">dominio : pruebasmx.com<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">subdominios: tiendacarlos<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">                              blogcarlos<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">una vez agregado y configurado tu c\u00f3digo lo tendremos que ejecutar y solo iremos a validar a cloudlfare si los subdominios y la ip concuerdan con lo publicado <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hola es un peque\u00f1o articulo pero de mucha utilidad los que tenemos una IP Dinamica poder ingresar fuera de nuestra casa mcesitamos ciertos servicios como duckdns,noip,changeip,etc para poder utilizar estos hay que generar usuarios y dem\u00e1s configuraciones para que puedan apuntar hacia nuestro servidor, navegando por la web pudimos encontrar que esto puede ser menos [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":456,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[17],"tags":[],"class_list":["post-447","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-synology"],"_links":{"self":[{"href":"https:\/\/techexperiencemx.com\/index.php?rest_route=\/wp\/v2\/posts\/447","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techexperiencemx.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techexperiencemx.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techexperiencemx.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/techexperiencemx.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=447"}],"version-history":[{"count":0,"href":"https:\/\/techexperiencemx.com\/index.php?rest_route=\/wp\/v2\/posts\/447\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techexperiencemx.com\/index.php?rest_route=\/wp\/v2\/media\/456"}],"wp:attachment":[{"href":"https:\/\/techexperiencemx.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=447"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techexperiencemx.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=447"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techexperiencemx.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=447"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}