Use Ethernet for a NAS and Wi-Fi for internet on a Mac

You may not need extra software for this setup. Connect both networks and test the NAS and internet first. If both already work as intended, keep the system configuration. Use a destination rule when you need explicit control over a NAS connection’s interface.

· RouteBar

Identify the two network paths

In this example, Ethernet reaches the NAS through a local switch or LAN, while Wi-Fi reaches an internet router. The example NAS address is 192.168.50.10; replace it with your own address. A direct cable to a NAS requires compatible addressing according to its documentation. Selecting an interface does not create a missing network path.

Check whether macOS already routes correctly

With both networks connected, open the NAS service by IP and access the internet. If both work and you have no special app requirement, no routing rule is necessary. Overlapping subnets on the two networks can make the intended path ambiguous. Review the address plan first; service order does not resolve every subnet conflict.

Create a narrow NAS rule when needed

Add an allow rule in RouteBar with the NAS’s individual IP as its destination. Select the Ethernet interface that can reach it and the protocol used by the service: TCP, or TCP and UDP as appropriate. Restrict the app if needed. Avoid matching every private address just to reach one NAS. Disable system-route fallback if the NAS connection must stay on Ethernet.

Interface example: RouteBar routing rules
Screenshot from version 0.1.0, illustrating the interface only. The pictured rules are not this article’s complete configuration; follow the written steps.

Reconnect safely and check the log

Start or restart the scene. When no file write will be interrupted, reconnect the NAS service and start a new transfer. Check its destination IP, matched rule and Ethernet interface in the log. Make a fresh browser request to confirm internet access still works. A working web page alone says nothing about the NAS transfer’s interface.

Separate name resolution from routing

If the IP works but the NAS name does not, investigate DNS and local discovery. A hostname rule cannot repair every split-DNS setup. RouteBar does not handle ICMP, so ping is not proof that an app’s TCP or UDP routing rule works. Validate the actual file service connection instead.

References

Related tutorials