# TraceNode, CopperPath и BenchNode

- Site: https://www.smartdataline.com/

## Port forwarding on MikroTik

- Link: https://www.smartdataline.com/mikrotik-networking/port-forwarding-on-mikrotik/
- Published: 2026-12-02T17:04:49+00:00
- Author: Sinoptik

Port forwarding on MikroTik looks simple: add one NAT rule. In practice, many people
end up with a rule that does not work from outside, works only from the internet
side, or breaks when they open the service from their own LAN. This guide explains
how NAT and the firewall work together, and how to build a port forward that works
from every direction.

## How a port forward works

A port forward has two parts:

 1. **A destination NAT (dst-nat) rule** that rewrites the destination address of incoming
    packets, so they go to a device inside your network.
 2. **A firewall that lets the forwarded traffic through.** With the baseline firewall
    from our [firewall guide](https://www.claudeusercontent.com/mikrotik-firewall-rules-home-network/),
    traffic that has been through a dst-nat rule is allowed, and other new connections
    from the internet are dropped. If your firewall is stricter, you need a matching
    accept rule in the forward chain.

## The basic rule

Example: forward port 8080 on the router’s public side to a web server at `192.168.88.50`
on port 80.

    ```wp-block-code
    /ip firewall nat
    add chain=dstnat action=dst-nat protocol=tcp dst-port=8080 in-interface-list=WAN \
        to-addresses=192.168.88.50 to-ports=80 comment="web server forward"
    ```

Use `in-interface-list=WAN` instead of a fixed public address, so the rule keeps
working when your provider changes your IP address. All addresses and ports here
are examples.

 [ADD: a screenshot of your NAT rule with its packet counters]

## Make it work from your own LAN (hairpin NAT)

A frequent complaint: the forward works from the internet but not from inside your
network when you use the public address or the dynamic DNS name. The reason is that
the server sees the request coming from a local address, and answers it directly,
bypassing the router. The client then receives a reply from a different address 
than it asked and drops it.

The fix is called hairpin NAT. Use a dst-nat rule that matches any packet addressed
to the router itself, and add a masquerade rule so the replies go back through the
router:

    ```wp-block-code
    /ip firewall nat
    add chain=dstnat action=dst-nat protocol=tcp dst-port=8080 dst-address-type=local \
        to-addresses=192.168.88.50 to-ports=80 comment="forward, works from WAN and LAN"
    add chain=srcnat action=masquerade protocol=tcp src-address=192.168.88.0/24 \
        dst-address=192.168.88.50 dst-port=80 comment="hairpin NAT"
    ```

Use these two rules instead of the first basic rule. Note that `dst-address-type
=local` also matches the router’s own LAN address, so connecting to the router’s
LAN address on port 8080 will also be forwarded. If that is a problem, use a fixed`
dst-address` or a more specific condition.

## Things that make a forward fail

 * **The server’s default gateway is not the MikroTik.** If the server sends replies
   through another router, the connection breaks. The server must use the MikroTik
   as its gateway, or the traffic must be masqueraded.
 * **The server’s own firewall** blocks the connection. Check it on the device.
 * **Your provider blocks the port or has no public IP for you.** With carrier-grade
   NAT, incoming connections cannot reach your router. Check that the router’s WAN
   address is a real public address.
 * **Testing from the wrong place.** Test from outside your network, for example
   from a phone on mobile data, not from your LAN, unless you have set up hairpin
   NAT.
 * **Rule order.** NAT rules are checked from top to bottom. A broader rule above
   yours can catch the traffic first.
 * **The router’s own service uses the same port.** Do not forward ports that the
   router needs for itself, such as the ones used by WinBox or the web interface.
 * **IPv6.** Port forwarding is NAT for IPv4. IPv6 devices need firewall rules instead
   of NAT.

## How to debug

 1. Look at the NAT rule counters: `/ip firewall nat print stats`. If the packet counter
    does not grow when you test, the traffic does not reach the rule.
 2. If the counter grows but the service does not respond, check the forward chain 
    counters: `/ip firewall filter print stats`.
 3. Use `/tool torch` or the packet sniffer on the LAN interface to see whether packets
    arrive at the server and whether it answers.
 4. Check the server’s gateway and firewall.

## Security: forward less, not more

 * Only forward the ports you really need.
 * Restrict the source with an address list, if you know who connects.
 * Avoid exposing remote desktop, databases and admin panels directly. Use a VPN
   instead, such as WireGuard from our [WireGuard guide](https://www.claudeusercontent.com/wireguard-vpn-mikrotik-routeros7/).
 * Keep the exposed service updated.
 * Changing the external port is not a security measure, because ports are scanned
   all the time.

 [ADD: what you forward in your own network and how you secure it]

## Checklist

 * A dst-nat rule matches the right protocol and port and points to the right internal
   address.
 * The forward chain allows the traffic, or the baseline firewall passes dst-nat
   traffic.
 * Hairpin NAT is set up if you need access from the LAN.
 * The server uses the MikroTik as its gateway.
 * Tested from outside, with rule counters checked.
 * Only necessary ports are exposed.

## MikroTik RouterOS 7, way to do this is bridge VLAN filtering.

- Link: https://www.smartdataline.com/mikrotik-networking/mikrotik-routeros-7-way-to-do-this-is-bridge-vlan-filtering/
- Published: 2026-12-01T17:01:57+00:00
- Author: Sinoptik

VLANs let you split one physical network into several separate ones: a main LAN,
a network for smart-home devices, a guest network and so on. On MikroTik RouterOS
7, the recommended way to do this is **bridge VLAN filtering**. This guide builds
a small, working example: a router with two access ports, one trunk port to an access
point or switch, and two VLANs.

## The example network

 * **VLAN 10:** main LAN, subnet `192.168.10.0/24`.
 * **VLAN 20:** IoT devices, subnet `192.168.20.0/24`.
 * **ether2:** access port for VLAN 10 (a computer, untagged).
 * **ether3:** access port for VLAN 20 (an IoT device, untagged).
 * **ether5:** trunk port to a switch or access point, carrying VLANs 10 and 20 
   tagged.

Port names and addresses are examples. Make a backup and keep Safe Mode ready, because
VLAN filtering can cut off your own connection.

## Key concepts

 * **Access port:** carries one VLAN, and frames leave the port without a tag. The
   device on it does not know about VLANs.
 * **Trunk port:** carries several VLANs, and frames have tags.
 * **PVID:** the VLAN that untagged incoming frames on a port are assigned to.
 * **The bridge itself** is a port too. For the router to have an address in a VLAN,
   the bridge must be a _tagged_ member of that VLAN.

## Step 1: Create the bridge (filtering off for now)

    ```wp-block-code
    /interface bridge
    add name=bridge1 vlan-filtering=no
    ```

## Step 2: Add the ports with their PVIDs

    ```wp-block-code
    /interface bridge port
    add bridge=bridge1 interface=ether2 pvid=10 frame-types=admit-only-untagged-and-priority-tagged
    add bridge=bridge1 interface=ether3 pvid=20 frame-types=admit-only-untagged-and-priority-tagged
    add bridge=bridge1 interface=ether5 frame-types=admit-only-vlan-tagged
    ```

Access ports accept only untagged traffic and assign it to their VLAN. The trunk
accepts only tagged traffic.

## Step 3: Fill the bridge VLAN table

    ```wp-block-code
    /interface bridge vlan
    add bridge=bridge1 vlan-ids=10 tagged=bridge1,ether5 untagged=ether2
    add bridge=bridge1 vlan-ids=20 tagged=bridge1,ether5 untagged=ether3
    ```

For each VLAN you list where it is tagged (the trunk and the bridge itself) and 
where it leaves untagged (the access port).

## Step 4: Create VLAN interfaces and addresses on the router

    ```wp-block-code
    /interface vlan
    add name=vlan10 interface=bridge1 vlan-id=10
    add name=vlan20 interface=bridge1 vlan-id=20

    /ip address
    add address=192.168.10.1/24 interface=vlan10
    add address=192.168.20.1/24 interface=vlan20
    ```

## Step 5: DHCP for each VLAN

    ```wp-block-code
    /ip pool
    add name=pool10 ranges=192.168.10.100-192.168.10.200
    add name=pool20 ranges=192.168.20.100-192.168.20.200

    /ip dhcp-server
    add name=dhcp10 interface=vlan10 address-pool=pool10 disabled=no
    add name=dhcp20 interface=vlan20 address-pool=pool20 disabled=no

    /ip dhcp-server network
    add address=192.168.10.0/24 gateway=192.168.10.1 dns-server=192.168.10.1
    add address=192.168.20.0/24 gateway=192.168.20.1 dns-server=192.168.20.1
    ```

 [ADD: a screenshot of your Bridge > VLANs table]

## Step 6: Interface lists and firewall

Put VLAN 10 in your `LAN` list and treat VLAN 20 like a guest network: internet 
access only, and no access to the LAN or the router’s management. Use the same firewall
approach as in our [guest Wi-Fi guide](https://www.claudeusercontent.com/mikrotik-guest-wifi-isolation/):

    ```wp-block-code
    /interface list member
    add list=LAN interface=vlan10
    add list=GUEST interface=vlan20

    /ip firewall filter
    add chain=input action=accept in-interface=vlan20 protocol=udp dst-port=53,67 comment="IoT DHCP and DNS" \
        place-before=[find where comment="drop everything not from LAN"]
    add chain=forward action=drop in-interface=vlan20 out-interface-list=!WAN comment="IoT: internet only" \
        place-before=[find where comment="drop new connections from WAN that are not port forwards"]
    ```

Create the `GUEST` list first if you do not have it yet. Note that DNS also needs
TCP port 53 in some cases, so add a TCP rule as in the guest guide if you see DNS
problems.

## Step 7: Turn on VLAN filtering last

    ```wp-block-code
    /interface bridge set bridge1 vlan-filtering=yes
    ```

Do this only when everything above is in place, from a port that is configured correctly,
and with Safe Mode on. If you manage the router through the bridge while filtering
is switched on without the right VLAN entries, you lose access. A common safety 
measure is to leave one port outside the bridge, with its own address, only for 
management.

## Configure the other end of the trunk

The device on the other side of `ether5` (a switch or an access point) must be set
up for the same VLAN IDs, tagged on its uplink port. For a Wi-Fi access point, map
each SSID to its VLAN. A mismatch of VLAN IDs between the devices is a very common
reason for “it does not work”.

## Check that it works

 1. Connect a computer to `ether2`. It should get an address like `192.168.10.x`.
 2. Connect a device to `ether3`. It should get `192.168.20.x` and have internet access,
    but no access to VLAN 10.
 3. Check `/interface bridge host print` to see which MAC addresses appear in which
    VLAN.
 4. Check `/interface bridge port print` for the hardware offload flag `H`. Hardware
    offload with VLAN filtering is supported only on some devices, so check your model’s
    documentation if speed matters.

 [ADD: how you use VLANs in your own network, for example IoT devices or rental 
property equipment]

## Common mistakes

 * Forgetting `bridge1` in the `tagged` list, so the router has no connection to
   the VLAN.
 * Turning on `vlan-filtering` before the VLAN table and PVIDs are ready.
 * Wrong `frame-types` or PVID on a port.
 * Different VLAN IDs on the router and the switch or access point.
 * Forgetting a DHCP server or firewall rules for the new VLAN.
 * Mixing the old method (VLAN interfaces on physical ports) with bridge VLAN filtering.

## Checklist

 * Bridge, ports, PVIDs and frame types are set.
 * Bridge VLAN table lists tagged and untagged members for each VLAN.
 * VLAN interfaces, addresses and DHCP servers exist.
 * Firewall rules separate the VLANs the way you want.
 * The trunk partner uses the same VLAN IDs.
 * VLAN filtering was enabled last, with Safe Mode and a backup.

## MikroTik guest Wi-Fi with isolation from the main LAN

- Link: https://www.smartdataline.com/mikrotik-networking/mikrotik-guest-wi-fi-with-isolation-from-the-main-lan/
- Published: 2026-11-30T16:50:45+00:00
- Author: Sinoptik

A guest Wi-Fi network lets visitors use the internet without touching your computers,
NAS or smart devices. On a MikroTik router, the idea is simple: put guests in their
own network, give them internet access, and block everything that leads into your
main LAN. This guide shows how to build it with a separate bridge, its own DHCP 
server and a few firewall rules.

## How the setup works

 * A second bridge (`bridge-guest`) with its own subnet, for example `192.168.50.0/
   24`.
 * A second Wi-Fi network (SSID) connected to that bridge.
 * A DHCP server on the guest bridge, so devices get addresses automatically.
 * Firewall rules that allow guests to reach the internet and the router’s DHCP 
   and DNS, and nothing else.

The addresses and names are examples. Back up the configuration and use Safe Mode
before you change the firewall.

## Step 1: Create the guest network

    ```wp-block-code
    /interface bridge
    add name=bridge-guest

    /ip address
    add address=192.168.50.1/24 interface=bridge-guest

    /ip pool
    add name=pool-guest ranges=192.168.50.100-192.168.50.200

    /ip dhcp-server
    add name=dhcp-guest interface=bridge-guest address-pool=pool-guest disabled=no

    /ip dhcp-server network
    add address=192.168.50.0/24 gateway=192.168.50.1 dns-server=192.168.50.1
    ```

Guests get addresses from `192.168.50.100` to `192.168.50.200`, and use the router
as gateway and DNS server. For the router to answer DNS queries from guests, DNS
must be enabled with `/ip dns set allow-remote-requests=yes`.

## Step 2: Put the guest bridge in its own interface list

    ```wp-block-code
    /interface list
    add name=GUEST
    /interface list member
    add list=GUEST interface=bridge-guest
    ```

Do **not** add the guest bridge to the `LAN` list. The LAN list usually has full
access to the router in your firewall, and guests must not have that.

## Step 3: Create the guest Wi-Fi network

Create a second SSID (a virtual access point) on your wireless interface, with its
own name and password, and attach it to `bridge-guest`. The exact steps differ depending
on the wireless package your device uses: the older `wireless` package or the newer`
wifi` package. Use WinBox or WebFig if you are not sure of the syntax:

 1. Open the wireless menu and add a new virtual interface based on your main radio.
 2. Give it a different SSID, for example “MyNetwork-Guest”.
 3. Set a separate passphrase, with WPA2 or WPA3 security.
 4. Make sure the new wireless interface is a port of `bridge-guest`, or set the bridge
    in the interface’s datapath settings, depending on your package.
 5. If available, enable **client isolation**, so guests cannot see each other.

 [ADD: a screenshot of the guest SSID settings in your WinBox, with the password
hidden]

## Step 4: Firewall rules

Guests need to reach the router for DHCP and DNS. Without these rules, the “drop
everything not from LAN” rule blocks them:

    ```wp-block-code
    /ip firewall filter
    add chain=input action=accept in-interface=bridge-guest protocol=udp dst-port=67 comment="guest DHCP" \
        place-before=[find where comment="drop everything not from LAN"]
    add chain=input action=accept in-interface=bridge-guest protocol=udp dst-port=53 comment="guest DNS (udp)" \
        place-before=[find where comment="drop everything not from LAN"]
    add chain=input action=accept in-interface=bridge-guest protocol=tcp dst-port=53 comment="guest DNS (tcp)" \
        place-before=[find where comment="drop everything not from LAN"]
    ```

Next, stop guests from reaching anything except the internet:

    ```wp-block-code
    add chain=forward action=drop in-interface=bridge-guest out-interface-list=!WAN \
        comment="guests: internet only" \
        place-before=[find where comment="drop new connections from WAN that are not port forwards"]
    ```

If the comments in your rules differ, change them in the commands. The key points:
the input accept rules go above the input drop rule, and the forward drop rule goes
near the top of the forward chain.

## Step 5: NAT

If you already have a masquerade rule for `out-interface-list=WAN`, as in our baseline
firewall, guest traffic is covered automatically. No extra rule is needed.

## Test it

 1. Connect a phone to the guest Wi-Fi. It should get an address like `192.168.50.x`.
 2. Open a website. The internet should work.
 3. Try to ping or open a device in your main LAN. It should fail.
 4. Try to open the router’s WinBox or web page from the guest network. It should fail.
 5. With two guest devices connected, check that they cannot reach each other if you
    enabled client isolation.

## Extra options

 * **Limit guest bandwidth** with a simple queue for `192.168.50.0/24`, so guests
   cannot use all your internet capacity.
 * **Change the guest password regularly,** or use a different one for each event.
 * **Use VLANs** instead of a separate bridge if you have managed switches and want
   the guest network on more than one device.

 [ADD: your own experience, for example how guest Wi-Fi works in your rental property
or office]

## Common mistakes

 * Putting the guest bridge in the LAN interface list, which gives guests access
   to the router.
 * Forgetting the DHCP and DNS input rules, so guests connect but get no address
   or cannot resolve names.
 * Placing the new rules below the drop rules, where they never match.
 * Skipping IPv6. If IPv6 is enabled on your router, guests need IPv6 firewall rules
   too.
 * Not testing from a guest device.

## Checklist

 * Guest bridge, address, pool and DHCP server created.
 * Guest bridge is in its own interface list, not in LAN.
 * Guest SSID has its own password and is attached to the guest bridge.
 * Input rules allow DHCP and DNS from guests, above the drop rule.
 * Forward rule allows guests only to the internet.
 * Tested from a guest device: internet works, LAN and router are blocked.

## WireGuard is a modern VPN that is built into RouterOS 7

- Link: https://www.smartdataline.com/mikrotik-networking/wireguard-is-a-modern-vpn-that-is-built-into-routeros-7/
- Published: 2026-11-30T08:18:48+00:00
- Author: Sinoptik

WireGuard is a modern VPN that is built into RouterOS 7. It is fast, has a short
configuration and uses a small amount of CPU. In this guide you will set up a simple“
road warrior” VPN: your phone or laptop connects to your home MikroTik router, and
gets a secure connection to your home network and, if you want, a way to browse 
through your home internet connection.

## What you need

 * A router running **RouterOS 7** or newer. WireGuard is not available in RouterOS
   6.
 * A **public IP address** on the router’s WAN side, or a port forward from the 
   upstream device. If your provider puts you behind carrier-grade NAT, incoming
   connections will not reach the router.
 * A WireGuard app on the client device (available for phones and computers).
 * The baseline firewall from our [MikroTik firewall guide](https://www.claudeusercontent.com/mikrotik-firewall-rules-home-network/),
   or a similar one. The commands below assume an interface list called `LAN`.

The addresses and names in this article are examples. Replace them with your own,
and always keep a backup and use Safe Mode before changing the firewall.

## Step 1: Create the WireGuard interface

RouterOS generates the key pair for you when you create the interface:

    ```wp-block-code
    /interface wireguard
    add name=wg0 listen-port=13231 comment="WireGuard server"

    /interface wireguard print
    ```

The `print` output shows the interface’s **public key**. Copy it, because the client
needs it. The private key stays on the router and must never be shared.

## Step 2: Give the tunnel an address

    ```wp-block-code
    /ip address
    add address=10.10.10.1/24 interface=wg0 comment="WireGuard network"
    ```

This is a separate small network just for VPN clients. The router is `10.10.10.1`,
and the first client will be `10.10.10.2`.

## Step 3: Create the client and add it as a peer

In the WireGuard app on your phone or computer, create a new empty tunnel. The app
generates a key pair. Copy the client’s **public key**, then add it on the router:

    ```wp-block-code
    /interface wireguard peers
    add interface=wg0 public-key="CLIENT_PUBLIC_KEY" allowed-address=10.10.10.2/32 comment="my phone"
    ```

The `allowed-address` tells the router which source address this peer is allowed
to use. Keep it as a single `/32` address per client.

## Step 4: Open the firewall

Allow the WireGuard UDP port from the internet, and treat the tunnel as part of 
your LAN so that VPN clients can reach the router and the local network:

    ```wp-block-code
    /ip firewall filter
    add chain=input action=accept protocol=udp dst-port=13231 comment="allow WireGuard" \
        place-before=[find where comment="drop everything not from LAN"]

    /interface list member
    add list=LAN interface=wg0
    ```

The rule must sit **above** the rule that drops everything not coming from the LAN.
If your drop rule has a different comment, change the name in the command. If your
router is behind another router, forward UDP port 13231 to it there as well.

## Step 5: Configure the client

In the client app, the configuration looks like this:

    ```wp-block-code
    [Interface]
    PrivateKey = CLIENT_PRIVATE_KEY
    Address = 10.10.10.2/32

    [Peer]
    PublicKey = ROUTER_PUBLIC_KEY
    Endpoint = YOUR_PUBLIC_IP_OR_DDNS_NAME:13231
    AllowedIPs = 192.168.88.0/24, 10.10.10.0/24
    PersistentKeepalive = 25
    ```

 * `AllowedIPs` decides what goes through the tunnel. With your home subnet and 
   the VPN subnet (as above), only traffic to home uses the VPN. This is called 
   a split tunnel. Use `0.0.0.0/0` to send all traffic through your home connection.
 * `PersistentKeepalive` keeps the connection alive through NAT on mobile networks.
 * Replace `192.168.88.0/24` with your own LAN subnet.

 [ADD: a screenshot of your peer list on the router, with the keys hidden]

## If your public IP changes

Many home connections have a dynamic IP. MikroTik has a free dynamic DNS service
you can enable on the router:

    ```wp-block-code
    /ip cloud set ddns-enabled=yes
    /ip cloud print
    ```

The output shows a DNS name for your router. Use that name as the `Endpoint` in 
the client instead of the IP address.

## Check that it works

 1. Switch the tunnel on in the client app.
 2. On the router, run `/interface wireguard peers print` and look for a recent handshake
    time.
 3. From the client, ping `10.10.10.1`, then a device in your LAN.

## Troubleshooting

 * **No handshake:** check the keys (a swapped or mistyped key is the most common
   cause), the endpoint address and port, and that the input rule is above the drop
   rule.
 * **Handshake works but nothing responds:** check `allowed-address` on the router,`
   AllowedIPs` on the client, and that `wg0` is in the LAN list.
 * **Works on Wi-Fi but not on mobile data:** your mobile provider may block or 
   filter UDP traffic on that port. Try another port.
 * **Some sites load slowly or hang:** a packet size (MTU) problem. Try reducing
   the MTU on the tunnel interface.
 * **No public IP:** you are behind carrier-grade NAT. Ask the provider for a public
   address, or run the VPN through a small server with a public IP.

## Security tips

 * Never share private keys, and do not post configs with real keys.
 * Use one peer per device, so you can remove a single lost device without touching
   the others.
 * Peers support an optional preshared key for extra protection.
 * Remove peers you no longer use.

 [ADD: a short note on how you use the VPN yourself, for example remote access to
a home server]

## Checklist

 * RouterOS 7 or newer, and a public IP or a port forward.
 * WireGuard interface, address and peer created.
 * Firewall rule above the drop rule, and `wg0` in the LAN list.
 * Client configured with the router’s public key and the correct endpoint.
 * Handshake and ping tested from outside your home network.

## Solder-mask

- Link: https://www.smartdataline.com/pcb-design-manufacturing/solder-mask/
- Published: 2026-11-29T18:14:54+00:00
- Author: Sinoptik

Solder mask is the colored coating you see on a PCB. Most people think of it as 
decoration, but it does real work, and its settings can affect whether a board can
be soldered reliably. This article explains what solder mask does, how openings 
and dams work, and when the details start to matter.

## What solder mask does

Solder mask is a thin polymer layer over the copper. It has several jobs:

 * **Prevents solder bridges.** Solder sticks to bare copper but not to the mask,
   so it stays on the pads and does not flow between neighboring traces.
 * **Protects copper** from oxidation and some contamination.
 * **Insulates** traces from accidental contact with other conductive parts.

The mask is removed over pads and other places where you need exposed copper. In
your design software the mask layer is usually drawn as the openings, not as the
coating itself, which confuses many beginners.

## Mask openings and expansion

The opening in the mask around a pad is slightly larger than the pad. This difference
is the **solder mask expansion** (sometimes called margin). It exists because the
mask cannot be aligned with perfect accuracy, and the opening should not cover the
edge of the pad.

 * If the expansion is too small, a small misalignment lets mask creep onto the 
   pad, which reduces the solderable area.
 * If it is too large, the opening may expose neighboring copper, and the mask between
   pads becomes too thin to survive.

Use your manufacturer’s recommended expansion and minimum values instead of the 
software default if they differ.

## Mask dams between pads

The thin strip of mask between two neighboring pads is called a **solder mask dam**
or bridge. It helps stop solder from bridging fine-pitch pads. If the pad spacing
is too small, the dam would be narrower than the fab can reliably produce, so the
fab removes it and the pins end up in one long opening. That usually still works
but increases the chance of bridges when soldering.

Check your fab’s minimum mask dam width and compare it with the gap between pads
on your fine-pitch parts.

 [ADD: a close-up photo of a fine-pitch footprint with and without mask dams]

## Vias and tenting

A via can be left open (exposed), or covered with mask. Covering it is called **
tenting**. Tented vias are protected from solder and probing is harder; open vias
allow test probes but can draw solder away from pads if they sit too close. Keep
vias away from pads or tent them, and check your fab’s tenting options.

## Color and appearance

The color does not change the electrical function. It does affect practical things:

 * Green is the most common color and is often the default and quickest option at
   many fabs.
 * Black and dark colors look good but make it harder to see traces and solder joints
   during inspection and rework.
 * White and light colors can reflect more and make silkscreen text less readable.

Availability and price vary by fab, so check yours.

## When mask details really matter

 * **Fine-pitch and BGA parts,** where the dam between pads and pad definition decide
   solderability.
 * **Hand soldering,** where mask openings that are too small make joints difficult.
 * **Test points and edge connectors,** which need exposed copper.
 * **High-voltage designs,** where mask is not a substitute for proper clearance.
   Do not count on it as insulation.

## Common mistakes

 * Misreading the mask layer: drawing coating where you needed an opening.
 * Forgetting that unintentionally exposed copper can create shorts.
 * Leaving silkscreen over pads, which interferes with soldering.
 * Using fine-pitch footprints without checking the fab’s minimum dam width.

 [ADD: a practical lesson from your own boards, such as a mask problem you ran into]

## Checklist

 * Mask expansion matches the manufacturer’s recommendation.
 * Mask dams on fine-pitch parts are wide enough, or you accept the merged opening.
 * Test points and connector pads are open where needed.
 * Vias are either tented or kept away from pads.
 * You previewed the mask layer in a Gerber viewer.

## Easyeda-vs-kicad

- Link: https://www.smartdataline.com/pcb-design-manufacturing/easyeda-vs-kicad/
- Published: 2026-11-29T18:13:38+00:00
- Author: Sinoptik

If you are starting with PCB design, two free tools come up in almost every discussion:
EasyEDA and KiCad. Both can take you from schematic to Gerber files. They differ
in workflow, in how they handle parts and ordering, and in who they suit best. This
comparison focuses on practical differences for hobbyists. Software changes quickly,
so check each project’s current features before you decide.

## The short version

 * **EasyEDA** is built for speed: it runs in the browser or as a desktop client,
   has a parts library connected to an online component supplier, and links closely
   to an affiliated PCB fab for quick ordering.
 * **KiCad** is free and open source, runs on your own computer, and is not tied
   to any manufacturer or parts supplier. It has a steeper start but is very capable
   for complex projects.

## EasyEDA

**Strengths**

 * Quick to start. You can open it in a browser and begin drawing a schematic within
   minutes.
 * Integrated parts library, so symbols, footprints and stock information are close
   at hand.
 * Convenient ordering path for boards and assembly through the connected fab.
 * Projects are stored in the cloud, so you can work from several computers.

**Things to watch**

 * The workflow is built around its own ecosystem. You can export standard Gerber
   files and use any fab, but the convenience features work best with the connected
   one.
 * Cloud storage means you depend on the service. Keep local exports and backups
   of important projects.
 * There are different editions with different features, so check which one fits
   your needs.
 * Library parts are community and supplier contributions. Always compare footprints
   with the datasheet before ordering.

## KiCad

**Strengths**

 * Free, open source and local. Your files stay on your computer and you are not
   tied to one vendor.
 * Powerful design rules, net classes, a good 3D viewer and many community plugins.
 * Works well for larger and more complex boards, including multi-layer designs 
   and differential pairs.
 * Active community and plenty of tutorials.

**Things to watch**

 * It takes longer to learn the library workflow, such as creating and managing 
   your own symbols and footprints.
 * You are responsible for collecting good libraries and generating the files your
   fab requires.
 * Community plugins can help with assembly files and part numbers, but their support
   changes over time.

 [ADD: a screenshot of your own project in the tool you use]

## Which one should you choose?

 * **Your first board, quick results:** EasyEDA gets you to a finished design with
   the least setup.
 * **You want to own your files and tools long-term:** KiCad is the safer choice.
 * **You plan to assemble boards through a fab with its own parts stock:** EasyEDA
   is convenient, but check how well KiCad integration works for your fab.
 * **Complex boards or professional work:** KiCad’s rule system and plugin support
   are strong advantages.

Many people start in one tool and switch later. Converters exist, but check imported
footprints and rules carefully, because conversion rarely preserves everything.

## What matters in either tool

 * Verify every footprint against the datasheet, especially for new or unfamiliar
   parts.
 * Set design rules that match your manufacturer’s real capabilities.
 * Export Gerber and drill files and check them in a viewer before ordering.
 * Back up your projects outside the tool.

 [ADD: which tool you use for your own boards, and why]

## Checklist

 * You decided whether you value speed or ownership more.
 * You checked the current editions and features of the tool.
 * You know how to export standard Gerber files from it.
 * Your footprints are verified against datasheets.
 * Your projects are backed up locally.

## Trace-width-clearance

- Link: https://www.smartdataline.com/pcb-design-manufacturing/trace-width-clearance/
- Published: 2026-11-29T18:11:58+00:00
- Author: Sinoptik

Trace width and clearance are two of the first settings you choose in a PCB layout
tool, and two of the easiest to get wrong. Too narrow and a trace overheats or the
factory cannot build it. Too close together and you risk shorts or voltage breakdown.
This guide explains how to choose both values with a clear method instead of guesswork.

## Two limits: what the circuit needs and what the factory can make

Every value must satisfy two conditions. The circuit needs a certain width for current
and a certain spacing for voltage. The manufacturer has a minimum width, minimum
spacing and minimum drill size that it can reliably produce. Start by reading your
fab’s capabilities page, then design with margin above its minimums unless a dense
layout forces you down to them.

## Trace width for current

A trace is a strip of copper with resistance. Current heats it, and the heat has
to go somewhere. The width you need depends on three things: the current, the copper
thickness and the temperature rise you accept. Thicker copper carries more current
for the same width, and traces on outer layers cool better than traces on inner 
layers.

The common reference is the IPC-2221 relationship:

    ```wp-block-code
    I = k × ΔT^0.44 × A^0.725

    I  = current in amps
    ΔT = allowed temperature rise in °C
    A  = cross-section area in square mils (width × copper thickness)
    k  = 0.048 for outer layers, 0.024 for inner layers
    ```

Copper thickness is usually given in ounces. One ounce is about 35 µm, or roughly
1.4 mil. You do not need to solve the formula by hand: use a trace width calculator
that implements IPC-2221 or the newer IPC-2152 and enter your current, copper weight
and acceptable temperature rise.

Treat the result as an estimate. Add margin, especially for continuous high current,
boards in warm enclosures, and traces that run through narrow necks such as between
pads. Several vias in parallel are needed when high current changes layers.

 [ADD: your own typical trace widths for power traces, and the current they carry]

## Clearance for voltage

Clearance is the spacing between copper features at different potentials. For low-
voltage logic, the manufacturer’s minimum spacing is usually the limit, not the 
voltage. As voltage rises, you need more spacing to avoid breakdown and leakage,
and surface contamination, humidity and altitude make this worse.

For mains voltages or any safety-critical design, do not rely on rules of thumb.
Follow the applicable safety standards for clearance and creepage distance and use
a qualified engineer’s review. Slots in the board and conformal coating can also
change what is allowed.

## Signal traces

Signal traces rarely carry much current, so width is chosen for other reasons:

 * **Manufacturability:** wider is more robust and often cheaper to produce.
 * **Voltage drop and resistance:** relevant for long traces carrying small currents
   to sensitive loads.
 * **Controlled impedance:** the width that gives a target impedance depends on 
   the board stackup, so ask your fab for its stackup and use its impedance tool
   or your software’s calculator.

## A practical way to set up your design

 1. Create **net classes** in your software: one for signals, one for power, and one
    for high-current nets if needed.
 2. Set a default signal width comfortably above the fab’s minimum.
 3. Give power nets a wider width and larger clearance based on your calculation.
 4. Enter the manufacturer’s real minimums as design rules, so the DRC catches violations.
 5. Use polygon pours or planes for heavy current instead of long, thin traces.

## Common mistakes

 * Using one trace width for the whole board, including power.
 * Designing at the factory’s absolute minimum when there was plenty of space.
 * Forgetting that inner layers handle less current for the same width.
 * Ignoring the narrowest point of a power path, such as a trace that squeezes between
   two pads.
 * Guessing clearance for mains-powered designs.

## Checklist

 * Fab minimums are entered as design rules.
 * Power trace widths are calculated for the current, copper weight and temperature
   rise.
 * Net classes separate signals from power.
 * Higher-voltage areas have enough spacing, or follow the applicable standard.
 * Layer changes on high-current nets use several vias.

## Pcb layout noise mistakes

- Link: https://www.smartdataline.com/pcb-design-manufacturing/pcb-layout-noise-mistakes/
- Published: 2026-11-29T18:09:38+00:00
- Author: Sinoptik

You can have a perfect schematic and still end up with a board that resets randomly,
gives noisy ADC readings, or fails EMC tests. In most cases the cause isn’t the 
circuit itself but the layout. Here are the mistakes that cause the most noise problems,
and how to avoid each one.

## 1. Breaking the return current path

Every signal needs a path for its current to return to the source, and that return
current tends to follow the route with the lowest impedance. On a board with a solid
ground plane, it flows directly under the signal trace. If you cut the plane with
slots, long cutouts or a pile of vias, the return current has to detour, which creates
a larger loop and more radiation and noise.

**Fix:** Keep a continuous ground plane under fast signals. Avoid routing traces
across gaps in the plane. If you must change layers, place a ground via close to
the signal via.

 [ADD: the return-current diagram image from the media library]

## 2. Placing decoupling capacitors too far from the chip

A decoupling capacitor only helps if it can supply fast current spikes before the
board’s power traces get involved. The longer the connection, the higher its inductance,
and the less useful the capacitor becomes.

**Fix:** Put the small capacitor as close to the power pin as possible. Connect 
it with short, wide traces, or place the via right next to the capacitor pad. Don’t
route power through the via and then back to the capacitor with a long trace.

## 3. Routing noisy and sensitive signals side by side

Long parallel traces couple into each other (crosstalk). A switching signal, a clock
line or a motor driver output running next to an analog input will leak noise into
it.

**Fix:** Keep clock lines and other fast edges away from analog inputs and sensor
lines. Increase the spacing between them, or put a ground plane layer in between.
Avoid long parallel runs.

## 4. Ignoring the switching regulator layout

A switching regulator produces high-frequency current loops. If the input capacitor,
the inductor and the switch aren’t placed tightly together, the loop acts like an
antenna and radiates noise into the rest of the board.

**Fix:** Follow the layout example in the regulator’s datasheet. Keep the high-current
loop as small as possible, place the input capacitor right next to the IC, and keep
sensitive analog traces away from the inductor.

## 5. Mixing analog and digital grounds carelessly

Digital circuits push current spikes into ground. If sensitive analog circuitry 
shares the same return path, those spikes show up as noise in measurements.

**Fix:** Place analog and digital parts in separate areas of the board, so digital
return currents don’t flow under the analog section. In most modern designs a single
solid ground plane works better than a split one, as long as the component placement
keeps the sections apart.

## 6. Thin or long power traces

A narrow power trace has resistance and inductance. Under load, the voltage at the
far end drops and ripples, and this shows up as resets or unstable readings.

**Fix:** Use wide traces or power planes for supply lines, and check the trace width
against the current you expect. Keep power paths short, and use several vias when
moving power between layers.

 [ADD: a real board where one of these mistakes caused a problem, and how you solved
it]

## A quick checklist before you send the board to manufacturing

 * Is the ground plane continuous under all fast signals?
 * Is every decoupling capacitor next to its power pin?
 * Are analog inputs far from clocks, switching nodes and motor drivers?
 * Does the switching regulator layout follow the datasheet?
 * Are power traces wide enough for the current?

## Ordering your first PCB is exciting

- Link: https://www.smartdataline.com/pcb-design-manufacturing/ordering-your-first-pcb-is-exciting/
- Published: 2026-11-23T19:31:55+00:00
- Author: Sinoptik

Ordering your first PCB is exciting, and it is also where many beginners make avoidable
mistakes: the wrong board options, missing files, or a design the manufacturer cannot
build. This checklist walks you through the process from finished layout to boards
in your hands.

## 1. Finish your design checks first

Before you export anything, run the electrical rules check (ERC) on the schematic
and the design rules check (DRC) on the layout. Fix every error or understand why
you are ignoring it. A DRC that passes with your own rules does not guarantee the
factory can build the board, so the next step is to compare your rules with theirs.

## 2. Choose a manufacturer

Look at more than the price:

 * **Capabilities:** minimum trace width and spacing, minimum drill size, number
   of layers and board size limits. Your design must stay within these.
 * **Lead time and shipping:** production time and delivery are separate. Check 
   customs and import rules for your country.
 * **Minimum quantity:** many fabs have a minimum order, so check it before you 
   plan how many boards you need.
 * **Files and tools:** a good fab has an online viewer for your Gerber files and
   clear documentation of its design rules.

## 3. Understand the board options

 * **Layers:** a two-layer board is enough for most first projects. Add layers only
   when routing or noise requires it.
 * **Thickness:** 1.6 mm is the common default. Pick something else only if your
   enclosure or connector needs it.
 * **Copper weight:** 1 oz is the usual default. Heavier copper is for high-current
   boards.
 * **Surface finish:** HASL is the economical standard and works well for through-
   hole and larger SMD parts. ENIG gives flatter pads, which helps with fine-pitch
   parts. OSP is a thin organic coating with a limited shelf life. If you are unsure,
   ask the fab which one suits your parts.
 * **Solder mask and silkscreen colors:** a matter of taste, but contrast matters.
   Dark masks are harder to inspect by eye.

## 4. Export and check your files

Export Gerber files and drill files from your design software, zip them, and upload
them to the fab’s website. Then open the preview and look at every layer: board 
outline, copper, solder mask, silkscreen and drill holes. See our guide on preparing
Gerber files for the details.

 [ADD: a screenshot of the online Gerber preview from your first order]

## 5. Decide whether you need assembly

Some fabs also place and solder components. If you order assembly, you need a bill
of materials (BOM) and a component placement file, and the parts must be available
from the fab’s stock. For a first board, many people order bare PCBs and solder 
them by hand.

## 6. Review before you pay

 * Board dimensions and quantity are correct.
 * Layer count, thickness, copper weight and finish match what you planned.
 * The preview matches your design: no missing layers, holes or outline.
 * The shipping address and delivery method are right.

## Common beginner mistakes

 * Sending the project file instead of exported Gerbers.
 * Designing below the manufacturer’s minimum trace, spacing or drill size.
 * Forgetting a board outline, so the fab does not know where to cut.
 * Placing silkscreen text over pads.
 * Ordering a small quantity for a design that has never been tested, then finding
   an error in every board. Prototype in small numbers first.

 [ADD: a short story or photo from your own first or recent order: what you learned]

## Checklist

 * ERC and DRC pass, and your rules match the fab’s capabilities.
 * Gerber and drill files are exported and previewed layer by layer.
 * Board options (layers, thickness, copper, finish, color) are selected deliberately.
 * Quantity respects the minimum and your testing needs.
 * Shipping time and customs are checked.

## MikroTik firewall rules for a home network: a safe baseline config

- Link: https://www.smartdataline.com/mikrotik-networking/mikrotik-firewall-rules-for-a-home-network-a-safe-baseline-config/
- Published: 2026-11-22T01:40:44+00:00
- Author: Sinoptik

A new MikroTik router is powerful, but a half-configured firewall is worse than 
none: it gives you a false sense of safety. This guide walks through a minimal baseline
for a home network with one WAN port and a LAN bridge. It is based on the logic 
of MikroTik’s own default configuration, explained rule by rule so you know what
each line does and why it is there.

The commands use RouterOS 7 syntax. Interface names (ether1, bridge) and subnets
are examples, so adjust them to your setup before pasting anything.

Before you touch anything: protect yourself from a lockout
 The most common firewall
mistake is cutting off your own access. Do these two things first:

Make a backup and an export. In the terminal run /system backup save name=before-
firewall and /export file=before-firewall, then download both files from the Files
menu.
 Use Safe Mode. Turn it on in WinBox (the Safe Mode button) or in the terminal
with Ctrl+X. If you lose the connection while it is on, RouterOS rolls back the 
changes made during the session. [ADD: a screenshot of your WinBox with Safe Mode
enabled]

Step 1: **Define WAN and LAN with interface lists**
 Rules based on interface lists
are easier to read and maintain than rules tied to specific ports. Create two lists
and add your interfaces:

/interface list
 add name=WAN add name=LAN /interface list member add list=LAN interface
=bridge add list=WAN interface=ether1 If your provider uses PPPoE, the WAN member
is the PPPoE interface (for example pppoe-out1), not the physical port.

Step 2: **Protect the router itself (input chain)**
 The input chain handles traffic
addressed to the router: WinBox, SSH, DNS requests to the router, and so on. The
goal is simple: allow what is needed, drop everything that comes from outside.

/ip firewall filter
 add chain=input action=accept connection-state=established,
related,untracked comment=”accept established, related, untracked” add chain=input
action=drop connection-state=invalid comment=”drop invalid” add chain=input action
=accept protocol=icmp comment=”accept ICMP” add chain=input action=accept in-interface-
list=LAN comment=”accept from LAN” add chain=input action=drop in-interface-list
=!LAN comment=”drop everything not from LAN” Rules are checked from top to bottom
and the first match wins. That is why the final drop rule goes last: everything 
that was not explicitly allowed above it gets dropped.

Step 3: **Protect the network behind the router (forward chain)**
 The forward chain
handles traffic passing through the router, for example from a laptop in your LAN
to the internet and back.

add chain=forward action=accept connection-state=established,related,untracked comment
=”accept established, related, untracked”
 add chain=forward action=drop connection-
state=invalid comment=”drop invalid” add chain=forward action=drop connection-state
=new connection-nat-state=!dstnat in-interface-list=WAN comment=”drop new connections
from WAN that are not port forwards” The last rule blocks new connections arriving
from the internet unless they match a port forward you configured on purpose (a 
dstnat rule). Your own port forwards keep working, and nothing else gets in.

I left FastTrack out of this baseline on purpose. FastTracked connections skip most
of the normal packet processing, including queues, so it conflicts with traffic 
shaping. Add it later only if you need the extra throughput and understand what 
it bypasses.

![NAT so the LAN can reach the internet](https://www.smartdataline.com/wp-content/
uploads/2026/11/Gemini_Generated_Image_blxre8blxre8blxr.jpg)

Step 4: **NAT so the LAN can reach the internet**
 /ip firewall nat add chain=srcnat
action=masquerade out-interface-list=WAN ipsec-policy=out,none comment=”masquerade”
Step 5: Close the management services you do not use A firewall is only half of 
the job. Services that listen on the router are another way in:

/ip service
 set telnet disabled=yes set ftp disabled=yes set www disabled=yes set
api disabled=yes set api-ssl disabled=yes set winbox address=192.168.88.0/24 set
ssh address=192.168.88.0/24

/tool mac-server set allowed-interface-list=LAN
 /tool mac-server mac-winbox set
allowed-interface-list=LAN /ip neighbor discovery-settings set discover-interface-
list=LAN Replace 192.168.88.0/24 with your own LAN subnet. The address setting limits
which source addresses may connect to that service. The last three lines stop the
router from announcing itself or accepting MAC-level logins on the WAN side.

 [ADD: a screenshot of your /ip service list after the changes]

Common mistakes
 Mixing up input and forward. Input protects the router, forward
protects the devices behind it. You need both. Wrong rule order. An accept rule 
placed below a drop rule never fires. New rules are added to the bottom of the list,
so check the order after adding them. Forgetting IPv6. The IPv4 firewall does not
apply to IPv6. If IPv6 is enabled on your router, it needs its own rules under /
ipv6 firewall filter, otherwise your LAN devices may be reachable from the internet
over IPv6. Leaving default management ports open to the world. Telnet, FTP, the 
web interface, the API and WinBox should never be reachable from the WAN. Pasting
rules on top of an old config. Duplicates and conflicting rules are easy to miss.
Review /ip firewall filter print before and after. How to check that it works Open/
ip firewall filter print stats and watch the packet counters. The drop rules on 
the WAN side should slowly collect hits from internet background noise. Scan your
public IP from outside your network (for example from a mobile connection) and confirm
that no management ports respond. Test a port forward, if you have one, to confirm
that the dstnat exception works. [ADD: a short note on what you saw in the counters
or scan on your own router]

 

#### **Checklist**⏎  Backup and export saved before the changes. WAN and LAN interface lists are set up with the correct interfaces. Input chain ends with a drop for everything that is not from the LAN. Forward chain drops new connections from the WAN that are not port forwards. Unused services are disabled and the rest are restricted to your LAN. IPv6 is either disabled or has its own firewall rules. You tested access from the outside. This baseline is a starting point. Always verify the rules on your own device and RouterOS version before relying on them, and adjust interface names and addresses to match your network.
