{"id":6516,"date":"2026-08-04T11:21:18","date_gmt":"2026-08-04T09:21:18","guid":{"rendered":"https:\/\/www.hostx.ro\/kb\/"},"modified":"2026-08-04T11:21:18","modified_gmt":"2026-08-04T09:21:18","password":"","slug":"cum-securizez-gateway-ul-openclaw-loopback-si-token","status":"publish","type":"docs","link":"https:\/\/www.hostx.ro\/kb\/cum-securizez-gateway-ul-openclaw-loopback-si-token\/","title":{"rendered":"Cum securizez gateway-ul OpenClaw (loopback \u0219i token)"},"content":{"rendered":"<p>OpenClaw poate executa comenzi, accesa fi\u0219iere \u0219i controla un browser. De aceea, <strong>securizarea<\/strong> lui este obligatorie, mai ales pe un VPS accesibil din internet. Cele dou\u0103 m\u0103suri esen\u021biale sunt: acces doar local \u0219i autentificare cu token.<\/p>\n<h2>1. Leag\u0103 gateway-ul doar la loopback<\/h2>\n<p>Asigur\u0103-te c\u0103 gateway-ul ascult\u0103 doar pe adresa local\u0103, nu pe toate interfe\u021bele. \u00cen configurare, schimb\u0103 <code>0.0.0.0<\/code> \u00een <code>127.0.0.1<\/code>:<\/p>\n<pre><code>\"gateway\": { \"host\": \"127.0.0.1\" }<\/code><\/pre>\n<p>Astfel, doar de pe server (localhost) se poate accesa panoul, nu de oriunde din internet.<\/p>\n<h2>2. Activeaz\u0103 autentificarea cu token<\/h2>\n<pre><code>openclaw config set gateway.auth.mode token\r\nopenclaw config set gateway.auth.token \"un_token_lung_si_aleator\"<\/code><\/pre>\n<p>Trateaz\u0103 acest token ca pe o parol\u0103. F\u0103r\u0103 el, nimeni nu ar trebui s\u0103 poat\u0103 comanda agentul.<\/p>\n<h2>3. Aplic\u0103 \u0219i verific\u0103<\/h2>\n<pre><code>openclaw gateway restart\r\nopenclaw config get gateway<\/code><\/pre>\n<h2>4. Acces de la distan\u021b\u0103 (dac\u0103 chiar ai nevoie)<\/h2>\n<p>Nu expune direct portul 18789 \u00een internet. Dac\u0103 vrei acces de la distan\u021b\u0103, folose\u0219te un <strong>tunel SSH<\/strong> c\u0103tre server sau un reverse proxy cu autentificare \u0219i HTTPS. Prefer\u0103 tunelul SSH pentru simplitate \u0219i siguran\u021b\u0103.<\/p>\n<h2>5. Firewall<\/h2>\n<p>Las\u0103 deschis din exterior doar portul SSH. Blocheaz\u0103 accesul direct la portul gateway-ului.<\/p>\n<div class=\"note\">\n<p><strong>Important:<\/strong> Pentru c\u0103 agentul poate rula cod, ruleaz\u0103 OpenClaw sub un utilizator dedicat, cu permisiuni limitate (nu ca root). Astfel reduci riscul \u00een caz de configurare gre\u0219it\u0103 sau abuz.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>OpenClaw poate executa comenzi, accesa fi\u0219iere \u0219i controla un browser. De aceea, securizarea lui este obligatorie, mai ales pe un VPS accesibil din internet. Cele dou\u0103 m\u0103suri esen\u021biale sunt: acces doar local \u0219i autentificare cu token. 1. Leag\u0103 gateway-ul doar la loopback Asigur\u0103-te c\u0103 gateway-ul ascult\u0103 doar pe adresa local\u0103, nu pe toate interfe\u021bele. \u00cen &#8230; <a title=\"Cum securizez gateway-ul OpenClaw (loopback \u0219i token)\" class=\"read-more\" href=\"https:\/\/www.hostx.ro\/kb\/cum-securizez-gateway-ul-openclaw-loopback-si-token\/\" aria-label=\"Cite\u0219te mai multe despre Cum securizez gateway-ul OpenClaw (loopback \u0219i token)\">Cite\u0219te mai mult<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"whmcs_kb_id":0,"footnotes":""},"doc_category":[498],"doc_tag":[262,327,278,245,240,270],"class_list":["post-6516","docs","type-docs","status-publish","hentry","doc_category-openclaw","doc_tag-api","doc_tag-configurare-server","doc_tag-firewall","doc_tag-securitate","doc_tag-ssh","doc_tag-vps"],"year_month":"2026-08","word_count":216,"total_views":"3","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"benyhill","author_nicename":"benyhill","author_url":"https:\/\/www.hostx.ro\/kb\/author\/benyhill\/"},"doc_category_info":[{"term_name":"OpenClaw","term_url":"https:\/\/www.hostx.ro\/kb\/docs-category\/openclaw\/"}],"doc_tag_info":[{"term_name":"API","term_url":"https:\/\/www.hostx.ro\/kb\/docs-tag\/api\/"},{"term_name":"configurare server","term_url":"https:\/\/www.hostx.ro\/kb\/docs-tag\/configurare-server\/"},{"term_name":"firewall","term_url":"https:\/\/www.hostx.ro\/kb\/docs-tag\/firewall\/"},{"term_name":"securitate","term_url":"https:\/\/www.hostx.ro\/kb\/docs-tag\/securitate\/"},{"term_name":"SSH","term_url":"https:\/\/www.hostx.ro\/kb\/docs-tag\/ssh\/"},{"term_name":"VPS","term_url":"https:\/\/www.hostx.ro\/kb\/docs-tag\/vps\/"}],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Securizare Gateway OpenClaw: Loopback \u0219i Token - Centrul de suport HostX<\/title>\n<meta name=\"description\" content=\"Securizeaz\u0103 gateway-ul OpenClaw prin legare la loopback, autentificare cu token \u0219i firewall. Protejeaz\u0103-\u021bi serverul VPS de accese neautorizate \u0219i execu\u021bie de cod mali\u021bios.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.hostx.ro\/kb\/cum-securizez-gateway-ul-openclaw-loopback-si-token\/\" \/>\n<meta property=\"og:locale\" content=\"ro_RO\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Securizare Gateway OpenClaw: Loopback \u0219i Token - Centrul de suport HostX\" \/>\n<meta property=\"og:description\" content=\"Securizeaz\u0103 gateway-ul OpenClaw prin legare la loopback, autentificare cu token \u0219i firewall. Protejeaz\u0103-\u021bi serverul VPS de accese neautorizate \u0219i execu\u021bie de cod mali\u021bios.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hostx.ro\/kb\/cum-securizez-gateway-ul-openclaw-loopback-si-token\/\" \/>\n<meta property=\"og:site_name\" content=\"Centrul de suport HostX\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Timp estimat pentru citire\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/cum-securizez-gateway-ul-openclaw-loopback-si-token\\\/\",\"url\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/cum-securizez-gateway-ul-openclaw-loopback-si-token\\\/\",\"name\":\"Securizare Gateway OpenClaw: Loopback \u0219i Token - Centrul de suport HostX\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/#website\"},\"datePublished\":\"2026-08-04T09:21:18+00:00\",\"description\":\"Securizeaz\u0103 gateway-ul OpenClaw prin legare la loopback, autentificare cu token \u0219i firewall. Protejeaz\u0103-\u021bi serverul VPS de accese neautorizate \u0219i execu\u021bie de cod mali\u021bios.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/cum-securizez-gateway-ul-openclaw-loopback-si-token\\\/#breadcrumb\"},\"inLanguage\":\"ro-RO\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/cum-securizez-gateway-ul-openclaw-loopback-si-token\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/cum-securizez-gateway-ul-openclaw-loopback-si-token\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Prima pagin\u0103\",\"item\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"InfoCentru\",\"item\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/docs\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Cum securizez gateway-ul OpenClaw (loopback \u0219i token)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/#website\",\"url\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/\",\"name\":\"Centrul de suport HostX\",\"description\":\"tutoriale gazduire web, domenii web \u0219i servere\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ro-RO\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Securizare Gateway OpenClaw: Loopback \u0219i Token - Centrul de suport HostX","description":"Securizeaz\u0103 gateway-ul OpenClaw prin legare la loopback, autentificare cu token \u0219i firewall. Protejeaz\u0103-\u021bi serverul VPS de accese neautorizate \u0219i execu\u021bie de cod mali\u021bios.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.hostx.ro\/kb\/cum-securizez-gateway-ul-openclaw-loopback-si-token\/","og_locale":"ro_RO","og_type":"article","og_title":"Securizare Gateway OpenClaw: Loopback \u0219i Token - Centrul de suport HostX","og_description":"Securizeaz\u0103 gateway-ul OpenClaw prin legare la loopback, autentificare cu token \u0219i firewall. Protejeaz\u0103-\u021bi serverul VPS de accese neautorizate \u0219i execu\u021bie de cod mali\u021bios.","og_url":"https:\/\/www.hostx.ro\/kb\/cum-securizez-gateway-ul-openclaw-loopback-si-token\/","og_site_name":"Centrul de suport HostX","twitter_card":"summary_large_image","twitter_misc":{"Timp estimat pentru citire":"2 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.hostx.ro\/kb\/cum-securizez-gateway-ul-openclaw-loopback-si-token\/","url":"https:\/\/www.hostx.ro\/kb\/cum-securizez-gateway-ul-openclaw-loopback-si-token\/","name":"Securizare Gateway OpenClaw: Loopback \u0219i Token - Centrul de suport HostX","isPartOf":{"@id":"https:\/\/www.hostx.ro\/kb\/#website"},"datePublished":"2026-08-04T09:21:18+00:00","description":"Securizeaz\u0103 gateway-ul OpenClaw prin legare la loopback, autentificare cu token \u0219i firewall. Protejeaz\u0103-\u021bi serverul VPS de accese neautorizate \u0219i execu\u021bie de cod mali\u021bios.","breadcrumb":{"@id":"https:\/\/www.hostx.ro\/kb\/cum-securizez-gateway-ul-openclaw-loopback-si-token\/#breadcrumb"},"inLanguage":"ro-RO","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hostx.ro\/kb\/cum-securizez-gateway-ul-openclaw-loopback-si-token\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.hostx.ro\/kb\/cum-securizez-gateway-ul-openclaw-loopback-si-token\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Prima pagin\u0103","item":"https:\/\/www.hostx.ro\/kb\/"},{"@type":"ListItem","position":2,"name":"InfoCentru","item":"https:\/\/www.hostx.ro\/kb\/docs\/"},{"@type":"ListItem","position":3,"name":"Cum securizez gateway-ul OpenClaw (loopback \u0219i token)"}]},{"@type":"WebSite","@id":"https:\/\/www.hostx.ro\/kb\/#website","url":"https:\/\/www.hostx.ro\/kb\/","name":"Centrul de suport HostX","description":"tutoriale gazduire web, domenii web \u0219i servere","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hostx.ro\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ro-RO"}]}},"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/docs\/6516","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/comments?post=6516"}],"version-history":[{"count":1,"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/docs\/6516\/revisions"}],"predecessor-version":[{"id":6654,"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/docs\/6516\/revisions\/6654"}],"wp:attachment":[{"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/media?parent=6516"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/doc_category?post=6516"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/doc_tag?post=6516"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}