<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Micro-Lab on </title>
    <link>https://wassimaouadi.com/tags/micro-lab/</link>
    <description>Recent content in Micro-Lab on </description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Thu, 04 Jun 2026 21:31:13 +0200</lastBuildDate>
    <atom:link href="https://wassimaouadi.com/tags/micro-lab/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Restricting SSH Remote Access to Selected Management Stations</title>
      <link>https://wassimaouadi.com/technotes/junosrestrictremoteaccess/</link>
      <pubDate>Thu, 04 Jun 2026 21:31:13 +0200</pubDate>
      <guid>https://wassimaouadi.com/technotes/junosrestrictremoteaccess/</guid>
      <description>&lt;h1 id=&#34;lab-data&#34;&gt;Lab Data&lt;/h1&gt;&#xA;&lt;h5 id=&#34;topology&#34;&gt;Topology&lt;/h5&gt;&#xA;&lt;p&gt;Rocky-Linux &amp;lt;&amp;mdash;&amp;gt; Oob-Router &amp;lt;&amp;ndash;&amp;gt; R1&lt;/p&gt;&#xA;&lt;h5 id=&#34;subnets&#34;&gt;Subnets&lt;/h5&gt;&#xA;&lt;p&gt;Rocky-Linux: .21 &amp;lt;- 192.168.201.0/24 -&amp;gt; Oob-Router:.1 &amp;lt;- 172.17.81.0/24 -&amp;gt; R1:.42&lt;/p&gt;&#xA;&lt;h1 id=&#34;purpose&#34;&gt;Purpose&lt;/h1&gt;&#xA;&lt;p&gt;Connecting to R1 from a remote machine using SSH must be restricted to a list of management stations whith authorized IP addresses.&lt;/p&gt;&#xA;&lt;h1 id=&#34;sample-configuration&#34;&gt;Sample Configuration&lt;/h1&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;root@R1&amp;gt; show configuration policy-options prefix-list WassimRocky &#xA;192.168.201.0/24;&#xA;root@R1&amp;gt; &#xA;root@R1&amp;gt; show configuration firewall family inet filter Filter1 &#xA;term AllowRocky {&#xA;    from {&#xA;        source-prefix-list {&#xA;            WassimRocky;&#xA;        }&#xA;        destination-port ssh;&#xA;    }&#xA;    then accept;&#xA;}&#xA;term PreventOthersSSH {&#xA;    from {&#xA;        destination-port ssh;&#xA;    }&#xA;    then {&#xA;        count CountSSHdiscards;         &#xA;        discard;&#xA;    }&#xA;}&#xA;term AllowOthers {&#xA;    then accept;&#xA;}&#xA;root@R1&amp;gt; show configuration interfaces lo0 unit 0 &#xA;family inet {&#xA;    filter {&#xA;        input Filter1;&#xA;    }&#xA;    address 1.1.1.1/32;&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;</description>
    </item>
  </channel>
</rss>
