<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: One-liner to localize SmartConsole Extensions in SmartConsole Extensions</title>
    <link>https://community.checkpoint.com/t5/SmartConsole-Extensions/One-liner-to-localize-SmartConsole-Extensions/m-p/269031#M548</link>
    <description>&lt;P&gt;Very helpful!&lt;/P&gt;</description>
    <pubDate>Thu, 29 Jan 2026 11:52:25 GMT</pubDate>
    <dc:creator>fourcly</dc:creator>
    <dc:date>2026-01-29T11:52:25Z</dc:date>
    <item>
      <title>One-liner to localize SmartConsole Extensions</title>
      <link>https://community.checkpoint.com/t5/SmartConsole-Extensions/One-liner-to-localize-SmartConsole-Extensions/m-p/268577#M540</link>
      <description>&lt;DIV class=""&gt;
&lt;P style="text-align: center;"&gt;&lt;span class="lia-unicode-emoji" title=":rocket:"&gt;🚀&lt;/span&gt;&amp;nbsp;Host SmartConsole Extensions locally on your firewall management&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":locked:"&gt;🔒&lt;/span&gt;&amp;nbsp;Most secure way to host and access SmartConsole Extensions&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&amp;nbsp;No third-party hosting software required&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;One-liner (Bash) to localize SmartConsole Extensions.&lt;BR /&gt;&lt;STRONG&gt;In &lt;U&gt;expert&lt;/U&gt; mode run:&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;_smx(){ printf "\n _     ____  ____   ____   _     _ _____  ____ _____ \n| |__ / () \\/ (__\` / () \\ | |__ | |\` / /_| ===|| () )\n|____|\\____/\\____)/__/\\__\\|____||_| /___/|____||_|\\_\\ \n";printf '%.s ' {1..26};printf "for SmartConsole Extensions\n\n";read -p "Public extension URL: " u;[[ $u == https://* &amp;amp;&amp;amp; $u == *.json ]]||{ echo Error: URL must start with https:// and point to .json;echo;return;};f=$(basename "$u");p="";i=$(grep proxy:ip /config/active|awk '{print $2}');o=$(grep proxy:port /config/active|awk '{print $2}');[[ $i ]]&amp;amp;&amp;amp;p="--proxy $i:$o";curl_cli $p --cacert $CPDIR/conf/ca-bundle.crt -fsSL "$u" -o "$f.tmp"||{ echo Error: Failed to download SmartConsole Extension;rm -f "$f.tmp";echo;return;};$CPDIR/jq/jq -e . "$f.tmp" &amp;gt;/dev/null 2&amp;gt;&amp;amp;1||{ echo Error: Invalid JSON syntax of SmartConsole Extension;rm -f "$f.tmp";echo;return;};e=$($CPDIR/jq/jq -r '.locations[0]."ui-element".action.url' "$f.tmp");[[ $e &amp;amp;&amp;amp; $e != null ]]||{ echo Error: Couldn\'t find the url field in "$f";rm -f "$f.tmp";echo;return;};x=$(basename "$e");[[ $e == http*://* ]]&amp;amp;&amp;amp;w="$e"||{ [[ $e == /* ]]&amp;amp;&amp;amp;w="${u%%/*}//${u#*//}";w="${w%%/*}$e";[[ $e != /* ]]&amp;amp;&amp;amp;w="${u%/*}/$e";};curl_cli $p --cacert $CPDIR/conf/ca-bundle.crt -fsSL "$w" -o "$x.tmp"||{ echo Error: Failed to download extension file $w;rm -f "$f.tmp";echo;return;};d=/web/htdocs2/smx;[[ -d $d ]]||mkdir -p "$d";chmod o+rx "$d";$CPDIR/jq/jq ".locations[0].\"ui-element\".action.url=\"$x\"" "$f.tmp"&amp;gt;"$f.tmp2";mv "$f.tmp2" "$f.tmp";mv -f "$f.tmp" "$d/$f"||{ echo "Error: Failed to move $f.tmp to $d/$f";rm -f "$f.tmp" "$x.tmp";echo;return;};mv -f "$x.tmp" "$d/$x"||{ echo "Error: Failed to move $x.tmp to $d/$x";rm -f "$f.tmp" "$x.tmp";echo;return;};chmod o+r "$d/$f" "$d/$x";l=/web/htdocs2/login;ln -sf "$d/$f" "$l/$f";ln -sf "$d/$x" "$l/$x";echo -n "Localized extension URL: ";h=$(grep hosts:v4:mgmt:address /config/active|awk '{print $2}');s=$(grep httpd:ssl_port /config/active|awk '{print $2}');[[ $s == 443 ]]&amp;amp;&amp;amp;echo https://$h/login/$f||echo https://$h:$s/login/$f;echo;};_smx;unset -f _smx&lt;/LI-CODE&gt;
&lt;P&gt;Simply copy &amp;amp; paste the localized URL into your &lt;STRONG&gt;SmartConsole &lt;/STRONG&gt;&amp;gt;&lt;STRONG&gt; Manage &amp;amp; Settings &lt;/STRONG&gt;&amp;gt;&lt;STRONG&gt; Preferences &lt;/STRONG&gt;&amp;gt;&lt;STRONG&gt; SmartConsole Extensions&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Done.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":party_popper:"&gt;🎉&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;HR /&gt;
&lt;P&gt;If your firewall management has no internet access to localize SmartConsole Extensions with this tool, easily localize them manually following these steps:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Download the SmartConsole Extension .json manifest file&lt;/LI&gt;
&lt;LI&gt;Download the SmartConsole Extension file that is referenced in the url field of the .json file
&lt;UL&gt;
&lt;LI&gt;If the url field contains url or path information, remove it to just have the filename in there
&lt;UL&gt;
&lt;LI&gt;Example:&amp;nbsp;"url": "ipcalc.htm"&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Login to your firewall management (expert mode) and create a folder named &lt;CODE&gt;smx&lt;/CODE&gt; in /web/htdocs2/&lt;/LI&gt;
&lt;LI&gt;chmod o+rx &lt;CODE&gt;/web/htdocs2/smx&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;Copy the two SmartConsole Extension files into the newly created &lt;CODE&gt;smx&lt;/CODE&gt; folder&lt;/LI&gt;
&lt;LI&gt;chmod o+r &lt;CODE&gt;/web/htdocs2/smx/*&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;Go to &lt;CODE&gt;/web/htdocs2/login&lt;/CODE&gt; and create symlinks to your SmartConsole Extension files
&lt;UL&gt;
&lt;LI&gt;Example: &lt;CODE&gt;ln -s /web/htdocs2/smx/ipcalc.json&lt;/CODE&gt;&amp;nbsp;&amp;amp;&amp;nbsp;&lt;CODE&gt;ln -s /web/htdocs2/smx/ipcalc.htm&lt;/CODE&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Open SmartConsole and load your SmartConsole Extension via &lt;A href="https://ip-of-your-management/login/manifest.json" target="_blank" rel="noopener"&gt;https://ip-of-your-management/login/manifest.json&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 26 Jan 2026 06:55:01 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/SmartConsole-Extensions/One-liner-to-localize-SmartConsole-Extensions/m-p/268577#M540</guid>
      <dc:creator>Danny</dc:creator>
      <dc:date>2026-01-26T06:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: One-liner to localize SmartConsole Extensions</title>
      <link>https://community.checkpoint.com/t5/SmartConsole-Extensions/One-liner-to-localize-SmartConsole-Extensions/m-p/268579#M541</link>
      <description>&lt;P&gt;Nice!&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jan 2026 22:49:03 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/SmartConsole-Extensions/One-liner-to-localize-SmartConsole-Extensions/m-p/268579#M541</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2026-01-25T22:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: One-liner to localize SmartConsole Extensions</title>
      <link>https://community.checkpoint.com/t5/SmartConsole-Extensions/One-liner-to-localize-SmartConsole-Extensions/m-p/268600#M542</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/687"&gt;@Danny&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;This is very useful as using SmartConsole Extensions from remote servers is not allowed in our environment.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jan 2026 06:40:15 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/SmartConsole-Extensions/One-liner-to-localize-SmartConsole-Extensions/m-p/268600#M542</guid>
      <dc:creator>Alex_BNZ</dc:creator>
      <dc:date>2026-01-26T06:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: One-liner to localize SmartConsole Extensions</title>
      <link>https://community.checkpoint.com/t5/SmartConsole-Extensions/One-liner-to-localize-SmartConsole-Extensions/m-p/268604#M543</link>
      <description>&lt;P&gt;Very nice, BRO!&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jan 2026 08:55:54 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/SmartConsole-Extensions/One-liner-to-localize-SmartConsole-Extensions/m-p/268604#M543</guid>
      <dc:creator>Roee_Golan1</dc:creator>
      <dc:date>2026-01-26T08:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: One-liner to localize SmartConsole Extensions</title>
      <link>https://community.checkpoint.com/t5/SmartConsole-Extensions/One-liner-to-localize-SmartConsole-Extensions/m-p/268712#M544</link>
      <description>&lt;P&gt;Great job, as always!&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2026 08:43:44 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/SmartConsole-Extensions/One-liner-to-localize-SmartConsole-Extensions/m-p/268712#M544</guid>
      <dc:creator>vldimitrov359</dc:creator>
      <dc:date>2026-01-27T08:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: One-liner to localize SmartConsole Extensions</title>
      <link>https://community.checkpoint.com/t5/SmartConsole-Extensions/One-liner-to-localize-SmartConsole-Extensions/m-p/268842#M545</link>
      <description>&lt;P&gt;Great job, Danny!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2026 20:17:34 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/SmartConsole-Extensions/One-liner-to-localize-SmartConsole-Extensions/m-p/268842#M545</guid>
      <dc:creator>tainux</dc:creator>
      <dc:date>2026-01-27T20:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: One-liner to localize SmartConsole Extensions</title>
      <link>https://community.checkpoint.com/t5/SmartConsole-Extensions/One-liner-to-localize-SmartConsole-Extensions/m-p/268922#M547</link>
      <description>&lt;P&gt;&lt;SPAN&gt;When localizing extensions I’d say it maybe would be beneficial to have a cronjob frequently comparing the external hosted original with the locally stored copy to get updates if any.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jan 2026 10:37:19 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/SmartConsole-Extensions/One-liner-to-localize-SmartConsole-Extensions/m-p/268922#M547</guid>
      <dc:creator>Vincent_Bacher</dc:creator>
      <dc:date>2026-01-28T10:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: One-liner to localize SmartConsole Extensions</title>
      <link>https://community.checkpoint.com/t5/SmartConsole-Extensions/One-liner-to-localize-SmartConsole-Extensions/m-p/269031#M548</link>
      <description>&lt;P&gt;Very helpful!&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jan 2026 11:52:25 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/SmartConsole-Extensions/One-liner-to-localize-SmartConsole-Extensions/m-p/269031#M548</guid>
      <dc:creator>fourcly</dc:creator>
      <dc:date>2026-01-29T11:52:25Z</dc:date>
    </item>
  </channel>
</rss>

