{"id":6190,"date":"2026-11-13T10:00:01","date_gmt":"2026-11-13T05:00:01","guid":{"rendered":"https:\/\/zilleali.com\/?p=6190"},"modified":"2026-11-25T16:07:34","modified_gmt":"2026-11-25T11:07:34","slug":"routeros-to-aws-vpc-network-engineer-guide","status":"publish","type":"post","link":"https:\/\/zilleali.com\/it\/routeros-to-aws-vpc-network-engineer-guide\/","title":{"rendered":"Mappare i concetti RouterOS su AWS VPC per gli ingegneri di rete"},"content":{"rendered":"<p class=\"wp-block-paragraph\">Most AWS networking material written for &#8220;network engineers&#8221; assumes you know nothing but basic TCP\/IP. If you already run MikroTik RouterOS day to day, you do not need that version. Mapping <strong>RouterOS to AWS VPC<\/strong> concepts directly is faster: which VPC concept replaces which RouterOS concept, where the mapping breaks down, and where only the terminology changes while the underlying idea stays identical.<\/p>\n<p class=\"wp-block-paragraph\">This guide covers the four mappings that matter most &#8211; VLANs to subnets, routing tables to route tables, firewall rules to Security Groups and NACLs, and bridges to VPC Peering\/Transit Gateway &#8211; then closes with a hands-on exercise that rebuilds a simple RouterOS LAN\/WAN split entirely in VPC terms, so the mapping actually sticks rather than staying theoretical.<\/p>\n\n<h2 id=\"routeros-to-aws-vpc-mapping-vlan-to-subnet\" class=\"wp-block-heading\">RouterOS to AWS VPC: Mapping VLAN to Subnet<\/h2>\n<p class=\"wp-block-paragraph\">On RouterOS, you segment a LAN with VLANs: one broadcast domain per VLAN, trunked across switches, with inter-VLAN routing handled by the router (often via <code>\/interface vlan<\/code> plus bridge VLAN filtering on CRS\/CCR hardware).<\/p>\n\n<p class=\"wp-block-paragraph\">In a VPC, the equivalent unit is a <strong>subnet<\/strong>. A subnet is a CIDR block carved out of the <a href=\"https:\/\/docs.aws.amazon.com\/vpc\/latest\/userguide\/what-is-amazon-vpc.html\">VPC<\/a>&#8216;s own CIDR range, pinned to a single Availability Zone. There is no broadcast domain in the Ethernet sense inside a VPC at all (AWS&#8217;s network is fully routed under the hood, with no real Layer 2), but functionally, a subnet does the same organizational job a VLAN does on your LAN: it separates groups of resources (web tier, database tier, management) so you can apply different routing and different security policy to each group.<\/p>\n\n<p class=\"wp-block-paragraph\">The practical difference that trips people up: on RouterOS, re-numbering a VLAN&#8217;s subnet is a config change. In AWS, a subnet&#8217;s CIDR block is fixed for the life of that subnet; you cannot resize it later. Plan your VPC&#8217;s CIDR allocation (how many subnets, how big each one is) more carefully up front than you might be used to with VLANs, because the easy fix on RouterOS (just change the IP pool) is not available here.<\/p>\n\n<h2 id=\"routeros-routing-table-to-vpc-route-table\" class=\"wp-block-heading\">RouterOS routing table to VPC route table<\/h2>\n<p class=\"wp-block-paragraph\">On RouterOS, you manage one routing table per router (plus optional routing-marks for policy routing), with static routes, OSPF\/BGP if you run dynamic routing, and a default route pointing at your upstream.<\/p>\n\n<p class=\"wp-block-paragraph\">In a VPC, every subnet is associated with exactly one <strong>route table<\/strong>, and a route table can be shared across multiple subnets. Where RouterOS has one routing table doing everything, AWS expects you to think in terms of several route tables, each attached to the subnets that should share that routing behavior. A public subnet&#8217;s route table has a default route (0.0.0.0\/0) pointing at an Internet Gateway; a private subnet&#8217;s route table instead points its default route at a NAT Gateway (for outbound-only internet access) or nothing at all if it should have no internet path.<\/p>\n\n<p class=\"wp-block-paragraph\">There is no equivalent of RouterOS&#8217;s routing-mark\/policy-routing inside a single route table; instead, you achieve the same effect by putting resources in different subnets with different route tables, which is why subnet design in AWS gets so much more attention upfront than VLAN design usually does on a MikroTik network.<\/p>\n\n<h2 id=\"firewall-rules-to-security-groups-and-where-nacls-fit\" class=\"wp-block-heading\">Firewall rules to Security Groups, and where NACLs fit<\/h2>\n<p class=\"wp-block-paragraph\">This is the single biggest mental shift, and it deserves its own full comparison (see the dedicated post linked at the bottom of this guide), but the short version: RouterOS firewall filter chains (input\/forward\/output) are stateless by default unless you explicitly match <code>connection-state<\/code>, and they evaluate top to bottom with both allow and deny rules mixed together.<\/p>\n\n<p class=\"wp-block-paragraph\"><strong>Security Groups<\/strong> are AWS&#8217;s equivalent, attached per network interface (ENI) rather than per router. They are stateful by default (a reply to an allowed outbound request is automatically allowed back in, no matching return rule needed) and allow-only: there is no explicit &#8220;deny&#8221; rule, only what you permit. Anything not explicitly allowed is dropped.<\/p>\n\n<p class=\"wp-block-paragraph\"><strong>Network ACLs (NACLs)<\/strong> sit at the subnet level and are the closer analogue to a traditional RouterOS filter chain: stateless, evaluated in numbered rule order, and able to explicitly deny. Most AWS setups leave NACLs at their default &#8220;allow everything&#8221; and do all real policy in Security Groups, which is the opposite of how a RouterOS firewall is normally built (where the filter chain carries almost all the policy). If you are used to RouterOS, resist the urge to reach for NACLs first; Security Groups are the tool you will use for the vast majority of real rules.<\/p>\n\n<h2 id=\"bridge-to-vpc-peering-transit-gateway\" class=\"wp-block-heading\">Bridge to VPC Peering \/ Transit Gateway<\/h2>\n<p class=\"wp-block-paragraph\">On RouterOS, connecting two networks together at the routing layer usually means a routed link, a VPN tunnel (WireGuard, IPsec), or in some LAN cases a bridge. Connecting two VPCs together uses one of two AWS-native mechanisms instead:<\/p>\n\n<ul class=\"wp-block-list\">\n<li><strong>VPC Peering<\/strong> &#8211; a direct, one-to-one connection between two VPCs, non-transitive (if A peers with B, and B peers with C, A cannot reach C through B). This is the closer analogue to a single point-to-point tunnel between two MikroTik routers.<\/li>\n<li><strong>Transit Gateway<\/strong> &#8211; a hub-and-spoke router-in-the-cloud that many VPCs attach to, giving you transitive routing between all of them from one place. This is the AWS equivalent of the hub router pattern used in a multi-site WireGuard setup (see the companion guide on that, linked below): one central point other sites route through, instead of a full mesh of individual tunnels.<\/li>\n<\/ul>\n\n<h2 id=\"hands-on-build-one-vpc-that-mirrors-a-simple-routeros-lan-wan-split\" class=\"wp-block-heading\">Hands-on: build one VPC that mirrors a simple RouterOS LAN\/WAN split<\/h2>\n\n\n<figure class=\"wp-block-image size-full\"><picture><source srcset=\"https:\/\/zilleali.com\/wp-content\/uploads\/2026\/11\/routeros-aws-vpc-diagram.webp 1440w, https:\/\/zilleali.com\/wp-content\/uploads\/2026\/11\/routeros-aws-vpc-diagram-600x375.webp 600w, https:\/\/zilleali.com\/wp-content\/uploads\/2026\/11\/routeros-aws-vpc-diagram-1200x750.webp 1200w, https:\/\/zilleali.com\/wp-content\/uploads\/2026\/11\/routeros-aws-vpc-diagram-768x480.webp 768w\" sizes=\"auto, (max-width: 1440px) 100vw, 1440px\" type=\"image\/webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1440\" height=\"900\" src=\"https:\/\/zilleali.com\/wp-content\/uploads\/2026\/11\/routeros-aws-vpc-diagram.webp\" alt=\"RouterOS to AWS VPC: 10.20.0.0\/16 with public subnet 10.20.1.0\/24 (Internet Gateway, NAT Gateway) and private subnet 10.20.2.0\/24 behind a Security Group, labelled with RouterOS equivalents\" class=\"wp-image-6204\" srcset=\"https:\/\/zilleali.com\/wp-content\/uploads\/2026\/11\/routeros-aws-vpc-diagram.webp 1440w, https:\/\/zilleali.com\/wp-content\/uploads\/2026\/11\/routeros-aws-vpc-diagram-600x375.webp 600w, https:\/\/zilleali.com\/wp-content\/uploads\/2026\/11\/routeros-aws-vpc-diagram-1200x750.webp 1200w, https:\/\/zilleali.com\/wp-content\/uploads\/2026\/11\/routeros-aws-vpc-diagram-768x480.webp 768w\" sizes=\"auto, (max-width: 1440px) 100vw, 1440px\" \/><\/picture><figcaption class=\"wp-element-caption\">The hands-on VPC: each AWS piece labelled with the RouterOS concept it replaces.<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">A short, concrete exercise to make the mapping stick. This mirrors the most basic MikroTik setup: one WAN side, one LAN side, a firewall between them.<\/p>\n\n<ol class=\"wp-block-list\">\n<li>Create a VPC with CIDR <code>10.20.0.0\/16<\/code>.<\/li>\n<li>Create a public subnet <code>10.20.1.0\/24<\/code> (your &#8220;WAN-facing&#8221; side) and a private subnet <code>10.20.2.0\/24<\/code> (your &#8220;LAN&#8221; side), in the same Availability Zone to start.<\/li>\n<li>Create and attach an Internet Gateway to the VPC, then add a route table for the public subnet with a default route to that gateway &#8211; this plays the role of your WAN interface getting a route to the internet.<\/li>\n<li>Create a NAT Gateway inside the public subnet, then give the private subnet&#8217;s route table a default route pointing at the NAT Gateway &#8211; this plays the role of RouterOS&#8217;s masquerade\/NAT rule on the WAN interface, letting the private side reach the internet without being directly reachable from it.<\/li>\n<li>Create a Security Group for anything you launch in the private subnet that only allows inbound traffic from the public subnet&#8217;s CIDR (<code>10.20.1.0\/24<\/code>) &#8211; this is your &#8220;accept from LAN, drop the rest&#8221; input chain rule, scoped per resource instead of per router.<\/li>\n<li>Launch a test instance in each subnet and confirm the private one can reach the internet (through the NAT Gateway) but cannot be reached directly from outside, while the public one can be reached directly if its own Security Group allows it.<\/li>\n<\/ol>\n\n<p class=\"wp-block-paragraph\">Once that works, you have rebuilt, in VPC terms, the same WAN\/LAN\/NAT\/firewall structure that a basic MikroTik router handles in a handful of RouterOS commands. Everything more advanced (multiple AZs for redundancy, Transit Gateway for multi-VPC, VPC endpoints for private AWS service access) builds on this same subnet-and-route-table foundation.<\/p>\n\n<h2 id=\"faq\" class=\"wp-block-heading\">FAQ<\/h2>\n<p class=\"wp-block-paragraph\"><strong>Do I still need to think about Layer 2 at all inside a VPC?<\/strong><br>Not really. AWS&#8217;s underlying network fabric is fully routed; there is no true broadcast domain the way a VLAN gives you on physical switches. Multicast and broadcast-dependent protocols that rely on Layer 2 adjacency generally do not work the same way inside a VPC, which occasionally surprises engineers coming from a strongly VLAN-based mental model.<\/p>\n\n<p class=\"wp-block-paragraph\"><strong>Is a Security Group closer to a RouterOS address-list or a filter rule?<\/strong><br>Closer to a filter rule, since it determines what is allowed, not just a reusable group of addresses. But a Security Group can also be referenced as the &#8220;source&#8221; of another Security Group&#8217;s rule (allow traffic from anything in Security Group X), which is a bit like combining an address-list with a filter rule in one object.<\/p>\n\n<p class=\"wp-block-paragraph\"><strong>What is the single most common mistake network engineers make moving to VPC?<\/strong><br>Treating Security Groups as if they need explicit deny rules, the way a RouterOS filter chain often does. Security Groups have no deny; you only ever add allow rules, and anything else is implicitly blocked. Trying to &#8220;block&#8221; something by adding a deny-style rule simply does not do anything.<\/p>\n\n<h2 id=\"conclusion\" class=\"wp-block-heading\">Conclusione<\/h2>\n<p class=\"wp-block-paragraph\">Mapping RouterOS to AWS VPC comes down to a few consistent substitutions: VLANs become subnets, your one routing table becomes several route tables attached per subnet, firewall rules become Security Groups (with NACLs as the stateless, subnet-level backup), and a tunnel or bridge becomes VPC Peering or Transit Gateway depending on whether you need point-to-point or hub-and-spoke connectivity. None of this requires relearning networking from scratch &#8211; it requires relearning where AWS expects you to express decisions you already know how to make on RouterOS. Build the hands-on exercise above once and the rest of VPC design starts to feel familiar.<\/p>\n\n<h2 id=\"related-posts\" class=\"wp-block-heading\">Articoli correlati<\/h2>\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/zilleali.com\/it\/aws-security-groups-vs-mikrotik-firewall\/\">AWS Security Groups vs MikroTik Firewall: Differenze chiave<\/a> &#8211; the full side-by-side on the firewall mapping specifically.<\/li>\n<li><a href=\"https:\/\/zilleali.com\/it\/nexalink-multi-tenant-architecture\/\">Progettare un SaaS ISP multi-tenant: lezioni da NexaLink<\/a> &#8211; how ISP-style infrastructure maps to a real SaaS platform built on cloud infrastructure.<\/li>\n<li><a href=\"https:\/\/zilleali.com\/it\/wisp-backhaul-design\/\">Progettare un backhaul WISP che resista alle ore di punta<\/a> &#8211; the closest real-world MikroTik equivalent to what Transit Gateway does in AWS.<\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Conosci gi\u00e0 MikroTik RouterOS? Mappa VLAN, tabelle di routing e regole del firewall direttamente su AWS VPC, subnet, tabelle di routing e gruppi di sicurezza.<\/p>","protected":false},"author":1,"featured_media":6414,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"googlesitekit_rrm_CAow6N_ODA:productID":"","_chatbot_visible":"","_zea_seo_title":"RouterOS to AWS VPC: A Mapping Guide for Engineers","_zea_seo_description":"Mapping RouterOS to AWS VPC: VLANs, routing tables, and firewall rules translated into VPC subnets, route tables, and security groups.","_zea_seo_focus_keyphrase":"RouterOS to AWS VPC","_zea_seo_canonical":"","_zea_seo_robots_noindex":false,"_zea_seo_robots_nofollow":false,"_zea_seo_sitemap_exclude":false,"_zea_seo_cornerstone":false,"_zea_seo_sitemap_priority":"","_zea_seo_og_title":"Mapping RouterOS Concepts to AWS VPC for Network Engineers","_zea_seo_og_description":"Practical translation guide mapping MikroTik routing tables, subnets, NAT, and VPN tunnels directly to AWS VPC cloud architecture.","_zea_seo_og_image":"https:\/\/zilleali.com\/wp-content\/uploads\/2026\/11\/card_post_cloud_aws.jpg","_zea_seo_twitter_title":"Mapping RouterOS Concepts to AWS VPC for Network Engineers","_zea_seo_twitter_description":"Practical translation guide mapping MikroTik routing tables, subnets, NAT, and VPN tunnels directly to AWS VPC cloud architecture.","_zea_seo_analysis_score":0,"_zea_ai_pending":false,"_zea_ai_notes":"","_zea_ai_keyword":"","footnotes":""},"categories":[219],"tags":[220,197,104,202,135],"class_list":["post-6190","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-amazon-web-services-aws","tag-aws","tag-mikrotik","tag-networking","tag-routeros","tag-vlan"],"_links":{"self":[{"href":"https:\/\/zilleali.com\/it\/wp-json\/wp\/v2\/posts\/6190","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zilleali.com\/it\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zilleali.com\/it\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zilleali.com\/it\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zilleali.com\/it\/wp-json\/wp\/v2\/comments?post=6190"}],"version-history":[{"count":4,"href":"https:\/\/zilleali.com\/it\/wp-json\/wp\/v2\/posts\/6190\/revisions"}],"predecessor-version":[{"id":6357,"href":"https:\/\/zilleali.com\/it\/wp-json\/wp\/v2\/posts\/6190\/revisions\/6357"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/zilleali.com\/it\/wp-json\/wp\/v2\/media\/6414"}],"wp:attachment":[{"href":"https:\/\/zilleali.com\/it\/wp-json\/wp\/v2\/media?parent=6190"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zilleali.com\/it\/wp-json\/wp\/v2\/categories?post=6190"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zilleali.com\/it\/wp-json\/wp\/v2\/tags?post=6190"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}