<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Juniper on </title>
    <link>https://wassimaouadi.com/tags/juniper/</link>
    <description>Recent content in Juniper on </description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Fri, 05 Jun 2026 21:31:13 +0200</lastBuildDate>
    <atom:link href="https://wassimaouadi.com/tags/juniper/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>BGP AS_PATH Prepend</title>
      <link>https://wassimaouadi.com/technotes/bgpaspathprepend/</link>
      <pubDate>Fri, 05 Jun 2026 21:31:13 +0200</pubDate>
      <guid>https://wassimaouadi.com/technotes/bgpaspathprepend/</guid>
      <description>&lt;h1 id=&#34;lab-data&#34;&gt;Lab Data&lt;/h1&gt;&#xA;&lt;h5 id=&#34;bgp-asn-topology&#34;&gt;BGP ASN topology&lt;/h5&gt;&#xA;&lt;p&gt;R1-AS17 &amp;lt;&amp;mdash;&amp;gt; R2-AS22&lt;/p&gt;&#xA;&lt;p&gt;R1-AS17 &amp;lt;&amp;mdash;&amp;gt; R4-AS22&lt;/p&gt;&#xA;&lt;h5 id=&#34;wan-subnets&#34;&gt;WAN Subnets&lt;/h5&gt;&#xA;&lt;p&gt;R1:.1 &amp;lt;- 10.10.10.0/30 -&amp;gt; R2: .2&lt;/p&gt;&#xA;&lt;p&gt;R1:.9 &amp;lt;- 10.10.10.8/30 -&amp;gt; R4: .10&lt;/p&gt;&#xA;&lt;h5 id=&#34;lan-subnets&#34;&gt;LAN Subnets&lt;/h5&gt;&#xA;&lt;p&gt;R1: .69 &amp;lt;- 172.17.99.0 -&amp;gt; LAN1&lt;/p&gt;&#xA;&lt;h1 id=&#34;purpose&#34;&gt;Purpose&lt;/h1&gt;&#xA;&lt;p&gt;When R1 advertises the network 172.17.99.0 in BGP, R2 and R4 receive the route with the default AS_PATH attribute value, which is the ASN of R1.&#xA;I want to make the 172.17.99.0 route received by R2 and R4 a bit &amp;lsquo;unattractive&amp;rsquo;, by making R1 send it with a longer AS_PATH attribute value.&#xA;Since the AS_PATH attribute is a BGP non-transitive attribute, this modification will only impact the AS that are immediate neighbors of R1&amp;rsquo;s AS.&lt;/p&gt;</description>
    </item>
    <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>
