Getting a B NAT Type on the Nintendo Switch using OPNSense

nintendo%20switch%20alias

Note: This post was originally posted on my personal blog. I have copied the content to this blog.

This one caused many hours of befuddlement. I have a router running OPNSense and a Nintendo Switch, but without any modifications to my network, I get a D on NAT Type on my connection tests. I must be able to play Animal Crossing! So here’s what you need to do to get a B (or possibly better) on your NAT Type.

BEFORE YOU BEGIN: Make sure OPNSense is reasonably up to date. I’m on 19.7.4, but this is what stopped other guides from working for me. Other than this, my guide is similar to other guides on the internet.

  1. Connect your Switch to your network
  2. Get your Switch’s IP (Settings -> Internet) You can connect via both WiFi and LAN adapter and note both addresses. Ideally your address should be static DHCP, but that’s outside the scope of this article.
  3. Log into OPNSense and navigate to Firewall -> Aliases
  4. Create a new alias (the small plus button in the bottom right) and enter this information

Nintendo Switch Alias

  1. Add the IPs under content like shown and click Save
  2. Go to Firewall -> NAT -> Outbound and click “Add”
  3. Under “Source address”, scroll and find NintendoSwitch
  4. Scroll down and CHECK Static-port!!!
  5. Give it a description like “NAT Nintendo Switch”
  6. Save
  7. You should see your new rule (and a popup saying you need to Apply changes)
  8. Check the box next to the rule, then click the arrow on the rule that the description is “Auto created rule – LAN -> WAN”
  9. Now click Apply changes

NAT Outbound Rule

Do another connection test and you should now have a B type NAT.

Common pitfalls:

  • Static-port not checked
  • Switch IP address has changed
  • Rule is not above the Auto created rule
  • OPNSense is out of date