<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Yahya Iris on Medium]]></title>
        <description><![CDATA[Stories by Yahya Iris on Medium]]></description>
        <link>https://medium.com/@yahyairis?source=rss-8878021f2559------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*i0c6jn4yvxKKki7QSLvhxw.jpeg</url>
            <title>Stories by Yahya Iris on Medium</title>
            <link>https://medium.com/@yahyairis?source=rss-8878021f2559------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 05:11:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@yahyairis/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[I Built an Offline, Read-Only Firewall Policy Auditor. Here's Why, and How It Works]]></title>
            <link>https://medium.com/@yahyairis/i-built-an-offline-read-only-firewall-policy-auditor-heres-why-and-how-it-works-b4472dbdfd23?source=rss-8878021f2559------2</link>
            <guid isPermaLink="false">https://medium.com/p/b4472dbdfd23</guid>
            <category><![CDATA[network-security]]></category>
            <category><![CDATA[fortinet]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[firewall]]></category>
            <dc:creator><![CDATA[Yahya Iris]]></dc:creator>
            <pubDate>Thu, 05 Nov 2026 17:55:06 GMT</pubDate>
            <atom:updated>2026-11-05T17:55:06.447Z</atom:updated>
            <content:encoded><![CDATA[<h3>I Built an Offline, Read-Only Firewall Policy Auditor Here’s Why, and How It Works</h3><p><em>A small open-source tool that pulls your FortiGate rules, scores them against the CIS Benchmark, and tells you what to fix first.</em></p><p>fwaudit a read-only firewall policy auditor</p><blockquote><strong><em>TL;DR</em></strong><em> </em><a href="https://github.com/yahyairis/fw-policy-auditor"><em>fwaudit</em></a><em> is an open-source, read-only firewall policy auditor. It reads your FortiGate policies over the management API, scores them 0–100 against hardening checks mapped to the CIS FortiGate Benchmark, and gives you a prioritized list of findings with recommended fixes. It runs fully offline and never changes a thing on the device. Code and docs: </em><a href="https://github.com/yahyairis/fw-policy-auditor"><strong><em>github.com/yahyairis/fw-policy-auditor</em></strong></a><em>.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0iCjsNJubl5xeLAQzBrFkQ.png" /></figure><h3>What is fwaudit?</h3><p><strong>fwaudit</strong> is a firewall policy auditor you run yourself. It connects to a firewall over its management API, reads the full set of firewall policies, and evaluates each rule against a set of security hardening checks. The output is a single dashboard: an overall risk score from 0 to 100, an A–F grade, and a sorted list of findings each one tied to a specific policy and a recommended fix.</p><p>It started as a question I kept running into on the job: <em>how good, really, is this firewall’s rule base?</em> Not “is the firewall up,” not “is traffic flowing,” but “how much risk is hiding in the rules themselves?” There are commercial platforms that answer this, but I wanted something small, transparent, and safe to point at a production device something that reads and never writes.</p><p>So I built one. The first release covers <strong>FortiGate</strong>, and the architecture is vendor-neutral underneath, so other vendors (Palo Alto, Cisco ASA) can be added without touching the scoring engine.</p><p>The whole thing runs as a tiny internal web app on an admin workstation. You open it in a browser, and it shows you exactly where the firewall stands.</p><h3>The problem: manual firewall reviews don’t scale</h3><p>If you’ve ever done a firewall rule review by hand, you know how it goes. You export the config, open a spreadsheet, and start reading rules one by one. On a firewall with a few hundred policies, that’s an afternoon and by rule 150 your attention is gone.</p><p>The deeper issue is that firewall rule bases <strong>decay silently</strong>. Every change request adds a rule; almost none remove one. Over months and years the same risks accumulate, and they’re the same risks on almost every firewall I’ve looked at:</p><ul><li><strong>Overly permissive rules</strong> any source, any destination, any service, set to allow. The rule everyone adds &quot;temporarily&quot; during troubleshooting and never removes.</li><li><strong>Logging turned off</strong> on allow rules, so when something goes wrong there’s no audit trail.</li><li><strong>No security profiles</strong> (AV/IPS/web filter) on rules that are doing real work.</li><li><strong>Dead and stale rules</strong> : rules that haven’t matched a single packet in months but are still sitting there, wide open, expanding the attack surface for no benefit.</li><li><strong>Unrestricted sources</strong> : rules that allow from the entire internet or the entire internal network when they only need a handful of hosts.</li></ul><p>None of these are exotic. They’re the bread and butter of firewall misconfiguration, and they’re exactly the kind of thing a tool should catch in seconds instead of an analyst catching in an afternoon if they catch it at all.</p><p>Manual review also has no memory. There’s no number you can track over time, no way to say “we were at a C last quarter, we’re at a B now.” You just have a feeling that things are “probably fine.”</p><h3>What fwaudit does for your firewall</h3><p>Here’s the practical effect of running it.</p><p><strong>It surfaces invisible risk in one screen.</strong> Instead of reading rules line by line, you get every finding grouped and sorted by severity. The any/any/any rule and the five rules with logging disabled are right at the top, with the specific policy ID and name next to each one.</p><p><strong>It makes your posture measurable.</strong> The 0–100 score and A–F grade turn a vague feeling into a number you can report, compare, and improve. A score is something a manager understands and something you can put on a slide: <em>“we moved from an F to a C by closing four rules.”</em></p><p><strong>It tells you what to fix first.</strong> Findings are weighted by severity, so you’re not staring at a flat list of 60 issues wondering where to start. Fix the critical and high findings, re-run, and watch the score move.</p><p><strong>It finds dead weight.</strong> Using live hit counts and last-used dates pulled straight from the firewall, it flags rules with zero hits and rules unused for 90+ days. These are prime candidates for cleanup every one you remove is attack surface you no longer have to defend.</p><p><strong>It’s safe to run against production.</strong> Because it only ever reads, you can point it at a live firewall without a maintenance window and without the fear that a tool is going to change something.</p><p>From firewall rules to a risk score</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pmhfAU1qs2Qcnwb0GfDm6Q.png" /></figure><h3>How it works: eight checks, weighted, mapped to CIS</h3><p>Under the hood, fwaudit parses every policy into a vendor-neutral model and runs a set of hardening checks against it. The current release ships eight:</p><p>IDSeverityWhat it flagsFW-001CriticalOverly permissive any/any/any allow ruleFW-002HighAllow rule with service set to ALLFW-003MediumAllow rule with unrestricted sourceFW-004HighLogging disabled on an allow ruleFW-005MediumNo security profiles (AV/IPS/web filter) on allow ruleFW-006LowRule has no description/commentFW-007LowEnabled rule with zero hitsFW-008LowRule unused for 90+ days (by last-hit date)</p><p>Each check maps to the <strong>CIS Fortinet FortiGate Benchmark</strong>, so the findings aren’t my personal opinion they’re grounded in an industry-standard hardening guide that auditors already recognize.</p><p>The scoring is deliberately simple and explainable. The score starts at 100, and each finding subtracts a penalty weighted by its severity (a critical costs far more than a low). The total penalty is normalized by the size of the rule base, so a firewall with 500 rules isn’t automatically punished harder than one with 50 it’s about the <em>proportion</em> of risky rules, not the raw count. The final number maps to an A–F grade.</p><p>Hit counts and last-used dates come from a separate read-only API call, which is what powers the “zero hits” and “stale rule” checks. Those two are quietly some of the most useful, because they turn “this rule looks scary” into “this rule is scary <em>and</em> nothing is using it” the easiest cleanup decision there is.</p><p>Adding a new vendor means writing one adapter that returns the same policy model. The risk engine doesn’t ch</p><h3>Why read-only and offline matter</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q6p6dF0oI0oTgFFMMsC2NA.png" /></figure><p>A tool that audits a security device should not itself become a weak point. I took that seriously, and it shaped two core decisions.</p><p><strong>Read-only, always.</strong> fwaudit issues only HTTP GET requests. It reads the system status, the policy table, and the hit counters and that&#39;s it. There is no code path that modifies the device. You create a dedicated read-only API account for it (the README walks through exactly which FortiGate permissions to grant and how to lock the key to the auditor&#39;s IP with Trusted Hosts), so even the credential it holds can&#39;t change anything.</p><p><strong>Offline by design.</strong> The app binds to 127.0.0.1 and makes no outbound internet connections at all. The only traffic it generates is those read-only calls to the firewall on your internal network. A strict Content-Security-Policy blocks any external resource from loading, the interactive API docs are disabled, and CORS is locked down. For air-gapped environments, you can install it from pre-downloaded dependency wheels with no package index at all.</p><p>Read-only and offline by design</p><p>Because API tokens are the crown jewels here, they never touch disk in plaintext. fwaudit stores them in an <strong>encrypted vault</strong> AES-GCM encryption under a key derived from a master password with scrypt. The master password itself is never stored; a tampered or truncated vault file refuses to open rather than returning garbage. On top of that, the app is gated by a master-password login with server-side sessions, an auto-lock after 15 minutes idle, a growing lockout on repeated wrong passwords, and CSRF protection on every state-changing request.</p><p>In short: the device inventory persists so you don’t re-enter everything each time, but secrets live only in the encrypted vault, and the audited firewall is never modified.</p><h3>Try it in two minutes</h3><p>You don’t need a firewall to see what it does. The app ships with a <strong>synthetic sample device</strong>, so you can launch it and explore a realistic (and intentionally bad) rule base immediately:</p><pre>pip install -r requirements.txt<br>python run.py          # starts the app and opens your browser at 127.0.0.1:800</pre><p>On Windows there’s a one-click start-windows.bat; on macOS/Linux, ./start-macos-linux.sh. First run installs the dependencies, sets your master password, and opens the dashboard on the sample data.</p><p>To audit a real device, you create the read-only API account, add the firewall from the sidebar, choose <em>Live</em>, and enter its host and token. The repo includes a standalone install guide that walks through the FortiGate side and tests the connection live.</p><p>Everything sample data, tests, CI is in the repo:<br><a href="https://github.com/yahyairis/fw-policy-auditor"><strong>github.com/yahyairis/fw-policy-auditor</strong></a></p><h3>Roadmap, and a note on contributions</h3><p>This is a v1, and the design leaves obvious room to grow. On the roadmap:</p><ul><li><strong>More vendors</strong> Palo Alto and Cisco ASA adapters.</li><li><strong>Rule shadowing &amp; redundancy</strong> flagging rules that can never match because a broader rule above them already does.</li><li><strong>Remediation snippets</strong> suggesting the exact CLI to fix each finding (still read-only: the tool proposes, the operator applies).</li><li><strong>Score history &amp; trend</strong> persisting each audit and charting the score over time, so hardening progress is visible.</li><li><strong>PDF executive report</strong> and <strong>SIEM/syslog export</strong> for the reporting and integration side.</li></ul><p>If you work with firewalls and this is useful to you, I’d genuinely like your feedback issues, ideas, and pull requests are all welcome. If you want to add a vendor, the adapter interface is small and the risk engine stays untouched.</p><p>It’s <strong>MIT-licensed</strong>, with a test suite and CI already in place. Star it if it’s useful, and tell me what your firewall scored. 👇</p><p><strong>→ </strong><a href="https://github.com/yahyairis/fw-policy-auditor"><strong>github.com/yahyairis/fw-policy-auditor</strong></a></p><p><em>I’m Yahya IRIS, a Network &amp; Security Engineer. I write about practical network security and the tools I build. Connect with me on </em><a href="https://www.linkedin.com/in/yahyairis/"><em>LinkedIn</em></a><em> or follow me here on Medium.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b4472dbdfd23" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Two Separate Networks, One Corporate Wi-Fi: VPN-less ERP Access over Fiber]]></title>
            <link>https://medium.com/@yahyairis/two-separate-networks-one-corporate-wi-fi-vpn-less-erp-access-over-fiber-4d7bc35e07b4?source=rss-8878021f2559------2</link>
            <guid isPermaLink="false">https://medium.com/p/4d7bc35e07b4</guid>
            <category><![CDATA[network-security]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[wifi]]></category>
            <category><![CDATA[firewall]]></category>
            <dc:creator><![CDATA[Yahya Iris]]></dc:creator>
            <pubDate>Sun, 18 Oct 2026 07:51:35 GMT</pubDate>
            <atom:updated>2026-10-18T07:51:35.788Z</atom:updated>
            <content:encoded><![CDATA[<p>Our campus runs two independent networks. The HQ network is managed from the system room in Building A, the campus network from the system room in Building B. Each has its own firewall and internet line, and a fiber link connects the two firewalls.</p><p>A request came in from one of the far ends of the campus network: users there needed access to our ERP system. The area had only an existing access point with its own ISP line, and no path into the corporate network.</p><p>The obvious answer was to give them internet access and let them connect over VPN. We aimed higher: users should join the same Wi-Fi network as at HQ automatically and reach the ERP without a VPN, just as if they were in the office. This post walks through how we did it, the problems we hit along the way and how we diagnosed them.</p><h3>At a glance</h3><ul><li><strong>Request:</strong> ERP access for users at the far end of the campus network.</li><li><strong>Wi-Fi:</strong> same SSID, password and security type as HQ. Devices that have joined it at HQ connect automatically.</li><li><strong>ERP:</strong> no VPN, over the fiber between the two firewalls. Traffic is NATed at HQ into the ERP tunnel.</li><li><strong>Internet:</strong> through the campus network’s own firewall and line, with NAT and web filtering.</li><li><strong>Existing setup:</strong> the area’s existing access point and separate ISP line were left untouched.</li><li><strong>Gear:</strong> two FortiGate firewalls, backbone and edge switches, and a Ruijie Wi-Fi 6 access point in standalone (fat) mode.</li></ul><h3>Topology: one campus, two separate networks</h3><p>The diagram below shows both networks and the path user traffic takes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gCXnCpgTIDDqmvJtt52gIw.png" /></figure><p>One detail shaped the whole design: the fiber is a point-to-point routed link (/30) between the two firewalls. So we couldn’t simply carry the HQ wireless VLAN across it as “the same VLAN.” Bridge mode on the firewalls or a VXLAN tunnel would have made that possible, but we didn’t want to merge the broadcast domains of two networks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0pu7OZ62Vn79VpRGDtB-YQ.png" /></figure><p>We went with a routed design instead:</p><ul><li><strong>A new VLAN on the campus network</strong> (VLAN 150, 10.20.150.0/24 in the examples). Its gateway and DHCP live on the campus firewall.</li><li><strong>HQ-bound traffic goes over the fiber;</strong> internet traffic leaves through the campus network’s own line.</li><li><strong>ERP traffic is NATed at HQ,</strong> because the ERP tunnel only accepts specific HQ subnets.</li><li><strong>The access point runs standalone</strong> and broadcasts the same SSID as HQ.</li></ul><h3>Starting point: leaving the existing access point alone</h3><p>The requesting area already had an access point. It sat in its own VLAN (VLAN 900 in the examples) and reached the internet through a separate ISP line. We didn’t touch any of it.</p><p>For setup and testing, we first plugged the new access point into a free port on the same switch, in that internet VLAN. That let us validate the access point on its own before bringing it into the corporate network.</p><p>What the output told us:</p><ul><li><strong>The existing AP and the ISP uplink are in VLAN 900:</strong> this VLAN goes straight to the separate line without ever passing through a firewall.</li><li><strong>The switch has no IP in VLAN 900:</strong> a ping 8.8.8.8 from the switch doesn&#39;t test this VLAN. We didn&#39;t add one just for testing either; that would have exposed the switch&#39;s management interface on an internet-facing VLAN.</li><li><strong>PoE is sufficient:</strong> the port supplies up to 30 W (802.3at, PoE+) and the access point draws 15.4 W (Class 3).</li></ul><h3>Analysis: the path and the policies between the two firewalls</h3><p>Before creating the new VLAN, we tested the path between the two firewalls. Routing was correct: the campus firewall sent HQ networks out of its fiber port, and the HQ firewall routed the entire campus range (10.20.0.0/16) back over the fiber.</p><p>But a ping from the campus LAN IP to the HQ gateway went unanswered. We traced the packet on the HQ firewall with diagnose debug flow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*riN-8OU31abPGkNAkFQufw.png" /></figure><p>The message iprope_in_check() check failed on policy 0, drop means the packet was addressed to the firewall&#39;s <strong>own interface IP</strong>, and that this traffic isn&#39;t allowed in from another interface. So the link was fine; we were testing the wrong target. User traffic would pass through the firewall to servers, not to the firewall itself.</p><p>A practical note: with an IP-only filter, the trace budget fills up with other sessions (HTTPS to the management interface, for example). Narrow it to ICMP with diagnose debug flow filter proto 1.</p><p>Next we reviewed the HQ firewall policies and found the real gap:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y4tpA4Vh5eH01ZBYkqqvhw.png" /></figure><p>The only policy allowing traffic from the campus network to HQ covered just the SSL-VPN client pool; the campus network’s own subnets weren’t in it. The new VLAN would need its own policies on both firewalls.</p><p>Finally, we ruled out the controller option. The wireless controller at HQ and our access point came from different vendors. CAPWAP is a standard, but vendors only let their own access points join their controllers. So we decided to run the access point standalone and broadcast the HQ SSID with the same name and password.</p><h3>Step 1: Rebuilding a second-hand access point from scratch</h3><p>We plugged the access point in. It drew PoE, the port came up at 1 Gbps and the SSID was on the air, but no client could connect. The switch’s MAC table showed the problem right away: the port was in VLAN 900, yet the access point’s MAC addresses were being learned in <strong>VLAN 22</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ct6O_LAEnuvZWkBDoOfg6Q.png" /></figure><p>The access point had been used elsewhere and was still tagging its traffic with VLAN 22 from its old configuration. To prove the switch wasn’t at fault, we tested right at the switch: we unplugged the cable from the access point and plugged it straight into a laptop. The laptop got an IP, reached the internet, and its MAC address showed up in the right VLAN.</p><p>We couldn’t reach the access point’s web UI, so we connected over the console cable (9600 baud, 8N1) and deleted the configuration. It came back up in cloud-managed (macc) mode, so we switched it to standalone (fat) mode to run without a controller.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_m9dX96IvM0-obnDOljK8g.png" /></figure><p>Then we configured the SSID with the same name, password and security type as the HQ access points (WPA2-PSK, AES), on both 2.4 GHz and 5 GHz. All three must match exactly; if any one differs, devices won’t treat it as a known network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_3JtRiiCEMk2UVxvGRM1Xw.png" /></figure><p>We deliberately left the SSID untagged (VLAN 1). The switch port decides which VLAN the traffic lands in, so moving the access point into the corporate VLAN later wouldn’t require touching the access point at all.</p><h3>Step 2: A new VLAN and DHCP on the campus firewall</h3><p>For corporate wireless traffic, we created a new VLAN interface on the campus firewall, on the port facing the backbone switch (VLAN 150, 10.20.150.0/24 in the examples). The gateway and DHCP live on this firewall.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qoKUYCK1z-243_nzwMyLsQ.png" /></figure><p>We kept management access closed on the interface: only ping is allowed, HTTPS and SSH are off. Nobody on the Wi-Fi can reach the firewall’s management page.</p><p>We also picked the subnet deliberately from the range HQ already routes to the campus network (10.20.0.0/16). As a result, the HQ firewall needed no new route; the return path was ready from day one.</p><h3>Step 3: Carrying the VLAN through the switches to the access point port</h3><p>We defined VLAN 150 on every switch between the firewall and the access point and added it to the trunks: firewall to backbone switch, and backbone to edge switch. On the edge switch we also moved the access point port into VLAN 150, at cutover, once the policies were in place (Step 5).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eEWxRUwPON-ph2W8TrNYWw.png" /></figure><p>Two checks are critical here:</p><ol><li><strong>The word </strong><strong>add.</strong> Type switchport trunk allowed vlan 150 and every other VLAN on the list is removed; everything goes down, the management VLAN included. If you&#39;re working remotely, you lose access to the switch as well. The right command is switchport trunk allowed vlan add 150.</li><li><strong>VTP mode.</strong> If the switch is a VTP client, you can’t create the VLAN locally. We checked with show vtp status before making any change.</li></ol><p>Portfast and BPDU guard stay on for the access point port. If someone plugs a switch into it by mistake, the port shuts itself down; on a port that opens into the corporate network, that protection matters more than ever.</p><h3>Step 4: Policies on both firewalls and NAT for the ERP</h3><p>On the campus firewall we wrote two policies. The first takes the corporate Wi-Fi over the fiber to HQ, without NAT: HQ sees users by their real IPs, so the logs show who went where. The second sends internet traffic out through the campus network’s own line, with NAT and web filtering.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5fbsOJTe0_7uVbpIs0BpzQ.png" /></figure><p>The HQ firewall needed two policies as well: one to the HQ wireless VLAN and one to the ERP servers. The site-to-site tunnel to the ERP only accepted specific HQ subnets. Rather than asking for a change on the far end of the tunnel, we NATed ERP traffic from the campus network at HQ to an address in a range the tunnel already accepts (IP pool).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dVI4O9uwJsRjEjTULPeeuA.png" /></figure><p>We kept the policies tight:</p><ul><li><strong>Source:</strong> only the new Wi-Fi subnet.</li><li><strong>Destination:</strong> only the HQ wireless VLAN and the ERP servers.</li><li><strong>Services:</strong> only what’s needed. ERP_PORTS is a custom service object with the dispatcher, gateway and message server ports SAP GUI uses (32xx, 33xx, 36xx).</li><li><strong>Logging:</strong> all traffic is logged on both firewalls.</li></ul><h3>Step 5: Cutover and verification</h3><p>Once the policies were in place, we moved the access point port into VLAN 150. Nothing changed on the access point itself; because the SSID is untagged, traffic dropped straight into the new VLAN. Devices that had joined this network at HQ recognized the SSID and connected on their own.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pgHH5S8FKt8njlwnB3wTag.png" /></figure><p>On the infrastructure side we checked:</p><ul><li><strong>Switch:</strong> the access point’s and the clients’ MAC addresses are in VLAN 150.</li><li><strong>Campus firewall:</strong> clients get 10.20.150.x addresses from DHCP.</li><li><strong>HQ firewall:</strong> the ERP session hits the right policy, gets NATed and enters the tunnel (Allowed by Policy-93: SNAT).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*El1bHi4lQelY0963Ys9F_Q.png" /></figure><p>The client side tells the same story: the device joins the known SSID automatically, its gateway is the campus firewall, and the path to HQ takes two hops over the fiber. The ERP application port is reachable without a VPN, and latency to the HQ wireless VLAN stays under 2 ms.</p><h3>Information security</h3><p>Removing the VPN turns the Wi-Fi into a door into the internal network. So we moved the protection the VPN used to provide into other layers.</p><p>What we put in place:</p><ul><li><strong>Tight policies:</strong> from the Wi-Fi to HQ, only the wireless VLAN and the ERP servers are reachable, and only with the services that are needed. The rest of the internal network is off-limits.</li><li><strong>Traceability:</strong> no NAT on traffic to HQ, so users appear with their real IPs, and traffic logging is on at both firewalls.</li><li><strong>Closed management plane:</strong> only ping is allowed on the new VLAN interface, and the switches have no IP in the corporate or internet VLANs.</li><li><strong>Port protection:</strong> the access point port is in a single VLAN, with BPDU guard on.</li><li><strong>Separate internet traffic:</strong> internet traffic leaves through the campus network’s own line and web filter, without loading HQ.</li><li><strong>Existing setup untouched:</strong> the existing access point and the separate ISP line keep running as before, and only add was used on the trunks.</li></ul><p>Next improvements:</p><ul><li><strong>Per-user authentication.</strong> Sharing the HQ password is great for user experience, but if the password leaks, access to the internal network leaks with it. The goal is WPA2/WPA3-Enterprise (802.1X).</li><li><strong>Password sync.</strong> The access point isn’t joined to the HQ controller, so when the HQ password changes it has to be updated here by hand. That step belongs in the change procedure.</li><li><strong>Client isolation and port security.</strong> Keep clients from seeing each other, and cap the number of MAC addresses on the access point port.</li></ul><h3>Lessons learned</h3><ul><li><strong>Verify the topology first.</strong> “There’s fiber, we’ll just stretch the VLAN” fell apart once we saw the fiber was a routed link between two firewalls. The right answer was a routed design.</li><li><strong>Choose the subnet with the return path in mind.</strong> Picking the new subnet from a range HQ already routes removed the need for any routing change at HQ.</li><li><strong>Pinging the firewall’s own IP is not a path test.</strong> debug flow shows this in a single line; remember to add a protocol to the filter.</li><li><strong>Reset a second-hand access point first.</strong> A leftover VLAN tag was behind “the SSID is visible but nobody can connect”; the MAC table showed it at a glance.</li><li><strong>When in doubt, test at the switch.</strong> A laptop plugged into the port told us within minutes whether the problem was the switch or the device.</li><li><strong>Leave the SSID untagged.</strong> Letting the switch port decide the VLAN reduced the cutover to a single port command.</li><li><strong>If you can’t change the other side, NAT.</strong> Using NAT at HQ instead of requesting a change on the ERP tunnel let one team finish the whole job.</li></ul><p><em>All device names, IP addresses, VLAN numbers, policy numbers, MAC addresses and SSIDs in this post are examples and contain no real organizational data.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4d7bc35e07b4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Internet Was There All Along: A Production Network Troubleshooting Story]]></title>
            <link>https://medium.com/@yahyairis/the-internet-was-there-all-along-a-production-network-troubleshooting-story-3c6215072f84?source=rss-8878021f2559------2</link>
            <guid isPermaLink="false">https://medium.com/p/3c6215072f84</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[fortinet]]></category>
            <category><![CDATA[troubleshooting]]></category>
            <category><![CDATA[networking]]></category>
            <dc:creator><![CDATA[Yahya Iris]]></dc:creator>
            <pubDate>Thu, 08 Oct 2026 19:09:35 GMT</pubDate>
            <atom:updated>2026-10-08T19:09:35.376Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Sometimes “no internet” doesn’t mean what you think it means.</strong></p><p>If you’ve ever worked on a live production network, you know the one request that makes your stomach drop: <em>“Can you bring internet to this new area — but whatever you do, don’t break anything that’s already working.”</em></p><p>That was my exact situation recently. I needed to extend internet access to a new block of a facility without touching a single existing setting — no uplinks, no VLAN changes, no switch reconfiguration. One wrong trunk command or one forgotten keyword could drop an entire block and halt operations.</p><h3>Verify first, configure later</h3><p>I didn’t start with commands. I started with proof.</p><p>The topology diagram I had was an assumption, not a guarantee. Before writing a single line of config, I needed to know exactly how each switch connected and through which path. So I mapped the CDP neighbors and traced the target switch’s physical route through the MAC address table — step by step, evidence over memory. Only once I had confirmed the target block was directly connected did I move forward.</p><h3>The plan</h3><p>The existing trunk infrastructure already allowed all VLANs, which meant I didn’t need to touch the core at all. On the firewall, I defined an isolated VLAN interface with its own DHCP scope and a single outbound internet policy. To keep risk near zero, I first tested everything on a spare access port on the nearest switch. Laptop plugged in, got an IP, pinged the gateway, reached the internet. Chain proven. Then I replicated the same setup on the real target.</p><h3>Where it got interesting</h3><p>With a laptop, everything worked perfectly. But the moment I brought a wireless router online — same port, same VLAN — I got the dreaded “no internet.” The device had an IP. It saw the gateway. But traffic wasn’t flowing.</p><p>I could have spent hours checking cables, ports, and DHCP in all the wrong places.</p><p>Instead of guessing, I watched the traffic live. And there it was: the problem wasn’t layers 1 through 3 at all. Packets were flowing just fine. The culprit was the firewall’s UTM layer. Because the router NATs every device behind a single source IP, all of that traffic was hitting the SSL inspection and web filter rules — and getting silently blocked. The laptop had masked the issue by behaving differently on its own. The router, funneling everything through one source, hit the same rule every time.</p><p>One policy adjustment, and it was fixed in seconds.</p><h3>What I took away</h3><p><strong>“No internet” doesn’t always mean “no connectivity.”</strong> Sometimes the packets flow and a security layer quietly drops them. Look at the traffic itself, not just the symptom.</p><p><strong>If a problem behaves differently on two devices, the fault is usually a rule on the shared path — not the device.</strong></p><p><strong>In production, speed comes from verification, not haste.</strong> When every step is built on proof of the one before it, you never have to backtrack and wonder what you broke.</p><p>Sometimes the best network solution is the one that changes nothing that was already working.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ElhLjM2ptfQoQ2Q_YIx3Ag.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3c6215072f84" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Upgrading ArubaOS-CX on an Aruba 6000 via USB: 10.08 to 10.13, Console Output Included]]></title>
            <link>https://medium.com/@yahyairis/upgrading-arubaos-cx-on-an-aruba-6000-via-usb-10-08-to-10-13-console-output-included-00488ab18c98?source=rss-8878021f2559------2</link>
            <guid isPermaLink="false">https://medium.com/p/00488ab18c98</guid>
            <category><![CDATA[network-engineering]]></category>
            <category><![CDATA[aruba]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[firmware-update]]></category>
            <category><![CDATA[hpe]]></category>
            <dc:creator><![CDATA[Yahya Iris]]></dc:creator>
            <pubDate>Wed, 23 Sep 2026 20:02:32 GMT</pubDate>
            <atom:updated>2026-09-23T20:02:32.023Z</atom:updated>
            <content:encoded><![CDATA[<p>The whole job looks like a single copy command, but behind it are three separate software layers: ArubaOS-CX, ServiceOS and EPLD.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ngFtC0-HXQTzVmSNBrh1Hw.png" /></figure><p>From the outside, a switch firmware upgrade looks simple: upload the file, reboot, done. When you sit at the console and read the output line by line, you see that the switch is made up of several layers and that the upgrade deals with each of them separately.</p><p>In this post I upgrade a brand-new <strong>Aruba 6000 24G Class 4 PoE 4SFP (R8N87A)</strong> from <strong>ArubaOS-CX PL.10.08.1010</strong> to <strong>PL.10.13.1180</strong> using a USB stick. I did everything over the console, and every snippet below comes from that session. The switch wasn’t in production yet, so I didn’t need to plan a maintenance window.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KKTmZGlnFE8nauQ2HFwK_A.png" /></figure><h3>1. Know the device first: take a baseline</h3><p>Before changing anything, record the current state. This habit applies to every vendor. I started with:</p><pre>6000# show system<br>Product Name       : R8N87A 6000 24G CL4 4SFP Swch<br>ArubaOS-CX Version : PL.10.08.1010<br>Up Time            : 4 hours, 37 minutes<br>CPU Util (%)       : 10<br>Memory Usage (%)   : 20</pre><p>Next I checked ports with show vlan and show interface brief. The switch was at factory defaults. VLAN 1 was the only VLAN, all 28 ports were access ports in VLAN 1, and only 1/1/1 was up.</p><p>If anyone asks after the upgrade how the switch looked before, this output answers it.</p><h3>2. Mounting the USB stick</h3><p>I copied the firmware file (ArubaOS-CX_6100-6000_10_13_1180.swi) to a USB stick, plugged it in and checked its state:</p><pre>6000# show usb<br>Enabled: Yes<br>Mounted: No</pre><p>The USB port was enabled, but the stick wasn’t mounted yet. Out of Linux habit I typed mount usb first, and the switch rejected it with Invalid input: mount. In ArubaOS-CX the syntax is:</p><pre>6000# usb mount<br>6000# show usb<br>Enabled: Yes<br>Mounted: Yes</pre><h3>3. Writing the image to the primary slot</h3><p>ArubaOS-CX keeps two image slots in flash: <strong>primary</strong> and <strong>secondary</strong>. I wrote the new version to primary:</p><pre>6000# copy usb:/ArubaOS-CX_6100-6000_10_13_1180.swi primary<br>The primary image will be deleted.</pre><pre>Continue (y/n)? y</pre><pre>Verifying and writing system firmware...</pre><p>When the copy finished I ran show system, and it still reported <strong>PL.10.08.1010</strong>.</p><p>That’s expected. copy writes the image to flash, but the operating system running in RAM is still the old one. The new version only takes over after a reboot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WoZD8qUn3my2Qpr1O5fugQ.png" /></figure><p>I checked the slots with show images:</p><pre>ArubaOS-CX Primary Image<br>Version : PL.10.13.1180<br>SHA-256 : Verifying 40%</pre><pre>ArubaOS-CX Secondary Image<br>Version : PL.10.08.1010</pre><pre>Default Image : primary</pre><p>The new version is now in primary, and the old version stays in secondary as a <strong>rollback</strong> option. If the new release causes problems, boot system secondary gets you back to the old version in a few minutes.</p><p>One detail in this output is easy to miss: SHA-256 still showed Verifying 40%. It&#39;s safer to wait for the check to finish before rebooting.</p><h3>4. The reboot, and ServiceOS updating itself</h3><p>During the reboot the boot menu appeared and the switch booted from the primary image:</p><pre>Boot Profiles:<br> 0. Service OS Console<br> 1. Primary Software Image [PL.10.13.1180]<br> 2. Secondary Software Image [PL.10.08.1010]</pre><pre>Booting primary software image...<br>Version: PL.10.13.1180</pre><p>Right after that, the switch noticed that the new image carried a newer <strong>ServiceOS</strong> than the one installed:</p><pre>2 device(s) need to be updated by the ServiceOS during the boot process.<br>There may be multiple reboots during the update process.</pre><pre>MODULE &#39;mc&#39; DEVICE &#39;svos_primary&#39; :<br>Current version  : &#39;PL.01.09.0003&#39;<br>Packaged version : &#39;PL.01.14.0002&#39;<br>Version upgrade needed<br>...<br>Update successful (4.4 seconds).</pre><p>It updated the primary ServiceOS and rebooted, then updated the secondary ServiceOS and rebooted again. So several reboots during the upgrade are normal.</p><p><strong>What is ServiceOS?</strong> ArubaOS-CX is the network operating system that runs VLANs, STP, routing, SSH, SNMP and the other services. ServiceOS sits underneath it as the boot, recovery and maintenance environment. You rarely touch it day to day, but it’s the layer that runs upgrades, image recovery and boot troubleshooting.</p><h3>5. EPLD: the one step the switch asks permission for</h3><p>This was the most instructive part of the upgrade:</p><pre>1 non-failsafe device(s) also need to be updated by the ServiceOS.<br>Please run the &#39;allow-unsafe-updates&#39; command to enable these updates.</pre><pre>MODULE &#39;mc&#39; DEVICE &#39;epld_main&#39; :<br>Current version  : &#39;0xA&#39;<br>Packaged version : &#39;0xB&#39;<br>Version upgrade needed</pre><pre>**** The device listed above does not support fail-safe updates.<br>**** After ensuring the update will not be interrupted,<br>**** please enable non-failsafe updates with the following command:<br>**** &#39;allow-unsafe-updates &lt;NUM_MINUTES&gt;&#39;</pre><pre>Did not update 1 device(s).</pre><p>The <strong>EPLD</strong> is the programmable logic that sits closest to the hardware. “Unsafe” here doesn’t mean “don’t do this”. It means this component has no backup copy to fall back on if the update fails. If power drops in the middle of the update, recovery can get very hard. That’s why the switch won’t do it on its own and waits for you to approve it explicitly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VsXns6_4SSW4AjOGWfwdNw.png" /></figure><p>You can list pending updates at any time with:</p><pre>6000# show needed-updates<br>Current version  : 0xA<br>Packaged version : 0xB<br>Version upgrade needed<br>Non-failsafe device updates not enabled!</pre><p>I haven’t applied this update yet. The plan: during a maintenance window, with the switch on a UPS, run allow-unsafe-updates 30 and then reboot. The switch must not lose power until it&#39;s done.</p><h3>6. 100% CPU: wait before you panic</h3><p>The first show system on the new release showed:</p><pre>ArubaOS-CX Version     : PL.10.13.1180<br>Up Time                : 1 minute<br>CPU Util (%)           : 100<br>CPU Util (% avg 1 min) : 81<br>CPU Util (% avg 5 min) : 83</pre><p>That looks alarming, but note the uptime: 1 minute. top cpu showed services like ovsdb-server, hpe-restd and yang-resolverd all starting up at the same time. A few minutes later I checked again:</p><pre>Up Time                : 4 minutes<br>CPU Util (%)           : 8<br>CPU Util (% avg 1 min) : 12<br>CPU Util (% avg 5 min) : 52<br>Memory Usage (%)       : 18</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T42kfjfTVvKR38KWpu_Xaw.png" /></figure><p>The 5-minute average was still at 52% only because its window still included the boot. The current value and the 1-minute average show the system had settled. Lesson: let the device settle before you diagnose anything from CPU readings taken right after a reboot.</p><h3>7. Disabling Aruba Central</h3><p>I won’t manage this switch through Aruba Central, so I disabled cloud management:</p><pre>6000# show aruba-central<br>Central admin state : enabled</pre><pre>6000# configure terminal<br>6000(config)# aruba-central<br>6000(config-aruba-central)# disable</pre><p>For this setting to survive a reboot, save it with write memory. Reading back through my log, I noticed I had skipped that step, so it&#39;s now on my checklist.</p><p>If you plan to manage the switch through Central, skip this step. It depends entirely on your management design.</p><h3>8. A small trap: read the prompt</h3><p>While in config mode I typed start as a shortcut. It was interpreted as start-shell and dropped me straight into the switch&#39;s Linux shell:</p><pre>6000(config)# start<br>6000:~$ end<br>bash: end: command not found<br>6000:~$ exit<br>6000(config)#</pre><p>6000:~$ prompt means you&#39;re in bash, not the ArubaOS-CX CLI, and Aruba commands won&#39;t work there. Type exit to get back to the CLI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mTYq-1q5unmr8yRouMr53w.png" /></figure><h3>Final state and checklist</h3><p>LayerBeforeAfterStatusArubaOS-CX10.08.101010.13.1180✅ UpgradedServiceOS01.09.000301.14.0002✅ Upgraded automaticallyEPLD0xA0xB⏳ Awaiting approval</p><p>Post-upgrade checks I used:</p><pre>show system<br>show images<br>show needed-updates<br>top cpu<br>show running-config<br>show aruba-central<br>write memory</pre><p>Still to do before the switch goes into production: the EPLD update, hostname, management VLAN and IP address, NTP, DNS, SNMP, syslog, and the real port/VLAN design.</p><h3>What I took away from this upgrade</h3><ol><li><strong>Copying isn’t running.</strong> copy … primary stages the image, and the reboot puts it live.</li><li><strong>Primary/secondary slots are your safety net.</strong> As long as the old version sits in secondary, rolling back takes a few minutes.</li><li><strong>The console connection matters.</strong> I could only see the ServiceOS and EPLD messages on the console. If I had upgraded over SSH, I would have missed all of them.</li><li><strong>One upgrade touches several layers.</strong> Here I dealt with three: ArubaOS-CX, ServiceOS and EPLD.</li><li><strong>Don’t trust post-boot metrics right away.</strong> 100% CPU dropped to 8% four minutes later.</li><li><strong>Save your config.</strong> Any change made without write memory is lost at the next reboot.</li></ol><p>The goal of an upgrade isn’t only to load new firmware. Watching the boot process, checking the dependent components and confirming the device runs healthily on the new release are part of the job. Those steps are the difference between “the upgrade succeeded” and “the device is actually healthy”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PuRNk882TZEMEV-OUomEAw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=00488ab18c98" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Crypto Was Perfect. The Tunnel Still Wouldn’t Come Up.]]></title>
            <link>https://medium.com/@yahyairis/the-crypto-was-perfect-the-tunnel-still-wouldnt-come-up-377a108a6a04?source=rss-8878021f2559------2</link>
            <guid isPermaLink="false">https://medium.com/p/377a108a6a04</guid>
            <category><![CDATA[troubleshooting]]></category>
            <category><![CDATA[network-security]]></category>
            <category><![CDATA[network-engineering]]></category>
            <category><![CDATA[vpn]]></category>
            <category><![CDATA[infrastructure]]></category>
            <dc:creator><![CDATA[Yahya Iris]]></dc:creator>
            <pubDate>Tue, 22 Sep 2026 19:30:46 GMT</pubDate>
            <atom:updated>2026-09-22T19:30:46.307Z</atom:updated>
            <content:encoded><![CDATA[<h3>Four things to check before you touch a single proposal</h3><p><em>Architecture level only. No vendors, models, addressing or site details. The platform-specific behaviours below appear on more than one product line, so I’ve described what they do rather than who does them.</em></p><p>I needed a site-to-site IPsec tunnel so that a remote firewall could ship its logs to a central log platform. Ordinary work, half a day at most.</p><p>Pre-shared key correct. AES256 and SHA256 matching on both sides. Diffie-Hellman groups aligned. Traffic selectors mirrored exactly.</p><p>The tunnel stayed down.</p><p>When cryptography is verifiably identical on both ends and nothing comes up, the instinct is to go back and check the cryptography again. Resist it. Every hour I have ever lost to a tunnel has been lost in the configuration layer, and this one was no exception. Three findings, then a fourth that only appeared once the tunnel was finally up.</p><h3>1. Check interface binding before you check proposals</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kVpB0R7EhToS7SNJMunq5A.png" /></figure><p>Phase 1 was bound to an internal interface rather than the one facing the internet.</p><p>The IKE packets were arriving correctly. The device could see them. But it would not take ownership of the negotiation, because as far as it was concerned, no Phase 1 existed on the interface those packets had arrived on.</p><p><strong>The signature is distinctive once you know it:</strong> the first message arrives, nothing follows, and the peer keeps retransmitting. No error, no rejection, no proposal mismatch. Just silence on one side and patience on the other.</p><p>That pattern is diagnostic. When packets are demonstrably flowing but negotiation never progresses past the first exchange, interface binding belongs at the top of the list, not proposal mismatch. A proposal mismatch produces a different signature entirely: both sides talk, and one of them objects.</p><p>Worth knowing before you start: on some platforms this binding cannot be changed after the fact. The tunnel has to be deleted and redefined. If you’re going to get it wrong, you want to find out in the first ten minutes rather than after you’ve built everything on top of it.</p><h3>2. On some platforms, no policy means no negotiation</h3><p>The debug output said it in plain language: <em>ignoring IKE request, no policy configured.</em></p><p>This is the finding I’d most want to pass on, because it inverts an assumption almost everyone carries: that a firewall policy governs traffic <em>through</em> a tunnel, and is therefore something you configure after the tunnel is working.</p><p>On several platforms that’s wrong. The firewall policy is a precondition for IKE itself. Without it the device will not negotiate at all, no matter how perfect the tunnel definition is. The policy doesn’t just filter traffic across the tunnel. It activates the tunnel.</p><p>So the ordering most people use is backwards. You cannot bring the tunnel up and then write the policy, because the policy is what allows it to come up.</p><p><strong>A bonus trap, and this one cost real time.</strong> A dial-up VPN configured on the same internet-facing interface picked up the orphaned request. The result was that the error surfaced under a completely different tunnel’s name in the logs. I spent a while investigating a tunnel that had nothing to do with the problem, because the log entry pointed at it.</p><p>When a debug message names an object you weren’t working on, consider that the message may be accurate and the attribution misleading. Something else on the same interface answered a request that wasn’t meant for it.</p><h3>3. Verify line integrity after a bulk paste</h3><p>Policy defined. Route defined. Traffic still blocked.</p><p>The set action accept line had silently dropped out of a configuration block pasted into the CLI. Terminal buffering, flow control, a dropped character during a large paste. It happens, and the platform doesn&#39;t flag it.</p><p>What makes this genuinely nasty is what happens next. The policy is created successfully, with the default action, which is deny. And because the default isn’t stored as an explicit setting, it doesn’t appear in show output either. You read back your configuration, it looks exactly like what you intended, and it does the opposite.</p><p>A missing line that produces an error is a minor inconvenience. A missing line that produces a silent, invisible, functioning-but-wrong configuration is a genuine hazard.</p><p>This is now a standard step for me: after any bulk paste, read the object back and verify the specific lines that carry the behaviour, not the ones that carry the identity. Names and addresses are obvious when wrong. Actions and modes are not.</p><h3>4. The tunnel was up. The logs still weren’t flowing.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*esIbAarSDJLhjq0AeQEPqA.png" /></figure><p>The last one appeared only after everything else was working.</p><p>Without an explicitly pinned source address, a device sends its log packets using the IP of whichever interface they egress from. If that address falls outside the traffic selector, the packets never enter the tunnel at all. They’re routed normally, out to the internet, where nothing is listening for them.</p><p>Nothing is broken at that point. The tunnel is healthy, the route is correct, the policy permits. The packets just don’t match the selector, so they take the other path.</p><p>Pinning the source address to a local address inside the selector resolved it immediately. The device appeared on the central platform within a couple of minutes, was authorised, and logs began flowing.</p><p>Then the final piece of hygiene, which is easy to skip once something starts working: the hub-side policy was narrowed to the specific log ports required. A tunnel built for one purpose should permit one purpose.</p><h3>The order I’d check in</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K1cNOkc-WOtrYFm_Qtt8Zg.png" /></figure><p>A working tunnel is four components, not one: <strong>Phase 1, Phase 2, a static route, and a bidirectional policy.</strong> Most of the time spent debugging tunnels is spent inside the first two, and most of the actual faults live in the last two.</p><p>So when a tunnel is down, this is the sequence:</p><ol><li>Is there a policy at all?</li><li>Is the policy’s action what you think it is?</li><li>Is the route defined?</li><li>Is Phase 1 bound to the right interface?</li><li>Are the selectors mirrored?</li></ol><p>Debug comes after those five, not before. Debug output is extremely informative once you have a hypothesis, and extremely good at consuming an afternoon when you don’t.</p><p>Cryptography is rarely the culprit. It’s the part that’s explicitly defined on both sides, in matching terms, and is therefore the easiest part to verify and the hardest part to get subtly wrong.</p><p>Configuration integrity is the first checkpoint, every time.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=377a108a6a04" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Network “Works.” That Tells You Almost Nothing.]]></title>
            <link>https://medium.com/@yahyairis/the-network-works-that-tells-you-almost-nothing-ba6d61c48424?source=rss-8878021f2559------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba6d61c48424</guid>
            <category><![CDATA[documentation]]></category>
            <category><![CDATA[infrastructure]]></category>
            <category><![CDATA[network-engineering]]></category>
            <category><![CDATA[network-security]]></category>
            <category><![CDATA[it-management]]></category>
            <dc:creator><![CDATA[Yahya Iris]]></dc:creator>
            <pubDate>Mon, 21 Sep 2026 19:05:56 GMT</pubDate>
            <atom:updated>2026-09-21T19:05:56.682Z</atom:updated>
            <content:encoded><![CDATA[<h3>Why infrastructure work is never just a setting</h3><p><em>Architecture level only. No vendors, models, addressing or site details.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ck9-vjkBTVOMMGt25AaJOg.png" /></figure><p>The request was simple enough to fit in one line: give the newly installed camera system controlled internet access.</p><p>Requests like that arrive with an implied timeline. Add a rule, add a route, done before lunch. And on a network you already understand, that estimate is roughly correct.</p><p>The problem is the second half of that sentence. I didn’t understand this network yet, and neither did anyone else still working there.</p><p>So the job didn’t start at the firewall. It started with a question nobody had asked in a while: <strong>what is actually running here?</strong></p><h3>You cannot change what you haven’t mapped</h3><p>The first work on site had nothing to do with cameras. It was going to every switch across every block, one at a time, and pulling out what was really configured:</p><ul><li>User accounts, and who still had access</li><li>VLAN structures, and which ones were real versus leftover</li><li>SNMP settings, including community strings nobody had rotated</li><li>Credentials and access paths</li></ul><p>Every configuration was exported. What came out of that wasn’t just a pile of device settings. It was the first accurate picture of the topology, because the topology and the documentation had stopped matching each other some years earlier.</p><p>This is the normal condition of inherited networks, and it’s worth saying plainly: <strong>most environments that “work” are undocumented.</strong> The network runs because it was configured correctly once, by someone who has since left, and nothing has disturbed it since.</p><p>That state feels stable. It isn’t. It just hasn’t been tested. And it converts every future change into a gamble, because you cannot predict the blast radius of a change inside a system whose shape you’re guessing at.</p><p>The audit found the usual things. Trunk ports permitting every VLAN because nobody narrowed them. Management protocols with default community strings. Accounts belonging to people who had left. A VLAN that existed on three devices and was referenced by none.</p><p>None of these were causing an outage that morning. All of them were things I’d have discovered the hard way, at the worst possible moment, if I’d gone straight to the firewall and started typing.</p><h3>Touching the security device: observation before action</h3><p>Here is where this job got genuinely uncomfortable.</p><p>The firewall was in the path, and nobody had working administrative access to it. No credentials, no documentation, no vendor contact, no record of what it was enforcing. It was a black box that all traffic passed through, and the change I’d been asked to make needed to go through it.</p><p>There are two ways to handle that. You can start trying things and see what breaks. Or you can establish, under controlled conditions and with a way back, what the device is actually doing.</p><p>We did the second. The device was taken out of the path deliberately, in a planned window, with the original configuration physically preserved and a rollback ready. Then we watched.</p><p><strong>Nothing went down.</strong> Not end users, not the in-unit devices, not the camera systems. Everything that had been working continued to work.</p><p>Then the more important step: traffic analysis on the outbound side, looking for anything abnormal now that the path was observable.</p><p>That exercise answers a question you otherwise have to guess at. A device in the path with no known configuration is not automatically providing protection, and treating it as though it is can be a more dangerous assumption than replacing it. Until you observe it, you don’t know whether you’re looking at a firewall, or a very expensive cable.</p><p>I want to be careful about how this is read, because it’s the part most likely to be quoted badly. This was not “we turned off the firewall and it was fine.” It was a planned, bounded, observed test with a rollback path, run precisely because acting blind on a security device is worse than the test. The unacceptable option was never “leave it alone.” It was “change it without knowing what it does.”</p><p><strong>Every reset performed without observation is an invitation to an outage whose cause nobody will be able to find later.</strong></p><h3>Rebuild, rather than patch around</h3><p>Once the picture was complete, the firewall wasn’t repaired. It was rebuilt:</p><ul><li>Configured from scratch, against a documented design</li><li>Firmware brought up to a supported version</li><li>VLAN structures redefined to match what the network actually needed</li><li>Security and access policies written deliberately, rather than inherited</li></ul><p>Rebuilding is slower than patching, and it is almost always the right call on a device whose history you can’t reconstruct. A configuration you inherited is a configuration you cannot fully reason about. Every rule in it was written for a reason, and when nobody remembers the reason, you’re left choosing between keeping rules you don’t understand and deleting rules you can’t evaluate. Neither of those is engineering.</p><p>Starting clean means every line exists because someone currently on the team decided it should.</p><h3>Bandwidth, before anyone complained</h3><p>One addition that wasn’t in the original request: per-user bandwidth management.</p><p>The line was not saturated at that moment. But a shared link where any single user can consume the entire capacity doesn’t degrade gradually. It works perfectly until the first person starts a large download, and then it fails for everyone at once, with no warning and no obvious cause.</p><p>Shaping per user converts that from an outage into a slowdown for one person. It costs nothing to configure during a rebuild and is disproportionately annoying to retrofit afterwards.</p><p>This is the general shape of the good decisions in infrastructure work: they’re cheap while you’re already inside the system, and expensive the moment you’ve closed it up.</p><h3>What actually determined the outcome</h3><p>Not the number of settings changed. Looking back, four things did the work:</p><p><strong>Knowing the system before touching it.</strong> The audit consumed the largest share of the time and produced no visible output. It’s also the only reason the rest of the work was predictable.</p><p><strong>Never touching production without a test and a way back.</strong> Observation first, action second, rollback ready throughout.</p><p><strong>Producing documentation.</strong> The environment arrived undocumented. It didn’t leave that way. That artifact outlives the engagement, and it’s what stops the next person from repeating this entire exercise.</p><p><strong>Staying in contact with the teams involved.</strong> Most infrastructure incidents are not technical failures. They’re two people who each made a reasonable change without knowing about the other one.</p><h3>The part that’s easy to miss</h3><p>Network infrastructure runs silently. That’s the whole point of it, and it’s also why it gets neglected: there is no daily signal telling you the state it’s in.</p><p>When it’s managed badly, it doesn’t warn you either. It absorbs the neglect quietly, for years, and then reacts at the least convenient moment possible.</p><p>Good infrastructure work is invisible work. If nobody noticed an outage, nothing broke, and the system stayed balanced, it was done properly. There is no applause for that, and there shouldn’t be.</p><p>In corporate IT the goal was never to be able to say “it works.” Plenty of things work. The goal is for it to keep working after the person who built it has moved on, in a way that the next person can understand, verify and safely change.</p><p>That’s the difference between a setting and an infrastructure project.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba6d61c48424" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[No Internet, No Line for Months, and Staff Who Needed It Today]]></title>
            <link>https://medium.com/@yahyairis/no-internet-no-line-for-months-and-staff-who-needed-it-today-b68715220ab4?source=rss-8878021f2559------2</link>
            <guid isPermaLink="false">https://medium.com/p/b68715220ab4</guid>
            <category><![CDATA[infrastructure]]></category>
            <category><![CDATA[it-management]]></category>
            <category><![CDATA[network-security]]></category>
            <category><![CDATA[network-engineering]]></category>
            <category><![CDATA[risk-management]]></category>
            <dc:creator><![CDATA[Yahya Iris]]></dc:creator>
            <pubDate>Sun, 20 Sep 2026 21:19:57 GMT</pubDate>
            <atom:updated>2026-09-20T21:19:57.670Z</atom:updated>
            <content:encoded><![CDATA[<h3>What you build when the answer can’t be “wait”</h3><p><em>This write-up stays at the architecture level on purpose. No vendors, models, addressing or site details. The setup described here was built and verified but never opened to users why is at the end, and it’s the part I’d least have predicted.</em></p><p>There was no internet at the site. The line had been ordered, and the realistic delivery window was measured in months, not weeks. The staff working there needed connectivity today not for production systems, for the ordinary human things people expect wherever they are.</p><p>Between those two facts there is a gap, and someone has to stand in it.</p><p>The instinct in that gap is to improvise. Put a consumer router somewhere. Share a phone’s connection. Open a hole in something that’s already working. Every one of those options solves today and creates a problem that outlives the person who solved it.</p><p>We had exactly one asset: a WAN link back to headquarters, already in place, already carrying corporate traffic.</p><p>So the decision became clear. <strong>If we couldn’t bring the internet to the site, we’d take the site — in a controlled way — to the internet.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GEIr6ddhtJiJX8PEwkkdvw.png" /></figure><h3>The shape of the solution</h3><p>Guest traffic got its own VLAN and its own IP block, with zero overlap against the corporate network. It rode the existing WAN link to headquarters, and broke out to the internet at the central firewall, where NAT was applied.</p><p>Written out in one sentence it sounds almost trivial. The reason it isn’t is that every part of that sentence is a decision that could have gone the other way.</p><p><strong>Why not break out locally?</strong> Because a local breakout means a local security boundary, and a local security boundary means someone has to own it, patch it, monitor it and eventually decommission it. At a site with no permanent IT presence and a solution with a deliberate expiry date, that’s a liability, not a feature.</p><p><strong>Why centrally?</strong> Because the controls already exist there. Policy, NAT, inspection, logging all of it is already built, already monitored, already someone’s job. Sending the traffic to where the controls live costs some latency. Rebuilding the controls where the traffic lives costs a great deal more than latency.</p><p>The site never gained an internet connection. It gained a controlled path to one. That distinction is the whole design.</p><h3>Isolation, three times over</h3><p>The single most important property of this setup is that guest traffic can never touch the corporate network. Not “shouldn’t.” Cannot.</p><p>We didn’t rely on one mechanism for that.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EgyUO0dhw11Qhnb17b2jkA.png" /></figure><p><strong>An explicit deny rule.</strong> Guest-to-corporate is refused by a rule that someone wrote, not by the absence of a rule that permits it. Those look identical on the day you build it. They stop looking identical the moment somebody adds routing six months later and inherits a permit they never knew about.</p><p><strong>Zone isolation.</strong> The guest zone cannot reach any other zone, regardless of what gets added inside it later. This catches the case where the explicit rule gets edited, reordered or removed by a person who wasn’t in the room when it was written.</p><p><strong>Wireless client isolation.</strong> Two devices on the same SSID cannot see each other at all. This one operates below the firewall entirely traffic between two guest devices never reaches a policy engine, so no policy can protect them from one another.</p><p>Those three are not redundant. Each blocks something the others structurally cannot. A single control fails silently; layered controls fail one at a time, and the other two are still standing when it happens.</p><p>Logging was configured to stream to a central platform, NAT records included. Without the NAT records the logs are decorative — you know something happened, but you can’t get back to which device did it.</p><h3>The wireless layer</h3><p>Access points were not configured one by one. A central controller pushed the SSID, the AP group and the VLAN mapping from a single place.</p><p>This matters more than it sounds. A configuration applied by hand to each device is a configuration that drifts. One AP gets a setting the others didn’t. Nobody notices until the day someone connects through that specific AP and gets an experience nobody designed.</p><p>A separate AP group kept the guest SSID broadcasting only at the access points where it was actually needed. The rest of the estate never sees it. Coverage you don’t need is attack surface you didn’t intend to create.</p><h3>Access is two-gated</h3><p>The passphrase is the first gate. It is not the last one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Usp7KTcaOeKb2yllZrnN8A.png" /></figure><p>Even a device that knows the passphrase cannot reach the internet unless it has been registered at the firewall beforehand. Knowing the secret gets you onto the network. It does not get you through it.</p><p>I want to be precise about what this is and isn’t. A registration step of this kind is not strong authentication, and it was never presented as strong authentication. What it does is convert the most probable real-world failure someone shares the passphrase with a colleague, helpfully from an access event into a support request.</p><p>The device associates. It gets an address. It looks connected. It reaches nothing which is exactly what we saw when we tested it with an unregistered device. Somebody comes and asks why, and that conversation is the control working as intended.</p><p>The threat model here isn’t a determined attacker. It’s ordinary human helpfulness, and this handles ordinary human helpfulness well.</p><h3>The decision that mattered wasn’t technical</h3><p>A public-access network carries obligations, and meeting all of them properly is a real project identity, retention, log integrity, the processes around them. Some of those controls would have cost a disproportionate amount for an arrangement with a known end date measured in months.</p><p>So there was a gap between what a permanent build would have had and what this one had.</p><p>The easy move at that point is to stay quiet. Build it, let it work, and hope nobody asks the question. That’s the move that turns into an audit finding and worse, into a colleague discovering an undocumented gap years later with no way of knowing whether it was a decision or a mistake.</p><p>So we did the other thing. We wrote it down.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*781zbe9yEWduGSBpa5waBA.png" /></figure><p>Each accepted gap was named in plain words, rated on a likelihood × impact matrix, given an expiry date, and signed off by someone with the authority to sign it off. The whole thing was documented as a <strong>time-boxed, management-approved risk acceptance</strong>.</p><p>That document does not claim everything is perfect. It proves the imperfections were identified, priced, dated and consciously accepted by name, in advance, rather than discovered afterwards by somebody else.</p><p>There’s a second function to the expiry date that’s worth stating plainly: it’s the mechanism that stops this from quietly becoming permanent. Temporary infrastructure doesn’t become permanent through a decision. It becomes permanent through the absence of one.</p><h3>What the field taught me</h3><h3>A VLAN chain is only as strong as its weakest hop</h3><p>Configure both ends, forget one switch in the middle, and tagged frames die silently.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gxnk3hR4ieNl9oI-eC3jGQ.png" /></figure><p>No alarm. No log line. No link down. Both ends look correct in their own configuration, and the symptom presents as a client problem which is exactly where you’ll waste the first hour.</p><p>Every hop must explicitly know the VLAN it carries. Not most of them.</p><h3>The difference between “append” and “overwrite” can cost you your session</h3><p>Overwriting the allowed-VLAN list on a trunk drops every VLAN you didn’t name including, at the worst possible moment, the management VLAN you’re connected through.</p><p>There’s no clever technique that protects you from this. The safety net is discipline: <strong>never save a change before you’ve verified it.</strong> A device with an unsaved bad config recovers on reboot. A device with a saved bad config needs someone to physically go there.</p><h3>Infrastructure devices don’t belong on DHCP</h3><p>If switch and access point addresses are leased, one day you will hunt a device that appears to have vanished. It hasn’t vanished. It renewed into a different address while you were looking at documentation that recorded the old one.</p><p>Management addresses are static or reserved. This costs ten minutes during the build and saves an afternoon during an outage.</p><h3>Physics doesn’t negotiate</h3><p>Copper Ethernet stops at 100 metres. A run past that limit doesn’t fail cleanly it works, mostly, and then drops under load at the least convenient moment.</p><p>The tell is a rising link-flap counter. When you see one, suspect the cable before the configuration. The config didn’t change on its own; the cable has been marginal since the day it was pulled.</p><h3>Never decide without measuring</h3><p>Every assumption port mappings, VLAN transport, isolation was proven, not believed. Neighbour discovery for what’s actually plugged in where. ARP for what’s actually reachable. Packet captures for what’s actually traversing.</p><p>The gap between “I’m fairly sure it’s plugged in there” and “the neighbour table says it is” looks like pedantry at build time. It stops looking like pedantry at 2am.</p><h3>The switch we never threw</h3><p>The build was finished. Configuration applied, every path verified, an unregistered test device confirmed going nowhere. It was ready to open.</p><p>The next morning, the service provider arrived with a separate line and stood up guest connectivity on it directly. Not the line we’d been waiting months for a different one, for this purpose, delivered the day after we’d finished solving the problem without it.</p><p>So the setup never carried a single real user. It was built, tested, and stood down without ever being switched on.</p><p>I’ve thought about that more than about any of the engineering above, so let me be honest about what it does and doesn’t mean.</p><p><strong>It isn’t a wasted build, and I want to be careful about why.</strong> Not because of the sunk-cost consolation that you learn something from everything. Because of what was actually delivered on the day: the answer to “when can the staff have internet” went from <em>months</em> to <em>whenever you say go</em>. That was true, and it was worth something, regardless of whether anyone ever said go. A contingency you don’t end up needing is not a contingency that failed.</p><p><strong>Nobody knew the line was a day away.</strong> If we had, waiting would obviously have been correct. But it being correct in hindsight doesn’t make it knowable in advance, and building on the assumption that a provider might surprise you tomorrow is not a plan. Decisions get judged on what was in front of you.</p><p><strong>The lessons survived the thing that produced them.</strong> Everything in the section above the silent VLAN drop, the trunk command that takes your session with it, the infrastructure addresses that shouldn’t be leased, the cable past its distance limit came out of a build that never ran. That knowledge doesn’t care whether the switch was ever thrown. It transferred to the next site intact.</p><p><strong>And the part I didn’t expect to matter: standing it down was effortless.</strong> Nobody had to argue for it. There was a written record of what it was, why it existed, and under what condition it should stop existing and that condition simply arrived early. No meeting, no defending the work, no “but we already built it.”</p><p>That last one is the argument, and it’s the reason I wrote this up. The improvised alternative a consumer router in a cupboard with a cable running somewhere would have been switched on immediately, because improvised things always are. And it would still be there today, past the point where anyone needed it, unlabelled, with somebody eventually finding it and being afraid to unplug it.</p><p><strong>A design that’s easy to stand down is also a design that’s easy not to start.</strong> Those turn out to be the same property, and you only find out which one you needed afterwards.</p><h3>The principle underneath</h3><p>Temporary solutions stay temporary when they’re built on permanent principles. Built without them, they become permanent problems.</p><p>This one turned out to be as temporary as a thing can be it never ran at all. And every part that felt like overkill while we were building it is exactly what made walking away from it a non-event. The segmentation, the layered isolation, the central logging, the written acceptance: none of that was for the day it would run. It was for every day after that, including the ones where it didn’t.</p><p>You don’t get to choose whether the pressure is real. You do get to choose whether the thing you build under pressure is something you’d be willing to explain later or, as it turned out here, something you can simply set down and walk away from without leaving anything behind.</p><p><em>I designed and built this setup end to end, and it never served a single user. If you’ve built something under the same kind of pressure especially if yours is still running years after it should have stopped I’d be interested to hear about it in the comments.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b68715220ab4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Replacing the Wireless Was the Easy Part]]></title>
            <link>https://medium.com/@yahyairis/replacing-the-wireless-was-the-easy-part-cbeec6c903a8?source=rss-8878021f2559------2</link>
            <guid isPermaLink="false">https://medium.com/p/cbeec6c903a8</guid>
            <category><![CDATA[network-engineering]]></category>
            <category><![CDATA[infrastructure]]></category>
            <category><![CDATA[manufacturing]]></category>
            <category><![CDATA[wifi]]></category>
            <category><![CDATA[it-management]]></category>
            <dc:creator><![CDATA[Yahya Iris]]></dc:creator>
            <pubDate>Thu, 17 Sep 2026 20:48:29 GMT</pubDate>
            <atom:updated>2026-09-17T20:48:29.704Z</atom:updated>
            <content:encoded><![CDATA[<p>Phase 2: why measuring the floor mattered more than the hardware</p><p>In the previous piece I wrote about rebuilding a factory’s network core cabling, firewall, switching, segmentation. The part nobody gets excited about.</p><p>I left a problem unsolved in that article. When roughly fifty clients associated to a single access point, the device restarted itself, and the sensor data flowing from the production line stopped with it.</p><p>This is how that problem actually got closed. And the answer isn’t where you’d expect.</p><p>A note on detail: this write-up stays at the architecture level. No vendors, models, addressing or site specifics the reasoning transfers, the specifics don’t need to.</p><h3>What we were replacing</h3><p>The access points on site were about ten years old. First-generation Wi-Fi 5–802.11ac Wave 1. They were managed by a local controller, and manufacturer support had ended entirely in 2024.</p><p>Running end-of-life hardware is easy to wave away in a write-up. In practice it means three things: when a vulnerability is published there is no patch, when something breaks there is no support case to open, and when a unit dies there is no replacement process. Spares come from the second-hand market.</p><p>So the problem wasn’t that the hardware was slow. It was that production data was moving across an infrastructure nobody stood behind any more.</p><h3>First, we measured</h3><p>To claim anything about what new hardware delivers, you need a controlled comparison. Otherwise all you have is “the old one was bad and the new one is good.”</p><p>Both measurements used <strong>the same laptop, the same driver version and the same network segment</strong>, taken from the same spot. Same client, same VLAN, same everything. The only variable was the access point.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WkLvfKTolSlU7NXXisVSWg.png" /></figure><p>Roughly a six-fold increase.</p><p>These numbers aren’t estimates. In the 802.11ax rate table, 80 MHz over two spatial streams corresponds to 960.8 and 1080.9 Mbps. The measured 961 and 1,081 land on those rows exactly the link was negotiating just below its theoretical ceiling.</p><p>There was also a gain nobody puts in a graph but that matters more on a shop floor. The old radio was operating on a DFS channel. When radar is detected on a DFS channel, the access point has to vacate it, and that means an outage of up to a minute. The new configuration sits on a non-DFS channel. For handheld terminals and production sessions, that is worth more than raw throughput.</p><h3>But that wasn’t the real work</h3><p>Everything above is a hardware swap. Remove the old one, fit the new one, measure the speed. You don’t need an engineer for that.</p><p>The real work was the site survey.</p><p>Coverage was measured across the plant, and what came back showed that the existing layout was the product of accumulation rather than design. Some areas had insufficient signal. In others, client density was far beyond what the access points serving that zone could absorb.</p><p>The old layout had <strong>45 access points</strong>. Based on the coverage and density data, that went to <strong>57</strong>, with the positions redrawn.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4wsjEGFLV3xeDdSan4wlCQ.png" /></figure><p>This is the part that matters. The root cause of “the AP keeps rebooting” was not that the hardware was bad. <strong>It was that there were too few devices, in the wrong places.</strong> Fifty users piling onto one access point is a layout problem, not a hardware problem.</p><p>If we had fitted the same number of new units in the same positions, link speed would still have gone up six-fold and users would still have complained. The graph would look great and the problem would remain.</p><p>You cannot work out how many access points a site needs by dividing floor area. You measure.</p><h3>Deployment: two days</h3><p>Installation took two days. Mounting on day one, configuration on day two.</p><p>That isn’t luck. Phase 1 had already put the core in place: fibre run, switching layer built, segmentation defined, power budget verified. The infrastructure the access points would hang off wasn’t keeping anyone waiting.</p><p>The new units also didn’t depend on a local controller. Configuration came down from the cloud, which removed the step of connecting to each device individually.</p><p>It’s fair to say Phase 1 is what made a two-day Phase 2 possible.</p><h3>What I noticed during commissioning</h3><p>The tests looked fine. Speeds were where they should be, every unit was up, channel utilisation was low.</p><p>But something in the dashboard caught my eye: <strong>a large number of access points had settled onto the same channel.</strong> Not just the same channel they were hearing each other loudly.</p><p>That produces co-channel interference. Wi-Fi is half duplex; every device on a channel has to take turns using the air. The more neighbours you have on the same channel, the less real capacity each one gets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J657ocTqrQz268XbnBHBZg.png" /></figure><p>Here’s the insidious part. Channel utilisation read <strong>7%</strong> at that moment. A healthy number. But there were only a handful of test clients on site and the system had just been brought up.</p><p>The low figure wasn’t measuring the health of the network. It was measuring the test conditions.</p><p>Nobody knew where that 7% would go once a full shift was on it. And that isn’t something you want to find out after the shift starts.</p><p>The channel plan was revisited. The channel pool was widened, assignments were redistributed, and the system was given time to settle.</p><p>There’s a detail here that’s easy to miss: <strong>adding access points fixes coverage and can make interference worse.</strong> You can solve a coverage problem and create a capacity problem in the same afternoon. Placement and channel planning aren’t two jobs. They’re one.</p><h3>The outcome</h3><p>My favourite metric from this project isn’t the throughput chart.</p><p><strong>User complaints dropped to almost nothing.</strong></p><p>If you remember the problem I set up in the Phase 1 article people saying “the internet is down” while the real cost was sensor data quietly disappearing that loop is now closed.</p><p>One more thing: the old access points weren’t scrapped. They were redeployed at another site. Hardware that has reached the end of its useful life in a demanding environment can still do a few more years somewhere with lighter requirements. Planning for that from the start is one of the easiest ways to bring down the cost of a refresh.</p><h3>What I took from this phase</h3><p><strong>Speed is the small part of the solution.</strong> A six-fold increase is a good number, but it isn’t what ended the complaints. Putting the right number of devices in the right places did.</p><p><strong>Without measurement, placement is guesswork.</strong> The survey was the least visible line item and the one with the most influence on the outcome. Going from 45 to 57 wasn’t a budget decision. It was a design decision.</p><p><strong>Don’t trust good numbers taken under test conditions.</strong> Channel utilisation measured with five clients tells you nothing about what five hundred will do. A metric looking healthy and a metric being healthy are different things.</p><p><strong>Capacity and coverage are not the same problem.</strong> Solve them separately and you’ll break one while fixing the other.</p><p><strong>The two-day install was paid for in advance.</strong> The reason Phase 2 went quickly had nothing to do with Phase 2.</p><p><em>I ran both phases of this project end to end. If you’re working through something similar, I’d be glad to compare notes in the comments.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cbeec6c903a8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Rebuilding a Textile Factory’s Network From the Core Up]]></title>
            <link>https://medium.com/@yahyairis/rebuilding-a-textile-factorys-network-from-the-core-up-eea31056f773?source=rss-8878021f2559------2</link>
            <guid isPermaLink="false">https://medium.com/p/eea31056f773</guid>
            <dc:creator><![CDATA[Yahya Iris]]></dc:creator>
            <pubDate>Thu, 10 Sep 2026 11:15:49 GMT</pubDate>
            <atom:updated>2026-09-10T11:15:49.348Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Phase 1: why we replaced the foundation before touching the Wi-Fi</blockquote><p>There is a simple way to tell whether a factory’s network is broken, and it isn’t the helpdesk queue. It’s whether production data stops moving.</p><p>At our textile plant, those two things had blurred together. People said “the internet is down again.” What was actually happening was that IoT devices on the production floor couldn’t reach their servers. And the internet had nothing to do with it.</p><p>This is the story of rebuilding that network as a two-phase project. Phase 1 was the part nobody gets excited about: fibre, firewall, and switches.<br>What we inherited</p><p>The network had grown the way most factory networks grow — one requirement at a time, over years. Not designed. Accumulated.</p><p><strong>The cabling was Cat 5.</strong> Not Cat 5e. Plain Cat 5, rated for 100 Mbps, with no formal Gigabit guarantee. Over short runs in a clean office it usually works anyway. On a shop floor full of motors and inverters, over long cable runs, that margin disappears fast. Packet loss, retransmissions, latency.</p><p><strong>All internet traffic went out through MPLS to the data centre.</strong> Every packet — a web page request, a sensor’s production reading — travelled to the data centre first and reached the internet from there. That design made sense when it was built: central security, one place to control everything. But as the plant’s traffic grew, the MPLS link became the bottleneck. Traffic that could have been resolved locally was making a round trip of hundreds of kilometres.</p><p><strong>On the wireless side, it was a straightforward capacity problem.</strong> When 45 to 50 clients associated to a single access point, the AP rebooted itself. Shift changes, break times, meeting areas — this happened daily.</p><p>And the real cost wasn’t people losing their browsers.</p><p>IoT devices across the plant — line sensors, measurement terminals — pushed their data to servers over that same wireless network. When an AP rebooted, that data stream stopped. A network fault turned directly into lost production data.</p><p>The complaints were loud. The expensive part was somewhere nobody was filing tickets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HJY2m0c6cFVMRne1lmkZkA.png" /></figure><h3>Why two phases</h3><p>Doing it all at once was technically possible. We chose not to.</p><p>The first reason is obvious to anyone who has worked in manufacturing: <strong>the plant cannot stop.</strong> Textile production runs in shifts, and a stopped line is a direct cost. Replacing the entire infrastructure in one go would have meant a long, unavoidable outage window.</p><p>The second reason was more technical. Fixing the wireless problems depended on having a solid wired core underneath. If we had dropped new access points on top of the old Cat 5 cabling and a saturated backbone, we’d have bought expensive hardware and changed nothing. An AP can never deliver more than the link behind it.</p><p>So the sequence was not negotiable:</p><ul><li><strong>Phase 1 — Core:</strong> fibre, firewall, switching layer, VLAN segmentation.</li><li><strong>Phase 2 — Access:</strong> the wireless refresh.</li></ul><p>Starting Phase 2 first would have been building walls without a foundation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CFMkjm4mAcljrPLRMGoEjQ.png" /></figure><h3>What Phase 1 actually involved</h3><h3>Fibre backbone</h3><p>Fibre routes were run across the plant. Copper’s distance and noise limits are exactly what hurts you most in a production environment, and fibre removes both problems at once.</p><p>A contractor pulled the fibre and Cat 6 cabling. Route planning, deciding which cabinet connected where, and defining the technical requirements were on me.</p><h3>FortiGate firewall</h3><p>This was the first step in localising the internet breakout. With the FortiGate in place, the plant no longer had to send every packet to the data centre to reach the internet.</p><p>The gain wasn’t only speed. A local firewall means inspecting traffic as close to its source as possible. It also took a significant load off the MPLS link, which then had capacity for the corporate traffic that genuinely belonged on it.</p><h3>Meraki backbone and 12 switches</h3><p>The core moved to Meraki, with 12 Meraki switches at the access layer — two per cabinet.</p><p>There was one reason behind choosing Meraki: <strong>cloud management.</strong> The plant is a long way from head office. Driving to site for every configuration change or fault diagnosis isn’t defensible in time or cost. Being able to manage the whole estate from one dashboard wasn’t a nice-to-have here; it was the requirement.</p><h3>The deliberate decision: leaving the cameras alone</h3><p>This was the most practical call in the whole project.</p><p>We didn’t decommission the existing Cisco switches. <strong>Camera traffic stayed on the legacy Cisco switches. User and access point traffic moved to the new Meraki switches.</strong></p><p>Three reasons:</p><ol><li><strong>Risk containment.</strong> Camera systems are their own world — NVR dependencies, static addressing, quirks you only discover at 2am. Migrating user traffic and camera traffic on the same night would have made it far harder to tell which change caused which problem.</li><li><strong>Different urgency.</strong> User and IoT traffic needed fixing now. The camera layer was working and could wait.</li><li><strong>Spending where the problem was.</strong> The budget went to the part of the network that was actually failing.</li></ol><p>Replacing working hardware because it’s old is a reflex, not an engineering decision. Choosing to leave something in place for as long as it does its job is also a design choice.</p><h3>VLAN segmentation</h3><p>The least visible part of Phase 1, and probably the one with the longest shelf life. User, access point and camera traffic were separated into their own VLANs, with access rules defined between them.</p><p>On a flat network, compromising one device means reaching everything. In a factory, cameras and IoT devices are usually the weakest link: rarely patched, often running on defaults. Separating them from production and office traffic was worth more than any latency improvement we made.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y4DvBmUAMl0oKRE9zVyRDQ.png" /></figure><p>MPLS didn’t disappear — it simply stopped being the only way out. Local traffic is now resolved locally; corporate traffic still takes the path it should.</p><h3>My role</h3><p>I ran this project end to end.</p><p>Fibre and Cat 6 cabling were installed by a contractor. Everything else was mine:</p><ul><li>FortiGate firewall installation and configuration</li><li>VLAN design and segmentation rules</li><li>Physical installation of the Meraki backbone and all 12 switches</li><li>Switch configuration, port planning, trunk and access definitions</li><li>Migrating user and AP traffic onto Meraki</li><li>Positioning camera traffic on the existing Cisco layer</li><li>Commissioning, testing and validation</li></ul><p>It was a one-person job, and it taught me something specific: in projects like this the hard part isn’t writing configuration. It’s <strong>deciding what order to do things in.</strong> Correct work in the wrong sequence causes more downtime than average work in the right one.</p><h3>What Phase 1 delivered</h3><p><strong>The physical layer stopped being a variable.</strong> Cat 5’s margin for error is gone; the backbone runs on fibre.</p><p><strong>Internet egress became local.</strong> Traffic no longer has to make the round trip to the data centre, and the MPLS link has room to breathe.</p><p><strong>The network is segmented.</strong> Camera, user and IoT traffic are isolated from each other.</p><p><strong>The infrastructure became remotely manageable.</strong> Most configuration changes and fault diagnosis now happen without anyone driving to site.</p><p><strong>And Phase 2 became possible.</strong> The wireless refresh finally had something solid to stand on.</p><h3>What I took away from it</h3><p><strong>Complaints are symptoms.</strong> Users said “the internet is slow.” The real problem was Cat 5 cabling, a saturated MPLS link and access points running past their capacity. Treating the symptom would have meant buying bandwidth we didn’t need.</p><p><strong>Phased migration isn’t caution, it’s strategy.</strong> Leaving the cameras on legacy switches was the least impressive slide in the whole project and the most useful decision in the field.</p><p><strong>A factory is not an office.</strong> Metal racking, motor noise, dust, long distances. A design that’s more than adequate for an office falls short on a production floor.</p><p><strong>Access layer investment is wasted without a core.</strong> You can buy the best access point on the market. If the link behind it saturates at 100 Mbps, none of it matters.</p><h3>What came next</h3><p>In Phase 2, the end-of-life Cisco access points were removed and replaced with cloud-managed Cisco Meraki MR46 Wi-Fi 6 units. Of 40 units procured, 38 went into service, with 2 held as spares.</p><p>Measured link speed went from 173 Mbps to 1,081 Mbps — roughly a six-fold increase.</p><p>But that number was made possible in Phase 1, not Phase 2.</p><p>I’ll cover the wireless migration, the measurement methodology and one uncomfortable finding we hit during commissioning in a follow-up post.</p><p><em>I ran this network rebuild at our textile plant end to end. If you’re working through something similar, I’d be glad to compare notes in the comments.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eea31056f773" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Remote Camera Access Without Exposing NVRs to the Internet: Hairpin DNAT Inside a VPN Tunnel]]></title>
            <link>https://medium.com/@yahyairis/remote-camera-access-without-exposing-nvrs-to-the-internet-hairpin-dnat-inside-a-vpn-tunnel-7277e0d36c70?source=rss-8878021f2559------2</link>
            <guid isPermaLink="false">https://medium.com/p/7277e0d36c70</guid>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[firewall]]></category>
            <category><![CDATA[information-technology]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[network-security]]></category>
            <dc:creator><![CDATA[Yahya Iris]]></dc:creator>
            <pubDate>Thu, 03 Sep 2026 07:16:39 GMT</pubDate>
            <atom:updated>2026-09-03T07:16:39.263Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qhrcfwR6eKULVQ7nzNTuTg.png" /></figure><p>How to give a user remote access without changing a single entry on their phone and without putting recorders on the public internet</p><p>A plant manager wanted to check the production floor while away from site. The app was already on his phone, the cameras were already configured, everything worked. His only request was that it keep working “without that VPN thing.”</p><p>When the request reached IT, the first thing I did was look at the screenshot. One detail stood out: the devices were registered with a public IP, and the phone was on mobile data.</p><p>So the “should we expose them” conversation was already too late. The cameras were exposed.</p><h3>Why I pushed back</h3><p>Putting NVRs on the public internet is a textbook example in security. Here’s how I framed the objection:</p><p><strong>Known vulnerabilities that are still actively exploited.</strong> Common NVR platforms have unauthenticated command injection flaws. One of them grants root on the device. It was disclosed years ago and is still being scanned for daily.</p><p><strong>Management ports are under constant scan.</strong> NVR management ports sit among the most heavily scanned ports on the internet. Shodan and Censys index exposed devices automatically. When you put a device out there, the question isn’t <em>whether</em> it gets found — it’s how fast.</p><p><strong>An NVR is not a camera.</strong> It’s a Linux box, usually on an old kernel, sitting inside the camera VLAN. Once compromised, it becomes a doorway into the internal network. Footage leaking is the mildest outcome.</p><p><strong>Footage is personal data.</strong> Under GDPR (and its national equivalents), camera recordings are personal data. In a breach, “no appropriate technical measures were in place” lands directly on the organization.</p><p>And the payoff? One person not having to open a VPN client.</p><p>That trade didn’t add up.</p><h3>The real problem wasn’t technical</h3><p>The textbook fix is obvious: build an SSL-VPN portal, allow only the NVRs, done. Everyone knows this.</p><p>But there’s a human side.</p><p>The devices were already saved on the user’s phone. Five recorders, five different ports. Telling him to delete all of them and re-add with internal IPs means breaking his habit and inviting resistance. No matter how solid a control is, if the user is looking for a way around it, it won’t last.</p><p>So I tried something else: <strong>keep the entries identical, change the path underneath.</strong></p><h3>The solution: hairpin DNAT inside the tunnel</h3><p>When you define a Virtual IP on FortiGate, the extintf parameter controls which interface the DNAT applies to. Point it at the SSL-VPN tunnel interface and the rule only fires for packets arriving through the tunnel.</p><pre>config firewall vip<br>    edit &quot;VIP-NVR1&quot;<br>        set extip 203.0.113.10<br>        set mappedip &quot;10.10.20.5&quot;<br>        set extintf &quot;ssl.root&quot;      ← the line that matters<br>        set arp-reply disable<br>        set portforward enable<br>        set protocol tcp<br>        set extport 8000<br>        set mappedport 8000<br>    next<br>end</pre><p>That single line makes the same IP:port pair mean two different things:</p><p>Viewed fromResultInside the tunnelA door to the NVRThe public internetAn address that never answers</p><p>In the portal, you add the public IP to the split-tunnel list as a /32. The phone routes traffic for that address into the tunnel, FortiGate applies DNAT, and the packet reaches the NVR at the remote site.</p><pre>VPN OFF<br>203.0.113.10:8000  →  no route, no answer</pre><pre>VPN ON<br>App → 203.0.113.10:8000<br>           ↓ SSL-VPN tunnel<br>       FortiGate<br>           ↓ DNAT (ssl.root only)<br>     10.10.20.5:8000<br>           ↓ WAN<br>         NVR ✓</pre><p>The only change on the user’s side: connect the VPN before opening the app. Device entries untouched.</p><h3>Containment</h3><p>Access is constrained in three layers.</p><p><strong>Split tunnel, host-scoped.</strong> The portal uses “Enabled Based on Policy Destination” and the routing address override list contains five /32 host entries. Not a subnet. The rest of the camera VLAN never enters the client&#39;s routing table.</p><p><strong>A deliberately small pool.</strong> The SSL-VPN client pool is two addresses. One for the user, one spare for IT. Using a dedicated range instead of the shared pool gives the policy a second filter to match on.</p><p><strong>Two filters in the policy.</strong> The firewall rule matches on both the source IP pool and the user group. Miss either one and the traffic doesn’t pass.</p><p>The result:</p><pre>            Target                                Access<br>            The five defined NVRs                 ✓<br>            Rest of camera VLAN                   ✗<br>            Server network                        ✗<br>            User network                          ✗<br>            Management network                    ✗<br>            Network devices                       ✗<br>            Other sites                           ✗</pre><p>If the account is compromised, what the attacker gets is access to five video recorders.</p><h3>Five things that bit me along the way</h3><p>The build didn’t go straight through. My notes:</p><h3>1. Putting a destination subnet in the Source IP Pool</h3><p>I’d assigned the remote site’s own subnet object to the portal’s ip-pools field. It took a while to spot.</p><p>What happens is this: the client takes its tunnel IP from the destination network, decides packets bound for the NVR belong to “my own local network,” and writes them to the local interface. Traffic never enters the tunnel. No log, no error — it just silently doesn’t work.</p><p>Source pool and destination routes must not overlap. Pick a range you don’t use anywhere.</p><h3>2. Authentication rule ordering</h3><p>FortiOS evaluates portal mapping rules top-down, and new rules land at the bottom.</p><p>If the user belongs to any group referenced higher up, that rule matches first and a broader portal takes effect. In our environment there were more than forty rules and the default portal covered the entire internal network.</p><p>Confirming the user belongs to <strong>only</strong> the intended group is essential:</p><pre>get vpn ssl monitor</pre><p>The output shows which portal each session landed on. If it isn’t the one you built, you have an ordering problem.</p><h3>3. The UTM profile the GUI adds for you</h3><p>Create the policy through the GUI and FortiGate quietly adds utm-status enable with ssl-ssh-profile certificate-inspection.</p><p>The NVR management protocol is a binary SDK protocol not HTTP, not TLS. Certificate inspection can’t make sense of it. Best case it burns CPU for nothing; worst case it breaks the video stream.</p><pre>config firewall policy<br>    edit &lt;id&gt;<br>        unset utm-status<br>        unset ssl-ssh-profile<br>    next<br>end</pre><p>If you ever hit “it connects but no video,” start here.</p><h3>4. VIPs and address objects can’t share a policy</h3><p>When I tried adding domain controllers to the destination field for DNS, FortiGate refused:</p><blockquote>Addresses/groups cannot be mixed with Virtual IPs</blockquote><p>VIPs imply DNAT, address objects don’t. You need separate policies. I ended up with three rules: the public-IP path (VIP), the internal-IP path (direct), and DNS.</p><h3>5. Global DNS settings override the portal</h3><p>Split tunnel was working, cameras were streaming, but the user reported “no internet.”</p><p>The cause: the DNS server defined in global SSL-VPN settings is pushed to every portal. That address wasn’t in our split-tunnel list, so it was unreachable. Internet connectivity was fine name resolution was dead.</p><p>You can’t just change the global setting when dozens of portals depend on it.</p><p>Two ways out: open a narrow policy to the DNS servers, or define split-DNS on the portal so only internal domain queries go through the tunnel.</p><h3>The only thing that actually found the bug</h3><p>At one point the VPN connected but cameras wouldn’t load. Instead of reading logs, I ran a sniffer:</p><pre>diagnose sniffer packet any &#39;host 10.10.20.5&#39; 4 0 a</pre><p>The output showed two different clients.</p><p>One was flowing perfectly, video streaming fine. That confused me for a minute — then I realized it was my own VPN session, connected through a broader portal.</p><p>The other one, the test account, was doing this:</p><pre>ssl.root in 10.99.99.1.42336 -&gt; 10.10.20.5:8000: syn<br>ssl.root in 10.99.99.1.42336 -&gt; 10.10.20.5:8000: syn</pre><p>SYN only. No matching outbound packet. Retransmitting once per second.</p><p>Those two lines explained everything: the packet enters the tunnel, matches no policy, and hits the implicit deny. The test was using the internal IP while the policy only permitted the public one.</p><p>Without the sniffer I’d have spent hours looking in the wrong place. Logs weren’t enough here — I needed to see exactly where the packet stopped.</p><h3>An unexpected question</h3><p>After the build was done, someone on the team asked:</p><blockquote><em>“It’s his personal phone. If he visits something he shouldn’t, does that put the company at risk?”</em></blockquote><p>Fair question, but the technical reality is reassuring. With split tunnel, social media traffic never touches the corporate network — it exits through the user’s own connection. The organization isn’t providing access to anything.</p><p>The concern worth having runs the other way: <strong>DNS queries do land on corporate servers.</strong></p><p>Every lookup from his personal device — which bank, which health site, which app — gets logged internally. On a corporate device that’s expected. On a personal one, without a privacy notice in place, it’s harder to defend under GDPR.</p><p>That’s why split-DNS is the cleaner design: only internal domain queries enter the tunnel, everything else goes to the user’s own resolver.</p><p>It took a few hours for a technical build to turn into a legal question. On projects like this, looping in HR and legal early closes that conversation before it opens.</p><h3>What’s left after the build</h3><p>Finishing the configuration isn’t finishing the job. My open items:</p><p><strong>Remove the old port forwards.</strong> This is the critical one. If the legacy WAN DNAT rules aren’t deleted once the VPN path is verified, the entire effort is pointless — the cameras stay exposed. Verify from the outside with a port scan afterward.</p><p><strong>Multi-factor authentication.</strong> Single-factor SSL-VPN isn’t an acceptable risk level here. The mobile tokens bundled with most FortiGate licenses are enough for this.</p><p><strong>Device-side hardening.</strong> Change NVR passwords, update firmware, disable cloud access and UPnP. Sitting behind a VPN doesn’t excuse a default password. And if the ports were open for a while, review the logs for prior unauthorized login attempts.</p><p><strong>Audit the portals you already have.</strong> During this work I noticed some broader portals already carried the same camera network in their split-tunnel lists. There were other paths in, sitting outside the restricted design I’d just built. When adding a portal, check the existing ones too.</p><h3>Closing</h3><p>Giving a security recommendation is easy. Saying “don’t expose it” takes five seconds.</p><p>The hard part is saying no without stopping someone from doing their job.</p><p>The manager watches his cameras. The entries on his phone are unchanged, his habit is unchanged. The NVRs aren’t on the internet, access is scoped to five devices, everything is logged. His social media goes out over his own connection.</p><p>Both sides got what they wanted. That’s usually possible — it just takes a bit more work.</p><p><em>All IP addresses, names, and topology details in this article have been changed for illustration. If you’ve dealt with similar scenarios, I’d like to hear how you approached them.</em></p><p><strong>Tags:</strong> Network Security FortiGate VPN Cybersecurity GDPR</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7277e0d36c70" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>